RE: Cannot run Tomcat as new user

2003-09-23 Thread Ralph Einfeldt
I'm quite shure that the smallest possible tomcat 
installation won't run with 5 MB memory. So I think 
that is nothing that has anything to do with your
application. (The default installation of tomcat
on our machine needs 20 MB)

Although I don't know what happened, I could bet
that these settings where different before the
restart of the machine or tomcat has run as root.

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 22, 2003 7:37 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user
 
 So now my question is... I've had those set as 20  5000 for some time
 now... Why did this OutOfMemoryError just coincidentally 
 occur with the brownout?
 

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



Re: IIS 5.1 and Tomcat 4

2003-09-23 Thread Mats Andersson
If you want you may send me your
workers.properties
uriworkermap.properties
and exported registry settings and I will look closer at it.
I can send you the dll files for jk and jk2 if you want. I have no idea
why they are removed and where they are now.
Mats

Jon Skeet wrote:

Just checking this, my log definitely shows it's found the ajp13 stuff:

[Mon Sep 22 16:22:03 2003]  [jk_worker.c (82)]: Into wc_open
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (207)]: Into build_worker_map,
creating 1 workers
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp13
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (138)]: Into wc_create_worker
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp13
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (177)]: wc_create_worker, done
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (223)]: build_worker_map,
removing old ajp13 worker 
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (235)]: build_worker_map, done
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (102)]: wc_open, done

(I assume the removing old ajp13 worker is okay?)

Looking with a TCP viewer, my Tomcat installation is definitely
listening on port 8009, but there's no sign of IIS trying to connect to
it, which at least suggests that the problem's somewhere there rather
than in server.xml.
There doesn't seem to be much I could have done wrong - I'm rather
confused :(
Jon

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


Busy tomcat with JVM problem

2003-09-23 Thread Danny Wong
Hi!

I have a server farm of Solaris 8 machines, and have
apache 2.0.45 + tomcat 4.0.6 + mod_jk 1.3 + jdk
1.4.1_02 running.  They are identical in hardware
configuration.  Since they are very busy, I want to
allocate more memory for the JVM using the -Xmx option
in catalina.sh.  I have several servers have the
following errors when I start up or shutdown tomcat:

Error occurred during initialization of VM
Could not reserve enough space for object heap

This error message appears when I allocate more than
1950m to the JVM.  Some other servers I can allocate
more than 3GB memory to JVM without any problem.  Any
ideas what happening?

Many thanks~

Danny

_
:[EMAIL PROTECTED]
http://ringtone.yahoo.com.hk

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



tomcat servlet-mapping

2003-09-23 Thread Fred Astaire
Hello guys!
Is there anybody who could give me an advice in servlet-mapping?
I got a web application which consists of a ControllerServlet which should 
handles all incoming request´s
except 2 static html files (index.html which is an welcome file and 
abc.html)!

First I mapped it like this:

servlet-mapping
   servlet-nameController/servlet-name
   url-pattern//url-pattern
 /servlet-mapping
but then the static html files are not reachable

How could i configure my web.xml , that all requests besides index.html and 
abc.html
are mapped to the ControllerServlet?

Greets
Fred
_
Frustrated with dial-up? Get high-speed for as low as $29.95/month 
(depending on the local service providers in your area).  
https://broadband.msn.com

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


Re: Javaw

2003-09-23 Thread Christopher Williams
Use Windows Scripting.  Let's say that your program is called myApp and that
the batch file that you use to run it is called run_myApp.bat.  Simply
create a script file called run_myApp.vbs and use the following VBScript
code:

Set objShell = Wscript.createObject(Wscript.shell)
objShell.run(javaw...)

Obviously, your script requires a little more work; you need to build the
path to your class and setup the Java classpath, but fundamentaly this is
all you need to do to run javaw without a console.

Your work isn't quite done, however.  I find that Norton Antivirus puts up a
seriously hostile dialog box when I run a VBS script directly.  To this end
you need to create a scripting host file.  Let's call it run_myApp.wsh:

[ScriptFile]
Path=run_myApp.vbs
[Options]
...

You can execute this .wsh file from Start\Run or from a link on the desktop
or whatever.

Kind regards,

Chris Williams.




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



Re: Is struts.jar mandatory for tomcat 4.1.24 ?

2003-09-23 Thread Adam Hardy
No it's not mandatory. But tomcat's admin app uses struts. This is 
controlled by an .xml file in your webapps directory, and it points to 
the deployment in tomcat/server/webapps/admin.

Adam

On 09/23/2003 06:07 AM Sarika N Inamdar wrote:
Hi All,

Please let me know if struts.jar should be present under /WEB-INF/lib
with tomcat 4.1.24 ?
We have jps's which do not struts. But when I start tomcat,encounter the
following exception in /logs/localhost_log file . This execption does
not hamper the functionality though !!!
2003-09-22 20:33:01 StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.str
uts.action.ActionServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:891)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
3)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
Thanks in Advance,
Sarika
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Forwarding with Tomcat Standalone

2003-09-23 Thread Adam Hardy
Have you set up the security-constraint in your web.xml for those pages?

  security-constraint
