Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Erik Melkersson

Are you starting it as non-root?
Only root has the ability to bind to ports 1024.

Regards /Erik Melkersson

Faheem Mitha wrote:


Hi,

I can now get tomcat to run an ssl connector at port 8443 (Debian 
default), but doesn't work if I try to run it at 443.


The log says:

Apr 17, 2007 12:31:19 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindExc

eption: Permission denied:443
at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)

...
Any idea what I am missing? I don't think the problem is that apache is 
blocking 443, because when I turn off apache, I get the same error. In 
any case, I have configured apache to listen only at the 
florence.dulci.org:443 interface.


Is there an easy way to discover what is listening on a particular port 
on a particular IP address?


Thanks.Faheem.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Réf. : Tomcat Administration

2007-04-17 Thread jean-louis . mateo

Hello,

you can find it at this URL

http://tomcat.apache.org/download-55.cgi

Best regards




 
  Venkata Naveen
 
  venkatanaveen.alapati Pour :   
users@tomcat.apache.org
  @gmail.comcc :   
 
 Objet :  Tomcat 
Administration  
  17/04/2007 07:46  
 
  Veuillez répondre à   
 
  Tomcat Users List   
 

 

 




hi Hi iam unable to get the tomcat administration page. It is giving the
message like Tomcat's administration web application is no longer
installed
by default. Download and install the admin package to use it.  where to
get the tomcat admin package, and how to install that admin into the tomcat
directory. please help me friends...







Thanks  regards Venkata Naveen
--
View this message in context:
http://www.nabble.com/Tomcat-Administration-tf3588935.html#a10029555
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



session by request prefer

2007-04-17 Thread Thomas Papke

Hello their,

Is it possible to setup that the sessionid from request is prefered used 
to the sessionid from the sessioncookie?


We are using a php portal calling a sessioninfo.jsp by request parameter 
in background. In some situations the user jumps from the portal to the 
tomcat application with the sessionid in request. But if the user still 
have a sessioncookie from tomcat webapp alive, the session from request 
is ignored. I want that the session from cookie is 
removed/overridden/ignored an use the session from request.


Thanks a lot,

Thomas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread dimitryous r.

Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).  
Deplyoment is very easy.


I don't know how to pull out this version with a more recent one  
5.0.20 ...


Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:


I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mod_jk and Kernel Panic - not syncing: Attempting to free lock on active lock list

2007-04-17 Thread Rainer Jung

Artur wrote:

Hello after the weekend,

Does it mean that mod_jk 1.2.18 is not using flock() function at all ?
With 1.2.18 there is no kernel panic problem. 
I have written to RedHat support to tell them that this flock() function

could be buggy.


It does use flock(), but maybe with another use pattern. I'm not sure 
about that.



Do you know when 1.2.22 version is goint to be released ?


Most likely today or tomorrow.


And another question. I have set logging for mod_jk to error level, but it
logs every request and response time, shoudn't only errors be logged ?


Sounds like you are using JkRequestLogFormat, which will additionally 
(unconditionally) log every request to the mod_jk log file.



Normally response time is sth like 0.0500 or 0.0900 but sometimes it is
10.2345 or 15.2543 or even 90.0456. What can take so much time ?


Add %D to your tomcat access log and check, if the request als take that 
long on tomcat (which is very likely). If yes, you need to investigate 
the webapp/tomcat/jvm side.




Regards
Artur


Mladen Turk wrote:

Artur Różycki wrote:

Hello,

We are running Red Hat Enterprise Linux ES (v. 4 for AMD64/Intel EM64T) 
as an Web server with Apache (2.2.4 compiled from sources) connected 
through mod_jk (1.2.21 compiled from sources) to tomcat server(5.5.17). 

This is a kernel bug related to flock
With 1.2.22 we are using fcntl for locking, so it won't be observed.



Regards,
Mladen.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-17 Thread Martin Heiden

Richard!

  As you said: You installed PHP separately installed on your laptop.
  Tomcat can't interpret PHP out of the box. If you only want to use
  PHP without any Java, install the Apache HTTPD (httpd.apache.org)
  with mod_php5 enabled. If you also want to use Java, you've got
  three choices:

  1) Run PHP on Apache HTTPD and Java on Tomcat. Setup communication
 via http - calls between the two servers.

  2) Run PHP on Apache HTTPD and use the PHP-Java Bridge. You don't
 need Tomcat.

  3) You can interpret PHP on Tomcat if you use the reference
 implementation for JSR-223 (Scripting for the Java Platform)
 http://jcp.org/aboutJava/communityprocess/pr/jsr223/index.html

  With the scenario you described, I'd recommend to just switch from
  Tomcat to the Apache HTTPD.

regards,

  Martin

am Dienstag, 17. April 2007 um 00:44 schrieben Sie:

 I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL
 8.2.3-1 installed seperately on my laptop, also have MySQL installed
 but using Postgres for project purpose.  All of my php files are
 listed under http://localhost:8080/ProjectFolder.  Some of my php
 files are webpages and most are scripts.  I have a database and a
 few tables created.  So far in DOS, I can query the database with a
 php script on its own.  In Windows, (Editplus text editor) one of my
 webpages is trying to execute the same php script via an Ajax
 xmlhttprequest, using alerts I have gone through the http
 readystates 1,2,3,4 and http status 200, but am having problems
 accessing/parsing responseText.  In tomcat, I am getting as far as
 readystate 1, (firewall turned off).  Is there any
 particular/obvious reason why the request is breaking down in tomcat?

 Richard.


 - Original Message 
 From: dimitryous r. [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, April 16, 2007 10:58:16 PM
 Subject: Re: Ajax xmlhttprequest


 I have a php webpage which is hosted on my laptop (XP and tomcat  
 localhost:8080).

 Hello,
 Please tell me more about your configuration:
 if your Apache Tomcat server is running on port 8080 how come do you  
 get something out of a xxx.php script?
 You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)  
 this script call http://localhost/anyfile.php (Apache 1.3.xx with php/
 MySQL built-in)???

 Is this the way you do it?

 Thank you much.

 On 8 avr. 07, at 14:55, Richard Dunne wrote:

 I have a php webpage which is hosted on my laptop (XP and tomcat  
 localhost:8080). My webpage is executing a php script via an  
 xmlhttprequest which queries a database and sends back the info to  
 the webpage.   I have an a few alerts in my request to see the  
 http.readystate and the http.status as they change.  In windows  
 (IE7), when I execute the request I can see the readystate changing  
 1,2,3,4 and the status 200.  In tomcat when I execute the request,  
 I am getting 1 alert, that is readystate 1, and thats as far as it  
 goes.  Can anyone suggest a possible solution, or have an idea as  
 to what the problem might be.

 Richard.



 __ 
 __
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at  
 Yahoo! Games.
 http://videogames.yahoo.com/platform?platform=120121


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:Tomcat with JBuilder: Basic authorization

2007-04-17 Thread [EMAIL PROTECTED]
Nobody have any clue please?

-- Initial Header ---

From  : [EMAIL PROTECTED] [EMAIL PROTECTED]
To  : users users@tomcat.apache.org
Cc  :
Date  : Sun, 15 Apr 2007 01:41:30 +0200
Subject : Tomcat with JBuilder: Basic authorization







 Hello,
 i wish to find out what happens with this topic: i'm developing a web 
 application with JBuilder 2006 with Tomcat 5.5.9 included.
 In the web.xml i have this:

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
   display-namexx/display-name
   listener
 listener-classxxx.ApplicationWatch/listener-class
   /listener
   servlet
 servlet-namehtmlcontent/servlet-name
 servlet-classxxx.HtmlContentServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-namehtmlcontent/servlet-name
 url-pattern/htmlcontent.view/url-pattern
   /servlet-mapping
   resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/xxDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref
   security-constraint
 display-nameSecurity Constraint/display-name
 web-resource-collection
   web-resource-nameProtected Area/web-resource-name
   url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   role-namexx/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodBASIC/auth-method
 realm-nameProtected Area/realm-name
   /login-config
   security-role
 role-namexx/role-name
   /security-role
 /web-app

 And tomcat-users.xml:

 tomcat-users
   role rolename=xx/
   role rolename=tomcat/
   role rolename=role1/
   role rolename=manager/
   user username=tomcat password=tomcat roles=tomcat/
   user username=both password=tomcat roles=tomcat,role1/
   user username=role1 password=tomcat roles=role1/
   user username=user password=pass roles=manager,xx/
 /tomcat-users

 If i compile the web application into a .war and deploy on a standalone 
 tomcat, it just works, it asks me for user and pass of xx rule and let me 
 access it. If i run from JBuilder i get error:

 org.apache.catalina.realm.JAASRealm authenticate
 GRAVE: Unexpected error
 java.lang.SecurityException: Impossibile trovare una configurazione di login
   at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   at java.lang.Class.newInstance0(Class.java:350)
   at java.lang.Class.newInstance(Class.java:303)
   at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
   at java.security.AccessController.doPrivileged(Native Method)
   at 
 javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
   at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
   at javax.security.auth.login.LoginContext.init(LoginContext.java:403)
   at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:355)
   at 
 org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
   at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
 Caused by: java.io.IOException: Impossibile trovare una configurazione di 
 login
   at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
   at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95)
  

Unable to Stop Tomcat

2007-04-17 Thread yeshvanthni m

Tomcat is configured as a windows service.When I try to stop service,
I am unable to stop Tomcat .I get the following stack trace.
I tried netstat -a and tomcat port is not listed there but still I am unable
to start the service.I am not able to telnet to that port

Apr 17, 2007 12:49:30 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.init(Socket.java:366)
at java.net.Socket.init(Socket.java:179)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)




Environment:
jdk1.5.06
Tomcat 5.5.20


Re: Ajax xmlhttprequest

2007-04-17 Thread dimitryous r.

Here is a useful link:
http://sourceforge.net/project/downloading.php? 
group_id=117793use_mirror=ovhfilename=php-java- 
bridge_4.0.8a_j2ee.zip80307299


Hope.

On 17 avr. 07, at 10:14, Martin Heiden wrote:



Richard!

  As you said: You installed PHP separately installed on your laptop.
  Tomcat can't interpret PHP out of the box. If you only want to use
  PHP without any Java, install the Apache HTTPD (httpd.apache.org)
  with mod_php5 enabled. If you also want to use Java, you've got
  three choices:

  1) Run PHP on Apache HTTPD and Java on Tomcat. Setup communication
 via http - calls between the two servers.

  2) Run PHP on Apache HTTPD and use the PHP-Java Bridge. You don't
 need Tomcat.

  3) You can interpret PHP on Tomcat if you use the reference
 implementation for JSR-223 (Scripting for the Java Platform)
 http://jcp.org/aboutJava/communityprocess/pr/jsr223/index.html

  With the scenario you described, I'd recommend to just switch from
  Tomcat to the Apache HTTPD.

regards,

  Martin

am Dienstag, 17. April 2007 um 00:44 schrieben Sie:


I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL
8.2.3-1 installed seperately on my laptop, also have MySQL installed
but using Postgres for project purpose.  All of my php files are
listed under http://localhost:8080/ProjectFolder.  Some of my php
files are webpages and most are scripts.  I have a database and a
few tables created.  So far in DOS, I can query the database with a
php script on its own.  In Windows, (Editplus text editor) one of my
webpages is trying to execute the same php script via an Ajax
xmlhttprequest, using alerts I have gone through the http
readystates 1,2,3,4 and http status 200, but am having problems
accessing/parsing responseText.  In tomcat, I am getting as far as
readystate 1, (firewall turned off).  Is there any
particular/obvious reason why the request is breaking down in tomcat?



