Re: OT: a good jmx browser?

2011-03-14 Thread Antonio Petrelli
2011/3/14 Leon Rosenberg rosenberg.l...@gmail.com:
 sorry for the off-topic-ness, but what jmx browser are you guys using if any.
 By jmx browser i mean something with a GUI where I can enter my
 server's adress and click through the tree of available values.

Take a look at JMiniX:
http://code.google.com/p/jminix/

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Spam

2010-11-20 Thread Antonio Petrelli
2010/11/20 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: Brian [mailto:bbprefix-m...@yahoo.com]
 Subject: Spam

 Since I enrolled in this list, I started to receive spam.

 If you've never gotten spam before, you must be nearly unique.

 Since the mailing list messages are archived in numerous public locations, 
 it's pretty much impossible to prevent the unscrupulous from harvesting 
 members' e-mail addresses.

Charles
the problem might be exactly the mail archive, take a look at this sample:
http://mail-archives.apache.org/mod_mbox/tomcat-users/201011.mbox/browser
Addresses, present in original message part (and similar) are not
anonymized. AFAIK other services, like Mail Archive, markmail, etc.
anonymize those.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Spam

2010-11-20 Thread Antonio Petrelli
2010/11/20 Antonio Petrelli antonio.petre...@gmail.com:
 the problem might be exactly the mail archive

I meant the Apache mail archive not mail-archive.com

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can we use Tomcat web server?

2010-10-26 Thread Antonio Petrelli
2010/10/26 Chandra Shekar Bairi chandra.ba...@gmail.com:
 Hi Borut,
 Nothing though. But my company is not sure if we can use this for
 free. They are assuming that we should purchase the tomcat web server.
 Hence I want to get this clarified.

heh, there are still people thinking that really free software cannot exist :-D
The only thing you can't do with Tomcat is modifying it (or simply
repackaging it) and not saying that the product is based on Tomcat.
Anyway, if you want to make a *donation* to Apache, I guess it's a
great thing to do, just a way to say thank you to all developers
around the world developing this masterpiece.

Ciao
Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Hi guys ... What is Translation time and request time.

2010-09-15 Thread Antonio Petrelli
2010/9/15 Pankaj D pankaj66...@gmail.com:
 What are these is JSP ...?

 Translation time : is it the Time of translation or Time required for
 translation ..?
 Request time : Is it time of request or what ...?

This is homework right?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Hi Guys ... can some one tell what is hashcode in java

2010-09-15 Thread Antonio Petrelli
DYH

2010/9/15 Pankaj D pankaj66...@gmail.com:
 HI if someone can answer this query what is hash code in java ...is it some
 sort of memory location or address ...?

 Regards
 Pankaj


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Hi guys ... What is Translation time and request time.

2010-09-15 Thread Antonio Petrelli
2010/9/15 Pankaj D pankaj66...@gmail.com:
 NO ...  m a newbie  to java  just having a discussion with a friend ...

This is not a Java generic mailing list, here we discuss of problems
about *Tomcat*, nothing else.
Contact your local JUG, that may help you to find a tutorial, or
simply google it.

Don't ask random questions here, they make us nervous...

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Hi Guys ... can some one tell what is hashcode in java

2010-09-15 Thread Antonio Petrelli
2010/9/15 Pankaj D pankaj66...@gmail.com:
 What is DYH

Following Chuck's idea...
http://lmgtfy.com/?q=dyh

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How is Apache Documentation organized

2010-07-20 Thread Antonio Petrelli
2010/7/20 Pid p...@pidster.com:
 If you mean Apache HTTPD rather than Apache Tomcat, then you'll want:

  http://www.apache.org/

Do you mean:
http://httpd.apache.org/

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Log4j

2009-09-22 Thread Antonio Petrelli
2009/9/22 Nishant Chandra nishant.chan...@gmail.com:
 I want to use Log4j and log from different web apps to one directory -
 tomcat_home/output/logs/{webapp_context}_service.log

 What should be the configuration in log4j.properties?
 I am currently using
 log4j.appender.xml.file=${catalina.base}/output/logs/service.log

 What I want is to append app_context in the file name.