web-resource-collection
  web-resource-nameLogin 4 Everything/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/private/*/url-pattern
/web-resource-collection
auth-constraint
  !-- Anyone with one of the listed roles may access this area --
  role-nameuser/role-name
  role-nameadmin/role-name
/auth-constraint
user-data-constraint
  descriptionSSL not required/description
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint
You will also probably need to set up a filter to redirect non-secure 
pages out of HTTPS. This is not automatic.

Adam

On 09/23/2003 03:28 AM Michael Futeran wrote:
I am trying to replace an Apache/Tomcat combination with Tomcat standalone.
I have everything else working, but I can not figure out how to get requests
for secure pages to be auto forwarded to https the way they are with Apache.
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Single Login Authentication with Tomcat

2003-09-23 Thread Adam Hardy
I believe somewhere on java.sun.com I saw an article about setting up 
JAAS as a tomcat realm to use NT authorisation.

Good luck,
Adam
On 09/23/2003 07:29 AM Peter Harrison wrote:
I was wondering it anyone knows how to do NT based one login authentication 
with web applications. I was hoping there is some way a client can be 
authenticated based on their system login.

Obviously there would have to be a common authentication service like LDAP or 
Active Directory involved. Is there some kind of Applet or ActiveX component 
which can be used to transmit something back to the server to authenticate?

Regards,
Peter
PS : I know you can have a Realms based login - the question is how to use the 
system login to authenticate web apps.

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Single Login Authentication with Tomcat

2003-09-23 Thread Frode E. Moe
On Tue, Sep 23, 2003 at 17:29:03 +1200, Peter Harrison wrote:
 I was wondering it anyone knows how to do NT based one login authentication 
 with web applications. I was hoping there is some way a client can be 
 authenticated based on their system login.
 
 Obviously there would have to be a common authentication service like LDAP or 
 Active Directory involved. Is there some kind of Applet or ActiveX component 
 which can be used to transmit something back to the server to authenticate?
 

Check out http://jcifs.samba.org. You can use this as a servlet filter
to do NTLM login, against a windows domain controller.


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



RE: Is struts.jar mandatory for tomcat 4.1.24 ?

2003-09-23 Thread Sarika N Inamdar
Hi,

Thanks for the inputs. We do not use any admin applications. We have
web.xml in ROOT/WEB-INF/ directory. It has the following entry :

servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

Is there a way that we can tell tomcat not to use struts.jar ? Do we
need to make any changes in the web.xml ?

Please let us know on this.

Thanks Much,
Sarika



 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 1:49 PM
 To: Tomcat Users List
 Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ?
 
 
 No it's not mandatory. But tomcat's admin app uses struts. This is 
 controlled by an .xml file in your webapps directory, and it 
 points to 
 the deployment in tomcat/server/webapps/admin.
 
 Adam
 
 On 09/23/2003 06:07 AM Sarika N Inamdar wrote:
  Hi All,
  
  Please let me know if struts.jar should be present under 
 /WEB-INF/lib 
  with tomcat 4.1.24 ?
  
  We have jps's which do not struts. But when I start 
 tomcat,encounter 
  the following exception in /logs/localhost_log file . This 
 execption 
  does not hamper the functionality though !!!
  
  
  2003-09-22 20:33:01 StandardContext[]: Servlet  threw 
 load() exception
  javax.servlet.ServletException: Wrapper cannot find servlet class 
  org.apache.str uts.action.ActionServlet or a class it depends on
  at
  
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
  java:891)
  at
  
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
  3)
  at
  
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
  t.java:3420)
  at
  
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
  608)
  at
  
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
  
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
  
  
  Thanks in Advance,
  Sarika
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -- 
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9
 
 
 -
 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]



character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Hello,

we have a Struts web application, that should use UTF-8 as character 
encoding. I set the content type for the HTML pages (JSP) as well as the 
character encoding on the request via the SetCharacterEncodingFilter 
delivered with Tomcat in the examples webapp. It works in the whole application.

But: It's Tomcat 4.1.18 integrated in JBoss 3.0.6 and we do authentication 
using JAAS and I found no possibility to set the request encoding of the 
JAAS request (to j_security_check). This resulted in wrong username or 
password for müller, which could be fixed in the login module by recoding 
the string. But we also have a logged in as on every page and there was 
not written müller, but the infamous UTF-8 vs. ISO-8859 mA¼ller, because 
it was wrongly set on the request object or at least wrongly read from there.

I have fixed it by writing a SetCharacterEncodingValve and now also the JAAS 
request is handled as UTF-8, but the application depends on Tomcat now. Does 
anybody know how to configure the filter mapping to match also the JAAS 
request? As far as I know the JAAS request is catched by the servlet 
container and does not arrive at the web app. This means the filter mapping 
in the web.xml can't be read/used.

I would like to replace the Valve with the Filter to avoid servlet container 
dependency. I appreciate any help.

Regards,

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Single Login Authentication with Tomcat

2003-09-23 Thread Christopher Williams
 I believe somewhere on java.sun.com I saw an article about setting up
 JAAS as a tomcat realm to use NT authorisation.


There's a big problem with JAAS and the NTLoginModule: it gives you the
details of the currently logged on user.  For a web app, this will be the
user under which Tomcat is being run, not the person who has typed in his
name and password in his browser.

There are two solutions:
1. Use JNDI realm to talk to Active Directory.
2. Collect credentials yourself and use native code to call the WinAPI
function LogonUser.

I have written a centralized authentication service.  One of the modules
that I created to authenticate users against a Windows domain uses method 2
above.

Kind regards,

Chris Williams.



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



Re: IIS 5.1 and Tomcat 4

2003-09-23 Thread Mats Andersson
[Tue Sep 23 09:31:04 2003]  [jk_isapi_plugin.c (672)]: In HttpFilterProc 
Virtual Host redirection of /localhost/mobilizer/mobilizer/
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (368)]: Attempting to 
map URI '/localhost/mobilizer/mobilizer/'
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (456)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Sep 23 09:31:04 2003]  [jk_isapi_plugin.c (678)]: In HttpFilterProc 
test Default redirection of /mobilizer/mobilizer/
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (368)]: Attempting to 
map URI '/mobilizer/mobilizer/'
[Tue Sep 23 09:31:04 2003]  [jk_uri_worker_map.c (391)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - 
/mobilizer/
[Tue Sep 23 09:31:04 2003]  [jk_isapi_plugin.c (688)]: HttpFilterProc 
[/mobilizer/mobilizer/] is a servlet url - should redirect to ajp13
[Tue Sep 23 09:31:04 2003]  [jk_isapi_plugin.c (737)]: HttpFilterProc 
check if [/mobilizer/mobilizer/] is points to the web-inf directory

It seems like /mobilizer/mobilizer/ finds its way through, but the path 
/localhost/mobilizer/mobilizer doesn't. Is that correct? What is the path
starting with /localhost, is this really your intention?

Mats

Jon Skeet wrote:

Just checking this, my log definitely shows it's found the ajp13 stuff:

[Mon Sep 22 16:22:03 2003]  [jk_worker.c (82)]: Into wc_open
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (207)]: Into build_worker_map,
creating 1 workers
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp13
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (138)]: Into wc_create_worker
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp13
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Mon Sep 22 16:22:03 2003]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (177)]: wc_create_worker, done
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (223)]: build_worker_map,
removing old ajp13 worker 
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (235)]: build_worker_map, done
[Mon Sep 22 16:22:03 2003]  [jk_worker.c (102)]: wc_open, done

(I assume the removing old ajp13 worker is okay?)

Looking with a TCP viewer, my Tomcat installation is definitely
listening on port 8009, but there's no sign of IIS trying to connect to
it, which at least suggests that the problem's somewhere there rather
than in server.xml.
There doesn't seem to be much I could have done wrong - I'm rather
confused :(
Jon

-
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: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
snip log

 It seems like /mobilizer/mobilizer/ finds its way through, 
 but the path  /localhost/mobilizer/mobilizer doesn't. Is that correct?
What 
 is the path starting with /localhost, is this really your intention?

There shouldn't be any path starting with /localhost. I'm visiting the
URL

http://localhost/mobilizer/mobilizer

but the localhost part is the servername, not the path.

This appears to be consistent with the log I get when I use the name of
the computer rather than localhost, eg:

[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/treebeard/mobilizer/mobilizer/'
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

My guess is that it's something IIS is doing for the sake of virtual
hosting, but I wouldn't like to say for sure.

The /mobilizer/mobilizer path is the correct one - but I don't know why
it's then not getting any further than it is doing.

Jon

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



Re: Single Login Authentication with Tomcat

2003-09-23 Thread Mario Ivankovits
 There are two solutions:
 1. Use JNDI realm to talk to Active Directory.
 2. Collect credentials yourself and use native code to call the WinAPI
 function LogonUser.

 I have written a centralized authentication service.  One of the modules
 that I created to authenticate users against a Windows domain uses method
2
 above.

I have used a modification of method 1. Modified JNDIrealm and user
certificates.
Thus, it is possible to also allow passwordless login for homeworker.

Maybe you might take a look at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831. For the source and
additional infos.


Mario


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



Re: tomcat servlet-mapping

2003-09-23 Thread Andoni
Hi Fred,

I have just recently had this problem and found the answer in Chapter 11 of
the servlet specification.

I am using Tomcat 4.0.4 which is Servlet spec. 2.3 which I find here:

http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

also look for messages in this list with url-pattern in the subject.  If
you have not been downloading this list the archives are here:

http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

If you still can't quite figure your situation out get back again.

Later,

Andoni.

- Original Message -
From: Fred Astaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:09 AM
Subject: tomcat servlet-mapping


 Hello guys!
 Is there anybody who could give me an advice in servlet-mapping?

 I got a web application which consists of a ControllerServlet which should
 handles all incoming request´s
 except 2 static html files (index.html which is an welcome file and
 abc.html)!

 First I mapped it like this:

 servlet-mapping
 servlet-nameController/servlet-name
 url-pattern//url-pattern
   /servlet-mapping

 but then the static html files are not reachable

 How could i configure my web.xml , that all requests besides index.html
and
 abc.html
 are mapped to the ControllerServlet?

 Greets
 Fred

 _
 Frustrated with dial-up? Get high-speed for as low as $29.95/month
 (depending on the local service providers in your area).
 https://broadband.msn.com


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




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



Re: Is struts.jar mandatory for tomcat 4.1.24 ?

2003-09-23 Thread Adam Hardy
Hi Sarika,

I think the easiest solution is to move the admin.xml file out of your 
tomcat/webapps directory. Then the admin app will not be started with 
tomcat.

HTH
Adam
On 09/23/2003 10:36 AM Sarika N Inamdar wrote:
Hi,

Thanks for the inputs. We do not use any admin applications. We have
web.xml in ROOT/WEB-INF/ directory. It has the following entry :
servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

Is there a way that we can tell tomcat not to use struts.jar ? Do we
need to make any changes in the web.xml ?
Please let us know on this.

Thanks Much,
Sarika



-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 1:49 PM
To: Tomcat Users List
Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ?

No it's not mandatory. But tomcat's admin app uses struts. This is 
controlled by an .xml file in your webapps directory, and it 
points to 
the deployment in tomcat/server/webapps/admin.

Adam

On 09/23/2003 06:07 AM Sarika N Inamdar wrote:

Hi All,

Please let me know if struts.jar should be present under 
/WEB-INF/lib 

with tomcat 4.1.24 ?

We have jps's which do not struts. But when I start 
tomcat,encounter 

the following exception in /logs/localhost_log file . This 
execption 

does not hamper the functionality though !!!

2003-09-22 20:33:01 StandardContext[]: Servlet  threw 
load() exception

javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.str uts.action.ActionServlet or a class it depends on
   at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.

java:891)
   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82

3)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex

t.java:3420)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3

608)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

Thanks in Advance,
Sarika


-

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
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]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IIS 5.1 and Tomcat 4

2003-09-23 Thread Mats Andersson
That explains the localhost part. Then I would try with a network 
sniffer (or whatever they are called)
to find out if IIS tries to contact tomcat at 8009. If you don't have 
one, I suggest Ethereal at

www.ethereal.com/

BTW: Do you get a strange stacktrace at startup (MBean something...)? Do 
the tomcat shutdown take a long time?
If so, you can try removing the connector at 8009 and instead use the 
8081 one at port 8009.
The org.apache.coyote.tomcat4.CoyoteConnector is a new one used with 
jk2, but I can't imagine
that it won't work with jk as well, since the protocol is the same (ajp13).

Also you can add these rules to uriworkermap.properties, just to see if 
anything changes in the log file:

/localhost/mobilizer/mobilizer/*=$(default.worker)
/mobilizer/mobilizer/*=$(default.worker)
Mats

Jon Skeet wrote:

snip log

 

It seems like /mobilizer/mobilizer/ finds its way through, 
but the path  /localhost/mobilizer/mobilizer doesn't. Is that correct?
   

What 
 

is the path starting with /localhost, is this really your intention?
   

There shouldn't be any path starting with /localhost. I'm visiting the
URL
http://localhost/mobilizer/mobilizer

but the localhost part is the servername, not the path.

This appears to be consistent with the log I get when I use the name of
the computer rather than localhost, eg:
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/treebeard/mobilizer/mobilizer/'
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
My guess is that it's something IIS is doing for the sake of virtual
hosting, but I wouldn't like to say for sure.
The /mobilizer/mobilizer path is the correct one - but I don't know why
it's then not getting any further than it is doing.
Jon

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



Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
Hi Joerg,
since you are using struts, why don't you ditch the 
SetCharacterEncodingFilter and set the character-encoding as a property 
of the struts controller? This means you also don't need anything in 
your JSPs.

I assume you are using form-based container-managed authentication as 
the interface to the JAAS realm. If so, I do not understand how you have 
a character encoding problem with the login form, since you can just set 
the character encoding in the JSP as a scriptlet or in HTML as a meta tag.

I stand a few days away from setting up the same configuration myself, 
albeit without JBoss, so I would be interested in your reply.

HTH,
Adam


On 09/23/2003 11:01 AM Joerg Heinicke wrote:
Hello,

we have a Struts web application, that should use UTF-8 as character 
encoding. I set the content type for the HTML pages (JSP) as well as the 
character encoding on the request via the SetCharacterEncodingFilter 
delivered with Tomcat in the examples webapp. It works in the whole 
application.

But: It's Tomcat 4.1.18 integrated in JBoss 3.0.6 and we do 
authentication using JAAS and I found no possibility to set the request 
encoding of the JAAS request (to j_security_check). This resulted in 
wrong username or password for müller, which could be fixed in the 
login module by recoding the string. But we also have a logged in as 
on every page and there was not written müller, but the infamous UTF-8 
vs. ISO-8859 mA¼ller, because it was wrongly set on the request object 
or at least wrongly read from there.

I have fixed it by writing a SetCharacterEncodingValve and now also the 
JAAS request is handled as UTF-8, but the application depends on Tomcat 
now. Does anybody know how to configure the filter mapping to match also 
the JAAS request? As far as I know the JAAS request is catched by the 
servlet container and does not arrive at the web app. This means the 
filter mapping in the web.xml can't be read/used.

I would like to replace the Valve with the Filter to avoid servlet 
container dependency. I appreciate any help.

Regards,

Joerg


--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is struts.jar mandatory for tomcat 4.1.24 ?

2003-09-23 Thread Adam Hardy
By the way, having done many tomcat installs, I have never had this 
problem, so I assume that you or one of your colleagues must have 
changed the admin app files. There is a struts.jar in the admin 
directories.

If you still have problems, just do a fresh install of tomcat from the 
zip / tar.

Adam

On 09/23/2003 11:56 AM Adam Hardy wrote:
Hi Sarika,

I think the easiest solution is to move the admin.xml file out of your 
tomcat/webapps directory. Then the admin app will not be started with 
tomcat.

HTH
Adam
On 09/23/2003 10:36 AM Sarika N Inamdar wrote:

Hi,

Thanks for the inputs. We do not use any admin applications. We have
web.xml in ROOT/WEB-INF/ directory. It has the following entry :
servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

Is there a way that we can tell tomcat not to use struts.jar ? Do we
need to make any changes in the web.xml ?
Please let us know on this.

Thanks Much,
Sarika



-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 
Tuesday, September 23, 2003 1:49 PM
To: Tomcat Users List
Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ?

No it's not mandatory. But tomcat's admin app uses struts. This is 
controlled by an .xml file in your webapps directory, and it points 
to the deployment in tomcat/server/webapps/admin.

Adam

On 09/23/2003 06:07 AM Sarika N Inamdar wrote:

Hi All,

Please let me know if struts.jar should be present under 


/WEB-INF/lib

with tomcat 4.1.24 ?

We have jps's which do not struts. But when I start 


tomcat,encounter

the following exception in /logs/localhost_log file . This 


execption

does not hamper the functionality though !!!

2003-09-22 20:33:01 StandardContext[]: Servlet  threw 


load() exception

javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.str uts.action.ActionServlet or a class it depends on
   at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.

java:891)
   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82

3)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex

t.java:3420)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3

608)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

Thanks in Advance,
Sarika


-

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
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]


--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JSP Compilation Problem

2003-09-23 Thread Anatol Pomazau
Hi.

I just upgrade tomcat server from 4.1.12 to Tomcat-dev (I get sources
from CVS and compile it yesterday)
But I have a problem with one jsp.
So, such code
% String fullname = Anatol Pomazau; %
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.doc%=fulln
ame%/a
Works fine in old version but in new Tomcat generates
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.docAnatol
Pomazau/a
Insead of
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\Anatol Pomazau.docAnatol
Pomazau/a

I have looked JSP Spec 2.0 and I have not found any remarks about such
quoting.

What I do wrong? Please help me.

epam
EPAM Systems, Minsk, Belarus
work: +375 17 210 1662, ext. #1373
icq uin: 138182429
 


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



Problems with root context

2003-09-23 Thread bauzys
Hi

Every time when I'm trying to update my application located on root context I facing 
strange 
problems, which can be solved only by restarting tomcat. 

When I'm trying to remove an application located on root context I getting the 
following message

Command:
http://www.zzz.lt/manager/remove?path=/
Response:
FAIL - No context exists for path /

But when I'm issung command: 
http://www.zzz.lt/manager/list
Response is:
OK - Listed applications for virtual host www.zzz.lt
/:running:0:/home/www/eurobiuras/webapps/ROOT.war
/manager:running:0:/opt/tomcat/server/webapps/manager

By the way, when I do same things with any other context, not root everything is just 
fine.

So is it bug of feature, and how to deal with it.

Thanks Remis






Sista Tako patu (http://www.takas.lt)!



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

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
 That explains the localhost part.

It worries me a bit though - I don't like the idea of paths having to
*not* start with the machine name, just in case things get confused :(

 Then I would try with a network 
 sniffer (or whatever they are called)
 to find out if IIS tries to contact tomcat at 8009. If you don't have 
 one, I suggest Ethereal at
 
 www.ethereal.com/

I've got a port monitor which just shows connections - and it shows no
sign of IIS trying to contact Tomcat. I'll try with Ethereal as well.
 
 BTW: Do you get a strange stacktrace at startup (MBean 
 something...)? 

Nope.

 Do the tomcat shutdown take a long time?

No - although to be fair I'm not using the normal NT service manager -
we have our own one which calls

org.apache.catalina.startup.Bootstrap.main (new string[]{stop})
basically.

It *did* give a stack trace before, but I've patched ChannelSocket to
stop that from misbehaving.

 If so, you can try removing the connector at 8009 and instead use the 
 8081 one at port 8009.
 The org.apache.coyote.tomcat4.CoyoteConnector is a new one used with 
 jk2, but I can't imagine that it won't work with jk as well, since the
protocol is the 
 same (ajp13).

That's what I was wondering - but I've tried just changing worker port
to 8081, and that doesn't seem to have made any difference.

 Also you can add these rules to uriworkermap.properties, just 
 to see if 
 anything changes in the log file:
 
 /localhost/mobilizer/mobilizer/*=$(default.worker)
 /mobilizer/mobilizer/*=$(default.worker)

Well, now /localhost/mobilizer/mobilizer matches, but that's the only
real difference. The end of the log looks like this:
[Tue Sep 23 12:11:03 2003]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Tue Sep 23 12:11:03 2003]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/mobilizer/mobilizer/
[Tue Sep 23 12:11:03 2003]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 12:11:03 2003]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/localhost/mobilizer/mobilizer/'
[Tue Sep 23 12:11:03 2003]  [jk_uri_worker_map.c (391)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/localhost/mobilizer/mobilizer/
[Tue Sep 23 12:11:03 2003]  [jk_isapi_plugin.c (617)]: HttpFilterProc
[/mobilizer/mobilizer/] is a servlet url - should redirect to ajp13
[Tue Sep 23 12:11:03 2003]  [jk_isapi_plugin.c (639)]: HttpFilterProc
check if [/mobilizer/mobilizer/] is points to the web-inf directory


I'll have a look with Ethereal now and see if that gives any more clues.

I'm sure we'll find something really silly in the end - it's just
finding it that's the problem :(

Thanks for helping,
Jon

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



Re: JSP Compilation Problem

2003-09-23 Thread Tim Funk
It looks like a bug. I will follow up to tomcat-dev with more detail.

-Tim

Anatol Pomazau wrote:
Hi.

I just upgrade tomcat server from 4.1.12 to Tomcat-dev (I get sources
from CVS and compile it yesterday)
But I have a problem with one jsp.
So, such code
% String fullname = Anatol Pomazau; %
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.doc%=fulln
ame%/a
Works fine in old version but in new Tomcat generates
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.docAnatol
Pomazau/a
Insead of
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\Anatol Pomazau.docAnatol
Pomazau/a
I have looked JSP Spec 2.0 and I have not found any remarks about such
quoting.
What I do wrong? Please help me.

epam
EPAM Systems, Minsk, Belarus
work: +375 17 210 1662, ext. #1373
icq uin: 138182429
 

-
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: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
 I've got a port monitor which just shows connections - and it 
 shows no sign of IIS trying to contact Tomcat. I'll try with 
 Ethereal as well.

snip

Darn - Ethereal won't (as far as I can see) let me capture network
activity within my own system (ie the loopback, effectively).

Any ideas what will? (I've tried various sniffers in the past, and none
of them have particularly appealed - I'd welcome recommendations.)

Jon

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



running jsp like www.someserver.com/index.jsp

2003-09-23 Thread Johan Louwers
I have a qustion,
I would like to run jsp's under the root of my domain like
www.someserver.com/index.jsp I have only managed to run a jsp file under a
dir like www.someserver.com/somejspdir/index.jsp

I have 2 domains on this box... how do I manage this?

I have /export/home/site1 and /export/home/site2 and I would like to run on
both site's jsp files... like www.someserver.com/index.jsp and
www.someotherserver.com/index.jsp

anybody a clue?
regardsm
Johan.


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



error configuring tomcat

2003-09-23 Thread Dionisio Ruiz de Zarate
Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

$home
|--webapps
  |--ROOT
  | |..
  |--myNewcontext

and in the conf file i put:
Context path=/myNewContext docBase= debug=0 reloadable=true
crossContext=true


but it doesn't run well
can you help me for configure one new context?
thanks



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



RE: error configuring tomcat

2003-09-23 Thread robert.tomlin
docBase=myNewcontext

-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]
Sent: 23 September 2003 13:21
To: [EMAIL PROTECTED]
Subject: error configuring tomcat


Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

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



Tomcat as a service

2003-09-23 Thread Robert Mark Bram
Howdy all!

1) I am running Tomcat 4.1 as a service on XP. At what point in the install
process did I choose this option?

2) Is there *any* difference between running Tomcat as a service and a
non-service? What do you call it when you are running it as a non-service?
Do you just call it a process or program?

3) If I don't have Tomcat as a service, how can I get it running as a
service?

4) Where is all of this documented? I did a google search limited to
jakarta.apache.org and then I did a text search on my document Tomcat
4.1\webapps\tomcat-docs directory for Tomcat as a service and found
nothing that answered these questions.

Thanks for any advice!

Rob
:)
:-
:-}



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



RE: Servlet Tag problem

2003-09-23 Thread Shapira, Yoav

Howdy,
servlet is not a standard HTML tag (see
http://www.w3.org/TR/html4/index/elements.html and related pages to be
convinced), and not supported by tomcat.  There are many other ways to
call a servlet from a web page.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 4:56 PM
To: Tomcat Users List
Subject: Re: Servlet Tag problem


I don't believe the SERVLET tag is supported in Tomcat. I know it was
supported in JRun. But you could write a jsp and then from the jsp call
the
servlet you desire

Thanks,
RS




  Jay Doggett
  [EMAIL PROTECTED]To:   Tomcat Users
List
  t.nettomcat-
[EMAIL PROTECTED]
   cc:
  09/22/2003 03:51 Subject:  Servlet Tag
problem
  PM
  Please respond to
  Tomcat Users
  List






Hello everyone!

 I have these lines in a very simple html page, intending
to
invoke my servlet and pass some params to it:

SERVLET CODE=iTraxMainView
PARAM NAME=Panel value=TOC
/SERVLET

Can anyone tell me why the servlet is never getting called?

Thanks
Jay


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






This transmission is intended to be strictly confidential. If you are
not
the intended recipient of this message, you may not disclose, print,
copy
or disseminate this information. If you have received this in error,
please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



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




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


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



RE: Busy tomcat with JVM problem

2003-09-23 Thread Shapira, Yoav

(BHowdy,
(BIt could be on those servers where you get the error message, other processes are 
(Btaking up memory and there isn't 1950m available when the JVM is starting.
(B
(BI've actually run tomcat 4.0.6 (and 4.1.x) on Solaris 8 with more than 2GB heaps, it 
(Bworks fine.
(B
(BYoav Shapira
(BMillennium ChemInformatics
(B
(B
(B-Original Message-
(BFrom: Danny Wong [mailto:[EMAIL PROTECTED]
(BSent: Tuesday, September 23, 2003 3:57 AM
(BTo: [EMAIL PROTECTED]
(BSubject: Busy tomcat with JVM problem
(B
(BHi!
(B
(BI have a server farm of Solaris 8 machines, and have
(Bapache 2.0.45 + tomcat 4.0.6 + mod_jk 1.3 + jdk
(B1.4.1_02 running.  They are identical in hardware
(Bconfiguration.  Since they are very busy, I want to
(Ballocate more memory for the JVM using the -Xmx option
(Bin catalina.sh.  I have several servers have the
(Bfollowing errors when I start up or shutdown tomcat:
(B
(BError occurred during initialization of VM
(BCould not reserve enough space for object heap
(B
(BThis error message appears when I allocate more than
(B1950m to the JVM.  Some other servers I can allocate
(Bmore than 3GB memory to JVM without any problem.  Any
(Bideas what happening?
(B
(BMany thanks~
(B
(BDanny
(B
(B_
(B$B:G?7Nkfa?d2p(J:$B6x8+!$P,@$2B?M!$PqG!0(J...
(Bhttp://ringtone.yahoo.com.hk
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business communication, and 
(Bmay contain information that is confidential, proprietary and/or privileged.  This 
(Be-mail is intended only for the individual(s) to whom it is addressed, and may not be 
(Bsaved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
(Bintended recipient, please immediately delete this e-mail from your computer system 
(Band notify the sender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Shapira, Yoav

Howdy,
Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:06 PM
To: Tomcat Users List
Subject: Configuring and using cgi scripts in Tomcat

Hello...

I am trying to configure Tomcat to run a perl script that is part of an
application I am moving over from another server. Since this is one
script I do not want to rewrite it so I thought that I could set the
server to run CGI scripts.

I have put the entries in the web.xml file and restarted the server but
I cannot get the script to run. Has anyone had any success in doing
this?

Allen



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


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



RE: error configuring tomcat

2003-09-23 Thread Shapira, Yoav

Howdy,
What's under myNewContext?  Specifically, is there a valid
WEB-INF/web.xml file?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: error configuring tomcat

Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

$home
|--webapps
  |--ROOT
  | |..
  |--myNewcontext

and in the conf file i put:
Context path=/myNewContext docBase= debug=0 reloadable=true
crossContext=true


but it doesn't run well
can you help me for configure one new context?
thanks



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




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


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



RE: Forwarding with Tomcat Standalone

2003-09-23 Thread Shapira, Yoav

Howdy,
A filter can be easily written for this purpose:

- Check request URL
- If request is for secure page, forward to different port (the one you
configure in server.xml to be an SSL connector) on same server with same
request path.
- Otherwise, pass request on...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Michael Futeran [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:28 PM
To: Tomcat Users List
Subject: Forwarding with Tomcat Standalone

I am trying to replace an Apache/Tomcat combination with Tomcat
standalone.
I have everything else working, but I can not figure out how to get
requests
for secure pages to be auto forwarded to https the way they are with
Apache.



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


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



RE: Is struts.jar mandatory for tomcat 4.1.24 ?

2003-09-23 Thread Shapira, Yoav

Howdy,
Why do you have the struts action servlet defined in web.xml and don't
have the struts jar?  Neither is required for tomcat, but if you have
one you need to have the other...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sarika N Inamdar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 4:37 AM
To: 'Tomcat Users List'
Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ?

Hi,

Thanks for the inputs. We do not use any admin applications. We have
web.xml in ROOT/WEB-INF/ directory. It has the following entry :

servlet
servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

Is there a way that we can tell tomcat not to use struts.jar ? Do we
need to make any changes in the web.xml ?

Please let us know on this.

Thanks Much,
Sarika



 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 1:49 PM
 To: Tomcat Users List
 Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ?


 No it's not mandatory. But tomcat's admin app uses struts. This is
 controlled by an .xml file in your webapps directory, and it
 points to
 the deployment in tomcat/server/webapps/admin.

 Adam

 On 09/23/2003 06:07 AM Sarika N Inamdar wrote:
  Hi All,
 
  Please let me know if struts.jar should be present under
 /WEB-INF/lib
  with tomcat 4.1.24 ?
 
  We have jps's which do not struts. But when I start
 tomcat,encounter
  the following exception in /logs/localhost_log file . This
 execption
  does not hamper the functionality though !!!
 
 
  2003-09-22 20:33:01 StandardContext[]: Servlet  threw
 load() exception
  javax.servlet.ServletException: Wrapper cannot find servlet class
  org.apache.str uts.action.ActionServlet or a class it depends on
  at
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
  java:891)
  at
 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
  3)
  at
 
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
  t.java:3420)
  at
 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
  608)
  at
 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 
 
  Thanks in Advance,
  Sarika
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 

 --
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9


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




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




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


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



RE: Multiple Web Apps... Am I missing anything?

2003-09-23 Thread Shapira, Yoav

Howdy,
You need separate shutdown ports if you want to be able to
shutdown/restart individual instances.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Eriksen, Kjell [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 8:07 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple Web Apps... Am I missing anything?

We are testing out Tomcat to host multiple app instances - any feedback
would be greatly appreciated.

To install multiple web apps on W2K - each with its own
service/instance:

1)   Copy/rename server.xml (webapp1.xml)
a.   config non-SSL Coyote HTTP/1.1 Connector on open port, say
8081
   i.
not
really necessary since we external web server - but good for
troubleshooting
b.   config a Coyote/JK2 AJP 1.3 Connector on open port , say
8581
c.   Add our context
   i.
changing DocBase (c:\app1) + Path (/app1)

2)   Config worker.properties
a.   add a worker to the list (myapp1)
b.   copy/modify the worker definition (worker + port)
   i.
worker.MYAPP1.port=8581
 ii.
worker.MYAPP1.host=localhost
iii.
worker.MYAPP1.type=ajp13

3)   Config uriworkermap.properties
a.   add mappings to point to the appropriate worker
   i.
/app1/*.jsp=MYAPP

4)   Use Jakarta ISAPI in IIS - redirects jsp's to tomcat

5)   Create Virtual Directory in IIS for each app instance

6)   Use Config utility to create windows services - and point
service
to appropriate (copy of) server.xml.


End result:

*  Multiple server.xml files (renamed: app1, app2, app3...etc)
*  Multiple workers in the list
*  Multiple definitions in the worker.properties file (all type
AJP13)
*  Multiple URI path listings
*  1 ISAPI filter
*  Multiple VD's in IIS
*  Multiple services - each to its own instance

Sites run fine

Questions:

1)   Is this the best way to config?
2)   Is anything missing?  Any settings?  Timeouts?
3)   Does each server.xml file need a unique Server Port?
a.   Server port=8005 shutdown=SHUTDOWN debug=0
4)   Any suggestions to increase performance in such a config?


Thank you,

Kjell Eriksen

--
The information transmitted is intended only for the person or entity
to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination, distribution,
forwarding, or other use of, or taking of any action in reliance upon,
this
information by persons or entities other than the intended recipient is
prohibited without the express permission of the sender. If you
received
this communication in error, please contact the sender and delete the
material from any computer.




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


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



RE: Problems with root context

2003-09-23 Thread Shapira, Yoav

Howdy,
The path for the root context is , not /.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 6:53 AM
To: [EMAIL PROTECTED]
Subject: Problems with root context

Hi

Every time when I'm trying to update my application located on root context
I facing strange
problems, which can be solved only by restarting tomcat.

When I'm trying to remove an application located on root context I getting
the following message

Command:
http://www.zzz.lt/manager/remove?path=/
Response:
FAIL - No context exists for path /

But when I'm issung command:
http://www.zzz.lt/manager/list
Response is:
OK - Listed applications for virtual host www.zzz.lt
/:running:0:/home/www/eurobiuras/webapps/ROOT.war
/manager:running:0:/opt/tomcat/server/webapps/manager

By the way, when I do same things with any other context, not root
everything is just fine.

So is it bug of feature, and how to deal with it.

Thanks Remis






Sista Tako patu (http://www.takas.lt)!






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


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



AXIS

2003-09-23 Thread Dionisio Ruiz de Zarate
What is AXIS?
thanks


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



RE: Special permission in a webapp.

2003-09-23 Thread Shapira, Yoav

Howdy,
Hmm... That's a badly coded webapp because it's not portable, specific
to tomcat.

Implications: slightly reduced security in case there's a bug in the
org.apache.catalina.session class/package that the webapp is exploiting.
I haven't heard of such a bug, but who knows.

Don't give this access unless you have to.  Instead, the user should not
write their webapp to use any tomcat-specific (or for that matter,
server-specific) classes.  Their webapp should be coded to the servlet
specification.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: webmaster [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 6:19 PM
To: Tomcat Users List
Subject: Special permission in a webapp.

Hi all,

I have a user that needs the following permission in its webapp.

java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina.session

What are the implications of giving up such a permission ?

Thanks !!

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




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


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



RE: Tomcat as a service

2003-09-23 Thread Shapira, Yoav

Howdy,

2) Is there *any* difference between running Tomcat as a service and a
non-service? What do you call it when you are running it as a
non-service?
Do you just call it a process or program?

I call it running from the console or command line.  It's still a
process or program, whether run as service (i.e. background) or not.

3) If I don't have Tomcat as a service, how can I get it running as a
service?

4) Where is all of this documented? I did a google search limited to
jakarta.apache.org and then I did a text search on my document Tomcat
4.1\webapps\tomcat-docs directory for Tomcat as a service and found
nothing that answered these questions.

http://jakarta.apache.org/tomcat/faq/

Yoav Shapira



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


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



RE: AXIS

2003-09-23 Thread Shapira, Yoav

Howdy,
A SOAP implementation: http://ws.apache.org/axis/

Stay on topic please, or add [OFF-TOPIC] to the subject if your question
has nothing to do with list.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:04 AM
To: [EMAIL PROTECTED]
Subject: AXIS

What is AXIS?
thanks


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




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


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



Re: AXIS

2003-09-23 Thread Tim Funk
http://www.google.com/search?q=axis

-Tim

Dionisio Ruiz de Zarate wrote:

What is AXIS?
thanks


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


RE: tomcat servlet-mapping

2003-09-23 Thread Shapira, Yoav

Howdy,

Is there anybody who could give me an advice in servlet-mapping?

None of us have a clue ;)  Just kidding -- we can probably give it a decent shot.

I got a web application which consists of a ControllerServlet which should
handles all incoming request´s
except 2 static html files (index.html which is an welcome file and
abc.html)!

I've found that all ... except ... type of accesses can be easily handled by the 
servlet itself redirecting for things it can't handle.

Since your exceptions are static, you want tomcat's default servlet to handle them.  
Here's one way to do it:

1. Map the default servlet to url-pattern /static/*
2. Map your servlet to url-pattern /
3. In your servlet, look at the request URL.  If it's one of the two exceptions, 
redirect the request to /static/[whatever the request path was] so that tomcat's 
default servlet can serve it.

There are other approaches to this problem. A purely declarative solution, i.e. doing 
everything in web.xml, will be difficult.

Yoav Shapira




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


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



RE: Using Digester in a Tomcat project causes server not to start?

2003-09-23 Thread Shapira, Yoav

Howdy,

I'm very interested to hear what Tomcat gurus/commiters think of this

I for one think it's unneeded.  Like others, I haven't run into the
problems Senor Kruse did, have Digester working fine in multiple webapps
without modifying tomcat's source or installation.

Nonetheless, it's good to see someone actually put his money where his
mouth is, report a problem they're having, try to fix it, come up with a
working solution (even if breaks something else), and report their
findings.  I wish more people did that.

Does this break something else?

 1) in Catalina.java:

 /**
  * Create and configure the Digester we will be using for
startup.
  */
 protected Digester createStartDigester() {

 // Initialize the digester
 Digester digester = new Digester();
 +   digester.setClassLoader(this.getClass().getClassLoader());

I think this should be OK.

 2) in ContextConfig.java:

 /**
  * Create (if necessary) and return a Digester configured
 to process the
  * web application deployment descriptor (web.xml).
  */
 private static Digester createWebDigester() {

 URL url = null;
 Digester webDigester = new Digester();
 +
 + webDigester.setClassLoader(ContextConfig.class.getClassLoader());

This I'm suspicious of.  The ContextConfig classloader might be
different than the webapp classloader.  The webapp classloader should
process web.xml.

Yoav Shapira



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


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



Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Adam Hardy wrote:
Hi Joerg,
since you are using struts, why don't you ditch the 
SetCharacterEncodingFilter and set the character-encoding as a property 
of the struts controller? This means you also don't need anything in 
your JSPs.
Ah, okay. It's our first Struts project and experience. I found 
http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType 
and set the contentType in the struts-config.xml with
controller contentType=text/html;charset=UTF-8/. But as written at the 
above link this option sets only the content type and character encoding 
... on each response. This means it does not handle/influence the request 
character encoding.

I assume you are using form-based container-managed authentication as 
the interface to the JAAS realm. If so, I do not understand how you have 
a character encoding problem with the login form, since you can just set 
the character encoding in the JSP as a scriptlet or in HTML as a meta tag.
Yes, it's a simple HTML form, the page is in UTF-8 (Mozilla  View Page 
Info), so that's ok. But again this is only server response. The next 
request is then sent in UTF-8, but the server does not know how to handle 
it, the character encoding is null. It assumes default encoding which should 
be ISO-8859-1. Setting the character encoding to UTF-8 makes the server 
understanding the request.