Richard.




- Original Message 
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 16, 2007 10:58:16 PM
Subject: Re: Ajax xmlhttprequest




I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080).



Hello,
Please tell me more about your configuration:
if your Apache Tomcat server is running on port 8080 how come do you
get something out of a xxx.php script?
You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)
this script call http://localhost/anyfile.php (Apache 1.3.xx with  
php/

MySQL built-in)???



Is this the way you do it?



Thank you much.



On 8 avr. 07, at 14:55, Richard Dunne wrote:



I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080). My webpage is executing a php script via an
xmlhttprequest which queries a database and sends back the info to
the webpage.   I have an a few alerts in my request to see the
http.readystate and the http.status as they change.  In windows
(IE7), when I execute the request I can see the readystate changing
1,2,3,4 and the status 200.  In tomcat when I execute the request,
I am getting 1 alert, that is readystate 1, and thats as far as it
goes.  Can anyone suggest a possible solution, or have an idea as
to what the problem might be.

Richard.



 
__

__
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at
Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-17 Thread Pid

Err?

You do know that Tomcat is a Java Servlet Container, rather than a 
multipurpose webserver right?


Course it does an excellent job of serving HTTP - but it's not meant to 
be a competitor for Apache HTTPD, it's for JSPs, Servlets and all things 
Java...


Ever considered JSP instead of PHP?

p



Richard Dunne wrote:

Learn something new everyday.  OK developers, something to maybe look forward 
to in the future perhaps?


- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 12:00:57 AM
Subject: Re: Ajax xmlhttprequest


On 4/16/07, Richard Dunne [EMAIL PROTECTED] wrote:


I can query the database with a php script on its own.



...one of my webpages is trying to execute the same php script
via an Ajax xmlhttprequest,



Is there any particular/obvious reason why the request is breaking
down in tomcat?


Uh, because Tomcat has no facility for parsing/interpreting PHP? :-)

Caveat: unless you've ported over the old PHP4 servlet that no longer
comes with the PHP 5 source, in which case we'd need a wee bit more
info... :-)




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Applet Help

2007-04-17 Thread jub jub jedi

I tried that, it doesn't work.  Also, when I just pull up the HTML file from
the hard drive, it works as expected.  When I try to access that same file
over the web server, I have the original problem.