IIRC, there is no way to obtain the application context path as an
environment variable.
You should configure Log4j using its APIs, using a ServletContextListener.
Probably the best way is to load the log4j.properties file and
modify only the property that refers to the path of the file, then
configure Log4j.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: REMOVE ME FROM THIS LIST

2009-09-02 Thread Antonio Petrelli
2009/9/2  ks...@yahoo.com:
 REMOVE ME FROM THIS LIST


Follow the arrow
 |
 |
 |
\/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Adapter for Eclipse 3.5 Galileo?

2009-07-15 Thread Antonio Petrelli
2009/7/15 Michael Ludwig m...@as-guides.com:
 Now I downloaded Eclipse 3.5 (Galileo), and there are no configurations
 whatsoever in the Servers view.

Absolutely no configuration? Then it is strange. In Galileo (Java EE
development edition) I have Tomcat configurations and I tested it
already (and it's working obviously).
It seems that you have a broken download.
Did you try to open a clean workspace?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Adapter for Eclipse 3.5 Galileo?

2009-07-15 Thread Antonio Petrelli
2009/7/15 Michael Ludwig m...@as-guides.com:
 Does anyone know the name of the Tomcat adapter feature? Or a URL to
 download the feature?

It should be JST Server Adapters

HTH
Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Adapter for Eclipse 3.5 Galileo?

2009-07-15 Thread Antonio Petrelli
2009/7/15 Michael Ludwig m...@as-guides.com:
 Antonio Petrelli schrieb:

 2009/7/15 Michael Ludwig m...@as-guides.com:

 Does anyone know the name of the Tomcat adapter feature? Or a URL to
 download the feature?

 It should be JST Server Adapters

 Thanks again, Antonio. I thought so, too, but that only creates a
 template for J2EE Preivew. Should have provided that info straight
 away, sorry.

In my configuration I see this:
...
org.eclipse.jst.server.tomcat.core (1.1.105.v20090424) Apache Tomcat
Support [Active]
org.eclipse.jst.server.tomcat.ui (1.1.102.v20090424) Apache Tomcat UI
Support [Active]
...
Id: org.eclipse.jst.server.tomcat.core, Version: 1.1.105.v20090424
Id: org.eclipse.jst.server.tomcat.ui, Version: 1.1.102.v20090424
...
Id: org.eclipse.jst.server.tomcat.core, Version: 1.1.105.v20090424,
Location: 
reference:file:plugins/org.eclipse.jst.server.tomcat.core_1.1.105.v20090424.jar
Id: org.eclipse.jst.server.tomcat.ui, Version: 1.1.102.v20090424,
Location: 
reference:file:plugins/org.eclipse.jst.server.tomcat.ui_1.1.102.v20090424.jar
...
Any luck?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Unified EL question

2008-10-01 Thread Antonio Petrelli
2008/10/1 John5342 [EMAIL PROTECTED]:
 The string is: ${sessionScope.thebean.string}

It happens to me when the web.xml is pointing to a version prior to Servlet 2.4.

Antonio

-
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: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Antonio Petrelli
2008/7/15 Buddy wu [EMAIL PROTECTED]:
 I'm so sorry.
 but i don't find a websphere list. So I try  fortune.

Well, google Websphere mailing list and press I'm feeling lucky,
or simply go to:
http://www.websphere.org/websphere/jsp/listserv.jsp

Antonio

-
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: PHP support in tomcat

2008-06-05 Thread Antonio Petrelli
2008/6/5 Jury Levykin [EMAIL PROTECTED]:
 is it possible to configure tomcat to support PHP?

GIYF:
http://wiki.apache.org/tomcat/UsingPhp

Antonio

-
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 Users List

2008-05-21 Thread Antonio Petrelli
2008/5/21 Riaz, Bob [EMAIL PROTECTED]:
 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
 http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd;
version=2.4/

web-app  REMOVE THIS --
/web-app

Remove the extra web-app tag.

Antonio

-
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: Hi..

2008-05-09 Thread Antonio Petrelli
2008/5/9 Ch Praveena [EMAIL PROTECTED]:
  Can anyone send me any sample source code(war file) that implements
 session for a very important testing purpose of clustering.

http://thedailywtf.com/Articles/plz-email-me-teh-codez.aspx

Antonio

-
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: Bending Jasper to My Will

2008-04-21 Thread Antonio Petrelli
2008/4/19, Andy Clark [EMAIL PROTECTED]:
  I want Jasper to look for JSP and Tag files in a
  specific location (e.g. based on a request param);
  and then fall back to a default location if the
  file is not found. This would be extremely useful
  for skinning a webapp.

Must you really use JSP? I think that you can achieve this task easier
with Velocitye or FreeMarker.
In particular, FreeMarker supports JSP tag libraries, and you can load
templates from everywhere.
For example, Velocity is used in several portal servers (e.g. Liferay).

Antonio

-
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: OOM in PermGen space after several deploy/undeploy

2008-04-01 Thread Antonio Petrelli
2008/4/1, Piller Sébastien [EMAIL PROTECTED]:

 Hello everybody,

 I found some problem with my app, when I deploy it/undeploy it several
 times under Tomcat (5.5) (Unix and Windows). I copied my app war file in
 the webapp dir, and when it has been fully deployed, I surf on some
 pages. After that, I delete that war, wait for the end of undeployment,
 and did it again. The memory used by tomcat grows on each cycle. I did
 it about ten times, and after that I got the message below:

 java.lang.OutOfMemoryError: PermGen space



See:
http://wiki.apache.org/tomcat/OutOfMemory

Antonio


Re: I can't access my webapplication from another computer

2008-02-29 Thread Antonio Petrelli
2008/2/29, Ryan Webb [EMAIL PROTECTED]:

 Yes I think the machine which tomcat has been installled has firewall
 enabled Windows firewall..
 Do you think that is the problem?



Probably. Configure Windows Firewall to open the port on which Tomcat runs.

Antonio


Re: I can't access my webapplication from another computer

2008-02-28 Thread Antonio Petrelli
2008/2/29, Ryan Webb [EMAIL PROTECTED]:

 http://192.168.1.2/webapplication/login.jsp



Is the machine behind a firewall (even software firewall)?
Is your client computer in the same subnet of your server?

Antonio


Re: tomcat ldap authentication problem

2008-02-28 Thread Antonio Petrelli
2008/2/20, Christian Andersson [EMAIL PROTECTED]:
  all our html pages uses the utf-8 encoding, using slapcat and looking at
  the content the data inside openldap seems to be using utf-8 (the output
  from slapcat is at least utf-8,but I don't know if slapcat converts
  anything)

This might be a shot in the dark, but what client browser are you using?
I've had some problems with IE7: though I tell him to use UTF-8, it
posts the form in UTF-8 charset, but telling that it is using
ISO-8859-1!
Try it with Firefox, if you already didn't do it.

Antonio

-
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: JVM Uninstall

2008-02-26 Thread Antonio Petrelli
2008/2/26, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Can any body say if unstalling of JVM in a machine will effect to the
 Tomcat service/server.



WTF?
In what language do you think Tomcat is written?

Antonio


Re: JVM Uninstall

2008-02-26 Thread Antonio Petrelli
2008/2/26, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 I think you have not understood what I'm saying, we are facing one
 problem. We have uninstall the JVM and install it again in our production
 tomcat server, but the tomcat services it not working although it is set to
 automatic. Please find attached the error.
 From the event logs we find that the service fails with the error Could
 not load Java Virtual Machine



sarcasmI know that it might seem strange but before upgrading your JVM
you need to stop Tomcat, install, and then restart it./sarcasm
Moreover, check if your configuration is ok, for example JAVA_HOME
environment variable.
If you are under windows and you are using the Monitor Tomcat utility,
check the configuration of the JVM.

Antonio


Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Antonio Petrelli
2008/2/22, Hassan Schroeder [EMAIL PROTECTED]:

 On Fri, Feb 22, 2008 at 7:08 AM, elvberg [EMAIL PROTECTED] wrote:

   Conclusion (am I right or wrong?): http://xxx.xxx.xxx.xxx is equivalent
   with http://xxx.xxx.xxx.xxx:80
   but never with http://xxx.xxx.xxx.xxx:8080 i.e.
   I can never browse http://xxx.xxx.xxx.xxx and utilize Tomcat as a web
   server


 Absolutely wrong -- you just need to change the Tomcat Connector
 to listen on port 80, rather than 8080.



Or put Apache 2 in front of your Tomcat, as it is usually done in production
environment.

Antonio


Re: MIME TYPE problem

2007-12-19 Thread Antonio Petrelli
2007/12/19, Richard Dunne [EMAIL PROTECTED]:

 I can't access localhost on my machine. The server is up and running.  I
 am getting a Unknown File Type error MIME Type: application/x-httpd-php3,
 yet I have this line in my http.conf file: AddType application/x-httpd-php
 .php



Are you trying to execute PHP inside tomcat? :-O

Antonio


Re: MIME TYPE problem

2007-12-19 Thread Antonio Petrelli
2007/12/19, Richard Dunne [EMAIL PROTECTED]:

 Trying to run it on Apache2!



This is a Tomcat-related mailing list, please ask it to the httpd mailing
list:
http://httpd.apache.org/lists.html

Ciao
Antonio


Including in a JSP the result of a servlet that forwards

2007-11-28 Thread Antonio Petrelli
Hi all,
If I make a jsp:include (in fact I am using Tiles, but the result is
the same) of a result of a servlet which, in turn, makes an
ApplicationDispatcher.forward, I have a strange effect:
- only the page forwarded by the servlet will be visible to the user;
- the rest of the JSP page is executed, but it gives a Stream closed error.
I tested on Tomcat 5.5.25 and Jetty 6.1.1rc1 (embedded in Cargo, Maven
2 plugin), that (correct me if I am wrong) shares the Jasper engine
with Tomcat.
Independently from the fact if it is a good or a bad idea to forward
into a servlet that is included, is this the normal behaviour or is it
a bug?

Thanks in advance
Antonio

-
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: Including in a JSP the result of a servlet that forwards

2007-11-28 Thread Antonio Petrelli
2007/11/28, Martin Gainty [EMAIL PROTECTED]:
 Hi Antonio-

 https://java.sun.com/products/servlet/2.1/api/javax.servlet.RequestDispatche
 r.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse
 )
 where the most relevant part is This method may not be used if the calling
 servlet has already output any response to the client.
 decide which servlet is constructing the response and forward to that
 servlet