I stand a few days away from setting up the same configuration myself, 
albeit without JBoss, so I would be interested in your reply.
albeit - does not sound very English, but my dictionary knows it :-)

Joerg

On 09/23/2003 11:01 AM Joerg Heinicke wrote:

Hello,

we have a Struts web application, that should use UTF-8 as character 
encoding. I set the content type for the HTML pages (JSP) as well as 
the character encoding on the request via the 
SetCharacterEncodingFilter delivered with Tomcat in the examples 
webapp. It works in the whole application.

But: It's Tomcat 4.1.18 integrated in JBoss 3.0.6 and we do 
authentication using JAAS and I found no possibility to set the 
request encoding of the JAAS request (to j_security_check). This 
resulted in wrong username or password for müller, which could be 
fixed in the login module by recoding the string. But we also have a 
logged in as on every page and there was not written müller, but 
the infamous UTF-8 vs. ISO-8859 mA¼ller, because it was wrongly set 
on the request object or at least wrongly read from there.

I have fixed it by writing a SetCharacterEncodingValve and now also 
the JAAS request is handled as UTF-8, but the application depends on 
Tomcat now. Does anybody know how to configure the filter mapping to 
match also the JAAS request? As far as I know the JAAS request is 
catched by the servlet container and does not arrive at the web app. 
This means the filter mapping in the web.xml can't be read/used.