Martin Gainty wrote:
 
 the applet wont be freshly downloaded as long as you have a ref in cache
 place some clear browser cache meta tags in e.g.
 
 head
 META HTTP-EQUIV=Cache-Control CONTENT=no-cache
 META HTTP-EQUIV=Pragma CONTENT=no-cache
 META HTTP-EQUIV=Expires CONTENT=0
 /head
 
 Martin
 This email message and any files transmitted with it contain confidential
 information intended only for the person(s) to whom this email message is
 addressed.  If you have received this email message in error, please
 notify
 the sender immediately by telephone or email and destroy the original
 message without making a copy.  Thank you.
 
 - Original Message - 
 From: jub jub jedi [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, April 16, 2007 8:27 PM
 Subject: Applet Help
 
 

 I have made a simple website on Tomcat.  I have an applet on it, and when 
 I
 loaded it for the very first time, it turned out like I expected it to. 
 I
 have made a modification that should be VERY obvious, but when I reload 
 the
 page, it shows the applet just like when it was first compiled.  How do I
 get it to show the new version of the applet?  I have tried restarting
 the
 web server, too.
 -- 
 View this message in context: 
 http://www.nabble.com/Applet-Help-tf3588156.html#a10027383
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Applet-Help-tf3588156.html#a10032991
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat with JBuilder: Basic authorization

2007-04-17 Thread Pierre Goupil

Hello !

First of all : maybe you should consider giving exception traces in english
! Because you know, I doubt that a lot of people here can speak Italian.
Yes, I know : your Tomcat and your JBuilder are in italian...





If i compile the web application into a .war and deploy on a standalone

tomcat, it just works, it asks me for user and pass of xx rule and let me
access it. If i run from JBuilder i get error:

org.apache.catalina.realm.JAASRealm authenticate
GRAVE: Unexpected error
java.lang.SecurityException: Impossibile trovare una configurazione di
login




It looks that Tomcat is unable to find its configuration file. And I'm not
surprised since the official doc (
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html)
says that you must tweak your
server.xml too. But maybe is it a JBuilder conf file ? I don't know, I'm
using Eclipse.







If i remove from web.xml the following part:


  security-constraint
display-nameSecurity Constraint/display-name
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-namexx/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodBASIC/auth-method
realm-nameProtected Area/realm-name
  /login-config
  security-role
role-namexx/role-name
  /security-role

then JBuilder will not throw the error.
Probably it ignores the tomcat-users.xml file in /conf/ dir?




No but since you  are removing the security constraint it  doesn't apply any
more ! :-) This line : url-pattern/*/url-pattern means that you must be
logged in in order to access any ( /* ) page of your webapp. Remove this
and, in the opposite, you can freely browse through the app.






The strange thing is that if i remove auth part from web.xml, on JBuilder,

when i run it, the user/pass form still shows, but i just ignore it or click
cancel, and if i point with web browser to localhost:8080/xx i can access
succesfully.




See above. IMHO, the form still shows because it is the first page of your
app. Which is a requirement of Tomcat, AFAIK.






I think i gave u all the information needed to find the problem. Hope u can

get a solution for it, i can't figure how to solve from months :( Every time
i have to add/remove the auth part from web.xml either i'm debugging or
deploying: quite frustrating.

Thanks in advance.




HTH,

Pierre Goupil



--
A celle qui se souvient de chaque parole prononcée,
Du premier cri du bébé au serment du héros.
Tu es mon témoin éternel.


Re: Applet Help

2007-04-17 Thread dimitryous r.
Please tell us more about your configuration: OS, JVM xxx, Java  
version etc...

Should help with that.
On 17 avr. 07, at 12:43, jub jub jedi wrote:



I tried that, it doesn't work.  Also, when I just pull up the HTML  
file from
the hard drive, it works as expected.  When I try to access that  
same file

over the web server, I have the original problem.

Martin Gainty wrote:


the applet wont be freshly downloaded as long as you have a ref in  
cache

place some clear browser cache meta tags in e.g.

head
META HTTP-EQUIV=Cache-Control CONTENT=no-cache
META HTTP-EQUIV=Pragma CONTENT=no-cache
META HTTP-EQUIV=Expires CONTENT=0
/head

Martin
This email message and any files transmitted with it contain  
confidential
information intended only for the person(s) to whom this email  
message is

addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message -
From: jub jub jedi [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, April 16, 2007 8:27 PM
Subject: Applet Help




I have made a simple website on Tomcat.  I have an applet on it,  
and when

I
loaded it for the very first time, it turned out like I expected  
it to.

I
have made a modification that should be VERY obvious, but when I  
reload

the
page, it shows the applet just like when it was first compiled.   
How do I
get it to show the new version of the applet?  I have tried  
restarting

the
web server, too.
--
View this message in context:
http://www.nabble.com/Applet-Help-tf3588156.html#a10027383
Sent from the Tomcat - User mailing list archive at Nabble.com.


 
-

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: http://www.nabble.com/Applet-Help- 
tf3588156.html#a10032991

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to Stop Tomcat

2007-04-17 Thread David Delbecq
En l'instant précis du 17/04/07 11:30, yeshvanthni m s'exprimait en ces
termes:
 Tomcat is configured as a windows service.When I try to stop service,
 I am unable to stop Tomcat .I get the following stack trace.
Means there is not tomcat listening to the management port. This can be
because running tomcat is not configured to listen to that port or
simply because tomcat is just not running.
 I tried netstat -a and tomcat port is not listed there but still I am
 unable
Then i guess tomcat is not running
 to start the service.I am not able to telnet to that port

All elements tend to mean there is no tomcat running on your system, so
obviously it won't stop. If you can't start tomcat, give us the error at
startup (see catalina.out file)

 Apr 17, 2007 12:49:30 PM org.apache.catalina.startup.Catalina stopServer
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)




 Environment:
 jdk1.5.06
 Tomcat 5.5.20



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread David Smith
Ahhh the joy of *nix operating systems.  Way back in the distant past of 
unix systems, someone decided it was a bad idea to allow any user on the 
system to bind to the well known low ports (1 - 1024) where officially 
sanctioned services (POP, SMTP, FTP, etc., ...) should be.  A great idea 
except it also required the services to be running as a privileged user 
to gain access.   For a lot of reasons, services should run with the 
least privilege.


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon 
project at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if 
this will work with an SSL connection.  You can try it if you like.


My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing 
a privileged port.


--David

Faheem Mitha wrote:



Hi,

I can now get tomcat to run an ssl connector at port 8443 (Debian 
default), but doesn't work if I try to run it at 443.


The log says:

Apr 17, 2007 12:31:19 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindExc

eption: Permission denied:443
at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

My server.xml config now says

!-- Define a SSL HTTP/1.1 Connector on port 443 --
Connector address=core.dulci.org port=443 
maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

Any idea what I am missing? I don't think the problem is that apache 
is blocking 443, because when I turn off apache, I get the same error. 
In any case, I have configured apache to listen only at the 
florence.dulci.org:443 interface.


Is there an easy way to discover what is listening on a particular 
port on a particular IP address?


Thanks.
Faheem.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rotatable access logs?

2007-04-17 Thread Tim Funk

There is no option for keeping the last 30 days.

instead add this to cron:
find $CATALINA_HOME/logs \
  -name localhost_access_log* \
  -mtime +30 | xargs rm -f


-Tim

Jay Dickon Glanville wrote:

Hello all,

I'm currently using the Access Log Valve as part of my Tomcat 5.5
installation to track what pages people are going to most frequently.
However, these logs are ever growing, taking up more and more HD
space.

What I'd like to do is configure the valve so that only the last 30
days of information are kept.

Is there a way to tell the valve that it should rotate the log files,
only keeping the last 30 copies of the logs?

Thanks.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Applet Help

2007-04-17 Thread dimitryous r.
In order for us to help you do that please: http://localhost:port/  
and tell us what you get out of this URL. The version of Tomcat is  
located at the upper left corner of your screen.


On WinXP, you get your java version in Config panel/java then first  
tab and then about (the first button)...


Java 1.6 = no
Tomcat 2.0 = no

Sorry.
On 17 avr. 07, at 13:44, Rashmi Rubdi wrote:


On 4/17/07, jub jub jedi [EMAIL PROTECTED] wrote:


Ok... I have Windows XP Home Edition, Java version 1.6.0, Tomcat  
version 2.0

(I think)



Are you sure about the version of Tomcat, may be its 4.x, 5.x, 6.x ?
Tomcat 2.0 with JDK 1.6.0 looks odd to me.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Paul Singleton

David Smith wrote:
Ahhh the joy of *nix operating systems.  Way back in the distant past of 
unix systems, someone decided it was a bad idea to allow any user on the 
system to bind to the well known low ports (1 - 1024) where officially 
sanctioned services (POP, SMTP, FTP, etc., ...) should be.  A great idea 
except it also required the services to be running as a privileged user 
to gain access.   For a lot of reasons, services should run with the 
least privilege.


This kludge was forgiveable on multi-user systems (anyone remember
them?) but makes things worse on secure servers; unfortunately you
seem to have to recompile the kernel to switch it off...


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon 
project at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if 
this will work with an SSL connection.  You can try it if you like.


It works as well for HTTPS as it does for HTTP (i.e. fine) but you may
nevertheless prefer to avoid configuring port redirection into iptables.

My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing 
a privileged port.


I opted for 2 (have used this in production a coupla years now) as
it doesn't involve any software you wouldn't have to use anyway (if
someone discovers a security vulnerability in jsvc tomorrow I shall
be smugly smiling) but realistically there's nothing in it and the
choice is yours...

Paul Singleton


--David

Faheem Mitha wrote:



Hi,

I can now get tomcat to run an ssl connector at port 8443 (Debian 
default), but doesn't work if I try to run it at 443.


The log says:

Apr 17, 2007 12:31:19 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindExc

eption: Permission denied:443
at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

My server.xml config now says

!-- Define a SSL HTTP/1.1 Connector on port 443 --
Connector address=core.dulci.org port=443 
maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

Any idea what I am missing? I don't think the problem is that apache 
is blocking 443, because when I turn off apache, I get the same error. 
In any case, I have configured apache to listen only at the 
florence.dulci.org:443 interface.


Is there an easy way to discover what is listening on a particular 
port on a particular IP address?


Thanks.
Faheem.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Paul Singleton
Jambusters Ltd

tel: 01782 750821
fax: 08707 628609
VAT: 777 3904 85
Company no. 04150146


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread Johnny Kewl

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server version is 
cool.

Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between them if 
you want.


Enjoy


- Original Message - 
From: dimitryous r. [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE



Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX). 
Deplyoment is very easy.


I don't know how to pull out this version with a more recent one  5.0.20 
...


Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:


I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Administration

2007-04-17 Thread Martin Gainty

Ven

With tomcat 5.5 Admin Isnt installed by default anymore you will have to 
install manually
go to manager page and at bottom manually browse for catalina-admin.war and 
browse for the war file

webapps\catalina-admin.war
and deploy

Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Venkata Naveen [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 1:46 AM
Subject: Tomcat Administration




hi Hi iam unable to get the tomcat administration page. It is giving the
message like Tomcat's administration web application is no longer 
installed

by default. Download and install the admin package to use it.  where to
get the tomcat admin package, and how to install that admin into the 
tomcat

directory. please help me friends...







Thanks  regards Venkata Naveen
--
View this message in context: 
http://www.nabble.com/Tomcat-Administration-tf3588935.html#a10029555

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to Stop Tomcat

2007-04-17 Thread Martin Gainty

Tomi-

what happens when you change folder to %CATALINA_HOME\bin 
java -jar bootstrap.jar stop


!--now to verify tomcat has been stopped try
ps -ef | grep omcat

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Tomi N/A [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 11:02 AM
Subject: Re: Unable to Stop Tomcat



Tomcat is UNSTOPPABLE!

I-I-I'm sorry, I couldn't help myself... :)

Sorry for the distraction,
t.n.a.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat context

2007-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

José,

José Perdigão wrote:
 I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to
 use a context path different to the name of the war file?

Most people will suggest that you use the proper WAR file name for your
context and leave it at that.

An alternative is to specify a Context element in your server.xml file
and specify the name of the context as well as the location of the WAR
file. Note that in this case I think it's a big mistake to put the WAR
file into the server's webapps directory... you're better off putting
it somewhere else or things will act funny.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJOOB9CaO5/Lv0PARAqC7AJ0R3yTWejoMqeztvcC8lPSQi4JgrwCggZ+D
/+qkBthCq9fQEfiiNqVWo14=
=WxhQ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.23 and Multiple Content-Length Headers

2007-04-17 Thread Ori Fine
Hi,

 

In Tomcat 5.5.23 and above the following under security issue was
included (CVE-2005-2090):

 

Requests with multiple content-length headers should be rejected as
invalid. When multiple components (firewalls, caches, proxies and
Tomcat) process a sequence of requests where one or more requests
contain multiple content-length headers and several components do not
reject the request and make different decisions as to which
content-length leader to use an attacker can poision a web-cache,
perform an XSS attack and obtain senstive information from requests
other then their own. Tomcat now returns 400 for requests with multiple
content-length headers

 

It turns out that we have mobile clients that due to technical issue
send requests with multiple content-length headers. Is there a way that
we can turn off this feature in the tomcat in order for us to be bale to
upgrade our tomcat and still support old clients?

 

Thanks,

Ori Fine



Specific context.xml

2007-04-17 Thread jean-louis . mateo
Tomcat : 5.5.20

Hello,

is there any way to to declare a context.xml for one application
($CATALINA_HOME/webapps/MyAppli/META-INF) and not for each
($CATALINA_HOME/conf/context.xml).
If I declare it under .../conf -- it's OK but under MyAppli/META-INF --
it's KO !!!

Any idea ?
many thanks


Best Regards



Jean-Louis Matéo



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Faheem Mitha



On Tue, 17 Apr 2007, David Smith wrote:

Ahhh the joy of *nix operating systems.  Way back in the distant past of unix 
systems, someone decided it was a bad idea to allow any user on the system to 
bind to the well known low ports (1 - 1024) where officially sanctioned 
services (POP, SMTP, FTP, etc., ...) should be.  A great idea except it also 
required the services to be running as a privileged user to gain access. 
For a lot of reasons, services should run with the least privilege.


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon project 
at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if this 
will work with an SSL connection.  You can try it if you like.


My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing a 
privileged port.


I'm inclined to go for 1 too. Are there any drawbacks to this approach 
besides introducing another piece of software? Also, can anyone recommend 
a nice simple howto or somesuch?


Thanks for the super helpful advice.  Faheem.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat context

2007-04-17 Thread José Perdigão

Hi,
I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to 
use a context path different to the name of the

war file?
Thanks
--
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat with JBuilder: Basic authorization

2007-04-17 Thread [EMAIL PROTECTED]


 Hello !

 First of all : maybe you should consider giving exception traces in english
 ! Because you know, I doubt that a lot of people here can speak Italian.
 Yes, I know : your Tomcat and your JBuilder are in italian...




 If i compile the web application into a .war and deploy on a standalone
  tomcat, it just works, it asks me for user and pass of xx rule and let me
  access it. If i run from JBuilder i get error:
 
  org.apache.catalina.realm.JAASRealm authenticate
  GRAVE: Unexpected error
  java.lang.SecurityException: Impossibile trovare una configurazione di
  login


The sense is: Unable to find a login configuration.



 It looks that Tomcat is unable to find its configuration file. And I'm not
 surprised since the official doc (
 http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html)
 says that you must tweak your
 server.xml too. But maybe is it a JBuilder conf file ? I don't know, I'm
 using Eclipse.




I can edit the server.xml file, but don't knwo what to put in it, since the 
tutorial on how to config basic auth edits only web.xml file..




 If i remove from web.xml the following part:
 
security-constraint
  display-nameSecurity Constraint/display-name
  web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namexx/role-name
  /auth-constraint
/security-constraint
login-config
  auth-methodBASIC/auth-method
  realm-nameProtected Area/realm-name
/login-config
security-role
  role-namexx/role-name
/security-role
 
  then JBuilder will not throw the error.
  Probably it ignores the tomcat-users.xml file in /conf/ dir?



 No but since you  are removing the security constraint it  doesn't apply any
 more ! :-) This line : url-pattern/*/url-pattern means that you must be
 logged in in order to access any ( /* ) page of your webapp. Remove this
 and, in the opposite, you can freely browse through the app.



?? if i remove it there would be no sense to put a constraint, i guess.





 The strange thing is that if i remove auth part from web.xml, on JBuilder,
  when i run it, the user/pass form still shows, but i just ignore it or click
  cancel, and if i point with web browser to localhost:8080/xx i can access
  succesfully.



 See above. IMHO, the form still shows because it is the first page of your
 app. Which is a requirement of Tomcat, AFAIK.



Sorry, ignore this part, doesn't regard the problem i'm experiencing.




 I think i gave u all the information needed to find the problem. Hope u can
  get a solution for it, i can't figure how to solve from months :( Every time
  i have to add/remove the auth part from web.xml either i'm debugging or
  deploying: quite frustrating.
 
  Thanks in advance.
 


 HTH,

 Pierre Goupil


Thanks for the reply.



 --
 A celle qui se souvient de chaque parole prononcée,
 Du premier cri du bébé au serment du héros.
 Tu es mon témoin éternel.
 


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Faheem Mitha



On Tue, 17 Apr 2007, Paul Singleton wrote:


David Smith wrote:
Ahhh the joy of *nix operating systems.  Way back in the distant past of 
unix systems, someone decided it was a bad idea to allow any user on the 
system to bind to the well known low ports (1 - 1024) where officially 
sanctioned services (POP, SMTP, FTP, etc., ...) should be.  A great idea 
except it also required the services to be running as a privileged user to 
gain access.   For a lot of reasons, services should run with the least 
privilege.


This kludge was forgiveable on multi-user systems (anyone remember
them?) but makes things worse on secure servers; unfortunately you
seem to have to recompile the kernel to switch it off...


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon project 
at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if 
this will work with an SSL connection.  You can try it if you like.


It works as well for HTTPS as it does for HTTP (i.e. fine) but you may
nevertheless prefer to avoid configuring port redirection into iptables.

My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing a 
privileged port.


I opted for 2 (have used this in production a coupla years now) as
it doesn't involve any software you wouldn't have to use anyway (if
someone discovers a security vulnerability in jsvc tomorrow I shall
be smugly smiling) but realistically there's nothing in it and the
choice is yours...


I'm inclined to go for 1 if it is simpler. It sounds like it is simpler. 
However, I'm curious; do you know what kernel flag needs to be recompiled 
in order to switch this off?


 Faheem.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to Stop Tomcat

2007-04-17 Thread Tomi N/A

2007/4/17, Martin Gainty [EMAIL PROTECTED]:

Tomi-

what happens when you change folder to %CATALINA_HOME\bin
java -jar bootstrap.jar stop

!--now to verify tomcat has been stopped try
ps -ef | grep omcat


I'm sorry to have confused you Martin, but apparently you mistook my
would-be humoristic tomcat marketing pitch for an objection to
tomcat's functionality. For the record, I haven't had problems
stopping tomcat. Every once in a while it might object to beeing
started, but that's about it.

Cheers,
t.n.a.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: session by request prefer

2007-04-17 Thread Thomas Papke
The customer still visit the site e.g. www.test123.de - the session was 
started and the customer browser have a cookie jsessionid = 
abcd000.web1. Now the customer has an link like this: 
www.test123.de;jsessionid=d1234.web1 -- if the sessionid from the 
request is valid - tomcat should use this instead of the one from the 
cookie. Possible to configure?


Thanks a lot,
Thomas

Rashmi Rubdi schrieb:


On 4/17/07, Thomas Papke [EMAIL PROTECTED] wrote:


Hello their,

Is it possible to setup that the sessionid from request is prefered used
to the sessionid from the sessioncookie?



I'm trying to understand your question...

Do you mean, causing jsessionid to appear in the URL? instead of from
the browser cookie?


We are using a php portal calling a sessioninfo.jsp by request parameter
in background. In some situations the user jumps from the portal to the
tomcat application with the sessionid in request. But if the user still
have a sessioncookie from tomcat webapp alive, the session from request
is ignored. I want that the session from cookie is
removed/overridden/ignored an use the session from request.

Thanks a lot,

Thomas



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to Stop Tomcat

2007-04-17 Thread Tomi N/A

Tomcat is UNSTOPPABLE!

I-I-I'm sorry, I couldn't help myself... :)

Sorry for the distraction,
t.n.a.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Specific context.xml

2007-04-17 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: Specific context.xml
 
 is there any way to to declare a context.xml for one application
 ($CATALINA_HOME/webapps/MyAppli/META-INF) and not for each
 ($CATALINA_HOME/conf/context.xml).

Placing the context.xml file under META-INF is the preferred mechanism -
it works fine.  Note that if a conf/Catalina/[host]/[appname].xml file
exists, that overrides the context.xml in the application's META-INF
directory.

The conf/context.xml file is used only for specifying attributes that
are common to all web apps.

Check the doc for more details:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to Stop Tomcat

2007-04-17 Thread Johnny Kewl

Ha ha... and all kidding aside, its a wonderful product, (technology).
Mailing list is always full of issues, but if there was a way to measure 
red hot products, tomcat would be (is) right up there.

Guys are doing an A1 job on tomcat.

I wanted to say its unstoppable... and your problem is???  ;)

ok ok Tomi  I will go join a fan club...

- Original Message - 
From: Tomi N/A [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 5:02 PM
Subject: Re: Unable to Stop Tomcat



Tomcat is UNSTOPPABLE!

I-I-I'm sorry, I couldn't help myself... :)

Sorry for the distraction,
t.n.a.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Vista client problem

2007-04-17 Thread David Brown
I've been having the most peculiar issue on a website, (Ubuntu server, 
running apache 2.2 / libapache2-mod-jk / tomcat 5.5).


I initially thought the issue was to do with my servlet not sending 
proper response headers but it turns out its specific to Mod-JK,  the 
problem only occurs on a Vista workstation.


I have a specific JSP page which returns encrypted text data 
representing a certain configuration item for a user. 

When the I call the url which returns this page on Vista, from either 
I.E. Firefox or even Telnet!  -   The download starts then progressively 
slows down until it stops..  The downloads only around 40k but never 
finishes. 

If I try the same call to the URL from XP or Linux, firefox or I.E, it 
works fine.


When I bypass Apache  Mod-JK and call the url directly from tomcat, 
i.e. on port 8080, it works fine.

IF I call the URL via HTTPS, it works fine.

The problem only occurs when the request is being process through Mod-JK. 

Does anyone have any idea what could be causing the problem ?  I'm using 
a very straightforward Mod-JK setup.


my jk.conf is as follows..

IfModule !mod_jk.c
 LoadModule jk_module mod_jk.so
/IfModule

JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkShmFile /var/log/apache2/jk-runtime-status
JkLogLevel warn


and in workers.properties;
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=java-1.5.0-sun-1.5.0.08
 ps=/
 worker.list=shibboleth

 # Definition for local worker using AJP 1.3
 #
 worker.shibboleth.type=ajp13
 worker.shibboleth.host=localhost
 worker.shibboleth.port=8009



If anyone has any thoughts/hints of where I could look it wouldbe 
greatly appreciated..


Thanks,

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat context

2007-04-17 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat context
 
 An alternative is to specify a Context element in your 
 server.xml file and specify the name of the context as well
 as the location of the WAR file.

Gotta get you out of the 4.1 mindset, Chris :-)

Do NOT put Context elements in server.xml; any changes to them require
a restart of Tomcat.  Rather, put the Context element in
conf/Catalina/[host]/[appname].xml, where appname is the desired name of
the application - it need not match the name of the .war file.  Use a
docBase attribute for Context that points to the .war file, which MUST
be placed outside of the Host appBase directory - otherwise you will
get the application deployed twice, once under the desired name, once
under the .war name.

 - Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IDE

2007-04-17 Thread David Short
NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server version is
cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between them if
you want.

Enjoy


- Original Message -
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE


 Hello, NetBeans 5.5 at http://www.netbeans.org does it.
 But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX). 
 Deplyoment is very easy.

 I don't know how to pull out this version with a more recent one  5.0.20 
 ...

 Any ideas?

 TIA
 On 6 avr. 07, at 02:47, David Short wrote:

 I'm sure this question has been asked many times.  So, I apologize in
 advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
 compatible with Apache and Tomcat?

 Thanks in advance.

 Dave


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Vista client problem

2007-04-17 Thread Mladen Turk

David Brown wrote:
I've been having the most peculiar issue on a website, (Ubuntu server, 
running apache 2.2 / libapache2-mod-jk / tomcat 5.5).



The problem only occurs when the request is being process through Mod-JK.
Does anyone have any idea what could be causing the problem ?


Yes, Windows Vista ;)

Seriously, your question makes no sense.
You said the content is encrypted by your .jsp but it somehow
slows in any browser (you mentioned Firefox as well)
How about binary content, images for example, are they shown on
Vista clients? Are you setting mime type?

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat context

2007-04-17 Thread OConchubhair, Andoni
Hi,

What do you mean by 'context path'?

Basically, what you have is:

context path=last_bit_of_URL docBase=name_of_war_or_folder ...
!-- Other stuff if necessary! --
/context

-Original Message-
From: José Perdigão [mailto:[EMAIL PROTECTED] 
Sent: 17 April 2007 15:37
To: users@tomcat.apache.org
Subject: tomcat context

Hi,
I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to 
use a context path different to the name of the
war file?
Thanks
-- 
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Vista client problem

2007-04-17 Thread David Brown
Binary content / All other parts of the site work fine. 

This jsp contains nothing but garbled text , E.G. 
a$HHajshdashjk^SDAH*HAD
But thats fine, thats intended.  The problem is the transfer. I've tried 
different content-types, text/plain/ application, all with the same problem.


Whats actually happening behind the scenes it appears, is that there is 
an initial transfer of about 5 or 6k, then another of about 70 bytes, 
then 69 bytes, then 68 bytes and so on until it stops(but doesnt end).


Dave




Mladen Turk wrote:

David Brown wrote:
I've been having the most peculiar issue on a website, (Ubuntu 
server, running apache 2.2 / libapache2-mod-jk / tomcat 5.5).



The problem only occurs when the request is being process through 
Mod-JK.

Does anyone have any idea what could be causing the problem ?


Yes, Windows Vista ;)

Seriously, your question makes no sense.
You said the content is encrypted by your .jsp but it somehow
slows in any browser (you mentioned Firefox as well)
How about binary content, images for example, are they shown on
Vista clients? Are you setting mime type?

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat context

2007-04-17 Thread Caldarale, Charles R
 From: OConchubhair, Andoni [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat context
 
 context path=last_bit_of_URL 
 docBase=name_of_war_or_folder ...
   !-- Other stuff if necessary! --
 /context

Several problems with the above:

1) It's Context, not context - this is case sensitive.

2) The path attribute is ignored unless the Context element is in
server.xml, which is strongly discouraged for Tomcat 5 and above.

3) The docBase attribute is ignored unless the Context element is in
server.xml or in conf/Catalina/[host]/[appname].xml, and even then must
not be specified unless the webapp is placed outside of the Host
appBase directory.

 - Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat context

2007-04-17 Thread José Perdigão

OConchubhair, Andoni wrote:

Hi,

What do you mean by 'context path'?

Basically, what you have is:

context path=last_bit_of_URL docBase=name_of_war_or_folder ...
!-- Other stuff if necessary! --
/context

-Original Message-
From: José Perdigão [mailto:[EMAIL PROTECTED] 
Sent: 17 April 2007 15:37

To: users@tomcat.apache.org
Subject: tomcat context

Hi,
I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to 
use a context path different to the name of the

war file?
Thanks
  
I want to deploy war files where the context name is not the same as the 
original war file name, e.g. deploying potatoes.war and the context name 
is /banana instead of /potatoes.


--
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Faheem Mitha



On Tue, 17 Apr 2007, Faheem Mitha wrote:




On Tue, 17 Apr 2007, David Smith wrote:

Ahhh the joy of *nix operating systems.  Way back in the distant past of 
unix systems, someone decided it was a bad idea to allow any user on the 
system to bind to the well known low ports (1 - 1024) where officially 
sanctioned services (POP, SMTP, FTP, etc., ...) should be.  A great idea 
except it also required the services to be running as a privileged user to 
gain access. For a lot of reasons, services should run with the least 
privilege.


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon project 
at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if 
this will work with an SSL connection.  You can try it if you like.


My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing a 
privileged port.


I'm inclined to go for 1 too. Are there any drawbacks to this approach 
besides introducing another piece of software? Also, can anyone recommend a 
nice simple howto or somesuch?


I just discovered that the latest version of the tomcat 5.5 debian package 
in unstable (5.5.20-4) uses jsvc. So I happily installed it, only to 
discover that it is buggy, and does not appear to run correctly. The 
version 5.5.20-2 in etch works fine, but does not use jsvc. This is a 
major drag.


I don't feel competent to mess around with init scripts and so forth, so 
I'd much rather use the Debian package. Does anyone have a locally fixed 
version or have other suggestions about what to do?


  Faheem.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



The ChatServlet does not print anything.

2007-04-17 Thread Benjamin Larchevêque
Hi, I am trying to use the Comet feature in Tomcat 6. I think my APR connector 
is working since I reach successfully the event() method, but when I launch the 
ChatServlet the page remains the same for ages. Actually when I really reduce 
the code to something like:


public void event(CometEvent event) throws IOException, ServletException {
System.out.println(event.getEventType() =  + event.getEventType());
HttpServletResponse response = event.getHttpServletResponse() ;
PrintWriter writer = response.getWriter() ;
writer.println(htmlheadtitleJSP 
Chat/title/headbodytest/body/html) ;
writer.flush() ;
event.close() ;
}


In debug mode, the word 'test' is only printed in my web page when I pass the 
even.close() line... Is it normal? If it is, how can I loop to print anything 
after closing the event? More generally, how can I choose my event type such as 
READ, BEGIN, CLOSE...

If someone could tell me what I am missing here...

--
  Benjamin Larchevêque
  Ingénieur Etude  Développement
  
   Team Trade Paris
   43, rue Taitbout
   75009 Paris
   +33 6 1955 6012
   [EMAIL PROTECTED]

   http://www.linkedin.com/in/larcheveque

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat context

2007-04-17 Thread Johnny Kewl

I think the answer is you dont
Have a look at this thread

http://mail-archives.apache.org/mod_mbox/tomcat-users/200704.mbox/thread?2

== Multilevel context path problem ==
Date Tue, 10 Apr 2007



- Original Message - 
From: José Perdigão [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 4:36 PM
Subject: tomcat context



Hi,
I'm using Apache Tomcat Version 5.5.23 and I would how is it possible to 
use a context path different to the name of the

war file?
Thanks
--
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Vista client problem

2007-04-17 Thread Konstantin Breu
Have you tried to stop the firewall(s), virus scanners,... at the vista
client? You could do that and repeat your test. 

HTH

Cheers,
Konstantin


-Ursprüngliche Nachricht-
Von: David Brown [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. April 2007 18:47
An: Tomcat Users List
Betreff: Re: Vista client problem

Binary content / All other parts of the site work fine. 

This jsp contains nothing but garbled text , E.G. 
a$HHajshdashjk^SDAH*HAD
But thats fine, thats intended.  The problem is the transfer. I've tried 
different content-types, text/plain/ application, all with the same problem.

Whats actually happening behind the scenes it appears, is that there is 
an initial transfer of about 5 or 6k, then another of about 70 bytes, 
then 69 bytes, then 68 bytes and so on until it stops(but doesnt end).

Dave




Mladen Turk wrote:
 David Brown wrote:
 I've been having the most peculiar issue on a website, (Ubuntu 
 server, running apache 2.2 / libapache2-mod-jk / tomcat 5.5).


 The problem only occurs when the request is being process through 
 Mod-JK.
 Does anyone have any idea what could be causing the problem ?

 Yes, Windows Vista ;)

 Seriously, your question makes no sense.
 You said the content is encrypted by your .jsp but it somehow
 slows in any browser (you mentioned Firefox as well)
 How about binary content, images for example, are they shown on
 Vista clients? Are you setting mime type?

 Regards,
 Mladen.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Vista client problem

2007-04-17 Thread David Brown
Yeah tried all that,   but really that shouldnt make a difference, its 
something lower level.  As the request is over port 80, and it does start.



Konstantin Breu wrote:

Have you tried to stop the firewall(s), virus scanners,... at the vista
client? You could do that and repeat your test. 


HTH

Cheers,
Konstantin


-Ursprüngliche Nachricht-
Von: David Brown [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. April 2007 18:47

An: Tomcat Users List
Betreff: Re: Vista client problem

Binary content / All other parts of the site work fine. 

This jsp contains nothing but garbled text , E.G. 
a$HHajshdashjk^SDAH*HAD
But thats fine, thats intended.  The problem is the transfer. I've tried 
different content-types, text/plain/ application, all with the same problem.


Whats actually happening behind the scenes it appears, is that there is 
an initial transfer of about 5 or 6k, then another of about 70 bytes, 
then 69 bytes, then 68 bytes and so on until it stops(but doesnt end).


Dave




Mladen Turk wrote:
  

David Brown wrote:

I've been having the most peculiar issue on a website, (Ubuntu 
server, running apache 2.2 / libapache2-mod-jk / tomcat 5.5).



The problem only occurs when the request is being process through 
Mod-JK.

Does anyone have any idea what could be causing the problem ?
  

Yes, Windows Vista ;)

Seriously, your question makes no sense.
You said the content is encrypted by your .jsp but it somehow
slows in any browser (you mentioned Firefox as well)
How about binary content, images for example, are they shown on
Vista clients? Are you setting mime type?

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: running tomcat on a particular network interface and a particular port

2007-04-17 Thread Faheem Mitha



On Tue, 17 Apr 2007, Faheem Mitha wrote:


On Tue, 17 Apr 2007, Faheem Mitha wrote:



On Tue, 17 Apr 2007, David Smith wrote:

Ahhh the joy of *nix operating systems.  Way back in the distant past of 
unix systems, someone decided it was a bad idea to allow any user on the 
system to bind to the well known low ports (1 - 1024) where officially 
sanctioned services (POP, SMTP, FTP, etc., ...) should be.  A great idea 
except it also required the services to be running as a privileged user to 
gain access. For a lot of reasons, services should run with the least 
privilege.


A couple of the most common solutions to this problem are:

1. Start tomcat using jsvc.  You can get it from the commons-daemon 
project at http://jakarta.apache.org/commons/daemon


2. Run tomcat on a higher port like 8443 and attempt to use iptables to 
divert the traffic intended for 443 to tomcat.  I'm a bit dubious on if 
this will work with an SSL connection.  You can try it if you like.


My vote is for 1.  It's easy and tomcat can act as a well behaved, 
respectable service running with minimum privilege while still capturing a 
privileged port.


I'm inclined to go for 1 too. Are there any drawbacks to this approach 
besides introducing another piece of software? Also, can anyone recommend a 
nice simple howto or somesuch?


I just discovered that the latest version of the tomcat 5.5 debian package in 
unstable (5.5.20-4) uses jsvc. So I happily installed it, only to discover 
that it is buggy, and does not appear to run correctly. The version 5.5.20-2 
in etch works fine, but does not use jsvc. This is a major drag.


I don't feel competent to mess around with init scripts and so forth, so I'd 
much rather use the Debian package. Does anyone have a locally fixed version 
or have other suggestions about what to do?


I discovered a local fix (use cronolog) to 5.5.20-4 in Debian bug report 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402603


I just applied the diff that Adrian Bridgett supplied.

a) use cronolog and alter init.d (see attached diff)
Pro: simple
Con: end up with two logs

I don't really have a clear idea what is going on here, but tomcat is now 
working, and I can run on port 443. I did have to install cronolog, of 
course. Just thought I'd send this in here in case it was helpful for 
someone. Presumably the Debian package will be fixed eventually.


One question I do have is whether there are any restrictions using tomcat 
in this way (with jsvc). For example, I think the plan is to use tomcat 
with something called shibboleth. I'm just doing the installing here, not 
anything else.


Comments? Faheem.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread dimitryous r .

Hi there

Here is a partial list of my ports:

	 Open TCP Port: 	80			http://192.168.0.1/			Apache HTTPD 1.3.33 +  
php5 + MySQL

 ...
 Open TCP Port: 3306
jdbc:mysql://192.168.0.1:3306/javatest? +

user=the_userpassword=the_pswd

MySQL

 Open TCP Port: 3700???
 Open TCP Port: 3820???
 Open TCP Port: 3920???
	 Open TCP Port: 	4848		http://192.168.0.1:4848/	Sun Java™ System  
Application Server Admin Console

 Open TCP Port: 7676???
 Open TCP Port: 8009???
 Open TCP Port: 8080http://192.168.0.1:8080/
Apache Tomcat 5.5.20
 Open TCP Port: 8081http://192.168.0.1:8081/
Apache Tomcat 5.5.17
	 Open TCP Port: 	8181		https://192.168.0.1:8181/	idem for ssl  
connections

 Open TCP Port: 8686???

As you see, the Apache Tomcat 5.5.17 is useless as the first one is  
running at boot time.


? Is there a way to avoid to launch Apache Tomcat 5.5.17 when I  
launch NetBeans 5.5 ?


? Will try change some of the code within NetBeans ?

On 17 avr. 07, at 18:34, David Short wrote:


NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server  
version is

cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between  
them if

you want.

Enjoy


- Original Message -
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE



Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).
Deplyoment is very easy.

I don't know how to pull out this version with a more recent one   
5.0.20

...

Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:

I'm sure this question has been asked many times.  So, I  
apologize in

advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Re: Vista client problem

2007-04-17 Thread Gregor Schneider

Try FirwFox LiveHTTPHeaders-Extension and see what the Headers are saying

Cheers

Greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Vista client problem

2007-04-17 Thread David Brown

Can Mod-JK interfere with the headers ?

If it was a header issue, I think the problem would be there constantly, 
not just when the request has to go through mod-jk.


I'll have a look though, might give me a pointer

Gregor Schneider wrote:

Try FirwFox LiveHTTPHeaders-Extension and see what the Headers are saying

Cheers

Greg


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with Manager Embedded Web Application

2007-04-17 Thread risky57

probably not much help to you now, being nearly half a year later.


i had the same problem. manager section would not show anything.


found your post and started looking closer and closer to what i was doing.

you have to and the word manager to the tomcat-users.xml file.


the manager section only works if this has been set.


this file is located in the conf folder.



tomcat-users
user name=tomcat
password=tomcat
roles=tomcat, manager /
user name=role1 password=tomcat
roles=role1 /
user name=both password=tomcat
roles=tomcat,role1 /
/tomcat-users



hope this helps someone else.
-- 
View this message in context: 
http://www.nabble.com/Help-with-Manager-Embedded-Web-Application-tf2347728.html#a10044243
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to compile class for JSP

2007-04-17 Thread Gaurav Kushwaha

Hi,
I am getting Unable to compile class for JSP error in one of my JSPs
which was working perfectly until 2 days back. It says:

An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/Listing.jsp
String perspective = null;
  ^
   This jsp is being included in another JSP and that is the one i am
trying to access. The strange part is that I have Listing.jsp included in
few other JSPs as well but those are working fine.

Any help would be appreciated.

Thanks and Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com


Ph: +91-9880110695
Bangalore, India.


Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL ( Internet Explorer = FAILS / Firefox = WORKS ) ??

2007-04-17 Thread Ethan Akins
Browse the Web:
* Windows XP Home Edition Version 2002 Service Pack 2

Web Server:
* jakarta-tomcat5.0

When I try to access a test external URL via Firefox the page displays 
correctly, however when I try to view it with Internet Explorer 6.0 it shows 
the error below:


Cannot find server - Microsoft Internet Explorer


This page cannot be displayed

The page you are looking for is currently unavailable. The Web
site might be experiencing technical difficulities, or you may need
to adjust your browser settings. 


On the Windows machine I have went to:

Tools  Internet Options  Advanced 

UNCHECKED: 
Show Friendly HTTP error messages

CHECKED:  
Use SSL 2.0
Use SSL 3.0

Additional Notes: 'Use TLS 1.0' is unchecked and 'Use HTTP 1.1 through proxy 
connection' is also unchecked. Also, I have tried the URL on a few different 
windows machines and the result is exactly the same.

* No anti-virus software is installed on the Windows machine.
* I can browse other SSL related URL's, just not the one I am testing with... 
* The non secure test URL works just fine in Internet Explorer

Do you think this is related to:

Tomcat Setting?
or
Windows Setting ?

Any help  is greatly appreciated!

Thanks,

Ethan
---
[EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread Johnny Kewl

Sorry for delay... hell of a electric storm here...

You made me look again... ha ha
OK... you got the previous TOOLS-SERVER MANAGER-ADD SERVER story.
You can set up 10 tomcats if you want, just make sure each one as a unique 
server and shutdown port.


THEN just start a project, make a servlet etc.  If you right click, 
select

PROPERTIES RUN you will see you can run any of the tomcats.

Its actually amazing because when you debug... it use the NEW tomcat... you 
will be able to tell straight away because when you compile a servel, if it 
is in the new tomcat, it will dissapear because netbeans wants it to use the 
BUILD code.


These Netbean Tomcat dudes are flippin smart

Here is link for the linux guys
http://gentoo-wiki.com/HOWTO_Setup_Netbeans_and_Tomcat



- Original Message - 
From: David Short [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 6:34 PM
Subject: RE: IDE



NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server version is
cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between them if
you want.

Enjoy


- Original Message -
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE



Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).
Deplyoment is very easy.

I don't know how to pull out this version with a more recent one  5.0.20
...

Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:


I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to compile class for JSP

2007-04-17 Thread Johnny Kewl

Just include the libraries in the main JSP not in every included file
If u use Netbeans
Right click on the main JSP and compile it... it will show you the errors

have fun


- Original Message - 
From: Gaurav Kushwaha [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:36 PM
Subject: Unable to compile class for JSP



Hi,
I am getting Unable to compile class for JSP error in one of my JSPs
which was working perfectly until 2 days back. It says:

An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/Listing.jsp
String perspective = null;
  ^
   This jsp is being included in another JSP and that is the one i am
trying to access. The strange part is that I have Listing.jsp included in
few other JSPs as well but those are working fine.

Any help would be appreciated.

Thanks and Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com


Ph: +91-9880110695
Bangalore, India.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber

Thanks!

David Smith wrote:

Given that jsps are seen on the client as HTML files, yes -- all you 
want.  I would go further and say it's encouraged as the primary means 
of decorating your pages.


Just do something like this in your jsp to make sure the css is always 
found:


link rel=stylesheet type=text/css 
href=${pageContext.request.contextPath}/path/to/your.css /


The example above is using the el expression language so be sure your 
webapp's web.xml file is declared  with the servlet spec version 2.4 
schema.


--David

David Kerber wrote:

Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread Johnny Kewl

Repost had power failure...


Sorry for delay... hell of a electric storm here...

You made me look again... ha ha
OK... you got the previous TOOLS-SERVER MANAGER-ADD SERVER story.
You can set up 10 tomcats if you want, just make sure each one as a unique 
server and shutdown port.


THEN just start a project, make a servlet etc.  If you right click, 
select

PROPERTIES RUN you will see you can run any of the tomcats.

Its actually amazing because when you debug... it use the NEW tomcat... 
you will be able to tell straight away because when you compile a servel, 
if it is in the new tomcat, it will dissapear because netbeans wants it to 
use the BUILD code.


These Netbean Tomcat dudes are flippin smart

Here is link for the linux guys
http://gentoo-wiki.com/HOWTO_Setup_Netbeans_and_Tomcat



- Original Message - 
From: David Short [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 6:34 PM
Subject: RE: IDE



NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server version 
is

cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between them 
if

you want.

Enjoy


- Original Message -
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE



Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).
Deplyoment is very easy.

I don't know how to pull out this version with a more recent one  5.0.20
...

Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:


I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread Martin Gainty

David--

I would suggest incorporating style and or styleClass and errorStyle and or 
errorStyleClass attributes which derive from supplied CSS
If your thinking MVC (and Struts specifically) I would look at the Tag 
documentation available at

http://struts.apache.org/1.x/struts-taglib/tlddoc/html/file.html

HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Johnny Kewl [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 4:09 PM
Subject: Re: Cascading style sheets and tomcat



I've used css in JSP files no problem javascript also no problem


- Original Message - 
From: David Kerber [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:43 PM
Subject: Cascading style sheets and tomcat


Can I use .css files with .jsp's, particularly when they are being served 
up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread David Smith
True but if the css file is used throughout the site, it's fetched 
once using link ... / on the first page view.  Every page view after 
that will just check status, using the pre-cached one if it hasn't 
changed on the server.  Efficency comes when the resource is re-used for 
all the pages using a single skin.


--David

Johnny Kewl wrote:


Yes...

What you can also do is include your styles, before it goes to the 
browser, if say you have

styles for each page... ie not caching

eg:

style

%@ include file=/style.just_styles %

/style

now the browser will only do 1 trip to the server

.. u c  tomcat is very good ;)

- Original Message - From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 10:23 PM
Subject: Re: Cascading style sheets and tomcat


Given that jsps are seen on the client as HTML files, yes -- all you 
want. I would go further and say it's encouraged as the primary means 
of decorating your pages.


Just do something like this in your jsp to make sure the css is 
always found:


link rel=stylesheet type=text/css 
href=${pageContext.request.contextPath}/path/to/your.css /


The example above is using the el expression language so be sure your 
webapp's web.xml file is declared  with the servlet spec version 2.4 
schema.


--David

David Kerber wrote:

Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread David Smith
Given that jsps are seen on the client as HTML files, yes -- all you 
want.  I would go further and say it's encouraged as the primary means 
of decorating your pages.


Just do something like this in your jsp to make sure the css is always 
found:


link rel=stylesheet type=text/css 
href=${pageContext.request.contextPath}/path/to/your.css /


The example above is using the el expression language so be sure your 
webapp's web.xml file is declared  with the servlet spec version 2.4 schema.


--David

David Kerber wrote:

Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.9 connection stopped working and will not resume

2007-04-17 Thread Daniel Gresh

Rashmi Rubdi wrote:

On 4/16/07, Daniel Gresh [EMAIL PROTECTED] wrote:

Hi,

I was editing a JSP page. I saved the file, and refreshed the web page
at http://localhost:port/myapp/page.jsp. Apparently, this caused Tomcat
to shut down for some reason. I had this problem before, but I don't
remember how I solved it.


Try the settings mentioned under Preventing dB connection pool leaks
at 
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html 




Anyway when I had the problem previously I was
able to call startup.sh on the server to start it up again and tinker
with my jsp page. However, when I call startup.sh now, it seems to go
fine, but I'm getting a connection refused error in my browser. I can
call shutdown.sh fine as well after I call startup.sh, which is puzzling
to me.


Are there any specific and relevant error messages in Tomcat's log files?



Is there anything I can look at to help determine the source of this
problem? What could have gone wrong?


The Common Problems section:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Common%20Problems 


covers a few things to watch out.



Thanks,
Dan




-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hi,

I figured out what caused Tomcat to shut down; it had happened to me 
before. I had some:


System.exit(0);

calls in some of my .java files that I had forgotten to remove. I 
removed those calls, restarted Tomcat, and it seems to be working fine.


Thanks for the help,
Dan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL ( Internet Explorer = FAILS / Firefox = WORKS ) ??

2007-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ethan,

Ethan Akins wrote:
 When I try to access a test external URL via Firefox the page displays 
 correctly, however when I try to view it with Internet Explorer 6.0 it shows 
 the error below:
 
 
 Cannot find server - Microsoft Internet Explorer

[snip]

 Tools  Internet Options  Advanced 
 
 UNCHECKED: 
 Show Friendly HTTP error messages
 
 CHECKED:  
 Use SSL 2.0
 Use SSL 3.0

You should disable SSL 2.0. My understanding is that it was always
broken and pretty much never used.

 Additional Notes: 'Use TLS 1.0' is unchecked and 'Use HTTP 1.1 through proxy 
 connection' is also unchecked. Also, I have tried the URL on a few different 
 windows machines and the result is exactly the same.

I thought that TLS 1.0 ~= SSL 3.0, but they may be different enough that
they are considered separate. I would enable TLS 1.0.

 Do you think this is related to:
 
 Tomcat Setting?

Perhaps. How is Tomcat doing SSL? Have you set up certain ciphers that
it is allowed to use? I do SSL through Apache httpd (instead of Tomcat)
but there's a place where you can specify the ciphers that you are
allowed to use. If you are using a cipher on the server that isn't
supported by the client, then you won't be able to make a connection.

Since MSIE and Firefox have different capabilities as far as encryption
goes, it's possible that you have set your server to too-high an
encryption grade than MSIE is configured to accept.

 or
 Windows Setting ?

Perhaps. See above.

I hope that helps,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJS169CaO5/Lv0PARAk1IAJ4jAizkHXjyknAjjTmX2JYkwSbUMACePcKs
sOvr3iEgsGkCXRmWG8Q9utQ=
=BGVQ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread Johnny Kewl

Yes...

What you can also do is include your styles, before it goes to the browser, 
if say you have

styles for each page... ie not caching

eg:

style

%@ include file=/style.just_styles %

/style

now the browser will only do 1 trip to the server

.. u c  tomcat is very good ;)

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 10:23 PM
Subject: Re: Cascading style sheets and tomcat


Given that jsps are seen on the client as HTML files, yes -- all you want. 
I would go further and say it's encouraged as the primary means of 
decorating your pages.


Just do something like this in your jsp to make sure the css is always 
found:


link rel=stylesheet type=text/css 
href=${pageContext.request.contextPath}/path/to/your.css /


The example above is using the el expression language so be sure your 
webapp's web.xml file is declared  with the servlet spec version 2.4 
schema.


--David

David Kerber wrote:

Can I use .css files with .jsp's, particularly when they are being served 
up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to compile class for JSP

2007-04-17 Thread Gaurav Kushwaha

I am using Idea. Even that has an option to compile the jsps though. I will
try that. What exactly do you mean by including libraries ? Are you
referring to class imports ?
Thanks,
Gaurav Singh Kushwaha
http://www.chakpak.com


On 4/18/07, Johnny Kewl [EMAIL PROTECTED] wrote:


Just include the libraries in the main JSP not in every included
file
If u use Netbeans
Right click on the main JSP and compile it... it will show you the errors

have fun


- Original Message -
From: Gaurav Kushwaha [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:36 PM
Subject: Unable to compile class for JSP


 Hi,
 I am getting Unable to compile class for JSP error in one of my
JSPs
 which was working perfectly until 2 days back. It says:

 An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/Listing.jsp
 String perspective = null;
   ^
This jsp is being included in another JSP and that is the one i am
 trying to access. The strange part is that I have Listing.jsp included
in
 few other JSPs as well but those are working fine.

 Any help would be appreciated.

 Thanks and Regards,
 Gaurav Singh Kushwaha
 http://www.chakpak.com


 Ph: +91-9880110695
 Bangalore, India.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ph: +91-9880110695
Bangalore, India.


Re: IDE

2007-04-17 Thread dimitryous r.

Hi,
Thanks you for your reply.
If I'm reading you correctly, my approach is useless.
Its actually amazing because when you debug... it use the NEW  
tomcat... you will be able to tell straight away because when you  
compile a servel, if it is in the new tomcat, it will dissapear  
because netbeans wants it to use the BUILD code.


NetBeans, just for fun??? Don't want to install 10 Tomcat servers. If  
the build-in can't afford new versions from beginning to end then the  
functionality is useless. So become NetBeans.
Had a look to your URL: great. Have to do the same for my MacOSX  
10.4.9 i386 platform then. Unix is not Linux - unfortunately -.

If I ever succeed, wil keep you informed.
My tool is Xcode but it is not an IDE as NetBeans is.
I'm positive telling you somebody did the correct swap from build-in  
5.0.17 to 5.0.20 or even 6.x.x, but it is not just a copy/paste action.

These Netbean Tomcat dudes are flippin smart
Is NetBeans.org a subsidiary of Sun or an independent organization  
like Apache.org?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Trouble with APR and Tomcat 5.5.15

2007-04-17 Thread Jarrod Cuzens
Hi All,

 

  We are currently experimenting with APR and libtcnative on our
machines. We have a machine in test that we configured and things when
quite smoothly (although it was RHEL4 and the production box we are
testing is CentOS). When we start tomcat and include all the relevant
library paths in the java.library.path we can see APR attempt to load
but it continually fails and reports that the socket was already in use.
When we remove the java.library.path (effectively turning off APR) we
restart and the server starts correctly with no complaints. We can
readily switch between the two configs and always get the same behavior.
I tried upgrading the Tomcat Native to the one from Tomcat 5.5.23 but
this has made no difference. I also tried running the server as root to
determine if this could have any impact but it did not make any
difference. I have included some relevant information below. Any help
you can give would be greatly appreciated.

 

Thanks,

Jarrod

 

+--+

Tomcat 5.5.15

APR 1.2.8

Tomcat Native 1.1.6

 

Linux version 2.6.9-42.0.3.ELsmp ([EMAIL PROTECTED])
(gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Oct 6 06:28:26
CDT 2006

 

ldd libtcnative-1.so

libapr-1.so.0 = /usr/local/apr/lib/libapr-1.so.0
(0x002a95678000)

librt.so.1 = /lib64/tls/librt.so.1 (0x002a957a8000)

libcrypt.so.1 = /lib64/libcrypt.so.1 (0x002a958c2000)

libpthread.so.0 = /lib64/tls/libpthread.so.0
(0x002a959f7000)

libdl.so.2 = /lib64/libdl.so.2 (0x002a95b0c000)

libssl.so.4 = /lib64/libssl.so.4 (0x002a95c0f000)

libcrypto.so.4 = /lib64/libcrypto.so.4 (0x002a95d4c000)

libc.so.6 = /lib64/tls/libc.so.6 (0x002a95f7c000)

/lib64/ld-linux-x86-64.so.2 (0x00552000)

libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2
(0x002a961b)

libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x002a962c7000)

libcom_err.so.2 = /lib64/libcom_err.so.2 (0x002a96438000)

libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3
(0x002a9653a000)

libresolv.so.2 = /lib64/libresolv.so.2 (0x002a9665e000)

libz.so.1 = /usr/lib64/libz.so.1 (0x002a96773000)

 

server.xml:

Connector port=8080 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false redirectPort=8443
acceptCount=100

   connectionTimeout=2 disableUploadTimeout=false
unpackWARs=false

   compression=off compressionMinSize=2048

   compressableMimeType=text/html

/

 

Connector port=8443 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false connectionTimeout=2
disableUploadTimeout=false

   acceptCount=100 scheme=https secure=true

 

SSLEngine=on

SSLCertificateFile=##

SSLCertificateKeyFile=##

SSLPassword=##

 

   clientAuth=false sslProtocol=TLS

keystoreFile=## keystorePass=##

keystoreType=PKCS12/

 

 

catalina.log

Apr 17, 2007 1:28:48 PM org.apache.coyote.http11.Http11AprProtocol init

SEVERE: Error initializing endpoint

java.lang.Exception: Socket bind failed: Address already in use

at
org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:544)

at
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:1
15)

at
org.apache.catalina.connector.Connector.initialize(Connector.java:1016)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:580)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7
82)

at org.apache.catalina.startup.Catalina.load(Catalina.java:503)

at org.apache.catalina.startup.Catalina.load(Catalina.java:523)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Apr 17, 2007 1:28:48 PM org.apache.catalina.startup.Catalina load

SEVERE: Catalina.start

LifecycleException:  Protocol handler initialization failed:
java.lang.Exception: Socket bind failed: Address already in use

at
org.apache.catalina.connector.Connector.initialize(Connector.java:1018)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:580)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7
82)

at 

Error Msg: Cannot find information on property

2007-04-17 Thread Tom Tumelty

I am running Tomcat 5.5.17, Sun JDK 1.5.0_09, Slackware 11. When I execute
AddChain.jsp  FormBean.class is called and the following error message
occurs. I have been googling for answers to this error and not found what is
needed to fix my error.

org.apache.jasper.JasperException: Cannot find any information on property
'ChainName' in a bean of type 'com.bean.chain.FormBean'

In the catalina log files shows the message :  Apr 17, 2007 2:31:02 AM
org.apache.catalina.loader.WebappClassLoader modified Resource
'/WEB-INF/classes/com/bean/chain/FormBean.class' is missing

but FormBean.class is in /WEB-INF/classes/com/bean/chain/  directory.



What am I missing ?



Thanks In Advance,
Tom




--
AddChain.jsp
--

jsp:useBean id=FormBean  class=com.bean.chain.FormBean/
jsp:setProperty name=FormBean property=*/


HTML
HEAD
TITLE Add Chain /TITLE
/HEAD
BODY BGCOLOR=#cc
% if (request.getParameter(ChainName)==null 
  request.getParameter(Address1)==null 
  request.getParameter(Address2)==null 
   request.getParameter(City)==null 
   request.getParameter(State)==null 
   request.getParameter(ZIPCode)==null 
   request.getParameter(PhoneNumber)==null )
{ %

FORM METHOD=GET ACTION=../gift/AddChain.jsp


P
Chain Name: input type=text name=
ChainName size=50
P
Address1 : input type=text name=
Address1 size=50
P
Address2 : input type=text name=
Address2 size=50
P
City : input type=text name=
City size=50
P
State : input type=text name=
State size=2
P
ZIP Code : input type=text name=
ZIPCode size=9
P
Phone Number : input type=text name=
PhoneNumber size=10


P
input type=submit value=Process
/FORM

% } else { %
P
BProvided Information/B:
P
BChain Name/B: jsp:getProperty name=
FormBean property=ChainName /
P
BAddress 1/B: jsp:getProperty
name=FormBean property=Address1/
P
BAddress 2/B: jsp:getProperty
name=FormBean property=Address2/
P
BCity/B: jsp:getProperty
name=FormBean property=City/
P
BState/B: jsp:getProperty
name=FormBean property=State/
P
BZIP Code/B: jsp:getProperty
name=FormBean property=ZIPCode/
P
BPhone Number/B: jsp:getProperty
name=FormBean property=PhoneNumber/



% } %
/BODY
/HTML



--
FormBean.java
--

package com.bean.chain;
import java.io.*;

public class FormBean implements Serializable {
 private String ChainName=null;
 private String Address1=null;
 private String Address2=null;
 private String City=null;
 private String State=null;
 private String ZIPCode=null;
 private String PhoneNumber=null;


 public FormBean() {}

 public void setChainName(String ChainName) {
  this.ChainName = ChainName;
 }
 public String getChainName() {
  return ChainName;
 }
 public void setAddress1(String Address1) {
  this.Address1 = Address1;
 }
 public String getAddress1() {
  return Address1;
 }
public void setAddress2(String Address2) {
  this.Address2 = Address2;
 }
 public String getAddress2() {
  return Address2;
 }
public void setCity(String City) {
  this.City = City;
 }
 public String getCity() {
  return City;
 }
public void setState(String State) {
  this.State = State;
 }
 public String getState() {
  return State;
 }
public void setZipCode(String ZIPCode) {
  this.ZIPCode = ZIPCode;
 }
 public String getZIPCode() {
  return ZIPCode;
 }
public void setPhoneNumber(String PhoneNumber) {
  this.PhoneNumber = PhoneNumber;
 }
 public String getPhoneNumber() {
  return PhoneNumber;
 }

} // end FormBean


Re: Cascading style sheets and tomcat

2007-04-17 Thread Johnny Kewl

Yes... that why I said. styles for each page... ie not caching
But ok... if common styles used you right... but script is less likely to be 
all common so can use that trick anyway tomcat is cool ;)


- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 11:15 PM
Subject: Re: Cascading style sheets and tomcat


True but if the css file is used throughout the site, it's fetched 
once using link ... / on the first page view.  Every page view after 
that will just check status, using the pre-cached one if it hasn't changed 
on the server.  Efficency comes when the resource is re-used for all the 
pages using a single skin.


--David

Johnny Kewl wrote:


Yes...

What you can also do is include your styles, before it goes to the 
browser, if say you have

styles for each page... ie not caching

eg:

style

%@ include file=/style.just_styles %

/style

now the browser will only do 1 trip to the server

.. u c  tomcat is very good ;)

- Original Message - From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 10:23 PM
Subject: Re: Cascading style sheets and tomcat


Given that jsps are seen on the client as HTML files, yes -- all you 
want. I would go further and say it's encouraged as the primary means of 
decorating your pages.


Just do something like this in your jsp to make sure the css is always 
found:


link rel=stylesheet type=text/css 
href=${pageContext.request.contextPath}/path/to/your.css /


The example above is using the el expression language so be sure your 
webapp's web.xml file is declared  with the servlet spec version 2.4 
schema.


--David

David Kerber wrote:

Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting a project deployed

2007-04-17 Thread John Calsbeek

I'm trying to manually deploy a JSP website that I didn't make on a
web server that I didn't set up, so I'm kind of in strange territory
here (first time using Tomcat). Here's what I have/know:

Linux webserver using Apache 2 and Tomcat 5, mod_jk. Tomcat is
working—the default base URL of /jsp-examples is working. I can give
sections of the config web.xml and server.xml files if needed.

I've got a website located at tomcat5/base/webapps/jmarks. I believe
it was created with NetBeans 5. It's a royal hodgepodge of *.html,
*.jsp, JavaScript/CSS/images/etc., with a WEB-INF and META-INF folder.
WEB-INF contains classes and libs folders, fully loaded, and a web.xml
file. META-INF has a context.xml file. All files have identical
permissions, owner, and group to the jsp-examples. Here is the
WEB-INF/web.xml file. I added the servlet and servlet-mapping tags
to what NetBeans generated.

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
   session-config
   session-timeout
   30
   /session-timeout
   /session-config
   welcome-file-list
   welcome-file
   index.jsp
   /welcome-file
   /welcome-file-list

   servlet
   servlet-nameDoverWebsite/servlet-name
   servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
   /servlet

   servlet-mapping
   servlet-nameDoverWebsite/servlet-name
   url-pattern*.jsp/url-pattern
   /servlet-mapping
/web-app

This folder is aliased to /path/to/jmarks in Apache's configuration,
in the jk.conf file (as per /jsp-examples). It also includes a
'JkMount /path/to/jmarks/*.jsp ajp13' line. This partially works—I can
read any of the *.html pages. However, trying any of the *.jsp files
gives me this error in the browser:

HTTP Status 404 - /path/to/jmarks/index.jsp

type: Status report

message: /path/to/jmarks/index.jsp

description: The requested resource (/path/to/jmarks/index.jsp) is not
available.

Apache Tomcat/5.0

I'm not sure where to go to get more information on the exact error.
The Tomcat log I found
(tomcat5/base/logs/localhost_log.2007-04-17.txt) shows this at the
last restart of the Tomcat daemon:

2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@b05acd')
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1989b5')
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@a00185')
2007-04-17 12:00:12
StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1328c7a')
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1a4ded3')
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@121177e')
2007-04-17 12:00:12 StandardContext[/jsp-examples]SessionListener:
contextDestroyed()
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
contextDestroyed()
2007-04-17 12:00:33 StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2007-04-17 12:00:33 StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2007-04-17 12:00:34
StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2007-04-17 12:00:34
StandardContext[/servlets-examples]SessionListener:
contextInitialized()

Doesn't show my application anywhere on startup, only the example
applications. start.log, stop.log, and mod_jk.log don't appear to be
any help.

Does anyone have any suggestions as to what I can do to figure out the
problem from here? I've seen references to a webapp manager JSP
application, but I haven't had any success in finding it on this web
server.

Sorry if this kind of thing comes up a lot—I appreciate any help!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat with JBuilder: Basic authorization