In the 2.4 version of the servlet we have:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse)
where the relevant (for me) is:

snip
forward should be called before the response has been   committed to
the client (before response body output has been flushed).If the
response already has been committed, this method throws  an
IllegalStateException.  Uncommitted output in the response buffer is
automatically cleared   before the forward.
/snip

But response.isCommitted returns false (!), the implementation is
ServletResponseWrapperInclude:
http://tomcat.apache.org/tomcat-5.5-doc/jasper/docs/api/org/apache/jasper/runtime/ServletResponseWrapperInclude.html
And I don't see any IllegalStateException.

So I now ask, is there a way to know if I can forward or not?

Thanks
Antonio

-
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.0.28 is showing an older version of my applet

2006-08-25 Thread Antonio Petrelli

Jose Roberto Torres ha scritto:

From the beginning I had no
problems with it, but two days ago the tomcat started to display an older
version of the applet.


Did you try to clear the classloader cache from the client side?
If not, open your java plugin console and press X.

HTH
Antonio

-
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: newbie installation problems

2006-07-27 Thread Antonio Petrelli

D. Salemink Klikstudio ha scritto:

As far as i know i have no files whatsoever going to 4.1.31 and
somehow i most still have the environment set up wrong, can anybody
help me with this??


What's your distribution? Not all Linux distributions use /etc/profile 
for environment variables. For example Ubuntu uses /etc/environment