I would like to replace the Valve with the Filter to avoid servlet 
container dependency. I appreciate any help.

Regards,

Joerg
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat as a service

2003-09-23 Thread Robert Mark Bram
Hi Yoav Shapira,

 3) If I don't have Tomcat as a service, how can I get it running as a
 service?
 
 4) Where is all of this documented? I did a google search limited to
 jakarta.apache.org and then I did a text search on my document Tomcat
 4.1\webapps\tomcat-docs directory for Tomcat as a service and found
 nothing that answered these questions.

 http://jakarta.apache.org/tomcat/faq/

OK .. I checked this already.

Tomcat FAQ | Windows | Setting up TomCat 4.1.12 to run as an NT Service
http://www.mattkelli.com/tech/tomcat/ntservice.htm
 -- page is gone

Unless you are referring to the Tomcat Service Manager, but I was hoping to
find something from Jakarta to do this..

Please forgive me but I fail to find anything else there that talks about
Tomcat as a service.. :(

Rob
:)



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



Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Joerg Heinicke wrote:
I found 
http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType 
and set the contentType in the struts-config.xml with
controller contentType=text/html;charset=UTF-8/.
Does not work as expected. Mozilla recognizes the pages know as ISO-8859-1 
and no longer UTF-8.

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Simple command-line manager tool?

2003-09-23 Thread Greg Ward
Has anyone written a simple command-line interface to the Tomcat
Manager?  Having Ant tasks is nice, but I have no intention of
installing Ant on our production servers.  I'm thinking of something
like this:

  # tomcat restart app1
  # tomcat stop app2

...where all the script does is stitch the command-line args into a URL,
send the HTTP request, wait for the Manager's response, and report
success/failure.

Surely I'm not the first one to want such a tool...

Greg

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



Re: Busy tomcat with JVM problem