2007-04-17 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 If i compile the web application into a .war and deploy on a standalone
 tomcat, it just works, it asks me for user and pass of xx rule and let me
 access it. If i run from JBuilder i get error:

 org.apache.catalina.realm.JAASRealm authenticate
 GRAVE: Unexpected error
 java.lang.SecurityException: Impossibile trovare una configurazione di
 login
 
 The sense is: Unable to find a login configuration.

The key part here is that Tomcat is configured to use the JAASRealm. I
don't use JBuilder so I don't know where this is set.

When you do find the relevant server.xml, change the realm definition
to the following (taken from the default server.xml)

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

This will use the tomcat-users.xml file.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.23 and Multiple Content-Length Headers

2007-04-17 Thread Mark Thomas
Ori Fine wrote:
 In Tomcat 5.5.23 and above the following under security issue was
 included (CVE-2005-2090):
 
 It turns out that we have mobile clients that due to technical issue
 send requests with multiple content-length headers. Is there a way that
 we can turn off this feature in the tomcat in order for us to be bale to
 upgrade our tomcat and still support old clients?

If there is any proxy, cache, web server or similar between Tomcat and
your clients you will have a significant security risk unless you have
full control of all of these elements and can confirm they all handle
multiple content-length in exactly the same way.

There is no option to enable support for multiple content-length
headers, nor will one be added.