Ciao
Antonio

-
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: newbie installation problems

2006-07-27 Thread Antonio Petrelli

D. Salemink Klikstudio ha scritto:

I have redhat enterprise (3?)
It worked with the tomcat 4 version in the /etc/profile
but it doesnt seem to want to loose this configuration anymore
This is whats in my my /etc/profile now

JAVA_HOME=/usr/java/j2sdk1.4.2_12
CATALINA_HOME=/usr/local/apache-tomcat-5.5.17



And what does:
env | grep CATALINA_HOME
say?
Did you exit the session before trying to run Tomcat?

-
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: file upload speed.

2006-06-20 Thread Antonio Petrelli

CMSuser ha scritto:

Hi,
I'm using Tomcat 5.5.15 to transfer files. I get a throughput of roughly 20%
on 100Mbps LAN whereas the download throughput is 95% approx.
How can I make the uploads faster ? 
  


Just a thought, though you are in a LAN, is the server in an ADSL? If
yes, you know what the A in ADSL means right? ;-)
Ciao
Antonio


-
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: Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Antonio Petrelli

Peter Stavrinides ha scritto:

I deploy my xml configuration files in:
C:\Tomcat\conf\Catalina\localhost
 


Why here? Your context information should be put either in the 
server.xml file or in webapp-root/META-INF/context.xml