2003-09-23 Thread Danny Wong
Thanks Yoav!
(B
(BWhen I start up the server, I can sure that the server is idle with only
(Ba few background process running. And you are right, I can actually run
(Btomcat 4.0.6 on Solaris 8 on some other servers in my server farm with
(Bmore than 2GB heaps. But the weird part is that some can't.. :-(
(B
(BDanny
(B
(BShapira, Yoav wrote:
(B
(BHowdy,
(BIt could be on those servers where you get the error message, other processes are 
(Btaking up memory and there isn't 1950m available when the JVM is starting.
(B
(BI've actually run tomcat 4.0.6 (and 4.1.x) on Solaris 8 with more than 2GB heaps, it 
(Bworks fine.
(B
(BYoav Shapira
(BMillennium ChemInformatics
(B
(B
(B  
(B
(B-Original Message-
(BFrom: Danny Wong [mailto:[EMAIL PROTECTED]
(BSent: Tuesday, September 23, 2003 3:57 AM
(BTo: [EMAIL PROTECTED]
(BSubject: Busy tomcat with JVM problem
(B
(BHi!
(B
(BI have a server farm of Solaris 8 machines, and have
(Bapache 2.0.45 + tomcat 4.0.6 + mod_jk 1.3 + jdk
(B1.4.1_02 running.  They are identical in hardware
(Bconfiguration.  Since they are very busy, I want to
(Ballocate more memory for the JVM using the -Xmx option
(Bin catalina.sh.  I have several servers have the
(Bfollowing errors when I start up or shutdown tomcat:
(B
(BError occurred during initialization of VM
(BCould not reserve enough space for object heap
(B
(BThis error message appears when I allocate more than
(B1950m to the JVM.  Some other servers I can allocate
(Bmore than 3GB memory to JVM without any problem.  Any
(Bideas what happening?
(B
(BMany thanks~
(B
(BDanny
(B
(B_
(B$B:G?7Nkfa?d2p(B:$B6x8+!$P,@$2B?M!$PqG!0(B...
(Bhttp://ringtone.yahoo.com.hk
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business communication, and 
(Bmay contain information that is confidential, proprietary and/or privileged.  This 
(Be-mail is intended only for the individual(s) to whom it is addressed, and may not be 
(Bsaved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
(Bintended recipient, please immediately delete this e-mail from your computer system 
(Band notify the sender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B  
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Busy tomcat with JVM problem

2003-09-23 Thread Danny Wong
 
 Thanks Yoav!
 
 When I start up the server, I can sure that the
 server is idle with only
 a few background process running. And you are right,
 I can actually run
 tomcat 4.0.6 on Solaris 8 on some other servers in
 my server farm with
 more than 2GB heaps. But the weird part is that some
 can't.. :-(
 
 Danny
 
 Shapira, Yoav wrote:
 
 Howdy,
 It could be on those servers where you get the
 error message, other processes are taking up memory
 and there isn't 1950m available when the JVM is
 starting.
 
 I've actually run tomcat 4.0.6 (and 4.1.x) on
 Solaris 8 with more than 2GB heaps, it works fine.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
   
 
 -Original Message-
 From: Danny Wong [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 3:57 AM
 To: [EMAIL PROTECTED]
 Subject: Busy tomcat with JVM problem
 
 Hi!
 
 I have a server farm of Solaris 8 machines, and
 have
 apache 2.0.45 + tomcat 4.0.6 + mod_jk 1.3 + jdk
 1.4.1_02 running.  They are identical in hardware
 configuration.  Since they are very busy, I want
 to
 allocate more memory for the JVM using the -Xmx
 option
 in catalina.sh.  I have several servers have the
 following errors when I start up or shutdown
 tomcat:
 
 Error occurred during initialization of VM
 Could not reserve enough space for object heap
 
 This error message appears when I allocate more
 than
 1950m to the JVM.  Some other servers I can
 allocate
 more than 3GB memory to JVM without any problem. 
 Any
 ideas what happening?
 
 Many thanks~
 
 Danny
 

_
 :...
 http://ringtone.yahoo.com.hk
 

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

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

_
:[EMAIL PROTECTED]
http://ringtone.yahoo.com.hk

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



Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
I can't see why. Perhaps you are overriding it later in the request 
processing? Struts uses response.setContentType()

The docs say: overridden automatically if a
 * codeRequestDispatcher.forward()/code call is
 * ultimately invoked.
but that leaves me none the wiser.

Adam

On 09/23/2003 03:25 PM Joerg Heinicke wrote:
Joerg Heinicke wrote:

I found 
http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType 
and set the contentType in the struts-config.xml with
controller contentType=text/html;charset=UTF-8/.


Does not work as expected. Mozilla recognizes the pages know as 
ISO-8859-1 and no longer UTF-8.

Joerg

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache 4.0.47 - Tomcat 4.1.27 - mod_jk2 - Development Enviroment

2003-09-23 Thread Paul Mills
Hi,

I am very new to Tomcat, but I need to setup a Development/Teaching Enviroment for 
Apache and Tomcat.

I have installed and tested the following :-

Apache 2.0.47 - installed from rpm 
Tomcat 4.1.27 - binary install
mod_jk2 2.0.2 - installed from source
j2sdk 1.4.2_01 - installed from rpm

I need a setup with ip based virtual hosts and the code stored in the users/students 
home directories
so each student can not see each others work. 

Then a method for the user/student to publish there work.

Any help would be appreciated.

Please see below for current config files :- 

Regards

--
Paul Mills [EMAIL PROTECTED]
Senior Linux/Unix Systems Administrator
(Red Hat Certified Engineer)
Canterbury Christ Church University College
North Holmes Road
Canterbury
Kent
United Kingdom
CT1 1QU
Tel.: 01227 782751 

Config Files :- 

workers2.properties
=
# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=/etc/httpd/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
tomcatId=localhost:8009
#port=8009
#host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
#[uri:5.0.0.61/*.jsp]
#group=ajp13:localhost:8009
#
#[uri:www.domain-a.com/*.jsp]
#worker=ajp13:localhost:8009

[status:]
info=Status worker,display runtime information
channel.socket:localhost:8009

# Uri mapping
[uri:/status/*]
group=status:localhost:8009
#worker=status:localhost:8009
group=status:
#debug=9

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=ajp13:localhost:8009
info=Map the whole webapp worker=ajp13:localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/tomcat-docs/*]
group=ajp13:localhost:8009
=

jk2.properties
=
# Shared memory directive
shm.file=/etc/httpd/logs/jk2.shm
=

server.xml
=
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

!-- Tomcat Examples Context --
Context path=/examples docBase=examples debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/

  

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
On 09/23/2003 03:20 PM Joerg Heinicke wrote:
Ah, okay. It's our first Struts project and experience. I found 
http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType 
and set the contentType in the struts-config.xml with
controller contentType=text/html;charset=UTF-8/. But as written at 
the above link this option sets only the content type and character 
encoding ... on each response. This means it does not handle/influence 
the request character encoding.

I have successfully ignored character-encoding on the request until this 
point. I am going to have read up about how java knows the difference 
between UTF-8 and single-byte character sets.

albeit - does not sound very English, but my dictionary knows it :-)
Pronounced all - be - it which makes it sounds like 3 seperate but very 
english words. Never did know what it meant. Did I use it correctly? 8-)

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


RE: Can JSP track users in a basic authentication protected realm ?

2003-09-23 Thread Kilic, Hakan
Your best bet when dealing with authentication and users not logging off is
to also include a session expiry for your page. This handles the case where
a user leaves without logging off.

-Hakan

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 6:25 AM
To: Tomcat Users List
Subject: Re: Can JSP track users in a basic authentication protected
realm ?


You could possibly track the referer header of the request. If the 
referer is a site outside your protection domain then re-authenticate.
This could be done in a filter: Check the header, log out the user, 
redirect to the requested page to trigger re-authentication.

This technique assumes the referer header has been set by the browser. 
As it's not a mandatory header you may not always get it:
http://www.w3.org/Protocols/rfc2616/rfc2616.txt
Specifically section 14.36 Referer

HTH,

Jon

David wrote:
 Actually I do not know how to do it. I know those internet banking sites
 does it. They have this option of Log out for their users. When users
 click on that log out option, they will in effect log out of the
 protected realm. Should they decide to return to the same site again (
 using the same instance of the IE) they will prompted for the password
 and ID again.
 
 Currently, with basic authentication ( implemented using HTTP SERVER)
 the server does not recognise if the user has moved onto another site
 outside the protected realm. If he decides to surf an area outside the
 protected realm, and decides to return to the protected realm, he will
 not be prompted for a password. 
 
 This problem arise when the computer being used to access my protected
 realm is a public computer. If that is the case, users who enter my
 protected realm and forgot to terminate that instance of the IE is going
 to allow subsequent users of that machine to access my site.
 
 My question is how can I implement such a way as mentioned above ?
 The log out button kind of effect.
 
 Many thanks.
 
 Regards
 David
 
 
 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, September 21, 2003 12:47 AM
 To: 'Tomcat Users List'
 Subject: RE: Can JSP track users in a basic authentication protected
 realm ?
 
 Can you explain how Tomcat will be able to tell whether the user has
 navigated away and returned, versus just taken some period of time
 before getting the next page?
 
 -Original Message-
 From: David [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, September 20, 2003 9:56 AM
 To: Tomcat User
 Subject: Can JSP track users in a basic authentication protected realm ?
 
 
 
 Hi guys,
  
 Does anyone know how I can implement the above mentioned?
 Once they exit the protected realm (i.e. the protected folder in my
 htdocs), when they re-enter the site again they will be asked for a
 password. I have a simple basic authentication system but it doesn't
 track the user when it leaves the protected realm. What I wanted to do
 was to get the server to re-authenticate the user everytime he leaves my
 realm and tries to re-enter again. 
  
  
 Some people suggested CGI, some suggest PHP..
  
 I would like to know if JSP can do the job. If yes, what level of
 competence do I know JSP ?
  




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



how to close request input stream

2003-09-23 Thread Peter H.
Hello,

Calling request.getInputStream().close does not work...
...the browser still sends bytes
any ideas?

Greetings  Thanks
Peter
_
MSN Groups  Chat - Freunde finden - leicht gemacht  
http://groups.msn.com/people/

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


How to run a JSP/Servlet Web App on a pc unconnected with internet

2003-09-23 Thread engp0510
Hi,
I try make a presentation to show a web application but should use a laptop
without net connection.
In Tomcat's Server.XML the DTD file is from:

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

Without this I can use Servlet mapping, and have to change all codes in JSP
to the full path, right?

Regards
Leeson


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



Re: how to close request input stream

2003-09-23 Thread Tim Funk
The browser will send all the bytes it can (or is supposed to). Then it waits 
for a response. The only thing you can to is abort the request. (Send error 
status and return)

-Tim

Peter H. wrote:

Hello,

Calling request.getInputStream().close does not work...
...the browser still sends bytes
any ideas?

Greetings  Thanks
Peter


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


RE: Using Digester in a Tomcat project causes server not to start ?

2003-09-23 Thread Kruse, Matt
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 not sure why someone would go in and mock with the Tomcat 
 source when there is no need to :)

My goal was simply to get it to WORK so I could continue development. This
solution worked for me. I'm not at all confident that it's the correct or
ideal solution.

 have fun maintaining upgrades ;)

For me, this won't matter, because this is just a development system on my
local box. Production deployment will be on Websphere and this issue won't
even matter.

 We use the digester in our webapp without any problems what 
 so ever, we simple place it in WEB-INF/lib

I think I've further isolated the problem to be tied to the Tomcat plugin
for Eclipse. I'm not sure of this, but I suspect that the classpaths are
different or something which causes the commons-digester.jar to be found in
the WEB-INF/lib directory before the server/lib directory, so Catalina uses
the wrong one.

I just tested this, using the old catalina.jar file without my changes.
Server starts fine in stand-alone mode, but inside Eclipse the Digester
can't find org.apache.catalina.core.StandardServer

 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Nonetheless, it's good to see someone actually put his money where his
 mouth is, report a problem they're having, try to fix it, 
 come up with a
 working solution (even if breaks something else), and report their
 findings.  I wish more people did that.

Thanks -- so do I! I found multiple references to the problem itself, but
none to a solution, except for the proposed patch on bugzilla. That headed
me in the right direction, which was great.

As I said originally, I'm ignorant about some of the issues involved (this
is my first time using Tomcat, and the first time hearing about these
different classloaders) so my fix may or may not be appropriate. But if
someone like me searches the list archives later and finds the original
post, at least they'll find my hack too, and maybe save a bunch of head
scratching :)

Matt Kruse



Re: how to close request input stream

2003-09-23 Thread Christopher St. John
Peter H. wrote:

Calling request.getInputStream().close does not work...
...the browser still sends bytes
 how many? it won't be an instant stop because there can
be many bytes in flight between the browser and your
server (operating systems buffers, proxy servers, etc).
 if still sends bytes means 100's of kilobytes, then
something else is going on, and you'd need to look at
each hop your bytes are taking on the way to the server
to see where they're ending up...
-cks





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


RE: Using Digester in a Tomcat project causes server not to start?

2003-09-23 Thread Shapira, Yoav

Howdy,
I think you're on the right track regarding the IDE plug-in's classpath
mangling.  It will be good to report this to the plug-in's authors.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kruse, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 10:26 AM
To: Tomcat Users List
Subject: RE: Using Digester in a Tomcat project causes server not to
start?

 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 not sure why someone would go in and mock with the Tomcat
 source when there is no need to :)

My goal was simply to get it to WORK so I could continue development.
This
solution worked for me. I'm not at all confident that it's the correct
or
ideal solution.

 have fun maintaining upgrades ;)

For me, this won't matter, because this is just a development system on
my
local box. Production deployment will be on Websphere and this issue
won't
even matter.

 We use the digester in our webapp without any problems what
 so ever, we simple place it in WEB-INF/lib

I think I've further isolated the problem to be tied to the Tomcat
plugin
for Eclipse. I'm not sure of this, but I suspect that the classpaths
are
different or something which causes the commons-digester.jar to be
found in
the WEB-INF/lib directory before the server/lib directory, so Catalina
uses
the wrong one.

I just tested this, using the old catalina.jar file without my changes.
Server starts fine in stand-alone mode, but inside Eclipse the Digester
can't find org.apache.catalina.core.StandardServer

 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Nonetheless, it's good to see someone actually put his money where
his
 mouth is, report a problem they're having, try to fix it,
 come up with a
 working solution (even if breaks something else), and report their
 findings.  I wish more people did that.

Thanks -- so do I! I found multiple references to the problem itself,
but
none to a solution, except for the proposed patch on bugzilla. That
headed
me in the right direction, which was great.

As I said originally, I'm ignorant about some of the issues involved
(this
is my first time using Tomcat, and the first time hearing about these
different classloaders) so my fix may or may not be appropriate. But if
someone like me searches the list archives later and finds the original
post, at least they'll find my hack too, and maybe save a bunch of head
scratching :)

Matt Kruse




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


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



Re: how to close request input stream

2003-09-23 Thread Peter H.
I tried a file upload field up to 100MB
I tried textfield/textareas up to 600kb ( i must use a slow connection )
it looks like the complete request is send? dont know if tomcat or apache 
receives those bytes - or in other words - my program leaves its service 
method...

to Tim Funk: What status can I set and respond with my previous form?
I guess I've tried that but also I see incoming bytes in my network 
interface...

Greetings and Thanks
Peter
From: Christopher St. John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: how to close request input stream
Date: Tue, 23 Sep 2003 09:34:58 -0500
Peter H. wrote:

Calling request.getInputStream().close does not work...
...the browser still sends bytes
 how many? it won't be an instant stop because there can
be many bytes in flight between the browser and your
server (operating systems buffers, proxy servers, etc).
 if still sends bytes means 100's of kilobytes, then
something else is going on, and you'd need to look at
each hop your bytes are taking on the way to the server
to see where they're ending up...
-cks





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Schluß mit Spam! http://www.msn.de/antispam Wir helfen Ihnen, unerwünschte 
E-Mails zu reduzieren.

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


TC5 Client Deployer

2003-09-23 Thread James Richmond
Where is the Client Deployer in TC5 b12 please?

Having checked the docs, mailing list and beta 12 release code I cannot find 
*where* the client deployer is - the docs outline how it works, but not 
where it is or how to use it.

Thanks
James
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


Re: How to run a JSP/Servlet Web App on a pc unconnected with internet

2003-09-23 Thread Jon Wingfield
You shouldn't have to change anything. Tomcat has a Catalog of DTDs 
which it uses in preference to the resource specified in the URL in the 
public identifier. So long as your webapp doesn't make any other calls 
to resources on the net you should be good to go.
I run our webapp on my laptop quite a lot.

BTW: the URL you have specified is now defunct. The new URL Sun has 
published is http://java.sun.com/dtd/web-app_2_3.dtd

HTH,

Jon

PS: I assume you meant web.xml not server.xml

engp0510 wrote:
Hi,
I try make a presentation to show a web application but should use a laptop
without net connection.
In Tomcat's Server.XML the DTD file is from:
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
Without this I can use Servlet mapping, and have to change all codes in JSP
to the full path, right?
Regards
Leeson
-
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]


JDBC Realm problems

2003-09-23 Thread Laurent Perez
Hello

I am trying to protect a webapp I wrote using a JDBCRealm, but it doesn't 
seem to work as expected. I am using Tomcat 4.1.27, and Postgresql 7.3.2, 
with latest JDBC driver within $tomcat/common/lib.

My realm is described as follows, in $tomcat/conf/server.xml :

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.postgresql.Driver
digest=md5
connectionURL=jdbc:postgresql://127.0.0.1/mydb
connectionName=mylogin connectionPassword=mypass
userTable=pg_shadow userNameCol=usename userCredCol=passwd
userRoleTable=named_roles roleNameCol=role /
When I start Tomcat, I can see it connecting and idling to mydb, so JDBC 
driver works. Also 'mylogin' has read access on named_roles.

My webapp is called 'test' and located within $tomcat/webapps/, its 
WEB-INF/web.xml is as follows :

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
web-app
  security-constraint
  web-ressource-collection
web-ressource-nametest/web-ressource-name
url-pattern/*/url-pattern
  /web-ressource-collection
  auth-constraint
role-namemyrole/role-name
  /auth-constraint
  /security-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-nametest/realm-name
  /login-config
  security-role
role-namemyrole/role-name
  /security-role
/web-app
The 'myrole' role is defined in my named_roles table, and I have several 
users under that role. I did add security-role tags because Tomcat would 
warn me about 'myrole' not being within security-role tags on startup.

Now when I am trying to access http://localhost:8080/test, no 
authentication window pops up, I can access it freely, which shouldn't be 
correct (?). When I look at logs, I can see :
2003-09-23 14:14:52 ContextConfig[/test]: Configured an authenticator for 
method BASIC
2003-09-23 14:14:52 StandardManager[/test]: Seeding random number generator 
class java.security.SecureRandom
2003-09-23 14:14:52 StandardManager[/test]: Seeding of random number 
generator has been completed

If BASIC auth method is activated, why isn't my browser showing up an auth 
window ? :-/

Also I know Postgres doesn't store md5 password files like 
md5_func(password), but instead md5_func(password+login), will it cause 
problems with Tomcat's digest=md5 behaviour ?

Thanks for any help

Laurent Perez



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


How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Hi,

how do I configure Tomcat 4.x to accept POST requests for my servlet? I
always receive HTTP error 405 Method not allowed. POST works without
problems.

Regards,
Juergen


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



RE: TC5 Client Deployer

2003-09-23 Thread Shapira, Yoav

Howdy,

Where is the Client Deployer in TC5 b12 please?

Having checked the docs, mailing list and beta 12 release code I cannot
find
*where* the client deployer is - the docs outline how it works, but not
where it is or how to use it.

Read the Client Deployer section in the Deployer HOW-TO doc
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

That tells you the class name for the deployer
(org.apache.catalina.ant.ValidatorTask).  That name suggests, and indeed
in practice, that this is an Ant task.  One might expect a jar name like
catalina-ant.jar to contain these classes, and indeed when you download
tomcat 5 there's catalina-ant.jar in $CATALINA_HOME/server/lib.

The above how-to tells you how to use the delpoyer.  As always you can
download the source or look at the javadoc for the relevant classes to
find more technical details.

Yoav Shapira



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


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



RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Shapira, Yoav

Howdy,
Assuming you meant PUT in the message just like in your subject: simply add a doPut 
method to your servlet.  Tomcat won't reject this unless you have a security 
constraint only allowing certain methods and rejecting PUT.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 10:52 AM
To: [EMAIL PROTECTED]
Subject: How to configure Tomcat to acceppt PUT requests for servlets?

Hi,

how do I configure Tomcat 4.x to accept POST requests for my servlet? I
always receive HTTP error 405 Method not allowed. POST works without
problems.

Regards,
Juergen


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




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


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



Re: how to close request input stream

2003-09-23 Thread Tim Funk
Try this and see what happens:

protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
if(req.getContentLength()TOO_MUCH)
   resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
...
}
I am unsure of how much date is read before the servlet is called. (Which is 
probably the crux of the problem)

-Tim

Peter H. wrote:

I tried a file upload field up to 100MB
I tried textfield/textareas up to 600kb ( i must use a slow connection )
it looks like the complete request is send? dont know if tomcat or 
apache receives those bytes - or in other words - my program leaves its 
service method...

to Tim Funk: What status can I set and respond with my previous form?
I guess I've tried that but also I see incoming bytes in my network 
interface...



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


RE: TC5 Client Deployer

2003-09-23 Thread James Richmond
Thanks Yoav,

I did check that HOW-TO but as a mere Systems Admin, this was not intuitive. 
Unless I am in the minority I would suggest a step by step guide be included 
to the HOWTO. I would be happy to contribute this if useful.

Regards,
James


Howdy,

Where is the Client Deployer in TC5 b12 please?

Having checked the docs, mailing list and beta 12 release code I cannot 
find
*where* the client deployer is - the docs outline how it works, but not 
where it is or how to use it.
Read the Client Deployer section in the Deployer HOW-TO doc 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

That tells you the class name for the deployer 
(org.apache.catalina.ant.ValidatorTask).  That name suggests, and indeed in 
practice, that this is an Ant task.  One might expect a jar name like 
catalina-ant.jar to contain these classes, and indeed when you download 
tomcat 5 there's catalina-ant.jar in $CATALINA_HOME/server/lib.

The above how-to tells you how to use the delpoyer.  As always you can 
download the source or look at the javadoc for the relevant classes to find 
more technical details.

Yoav Shapira



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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger

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


RE: TC5 Client Deployer

2003-09-23 Thread Shapira, Yoav

Howdy,
Any contributions are welcome.

Don't forget that the Ant tasks mentioned in the Deployer how-to are
described in more detail in the Manager app how-to.

Do you consider Ant to not be within the realm of knowledge of a mere
Systems Admin ?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: James Richmond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: TC5 Client Deployer

Thanks Yoav,

I did check that HOW-TO but as a mere Systems Admin, this was not
intuitive.
Unless I am in the minority I would suggest a step by step guide be
included
to the HOWTO. I would be happy to contribute this if useful.


Regards,
James



Howdy,

Where is the Client Deployer in TC5 b12 please?

Having checked the docs, mailing list and beta 12 release code I
cannot
find
*where* the client deployer is - the docs outline how it works, but
not
where it is or how to use it.

Read the Client Deployer section in the Deployer HOW-TO doc
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

That tells you the class name for the deployer
(org.apache.catalina.ant.ValidatorTask).  That name suggests, and
indeed in
practice, that this is an Ant task.  One might expect a jar name like
catalina-ant.jar to contain these classes, and indeed when you download
tomcat 5 there's catalina-ant.jar in $CATALINA_HOME/server/lib.

The above how-to tells you how to use the delpoyer.  As always you can
download the source or look at the javadoc for the relevant classes to
find
more technical details.

Yoav Shapira



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


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

_
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger


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




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


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



RE: TC5 Client Deployer

2003-09-23 Thread James Richmond
Yoav,

Absolutely, Ant is extremely useful and widely used by myself and other 
SysAdmins I know. However the HOWTO is, IMHO, unclear as to how to use the 
ant task. For example : The deployer package includes a ready to use Ant 
script.. - Where is this ant script?

Thanks
James


==

Howdy,
Any contributions are welcome.
Don't forget that the Ant tasks mentioned in the Deployer how-to are 
described in more detail in the Manager app how-to.

Do you consider Ant to not be within the realm of knowledge of a mere 
Systems Admin ?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: James Richmond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: TC5 Client Deployer
Thanks Yoav,

I did check that HOW-TO but as a mere Systems Admin, this was not 
intuitive. Unless I am in the minority I would suggest a step by step guide 
be included
to the HOWTO. I would be happy to contribute this if useful.

Regards,
James


Howdy,

Where is the Client Deployer in TC5 b12 please?

Having checked the docs, mailing list and beta 12 release code I
cannot
find
*where* the client deployer is - the docs outline how it works, but
not
where it is or how to use it.
Read the Client Deployer section in the Deployer HOW-TO doc 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

That tells you the class name for the deployer 
(org.apache.catalina.ant.ValidatorTask).  That name suggests, and
indeed in
practice, that this is an Ant task.  One might expect a jar name like 
catalina-ant.jar to contain these classes, and indeed when you download 
tomcat 5 there's catalina-ant.jar in $CATALINA_HOME/server/lib.

The above how-to tells you how to use the delpoyer.  As always you can 
download the source or look at the javadoc for the relevant classes to
find
more technical details.

Yoav Shapira



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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger

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




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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: TC5 Client Deployer

2003-09-23 Thread Shapira, Yoav

Howdy,

Absolutely, Ant is extremely useful and widely used by myself and other
SysAdmins I know. However the HOWTO is, IMHO, unclear as to how to use
the
ant task. For example : The deployer package includes a ready to use
Ant
script.. - Where is this ant script?

This script is the build.xml that comes with the source distribution of
tomcat.  It contains essentially what the manager how-to tells you to do
in the Executing Manager Commands With Ant section.

Yoav Shapira



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


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



Re: how to close request input stream

2003-09-23 Thread Peter H.
Hello,

Thanks for your help.

I've tried it but the response (Internal Server Error) is displayed after 
the whole file is send...

trying to flush doesn't help either:
   
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
   response.flushBuffer();
   response.getWriter().close();

Greetings and Thanks
Peter


From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: how to close request input stream
Date: Tue, 23 Sep 2003 11:02:26 -0400
Try this and see what happens:

protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
if(req.getContentLength()TOO_MUCH)
   resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
...
}
I am unsure of how much date is read before the servlet is called. (Which 
is probably the crux of the problem)

-Tim

Peter H. wrote:

I tried a file upload field up to 100MB
I tried textfield/textareas up to 600kb ( i must use a slow connection )
it looks like the complete request is send? dont know if tomcat or apache 
receives those bytes - or in other words - my program leaves its service 
method...

to Tim Funk: What status can I set and respond with my previous form?
I guess I've tried that but also I see incoming bytes in my network 
interface...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Sehen, wer online ist: Mit dem MSN Messenger! http://messenger.msn.de  Jetzt 
kostenlos downloaden und mitmachen!

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


Tomcat appears to cause erroneous ClassCastException (see message for circumstances)

2003-09-23 Thread Christopher Williams
I am using Tomcat 5 (I think) as a servlet and web service container via
JWSDP 1.2.  My OS is Windows XP Professional SP 2.

I have written a centralized authentication service which uses a pluggable
authentication module architecture.  Each authentication module derives from
an abstract base class com.inmezzo.authn.logon.Logon which is contained in a
JAR file called inMezzo_AuthnLogon.jar, copied to common/lib.  I supply a
number of authentication modules (Win32, LDAP and others) with the service.
These are in a package called com.inmezzo.authn.server and are contained in
a WAR in webapps and they all work fine.

However, the general pattern is that custom authentication modules will use
a completely different package hierarchy and will be stored in their own JAR
files in common/lib.  This, however, causes problems.

When my web app loads, the following code is executed (note that much of it
is used simply to provide debug output for this post):

String aClassName = m_props.getProperty(authenticator,
com.inmezzo.authn.server.NullLogon);
try
{
Class aClass = Class.forName(aClassName);
System.out.println(Class is  + aClass);
System.out.println(Class package is  + aClass.getPackage());
System.out.println(Classloader is  + aClass.getClassLoader());
System.out.println(Superclass is  + aClass.getSuperclass());
System.out.println(Superclass package is  +
aClass.getSuperclass().getPackage());
Object o = aClass.newInstance();
System.out.println(New object is  + o);
System.out.println(New object is a Logon object:  +
(o instanceof com.inmezzo.authn.logon.Logon));
System.out.flush();
m_authenticator = (com.inmezzo.authn.logon.Logon) o; // Boom!
}
catch(Exception e)
{
e.printStackTrace();
}

When this code attempts to load a custom authenticator running under Tomcat,
I get the following output:

Class is class rdc.users.RIOLogon
Class package is package rdc.users
Classloader is StandardClassLoader
...
Superclass is class com.inmezzo.authn.logon.Logon
Superclass package is package com.inmezzo.authn.logon
New object is [EMAIL PROTECTED]
New object is a Logon object: false
java.lang.ClassCastException at...


When, however, I execute the same code from the command line, I get the
output that I would expect:

Class is class rdc.users.RIOLogon
Class package is package rdc.users
Classloader is [EMAIL PROTECTED]
Superclass is class com.inmezzo.authn.logon.Logon
Superclass package is package com.inmezzo.authn.logon
New object is [EMAIL PROTECTED]
New object is a Logon object: true


Can anybody tell me what the problem is here?  I don't think that I'm trying
to do anything too perverse.  Is there perhaps a configuration setting for
Tomcat that will fix this?  Alternatively, can anybody confirm whether it is
worth my while to rewrite the abstract base class as an interface?  I'm
loath to do this only to find that it doesn't fix the problem.

Thanks in advance for any light that you can shed on this matter,

Chris Williams.





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



Possible to terminate a long request?

2003-09-23 Thread Neil Aggarwal
Hello:

Is there a way to terminate a request that takes more than
a given amount of time?

I know I can use the java.util.Timer class to get called back
at a given point in the future, but how can I terminate the
request and put up an error page to the user?

Any suggestions will be helpful.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tomcat appears to cause erroneous ClassCastException (see message for circumstances)

2003-09-23 Thread Shapira, Yoav

Howdy,
Are you putting the AuthnLogon jar in common/lib in order to use
JAASRealm?  Can you put this jar (and all others for your webapp) in the
WEB-INF/lib directory instead?

Another thing that might cause this is having two different versions of
the abstract class, one in the common/lib and one in WEB-INF/lib.  Could
this be the case in your installation?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Christopher Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 12:09 PM
To: [EMAIL PROTECTED]
Subject: Tomcat appears to cause erroneous ClassCastException (see
message
for circumstances)

I am using Tomcat 5 (I think) as a servlet and web service container
via
JWSDP 1.2.  My OS is Windows XP Professional SP 2.

I have written a centralized authentication service which uses a
pluggable
authentication module architecture.  Each authentication module derives
from
an abstract base class com.inmezzo.authn.logon.Logon which is contained
in
a
JAR file called inMezzo_AuthnLogon.jar, copied to common/lib.  I supply
a
number of authentication modules (Win32, LDAP and others) with the
service.
These are in a package called com.inmezzo.authn.server and are
contained in
a WAR in webapps and they all work fine.

However, the general pattern is that custom authentication modules will
use
a completely different package hierarchy and will be stored in their
own
JAR
files in common/lib.  This, however, causes problems.

When my web app loads, the following code is executed (note that much
of it
is used simply to provide debug output for this post):

String aClassName = m_props.getProperty(authenticator,
com.inmezzo.authn.server.NullLogon);
try
{
Class aClass = Class.forName(aClassName);
System.out.println(Class is  + aClass);
System.out.println(Class package is  + aClass.getPackage());
System.out.println(Classloader is  + aClass.getClassLoader());
System.out.println(Superclass is  + aClass.getSuperclass());
System.out.println(Superclass package is  +
aClass.getSuperclass().getPackage());
Object o = aClass.newInstance();
System.out.println(New object is  + o);
System.out.println(New object is a Logon object:  +
(o instanceof com.inmezzo.authn.logon.Logon));
System.out.flush();
m_authenticator = (com.inmezzo.authn.logon.Logon) o; // Boom!
}
catch(Exception e)
{
e.printStackTrace();
}

When this code attempts to load a custom authenticator running under
Tomcat,
I get the following output:

Class is class rdc.users.RIOLogon
Class package is package rdc.users
Classloader is StandardClassLoader
...
Superclass is class com.inmezzo.authn.logon.Logon
Superclass package is package com.inmezzo.authn.logon
New object is [EMAIL PROTECTED]
New object is a Logon object: false
java.lang.ClassCastException at...


When, however, I execute the same code from the command line, I get the
output that I would expect:

Class is class rdc.users.RIOLogon
Class package is package rdc.users
Classloader is [EMAIL PROTECTED]
Superclass is class com.inmezzo.authn.logon.Logon
Superclass package is package com.inmezzo.authn.logon
New object is [EMAIL PROTECTED]
New object is a Logon object: true


Can anybody tell me what the problem is here?  I don't think that I'm
trying
to do anything too perverse.  Is there perhaps a configuration setting
for
Tomcat that will fix this?  Alternatively, can anybody confirm whether
it
is
worth my while to rewrite the abstract base class as an interface?  I'm
loath to do this only to find that it doesn't fix the problem.

Thanks in advance for any light that you can shed on this matter,

Chris Williams.





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




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


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



RE: Possible to terminate a long request?

2003-09-23 Thread King,Daniel
What about setting a session timeout value in the application's web.xml (value below 
is minutes)?
 
session-config
  session-timeout2/session-timeout
/session-config
 
I have not actually used the elements above-- I just looked it up in a book, Tomcat by 
Brittain and Darwin, published by O'Reilly.  I have used session time-outs a lot in 
WebLogic.

-Original Message- 
From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Tue 9/23/2003 10:20 AM 
To: 'Tomcat-User' 
Cc: 
Subject: Possible to terminate a long request?



Hello:

Is there a way to terminate a request that takes more than
a given amount of time?

I know I can use the java.util.Timer class to get called back
at a given point in the future, but how can I terminate the
request and put up an error page to the user?

Any suggestions will be helpful.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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




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

Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration

2003-09-23 Thread mohan
Hi All
I am having apache 1.3.27, tomcat 4.1.27, i have compiled mod_jk2 on my
machine, when i open the URL it says document contains no data the
tomcat looks to be starting fine saying:
Starting service Tomcat-Apache
Apache Tomcat/4.1.27
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket in

The httpd logs give out this error. Please help me if anyone knows
anything about this error:

aught SIGTERM, shutting down
[Tue Sep 23 09:25:12 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 09:25:13 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 16:25:13 2003]  ( info) [mod_jk2.c (208)]: Set serverRoot
/etc/httpd
Create config for main host
[Tue Sep 23 09:25:14 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux)
mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.1.2
mod_perl/1.26 FrontPage/5.0.2.2510 configured -- resuming normal
operations
[Tue Sep 23 09:25:14 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Sep 23 09:25:14 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)



[Tue Sep 23 09:25:34 2003] [notice] child pid 1328 exit signal
Segmentation fault (11)
[Tue Sep 23 09:25:35 2003] [notice] child pid 1331 exit signal
Segmentation fault (11)


Thank you very much, please help me i am on a tight deadline

--Mohan






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



Re: JDBC Realm problems

2003-09-23 Thread Adam Hardy
Your config looks OK. Are you getting any errors logged when you try to 
log on?

On 09/23/2003 04:43 PM Laurent Perez wrote:
Hello

I am trying to protect a webapp I wrote using a JDBCRealm, but it 
doesn't seem to work as expected. I am using Tomcat 4.1.27, and 
Postgresql 7.3.2, with latest JDBC driver within $tomcat/common/lib.

My realm is described as follows, in $tomcat/conf/server.xml :

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.postgresql.Driver
digest=md5
connectionURL=jdbc:postgresql://127.0.0.1/mydb
connectionName=mylogin connectionPassword=mypass
userTable=pg_shadow userNameCol=usename userCredCol=passwd
userRoleTable=named_roles roleNameCol=role /
When I start Tomcat, I can see it connecting and idling to mydb, so JDBC 
driver works. Also 'mylogin' has read access on named_roles.

My webapp is called 'test' and located within $tomcat/webapps/, its 
WEB-INF/web.xml is as follows :

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
web-app
  security-constraint
  web-ressource-collection
web-ressource-nametest/web-ressource-name
url-pattern/*/url-pattern
  /web-ressource-collection
  auth-constraint
role-namemyrole/role-name
  /auth-constraint
  /security-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-nametest/realm-name
  /login-config
  security-role
role-namemyrole/role-name
  /security-role
/web-app
The 'myrole' role is defined in my named_roles table, and I have several 
users under that role. I did add security-role tags because Tomcat 
would warn me about 'myrole' not being within security-role tags on 
startup.

Now when I am trying to access http://localhost:8080/test, no 
authentication window pops up, I can access it freely, which shouldn't 
be correct (?). When I look at logs, I can see :
2003-09-23 14:14:52 ContextConfig[/test]: Configured an authenticator 
for method BASIC
2003-09-23 14:14:52 StandardManager[/test]: Seeding random number 
generator class java.security.SecureRandom
2003-09-23 14:14:52 StandardManager[/test]: Seeding of random number 
generator has been completed

If BASIC auth method is activated, why isn't my browser showing up an 
auth window ? :-/

Also I know Postgres doesn't store md5 password files like 
md5_func(password), but instead md5_func(password+login), will it cause 
problems with Tomcat's digest=md5 behaviour ?

Thanks for any help

Laurent Perez



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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Wilson, Allen
I've read those comments and uncommented the lines specified but when I
try to run the script it gives me that it is not available.

Allen

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 7:55 AM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat



Howdy,
Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:06 PM
To: Tomcat Users List
Subject: Configuring and using cgi scripts in Tomcat

Hello...

I am trying to configure Tomcat to run a perl script that is part of an
application I am moving over from another server. Since this is one
script I do not want to rewrite it so I thought that I could set the
server to run CGI scripts.

I have put the entries in the web.xml file and restarted the server but
I cannot get the script to run. Has anyone had any success in doing
this?

Allen



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


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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

RE: Possible to terminate a long request?

2003-09-23 Thread Neil Aggarwal
Daniel:

I appreciate your suggestion, but that wont terminate the request.
It will just mean the user's session wont be aroung when they
make their next request.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: King,Daniel [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 11:27 AM
 To: Tomcat Users List
 Subject: RE: Possible to terminate a long request?
 
 
 What about setting a session timeout value in the 
 application's web.xml (value below is minutes)?
  
 session-config
   session-timeout2/session-timeout
 /session-config
  
 I have not actually used the elements above-- I just looked 
 it up in a book, Tomcat by Brittain and Darwin, published by 
 O'Reilly.  I have used session time-outs a lot in WebLogic.
 
   -Original Message- 
   From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
   Sent: Tue 9/23/2003 10:20 AM 
   To: 'Tomcat-User' 
   Cc: 
   Subject: Possible to terminate a long request?
   
   
 
   Hello:
   
   Is there a way to terminate a request that takes more than
   a given amount of time?
   
   I know I can use the java.util.Timer class to get called back
   at a given point in the future, but how can I terminate the
   request and put up an error page to the user?
   
   Any suggestions will be helpful.
   
   Thanks,
   Neil
   
   
   --
   Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating
costs by
17% or more in 6 months or less! =
http://newsletter.JAMMConsulting.com



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






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



RE: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration

2003-09-23 Thread Shapira, Yoav

Howdy,

machine, when i open the URL it says document contains no data the
tomcat looks to be starting fine saying:
Starting service Tomcat-Apache
Apache Tomcat/4.1.27
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket in

This is not a fine startup.  It's a failed startup because the port
was still in use.  Make sure the tomcat processes are dead and nothing
is using your tomcat ports before you start tomcat.

Yoav Shapira



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


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



RE: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Shapira, Yoav

Howdy,
There's more than uncommenting involved.  You have to follow all the
instructions in those comments, including the jar file rename and tomcat
restart.  Then you have to give us much more information about what
errors you're seeing.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 12:45 PM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat

I've read those comments and uncommented the lines specified but when I
try to run the script it gives me that it is not available.

Allen

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 7:55 AM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat



Howdy,
Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:06 PM
To: Tomcat Users List
Subject: Configuring and using cgi scripts in Tomcat

Hello...

I am trying to configure Tomcat to run a perl script that is part of
an
application I am moving over from another server. Since this is one
script I do not want to rewrite it so I thought that I could set the
server to run CGI scripts.

I have put the entries in the web.xml file and restarted the server
but
I cannot get the script to run. Has anyone had any success in doing
this?

Allen



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


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




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


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



RE: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Wilson, Allen
Okay

I did all that

1 - Uncommented the lines for the servlet container
2 - Uncommented the lines for the servlet-mapping
3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar

Here are those listings:

servlet
servlet-namecgi/servlet-name
 
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi-bin/param-value
/init-param
/servlet


servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping



When I places a cgi script out there to just show a statement, I get the
following error

HTTP Status 404 - /resporta/cgi-bin/animal.cgi




type Status report

message /resporta/cgi-bin/animal.cgi

description The requested resource (/resporta/cgi-bin/animal.cgi) is not
available.





Apache Tomcat/4.1.18

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 11:47 AM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat



Howdy,
There's more than uncommenting involved.  You have to follow all the
instructions in those comments, including the jar file rename and tomcat
restart.  Then you have to give us much more information about what
errors you're seeing.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 12:45 PM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat

I've read those comments and uncommented the lines specified but when I
try to run the script it gives me that it is not available.

Allen

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 7:55 AM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat



Howdy,
Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:06 PM
To: Tomcat Users List
Subject: Configuring and using cgi scripts in Tomcat

Hello...

I am trying to configure Tomcat to run a perl script that is part of
an
application I am moving over from another server. Since this is one
script I do not want to rewrite it so I thought that I could set the
server to run CGI scripts.

I have put the entries in the web.xml file and restarted the server
but
I cannot get the script to run. Has anyone had any success in doing
this?

Allen



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


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




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


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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

Re: IIS 5.1 and Tomcat 4

2003-09-23 Thread Mats Andersson
Correct, but can't you use a browser on another machine?

Mats

Jon Skeet wrote:

I've got a port monitor which just shows connections - and it 
shows no sign of IIS trying to contact Tomcat. I'll try with 
Ethereal as well.
   

snip

Darn - Ethereal won't (as far as I can see) let me capture network
activity within my own system (ie the loopback, effectively).
Any ideas what will? (I've tried various sniffers in the past, and none
of them have particularly appealed - I'd welcome recommendations.)
Jon

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



RE: Possible to terminate a long request?

2003-09-23 Thread Mike Curwen
If you're trying to do this because of a long-runninig process (like
report generation)...
 
How about starting a new Thread for the processing, and immediately
returning a page that is a 'status' page with meta refresh.  Inside this
status page, you check a few session variables for certain
information/status.
 
The new Thread is passed the session and a timeout value.

Inside the Thread , you'd perform your processing. Hopefully it would
lend itself to the following logic:

if(!done  requestTimer  timeout) {
   // do processing of request
}

inside the loop you could set some session variable ('percent_done') if
you wanted to have the refreshing status page provide feedback. Also set
a 'status' variable, something like running, complete, failed or
timeout.
 
The refreshing status page will check the status variable, and on each
refresh, you can forward to any number of pages, depending on the
current state of 'status'. If it's still running, you'd redisplay the
status page, with perhaps an indication of 'percent_done'.  Alternate to
forwarding, you can use the same status page to report all statii, only
when your status switches from running to any other status, have the
JSP remove the meta refresh.




 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 11:38 AM
 To: 'Tomcat Users List'
 Subject: RE: Possible to terminate a long request?
 
 
 Daniel:
 
 I appreciate your suggestion, but that wont terminate the 
 request. It will just mean the user's session wont be aroung 
 when they make their next request.
 
 Thanks,
   Neil
 
 
 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, 
 www.JAMMConsulting.com FREE! Valuable info on how your 
 business can reduce operating costs by 
 17% or more in 6 months or less! = 
 http://newsletter.JAMMConsulting.com
 
  -Original Message-
  From: King,Daniel [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 11:27 AM
  To: Tomcat Users List
  Subject: RE: Possible to terminate a long request?
  
  
  What about setting a session timeout value in the
  application's web.xml (value below is minutes)?
   
  session-config
session-timeout2/session-timeout
  /session-config
   
  I have not actually used the elements above-- I just looked
  it up in a book, Tomcat by Brittain and Darwin, published by 
  O'Reilly.  I have used session time-outs a lot in WebLogic.
  
  -Original Message- 
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
  Sent: Tue 9/23/2003 10:20 AM 
  To: 'Tomcat-User' 
  Cc: 
  Subject: Possible to terminate a long request?
  
  
  
  Hello:
  
  Is there a way to terminate a request that takes more than
  a given amount of time?
  
  I know I can use the java.util.Timer class to get called back
  at a given point in the future, but how can I terminate the
  request and put up an error page to the user?
  
  Any suggestions will be helpful.
  
  Thanks,
  Neil
  
  
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056,
 www.JAMMConsulting.com
   FREE! Valuable info on how your business can reduce 
 operating costs by
   17% or more in 6 months or less! = 
 http://newsletter.JAMMConsulting.com
   
   
   
 
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Januski, Ken
Please excuse my butting in mid-thread as I may have missed something. I've
spent more time than I'd like getting IIS and Tomcat working in the past but
unfortunately don't remember all the details. One thing I do notice from
earlier thread is that you seem to be calling the host localhost. See
below. Perhaps you should change it to machine name?

Ken

[workers.properties]
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 5:42 AM
To: Tomcat Users List
Subject: RE: IIS 5.1 and Tomcat 4


snip log

 It seems like /mobilizer/mobilizer/ finds its way through, 
 but the path  /localhost/mobilizer/mobilizer doesn't. Is that correct?
What 
 is the path starting with /localhost, is this really your intention?

There shouldn't be any path starting with /localhost. I'm visiting the
URL

http://localhost/mobilizer/mobilizer

but the localhost part is the servername, not the path.

This appears to be consistent with the log I get when I use the name of
the computer rather than localhost, eg:

[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/treebeard/mobilizer/mobilizer/'
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

My guess is that it's something IIS is doing for the sake of virtual
hosting, but I wouldn't like to say for sure.

The /mobilizer/mobilizer path is the correct one - but I don't know why
it's then not getting any further than it is doing.

Jon

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


Re: IIS 5.1 and Tomcat 4

2003-09-23 Thread Mats Andersson
What do you get in the browser when trying to connect?

Mats

Jon Skeet wrote:

I've got a port monitor which just shows connections - and it 
shows no sign of IIS trying to contact Tomcat. I'll try with 
Ethereal as well.
   

snip

Darn - Ethereal won't (as far as I can see) let me capture network
activity within my own system (ie the loopback, effectively).
Any ideas what will? (I've tried various sniffers in the past, and none
of them have particularly appealed - I'd welcome recommendations.)
Jon

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



Tomcat + Apache + SSL

2003-09-23 Thread Robert D. Abernethy IV
I have apache set up to redirect requests for a specific context to
Tomcat.  I am curious if there is a way to force all requests to that
context to be redirected through SSL.

http://servername/securecontext -- https://servername/sercurecontext
http://servername/everythingelse -- http://servername/everythingelse

Is this something I set up in workers2.properties or httpd.conf?  Can
anyone point me at a decent tutorial?  Thanks.

Rob Abernethy



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



RE: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration

2003-09-23 Thread mohan

 Howdy,

machine, when i open the URL it says document contains no data the
 tomcat looks to be starting fine saying:
Starting service Tomcat-Apache
Apache Tomcat/4.1.27
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use Sep
 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket in

 This is not a fine startup.  It's a failed startup because the port
 was still in use.  Make sure the tomcat processes are dead and nothing
 is using your tomcat ports before you start tomcat.

 Yoav Shapira



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


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




Hi i am not getting the port already in use exception now. But i still get
the 'document contains no data' and when say this start httpd

/etc/rc.d/init.d/httpd start
Starting httpd: [Tue Sep 23 17:18:14 2003]  ( info) [mod_jk2.c (208)]: Set
serverRoot /etc/httpd
Create config for main host
   [  OK  ]

The errors i get for httpd are still the same,

caught SIGTERM, shutting down
[Tue Sep 23 10:17:47 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 10:18:17 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 17:18:17 2003]  ( info) [mod_jk2.c (208)]: Set serverRoot
/etc/httpd
Create config for main host
[Tue Sep 23 10:18:18 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux)
mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.1.2
mod_perl/1.26 FrontPage/5.0.2.2510 configured -- resuming normal
operations
[Tue Sep 23 10:18:18 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Sep 23 10:18:18 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Sep 23 10:18:49 2003] [notice] child pid 2275 exit signal
Segmentation fault (11)

please let me know where i am going wrong, any ideas will be help ful


--mohan









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



Follow on from ClassCastException question

2003-09-23 Thread Christopher Williams
I've implemented the logon architecture using an interface which all
authenticator modules implement, so that the attempted cast now reads:

m_authenticator = (ILogon) o;

That still causes a ClassCastException.  Bummer!

Chris Williams.



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



Re: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Jon Wingfield
/resporta/cgi-bin/animal.cgi does not map to /cgi-bin/*

I'm guessing resporta is the name of your webapp?
Where did you place the script? As I read it, you need to put it in 
/ROOT/WEB-INF/cgi (I could be wrong).

HTH,

Jon

Wilson, Allen wrote:

Okay

I did all that

1 - Uncommented the lines for the servlet container
2 - Uncommented the lines for the servlet-mapping
3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar
Here are those listings:

servlet
servlet-namecgi/servlet-name
 
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi-bin/param-value
/init-param
/servlet

servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping


When I places a cgi script out there to just show a statement, I get the
following error
HTTP Status 404 - /resporta/cgi-bin/animal.cgi



type Status report

message /resporta/cgi-bin/animal.cgi

description The requested resource (/resporta/cgi-bin/animal.cgi) is not
available.


Apache Tomcat/4.1.18

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 11:47 AM
To: Tomcat Users List
Subject: RE: Configuring and using cgi scripts in Tomcat



Howdy,
There's more than uncommenting involved.  You have to follow all the
instructions in those comments, including the jar file rename and tomcat
restart.  Then you have to give us much more information about what
errors you're seeing.
Yoav Shapira
Millennium ChemInformatics




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


RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
[Replying to two posts from Mats at once]

(About not being able to sniff local packets)

 Correct, but can't you use a browser on another machine?

Yes, but that wouldn't help - it's the IIS-Tomcat communication which
is at issue here (I thought, anyway) and that would still be local.

I don't have easy access to another machine to test all this with IIS on
one box and Tomcat on another - although it's the next step if I can't
get anywhere soon.

 What do you get in the browser when trying to connect?

The specified module could not be found.

Jon

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



Re: Tomcat + Apache + SSL

2003-09-23 Thread Sean Bruton
You can use mod_rewrite in Apache. It's been a while but I believe
something such as this in your httpd.conf should do the trick:

RewriteEngine On
RewriteRule ^/securecontext(.*) https://servername/securecontext$1 [R]

I may be off a bit, so check the docs at:

http://httpd.apache.org/docs/mod/mod_rewrite.html

or this helpful guide:

http://www.engelschall.com/pw/apache/rewriteguide/

On Tue, 2003-09-23 at 12:04, Robert D. Abernethy IV wrote:
 I have apache set up to redirect requests for a specific context to
 Tomcat.  I am curious if there is a way to force all requests to that
 context to be redirected through SSL.
 
 http://servername/securecontext -- https://servername/sercurecontext
 http://servername/everythingelse -- http://servername/everythingelse
 
 Is this something I set up in workers2.properties or httpd.conf?  Can
 anyone point me at a decent tutorial?  Thanks.
 
 Rob Abernethy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Sean Bruton   [EMAIL PROTECTED]
Senior Engineer   Network Services
NeoSpire, Inc.www.neospire.net


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



RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
 Please excuse my butting in mid-thread as I may have missed 
 something. I've spent more time than I'd like getting IIS and 
 Tomcat working in the past but unfortunately don't remember 
 all the details. One thing I do notice from earlier thread is 
 that you seem to be calling the host localhost. See below. 
 Perhaps you should change it to machine name?

It *should* be fine like that (as IIS and Tomcat are on the same
machine) - I've used it before with Tomcat 3.2.3 and IIS with localhost.
I'll certainly give it a whirl though.

sfx: typing and clicking

Nope. No luck. I've tried 127.0.0.1 and 192.168.0.8 (my IP address), and
the results are the same. I don't have DNS running at home (where I am
now) but I could try that tomorrow if you think it would be worth it -
I'd have thought it should work with numeric addresses though.

I've also tried changing the host to 128.0.0.1 - and I *still* don't see
anything with Ethereal, which really *does* suggest that IIS isn't
trying to connect. (I can see connection attempts with telnet to
128.0.0.1.)

Jon

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



RE: Tomcat + Apache + SSL

2003-09-23 Thread Robert D. Abernethy IV
I tried that with mixed results.  I was able to use mod_rewrite to
redirect non-Tomcat contexts, but was unable to redirect what I wanted.
Does apache process the mod_jk stuff first?  It looks like it is seeing
securecontext and passing it to Tomcat before it gets to the rewrite
rules.  Here's my results using mod_rewrite (foo is a directory in the
web server root, while secure context is a Tomcat webapp).

http://servername/* - http://servername/*
http://servername/foo - https://servername/foo
http://servername/securecontext - http://servername/securecontext

Rob Abernethy

-Original Message-
From: Sean Bruton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 2:07 PM
To: Tomcat Users List
Subject: Re: Tomcat + Apache + SSL

You can use mod_rewrite in Apache. It's been a while but I believe
something such as this in your httpd.conf should do the trick:

RewriteEngine On
RewriteRule ^/securecontext(.*) https://servername/securecontext$1 [R]

I may be off a bit, so check the docs at:

http://httpd.apache.org/docs/mod/mod_rewrite.html

or this helpful guide:

http://www.engelschall.com/pw/apache/rewriteguide/

On Tue, 2003-09-23 at 12:04, Robert D. Abernethy IV wrote:
 I have apache set up to redirect requests for a specific context to
 Tomcat.  I am curious if there is a way to force all requests to that
 context to be redirected through SSL.
 
 http://servername/securecontext -- https://servername/sercurecontext
 http://servername/everythingelse -- http://servername/everythingelse
 
 Is this something I set up in workers2.properties or httpd.conf?  Can
 anyone point me at a decent tutorial?  Thanks.
 
 Rob Abernethy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Sean Bruton   [EMAIL PROTECTED]
Senior Engineer   Network Services
NeoSpire, Inc.www.neospire.net


-
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: IIS 5.1 and Tomcat 4

2003-09-23 Thread Januski, Ken
Jon,

I think that the log is telling you just what it should. Tomcat looks for a
mapping of server name to servlet in web.xml. So it won't find one for
localhost or machine name but that's really not important. It will find
nothing for them and move on. What it should find and does is the mapping
from servlet name to servlet. So it seems to me that it is finding the
mapping correctly. The problem is that nothing is happening after that.

Have you looked at the IIS logs to see what they say? They should include
line for isapi_redirect or isapi_redirecto2.dll and SHOULD have a 200 as
server response, e.g.

POST /jakarta/isapi_redirector2.dll - 200 0 4096 690 

When I was trying this it took me forever to get it to change from 400/500
to 200 I believe. Unfortunately this won't solve your problem but it may
move you further toward a solution.

Ken

-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 5:42 AM
To: Tomcat Users List
Subject: RE: IIS 5.1 and Tomcat 4


snip log

 It seems like /mobilizer/mobilizer/ finds its way through, 
 but the path  /localhost/mobilizer/mobilizer doesn't. Is that correct?
What 
 is the path starting with /localhost, is this really your intention?

There shouldn't be any path starting with /localhost. I'm visiting the
URL

http://localhost/mobilizer/mobilizer

but the localhost part is the servername, not the path.

This appears to be consistent with the log I get when I use the name of
the computer rather than localhost, eg:

[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/treebeard/mobilizer/mobilizer/'
[Tue Sep 23 10:40:11 2003]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

My guess is that it's something IIS is doing for the sake of virtual
hosting, but I wouldn't like to say for sure.

The /mobilizer/mobilizer path is the correct one - but I don't know why
it's then not getting any further than it is doing.

Jon

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


mod_jk error in browser window

2003-09-23 Thread Armenio Pinto
Hi there,

 I'm using Tomcat 3.2.4 and Apache as frontend, with mod_jk. Sometimes,
when I open the main page, the following error apears in the browser window:

HTTP/1.0 200 OK Date: Tue, 23 Sep 2003 18:42:28 GMT Server: Apache/1.3.27
(Unix) (Red-Hat/Linux) mod_jk/1.2.4 mod_python/2.7.8 Python/1.5.2
mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26
mod_throttle/3.1.2 Cache-Control: no-cache Pragma: no-cache Expires: Thu, 01
Jan 1970 00:00:00 GMT Servlet-Engine: Tomcat Web Server/3.2.4 (JSP 1.1;
Servlet 2.2; Java 1.4.2; Linux 2.4.18-27.7.x i386; java.vendor=Sun
Microsystems Inc.) Content-Type: text/html;charset=ISO-8859-1 X-Cache: MISS
from xx.xxx.xxx..pt Connection: close


Can anyone, please, explain me what's going on? Thanks in advance,

Arménio Pinto

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



RE: Configuring and using cgi scripts in Tomcat

2003-09-23 Thread Wilson, Allen
You mean /ROOT/WEB-INF/cgi-bin...

And that is what I thought but when I made a directory at that position.
I still was not able to get to the script.

Allen

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 12:47 PM
To: Tomcat Users List
Subject: Re: Configuring and using cgi scripts in Tomcat


/resporta/cgi-bin/animal.cgi does not map to /cgi-bin/*

I'm guessing resporta is the name of your webapp?
Where did you place the script? As I read it, you need to put it in 
/ROOT/WEB-INF/cgi (I could be wrong).

HTH,

Jon

Wilson, Allen wrote:

 Okay
 
 I did all that
 
 1 - Uncommented the lines for the servlet container
 2 - Uncommented the lines for the servlet-mapping
 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar
 
 Here are those listings:
 
 servlet
 servlet-namecgi/servlet-name
  
 servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
 init-param
   param-nameclientInputTimeout/param-name
   param-value100/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value6/param-value
 /init-param
 init-param
   param-namecgiPathPrefix/param-name
   param-valueWEB-INF/cgi-bin/param-value
 /init-param
 /servlet
 
 
 servlet-mapping
 servlet-namecgi/servlet-name
 url-pattern/cgi-bin/*/url-pattern
 /servlet-mapping
 
 
 
 When I places a cgi script out there to just show a statement, I get
the
 following error
 
 HTTP Status 404 - /resporta/cgi-bin/animal.cgi
 


 
 
 type Status report
 
 message /resporta/cgi-bin/animal.cgi
 
 description The requested resource (/resporta/cgi-bin/animal.cgi) is
not
 available.
 
 


 
 
 Apache Tomcat/4.1.18
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 11:47 AM
 To: Tomcat Users List
 Subject: RE: Configuring and using cgi scripts in Tomcat
 
 
 
 Howdy,
 There's more than uncommenting involved.  You have to follow all the
 instructions in those comments, including the jar file rename and
tomcat
 restart.  Then you have to give us much more information about what
 errors you're seeing.
 
 Yoav Shapira
 Millennium ChemInformatics




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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

Jstl problem

2003-09-23 Thread Julien Martin
Hello,

I am developing an application that uses Jstl for internationalization.  I
store a string called lang in a request attribute (${requestScope.lang}).
This string is either fr or es.
My page is sometimes in french even though the lang attribute is es and
vice versa.  It seems as if the  ${requestScope.lang} is ignored.

Can anyone help please?

Here is the full content of my jsp:

**
%-- ==

Index Page

== --%

%@ page import =com.parispano.latinamericaguide.* %

%@ taglib uri=/WEB-INF/c.tld prefix=f %

%@ taglib uri=/WEB-INF/fmt.tld prefix=fmt %

%@ taglib uri=/WEB-INF/latinamericaguide.tld prefix=po %

%

/* We retrieve the Countries object from the servlet context. */

ServletContext sc = getServletContext();

Countries cs = (Countries)sc.getAttribute(countries);

/* We apply the sorting criterion. */

String sortCriterion = request.getParameter(sortCriterion);

Country[] countryArray = cs.getArray(sortCriterion);

%

fmt:setLocale value=${requestScope.lang}/

fmt:bundle basename=com.parispano.latinamericaguide.resources.labels

html

head

titlefmt:message key=title_index_jsp//title

link rel=StyleSheet type=text/css href=css/latinamericaguide.css/

/head

body

div id=logo_home

img src=./media/logo_atlas.gif alt=

/div

div id=advertisement

jsp:directive.include file=pages/modules/indexmodule.jsp /

/div

div id=left-column

hola toto

/div



div id=country-list-box

div id=language

current language: ${requestScope.lang}br /

a
href=LanguageServlet?url=%=request.getRequestURL()%lang=po:RetrieveOther
Language locale=${requestScope.lang}/Change Language/abr /br /

/div

div id=top-left

div id=top-right

/div

/div

div id=title

img src=./media/po:I18nlizeImage imageName=atlas_latino
locale=${requestScope.lang}/ alt=

/div

div id=sortingForm

jsp:directive.include file=pages/sorterForm.jsp /

/div



table

tr

thfmt:message key=country_index_jsp//th

thfmt:message key=capital_index_jsp//th

thfmt:message key=landarea_index_jsp//th

thfmt:message key=population_index_jsp//th

thfmt:message key=gdp_index_jsp//th

thfmt:message key=gdp_per_capita_index_jsp//th

thfmt:message key=more_index_jsp//th

/tr



%

int rowCol=0;

for(int i=0; icountryArray.length; i++){

rowCol++;

Country country = (Country)countryArray[i];

out.println(tr  +
((rowCol%2==0)?(class=\evenRow\):(class=\oddRow\)) + );

out.println(td class=\countryName\ +country.getName() + /td);

out.println(td class=\countryCapital\ +country.getCapital() +
/td);

out.println(td class=\number\ + country.getFormattedLandArea() +
/td);

out.println(td class=\number\ +country.getFormattedPopulation() +
/td);

out.println(td class=\number\ +country.getFormattedGdp() + /td);

out.println(td class=\number\ +country.getFormattedGdp_per_head() +
/td);

out.println(tda class=\more\ href=\pais.jsp?countryID= +
country.getId() + \más.../a/td);

out.println(/tr);

}

%

/table





div id=bottom-left

div id=bottom-right

/div

/div



jsp:directive.include file=./pages/footer.jsp/

/div

br /







/body

/html

/fmt:bundle

**


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



  1   2   >