Your options are:
- use 5.5.22 and don't upgrade beyond this point until your technical
issue is fixed
- build your own custom version from svn and exclude the patch for
this issue
(http://svn.apache.org/viewvc/tomcat/connectors/trunk/coyote/src/java/org/apache/coyote/Request.java?view=diffr1=513078r2=513079pathrev=513079)

HTH,

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Host-based access to web applications

2007-04-17 Thread Mark Thomas
Tim Booth wrote:
allow=127.0.0.1,192.171.160.155,192.171.160.186 deny=/

The allow and deny fields take regular expressions. '.' is reserved
and needs to escaped. Take a look at the java.util.regex javadoc

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classloader leak

2007-04-17 Thread Mark Thomas
Gross, Keith wrote:
 Is there some way to prevent this?

It could be application error or it could be a Tomcat bug. Can you
create a simple war that demonstrates the issue I can use for debugging?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2007-04-17 Thread Johnny Kewl


 nice to know they cant take it back haha

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, April 18, 2007 12:34 AM
Subject: RE: IDE


From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
Subject: Re: IDE


If I'm not mistaken Both Tomcat and Netbeans are sponsored by Sun


No longer true for Tomcat.  These days, Tomcat is completely independent
of Sun, since Sun is producing its own app server (Sun Java System Web
Server, formerly known as Sun ONE).

- Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat5 and Linux-HA

2007-04-17 Thread Tim Finley
Is it possible to configure Tomcat5 in a Linux cluster (Linux-HA (Heartbeat 2). 
 I want to configure it on SLES10.  I have already checked the Tomcat FAQ at 
Tomcat.apache.org, the How to at that location, Googling it returns nothing on 
the subject.  If a config/setup doc exists I cannot find it.
 
Tim Finley
Novell IT Services
Novell Inc.
[EMAIL PROTECTED] 
Phone #801-861-8106


Re: IDE

2007-04-17 Thread Rashmi Rubdi

On 4/17/07, David Short [EMAIL PROTECTED] wrote:

NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?



Like most products/technologies NetBeans has it's own mailing list:
http://www.netbeans.org/community/lists/

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classloader leak

2007-04-17 Thread Gaurav Kushwaha

Isn't it a known problem that if you redeply a webapp using tomcat admin
tool, the older class definitions are not dumped from the memory hence
causing the memory leak ?? I dont remember but I read it somewhere.
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.

On 4/18/07, Mark Thomas [EMAIL PROTECTED] wrote:


Gross, Keith wrote:
 Is there some way to prevent this?

It could be application error or it could be a Tomcat bug. Can you
create a simple war that demonstrates the issue I can use for debugging?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat5 and Linux-HA

2007-04-17 Thread Martin Gainty

http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html

If implementing on Intel processor I would read
http://www.developers.net/intelisnshowcase/view/390

Has anyone implemented SUSE clustering?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Tim Finley [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 7:21 PM
Subject: Tomcat5 and Linux-HA


Is it possible to configure Tomcat5 in a Linux cluster (Linux-HA (Heartbeat 
2).  I want to configure it on SLES10.  I have already checked the Tomcat 
FAQ at Tomcat.apache.org, the How to at that location, Googling it returns 
nothing on the subject.  If a config/setup doc exists I cannot find it.


Tim Finley
Novell IT Services
Novell Inc.
[EMAIL PROTECTED]
Phone #801-861-8106


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
I guess I'm glad I don't use any of that stuff, then ;-D  I only have 
two different styles in my app:  data-entry pages and report pages, so 
simple css will probably do just fine.


Thanks!

Johnny Kewl wrote:


Hey... u going to confuse David... ;)
Yes David Tomcat is one fancy machine and it also supports tag 
libs.


These things are like html tags... just well formed xml.

Struts, Spring and Sun (tomcat frameworks) all have tag libs for just 
about everything...


So for example... one can (simplified) type

html:form blah blah

and tomcat will stick all the HTML that you would have to write for a 
form into your page for you..


and thats wot martin is showing you that you can also associate 
styles with these fancy things... and if there are errors you can even 
associate styles with that.


BUT without the frameworks tomcat is very much plain old HTML...
so you can use it either way

In the new netbeans you can see where the whole tag thing is going 
in there you will find a visual web designer it feels like you 
using swing... just drag and drop, set properties, write a little 
event code etc
If you look at the HTML (JSP) page it makes... its one complex 
combination of tag libs, script, CSS and everything else you can think 
of.


Thing that is really important to understand is that all these 
frameworks are in competition with each other
Struts competes with Spring who competes with Jboss who competes with 
Suns EJB servers its chaos.
Now Java Server Faces is suns latest an greatest and you'll see its 
used in the Visual designer... and if I'm correct they seem to have 
left out struts... now I wonder why ;)
EJB3 some say has stolen good ideas from Spring Resin have taken 
tomcat and reinvented protocols to make EJB better...

It gives me a huge head-ache!...

So... dont use any framework blindly I always try and imagine who 
is going to win, and its not always who is the best technology right now.


One thing is for sure Basic Tomcat is a winner. after that, 
your guess is as good as mine.


I still like doing it the hard way... HTML, CSS, and a little JSP... 
now and then a little XML

and I steal like crazy from the frameworks ha ha.

 u c Tomcat is very very good ;)


- Original Message - From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 10:51 PM
Subject: Re: Cascading style sheets and tomcat



David--

I would suggest incorporating style and or styleClass and errorStyle 
and or errorStyleClass attributes which derive from supplied CSS
If your thinking MVC (and Struts specifically) I would look at the 
Tag documentation available at

http://struts.apache.org/1.x/struts-taglib/tlddoc/html/file.html

HTH
Martin--
This email message and any files transmitted with it contain 
confidential
information intended only for the person(s) to whom this email 
message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 4:09 PM
Subject: Re: Cascading style sheets and tomcat


I've used css in JSP files no problem javascript also no 
problem



- Original Message - From: David Kerber 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:43 PM
Subject: Cascading style sheets and tomcat


Can I use .css files with .jsp's, particularly when they are being 
served up by Tomcat 5.5?  Or do they only work with static html files?


TIA!
Dave




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat with JBuilder: Basic authorization

2007-04-17 Thread [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  If i compile the web application into a .war and deploy on a standalone
  tomcat, it just works, it asks me for user and pass of xx rule and let me
  access it. If i run from JBuilder i get error:
 
  org.apache.catalina.realm.JAASRealm authenticate
  GRAVE: Unexpected error
  java.lang.SecurityException: Impossibile trovare una configurazione di
  login
 
  The sense is: Unable to find a login configuration.

 The key part here is that Tomcat is configured to use the JAASRealm. I
 don't use JBuilder so I don't know where this is set.

 When you do find the relevant server.xml, change the realm definition
 to the following (taken from the default server.xml)

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

 This will use the tomcat-users.xml file.

 Mark



Really thanks. i fixed editing the server.xml file that jbuilder generate when 
webapp is started in its path, adding the lines:

GlobalNamingResources
  Environment name=simpleValue type=java.lang.Integer value=30 /
  Resource name=UserDatabase auth=Container 
type=org.apache.catalina.UserDatabase description=User database that can be 
updated and saved 
factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

between Server and Service nodes, and:

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

between Engine and Host nodes.

Thanks for the help.



--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Msg: Cannot find information on property

2007-04-17 Thread Rashmi Rubdi

Hi Tom,

You're getting this error:


org.apache.jasper.JasperException: Cannot find any information on property
'ChainName' in a bean of type 'com.bean.chain.FormBean'


because the FormBean isn't strictly following the JavaBeans notation.

The jsp:useBean, jsp:getProperty and jsp:setProperty tags locate and
use the JavaBean through introspection and the introspection process
requires a JavaBean to be a JavaBean. An error like the above occurs
when a Java Class isn't a  proper JavaBean.

In order to make FormBean a follow the JavaBean notation (and
generally Java naming convention), the property names should be in
camelCase and should not begin with an upper case letter. So make the
following changes in the FormBean:

private String chainName;
private String address1;
private String address2;
private String city;
private String state;
private String zipCode;
private String phoneNumber;

Also change the above property names referenced in the getters and
setters of the bean and also in the corresponding jsp:getProperty.

Re-compile the bean , and re-load the JSP page , you should no longer
get the error message.

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Msg: Cannot find information on property

2007-04-17 Thread Rashmi Rubdi

On a side note, since the above error is not directly related to
Tomcat and is a JavaBean related error, I think the Java Forums would
be more appropriate.

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a project deployed

2007-04-17 Thread Rashmi Rubdi

On 4/17/07, John Calsbeek [EMAIL PROTECTED] wrote:

I'm trying to manually deploy a JSP website that I didn't make on a
web server that I didn't set up, so I'm kind of in strange territory
here (first time using Tomcat).


If I was in this situation, I would first try to run a webapp with a JSP on a
standalone Tomcat (independent of any IDEs) and without mod_jk.

The simple setup eliminates a lot of confusion :-)



Does anyone have any suggestions as to what I can do to figure out the
problem from here? I've seen references to a webapp manager JSP
application, but I haven't had any success in finding it on this web
server.

Sorry if this kind of thing comes up a lot—I appreciate any help!



-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a project deployed

2007-04-17 Thread John Calsbeek

If I was in this situation, I would first try to run a webapp with a JSP on a
standalone Tomcat (independent of any IDEs) and without mod_jk.

The simple setup eliminates a lot of confusion :-)


I've never done this before. I haven't the first idea how to go about that. :)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a project deployed

2007-04-17 Thread Rashmi Rubdi

It is very simple to set-up, you just need to install the most recent
compatible JDK (you probably have this already)

then get the tar.gz file for the version of your choice from here:
http://tomcat.apache.org/

Set the JAVA_HOME the environment variable, it point's to JDK
installation's root folder.

I haven't installed anything on Linux, but on Windows XP I know that
if the zip download is unzipped to a particular directory, tomcat can
be started with startup.bat and stopped with shutdown.bat

In Linux, similarly I think you should be able to do the same with
startup.sh and shutdown.sh

After Tomcat is unzipped to a folder, set the CATALINA_HOME
environment variable to Tomcat installation's root folder.

That's it, you can then start Tomcat with startup.sh and access it at
http://localhost:8080/ by default, and remember to shut it down with
shutdown.sh and not CtrlC

Then, to see a simple JSP application, create a new folder under
Tomcat's webapps folder.
Put a JSP file with any text there. You can then access the JSP at
http://localhost:8080/SomeFolder/somefile.jsp , in this case
SomeFolder is known as the application's context.

Anything in the ROOT context appears immediately after the slash here:
http://localhost:8080/

The above covers the basics then, you can configure a Context XML file
for your app and set other advanced configuration --- most of it is
covered in the configuration docs but ask us if you have questions.

-Rashmi



On 4/18/07, John Calsbeek [EMAIL PROTECTED] wrote:

 If I was in this situation, I would first try to run a webapp with a JSP on a
 standalone Tomcat (independent of any IDEs) and without mod_jk.

 The simple setup eliminates a lot of confusion :-)

I've never done this before. I haven't the first idea how to go about that. :)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]