The directory that you used is temporary, AFAIK.
HTH
Antonio

-
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: multiple, parallel requests

2006-06-06 Thread Antonio Petrelli

Steffen Späthe ha scritto:
In my understanding should an other thread been started with the 
service-methode, if the first thread is sill running and a new request 
comes in. If this isn´t correct, please correct me.


Not always. If you are using HTTP 1.1 persistent connections and you are 
trying to make a request from within the same browser (it should be the 
default if you are using modern browsers and the latest Tomcat if I am 
not wrong...), usually the browser will use the same caller TCP port. 
Because there is a 1:1 mapping between the TCP port and the service 
process (or thread), if the port does not change, the thread/process 
will not change too.
Just to be sure, open a new browser (I suggest to try with a totally 
different one, e.g. use Firefox and IE) and retry the same experiment.

HTH
Antonio


-
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: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Antonio Petrelli

Peter Neu ha scritto:

Hello,

 


I have many memory consuming apps on my tomcat server. I a lot pdf  excel
generation. So every other week I get this error

 


 java.lang.OutOfMemoryError: PermGen space

  


http://wiki.apache.org/tomcat/OutOfMemory
HTH
Antonio

-
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 Memory Leak

2006-05-25 Thread Antonio Petrelli

Petkov, Rossen ha scritto:

Hello,
I am having a problem with Tomcat 5.0.19 on windows with JDK
1.4.2_03.The memory that java.exe is using keeps growing till the point
that tomcat
Runs out of memory.
  


Try this: http://wiki.apache.org/tomcat/OutOfMemory
Ciao
Antonio


-
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: Paul Grimwood/GNS is out of the office.

2006-05-24 Thread Antonio Petrelli

Paul Grimwood ha scritto:

I will be out of the office starting  24/05/2006 and will not return until
29/05/2006.

I will respond to your message when I return.
  


Surely we will respond to this message with insults :-P
Obviously joking, but this hourly message is starting to be annoying.

-
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 hangs after a few hot deploys!!!!

2006-05-23 Thread Antonio Petrelli

Ali Kord ha scritto:

hi all,
after a few hot deploys, tomcat hangs and doesnt seem to be responding at all. 
i have to shut it down using windows task manager and restart it.
anybody has an answer to this?
  


Did you check the logs?


cheers


Ciao
Antonio

-
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: very strange

2006-05-23 Thread Antonio Petrelli

Asensio, Rodrigo ha scritto:

I have a webapp in server A and when I hit a button, It opens a new
window ( window.open() ) calling my servlet or any jsp in server B. It
works few times..but there is a moment that stop working, my tomcat
didnt receive not even the request. The users see a blank screen
working.. but nothing happens.


Just a thought. This seems the typical situation in which the webapp 
runs out of available db connections. Do you close all the connections 
when you finish your operations?

HTH
Antonio

-
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: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Antonio Petrelli

Corobitsyn Roman ha scritto:

But I am not sure about that, shared struts will not work.
I have two hosts with three webapps, and everyone use struts.
  


If they all use the same version of Struts, there is no problem (though 
I am not sure about it :-) ). But think about the chance to have 
different versions of Struts in different webapps: it will lead to a 
complete classloader mess!

Ciao
Antonio

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



Re: Tomcat 4.1 - Problems referencing log4j.xml prop file within .war archive

2006-05-22 Thread Antonio Petrelli

Konstantin G ha scritto:

Hello all,


  public void init() throws ServletException {

  DOMConfigurator.configure(log4j.xml);

  }




change it to.
DOMConfigurator.configure(getServletContext().getResource(/log4j.xml));

Ciao
Antonio

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



[OT] Hijack (WAS: Re: System.setProperty failed during Tomcat5 startup)

2006-05-09 Thread Antonio Petrelli

Tim Funk ha scritto:

1) Don't hijack threads - start a new one

The last famous words... some people will never learn ;-)
Ciao
Antonio

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



Re: Servlet inter-communication

2006-05-04 Thread Antonio Petrelli

Leon Rosenberg ha scritto:

Hmm... instead of using a 3-liner I'm supposed to plug in a whole
container, even a lightweight one? What will come next? Installing
Jboss for config-file-reading?



You know; i really liked singleton when I used to be a Swing programmer. 
But it raises a serious issue for web applications when you reload them.

This is not a Tomcat bug, it is a GC bug or feature or whatever else.
Some people think that Singleton is an anti-pattern and that it is 
better to use single instances of a normal class, stored somewhere that 
it is reachable everywhere, such as a container. When I noticed Spring 
and IoC, I joined those people.
You know, if you have a very small webapp, singletons are still useful. 
But if you have a mid-sized or a giant webapp, Spring comes in handy.

Just my 2 eurocents.
Ciao
Antonio

P.S. When I say Spring I mean an IoC container of your choice. I wrote 
Spring only because it is the only one I know well.


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



Re: Servlet inter-communication

2006-05-03 Thread Antonio Petrelli

Thomas Bolding ha scritto:

Indeed. If it is within the same context this is trivial - look into
singleton design pattern.


It's a bad idea to use singletons in a web application, especially when 
the application needs to be reloaded (this is one of the causes that 
make lots of people write about an OutOfMemoryException!).
Samuli, I think that you should try portlets to achieve inter-portlet 
communication. Servlets are not designed to communicate each other!
Or maybe this is a false problem and you can solve your problems by 
better design your business logic.

Ciao
Antonio

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



Re: Eclipse plugins for tomcat

2006-04-06 Thread Antonio Petrelli

Anandi Vyagrapuri ha scritto:
Anybody tried 
the plugin called Lombaz 


Errr... it is Lomboz anyway. ;-)

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



Re: New to Tomcat

2006-04-05 Thread Antonio Petrelli

David Delbecq ha scritto:

Btw, this is quite curious:

/usr/lib/libjasper5-compiler-5.0.30.jar.so

You should probably use the official tomcat release files available on
apache.org to be sure it's not a distro related problem.
Please also note 5.0.30 is a beta, latest 5.0.x tomcat stable version is
5.0.28
The .jar.so extension is . frightening :)
  


It is compiled natively with GCJ, maybe this is the cause of his problem.
Paul, try to use Tomcat with Sun's JVM and see if you have the same problem.
Ciao
Antonio

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



Re: Caching Problem

2006-04-05 Thread Antonio Petrelli

Pusukuri, Kishore_Kumar ha scritto:

   We are getting the following exception if we move the code to some
other server and the functionality related to that code in our web
application is not working.
   the exception:
  
   java.net.ConnectException: Connection refused
  


If you move your code onto another server and you try to connect to the 
old one, I think it's obvious that the new one has a different IP address!

But maybe you wanted to write something else ;-)


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



Re: [Tomcat-Struts]Action Servlet Is not available

2006-03-23 Thread Antonio Petrelli

Vijaya S ha scritto:

Hi,

Deployment
went through fine but I get a 'Servlet Not Available error' while executing
the application.


Remember, first check the log, then write to the mailing list...
Antonio

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



Re: Check if file exists in WEB-INF folder

2006-03-23 Thread Antonio Petrelli

Rapthor ha scritto:

Hello,

I intent to check whether a jsp file exists or not in my WebApplication.
Doing it this way doesn't work:

if (new File(WEB-INF/jsp/test.jsp).exists())
 return true;



Is there a way to get the WebApplication's path that I can specify and point
to?
  


String path = ServletContext.getRealPath(/WEB-INF/jsp/test.jsp);
File file = new File(path);
if (file.exists)

Notice the leading /
Ciao
Antonio

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



Re: Check if file exists in WEB-INF folder

2006-03-23 Thread Antonio Petrelli

Antonio Petrelli ha scritto:

Rapthor ha scritto:

Hello,

I intent to check whether a jsp file exists or not in my WebApplication.
Doing it this way doesn't work:

if (new File(WEB-INF/jsp/test.jsp).exists())
 return true;
   
Is there a way to get the WebApplication's path that I can specify 
and point

to?
  


String path = ServletContext.getRealPath(/WEB-INF/jsp/test.jsp);
File file = new File(path);
if (file.exists)


Uh ok wrong syntax :-)


String path = 
request.getSession().getServletContext().getRealPath(/WEB-INF/jsp/test.jsp); 


File file = new File(path);
if (file.exists())

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



Re: Confusion in sessions

2006-03-21 Thread Antonio Petrelli

George Azzopardi ha scritto:

Hi people,

I have two separate web applications, appA and appB, running on Tomcat. The
problem is that sometimes appA loads a page of appB instead of the actual
page.

Do you have any ideas?
  


It is nearly impossible if you use context-relative URLs (maybe using 
../ but I am not sure). Maybe you are using server-relative URLs, or 
absolute URLs.

HTH
Antonio

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



Re: UTF-8 2019 (right single quote) incorrect display

2006-03-20 Thread Antonio Petrelli

John-Paul Delaney ha scritto:

Hello List...  my first attempt at i18n is failing.
  


Are you using resource bundles? Or what? If yes, please post a reply 
because the answer will be very different from the one below.



I've converted MS smart quotes to utf 2019 symbol (right single quote) in my VIM
editor after setting encoding to UTF-8.  The quote displays ok in vim but in the
browser it displays badly ( in firefox - a+circumflex, and IE -
a+circumflex+garbage ).

The http servlet response content type character set is UTF-8.

I don't understand where I'm losing the utf encoding of the text.

Any assistance is greatly appreciated.

Tomcat 5.0.28 on FreeBSD.
  


I assume that you want to display the content of a text file as a response.
The best approach is to separate the file encoding from the servlet 
response encoding.
You should read the file using InputStreamReader around a 
FileInputStream with your preferred encoding. Then you should write the 
content using HttpServletResponse.setCharacterEncoding and then 
HttpServletRequest.getWriter
Another (bad, from my point of view) approach is to read through 
FileInputStream and write through HttpServletResponse.getOutputStream. I 
think it's wrong because you could have one encoding for the file and 
another for the response.

Ciao
Antonio

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



Re: UTF-8 2019 (right single quote) incorrect display

2006-03-20 Thread Antonio Petrelli

John-Paul Delaney ha scritto:

A little earlier I found out that they can only use Latin1
encoding, ...
  
Sorry to contradict you, .properties files must use ASCII 7-bit (e.g. 
stressed characters must be \u). Anyway that was the other answer 
I had in mind ;-)

Ciao
Antonio

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



Re: Strange behaviour with Tomcat 5.5.15/5.5.16

2006-03-14 Thread Antonio Petrelli

Jean-Pierre Astier ha scritto:

OS : Mac OS X 10.4.5/10.3.9

- 

10 mars 2006 09:26:18 org.apache.catalina.core.StandardWrapperValve 
invoke

GRAVE: Servlet.service() pour la servlet jsp a généré une exception
org.apache.jasper.JasperException: Tentative d''opération bean sur un 
objet nul.
at 
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:601) 

at 
org.apache.jsp.home_jsp._jspService(org.apache.jsp.home_jsp:314)
   
Check your home.jsp, it seems that it wants to refer to a null object. 
You're using Netbeans 5, so debug it ;-)

Ciao
Antonio

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



Re: TRACE messages

2006-03-09 Thread Antonio Petrelli

Mike Sabroff ha scritto:



I am not sure if this is a Tomcat issue or a MySql issue.
I get these trace messages in catalina.out:
Wed Mar 08 07:48:48 CST 2006 TRACE:
about 800 to 1000 lines of them, each time I connect to the database.
I have googled and searched but can find nothing on the cause or the 
solution

except maybe to use log4j.

If you are using log4j, maybe you put a debug level to your root logger.
Put the correct logging level to the root logger (I suggest at least 
INFO) and your desired level to your own logger.

Ciao
Antonio


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