Re: better error message a web.xml has errors

2004-08-13 Thread Emerson Cargnin
The problem is that tomcat don't start...
Schalk Neethling wrote:
I may be in error here but, the client/team from which app the web.xml 
is causing the error should see that their site is not working. Where 
the other sites where the web.xml was parsed correctly should see their 
sites working. If I am correct in this it would be a matter of 
contacting all clients, or testing yourself if possible, and ask them to 
see whether their site/app is running.

The one that is not, is probably the one with the error in their web.xml 
and then they can fix the problem and place the servlet tag in the 
right place.

Emerson Cargnin wrote:
I have a server that has more than 30 apps from different teams.
When starting tomcat i got the erro below
6310 [main] ERROR digester.Digester  - Parse Error at line 188 column 
-1: Element web-app does not allow servlet here.
org.xml.sax.SAXParseException: Element web-app does not allow 
servlet here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)

The problem is that I can not identify what app yhas the error.
That's just a suggestion for the dev team.
Or I missed something?



--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: better error message a web.xml has errors

2004-08-13 Thread Emerson Cargnin
as I said before, tomcat don't start
Mark Thomas wrote:
Look in the manager app. It will show which app isnt running.
Mark 


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 13, 2004 12:01 AM
To: Tomcat Users List
Subject: better error message a web.xml has errors

I have a server that has more than 30 apps from different teams.
When starting tomcat i got the erro below
6310 [main] ERROR digester.Digester  - Parse Error at line 188 column 
-1: Element web-app does not allow servlet here.
org.xml.sax.SAXParseException: Element web-app does not allow 
servlet here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)

The problem is that I can not identify what app yhas the error.
That's just a suggestion for the dev team.
Or I missed something?
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubaro
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubaro
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: better error message a web.xml has errors

2004-08-13 Thread Emerson Cargnin
As you can see, there's no context reference in the error message.
I think that a error with a web.xml's context shoudn't invalidate all 
tomcat startup.

Thanks for the help
Emerson
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
log4j:WARN No appenders could be found for logger 
(org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
5896 [main] ERROR digester.Digester  - Parse Error at line 188 column 
-1: Element web-app does not allow servlet here.
org.xml.sax.SAXParseException: Element web-app does not allow 
servlet here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at 
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)
at 
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at 
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at 
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)

Schalk Neethling wrote:
I may be in error here but, the client/team from which app the web.xml 
is causing the error should see that their site is not working. Where 
the other sites where the web.xml was parsed correctly should see their 
sites working. If I am correct in this it would be a matter of 
contacting all clients, or testing yourself if possible, and ask them to 
see whether their site/app is running.

The one that is not, is probably the one with the error in their web.xml 
and then they can fix the problem and place the servlet tag in the 
right place.

Emerson Cargnin wrote:
I have a server that has more than 30 apps from different teams.
When starting tomcat i got the erro below
6310 [main] ERROR digester.Digester  - Parse Error at line 188 column 
-1: Element web-app does not allow servlet here.
org.xml.sax.SAXParseException: Element web-app does not allow 
servlet here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)

The problem is that I can not identify what app yhas the error.
That's just a suggestion for the dev team.
Or I missed something?



--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


better error message a web.xml has errors

2004-08-12 Thread Emerson Cargnin
I have a server that has more than 30 apps from different teams.
When starting tomcat i got the erro below
6310 [main] ERROR digester.Digester  - Parse Error at line 188 column 
-1: Element web-app does not allow servlet here.
org.xml.sax.SAXParseException: Element web-app does not allow 
servlet here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)

The problem is that I can not identify what app yhas the error.
That's just a suggestion for the dev team.
Or I missed something?
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomact 5 - Out of Memory

2004-08-04 Thread Emerson Cargnin
I'd sggest you to do two things:
- put the following line in your  jk2.properties
request.registerRequests=false
- In $CATALINA_HOME/conf/web.xml
init-param
   param-namedevelopment/param-name
   param-valuefalse/param-value
   /init-param
   init-param
   param-namereloading/param-name
   param-valuefalse/param-value
   /init-param
You get a lot of free memory when setting to not check for changes in
your webapp. In a production environment I think you can live without this.
Hope this help.
Emerson
[EMAIL PROTECTED] wrote:
Sorry, where and how should I set the JDK heap size
- Original Message - 
From: Pradeep Chauhan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 1:28 PM
Subject: RE: Tomact 5 - Out of Memory


Increase the JDK heap size
either by JAVA_OPTS option or by registery
IF Tomcat install as NT service then Use registry method
else use JAVA_OPTS
Pradeep
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04.08.2004 09:08
To: Tomcat Users List
Subject: Tomact 5 - Out of Memory
Our enviroment is as following:
Redhat 9
Tomact 5.0.19
JAVA 1.4.2_04
MYSQL 4.0.18
However, our website stop response after running for 1 day, I checked the
log and there is following description
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.OutOfMemoryError
So I need to restart the server everyday. I would like to ask if there is
any solution or setting to slove that.

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


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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubaro
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat as Win2k service

2004-08-04 Thread Emerson Cargnin
I use the same way, just chosse this option when installing through the
.exe installer.
Java Techie wrote:
Hi,
I am using Tomcat5 on win2k Professional.
I want to use it as a windows service.
Please help.
Thanks.
Yogesh

__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Different virtuel hosts with Tomcat 5

2004-07-22 Thread Emerson Cargnin

Status 404: Teh requested resource (/manager/html) is not available. Is
there also a documentation for this ?

There's documentation for the manager webapp, yes.  Look at manager.xml
and create one for your second Host also.
A question:
- As the manager app is located inside server/webapps, and I want to
configure the manager for each virtualhost, should I reference the same
manager app inside server for each virtualhost?
What about the tomcatusers.xml? It will use the same file??
I would like to have each virtualhost to have a different user/password,
how do I implement this?
- Should I deploy the manager app under my virtualhost webapps dir to
configure a different user for each virtualhost?
- Or should I have to configure the a Resource tag inside each host??
Thanks...
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


jndi.properties tomcat 5.0

2004-07-22 Thread Phil Emerson
Hi Folks,

   I need to integrate my jboss server and tomcat 5.0
web server(standalone) using JNDI.
  
   I need explicitly mention JNDI properties in the
web server code for it to work. 

   p.put(Context.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory);
   p.put(Context.URL_PKG_PREFIXES,
jboss.naming:org.jnp.interfaces);
   p.put(Context.PROVIDER_URL, 192.168.1.84:1099);

   Defining the parameters in the jndi.properties does
not work. 

I looked up the old posts and tried this solution
too..

props.load(
servlet.getServletContext().getResourceAsStream( 
 
/WEB-INF/classes/jndi.properties ) );


  but no success. 

  Am i missing something here.

TIA





__
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

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



Re: Different virtuel hosts with Tomcat 5

2004-07-22 Thread Emerson Cargnin
One question is not related to server.xml.
If I want different manager/virtualhost to have different 
users/passwords, I need to deploy it directly to it's own virtualhost's 
webapps? (and changing the role-name tag in web.xml)

thanks
Emerson Cargnin
Shapira, Yoav wrote:
Hi,
Look closely at server.xml, the comments there should be sufficient to answer your 
questions.  If you need two different tomcat-users.xml files, you will need two 
different Realms, one for each of the tomcat-users.xml files.  The same logic is true 
for declaring the manager app.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 3:41 PM
To: Tomcat Users List
Subject: Re: Different virtuel hosts with Tomcat 5


Status 404: Teh requested resource (/manager/html) is not available. Is
there also a documentation for this ?

There's documentation for the manager webapp, yes.  Look at manager.xml
and create one for your second Host also.
A question:
- As the manager app is located inside server/webapps, and I want to
configure the manager for each virtualhost, should I reference the same
manager app inside server for each virtualhost?
What about the tomcatusers.xml? It will use the same file??
I would like to have each virtualhost to have a different user/password,
how do I implement this?
- Should I deploy the manager app under my virtualhost webapps dir to
configure a different user for each virtualhost?
- Or should I have to configure the a Resource tag inside each host??
Thanks...
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Different virtuel hosts with Tomcat 5

2004-07-22 Thread Emerson Cargnin
Mike Curwen wrote:
In fact, isn't it impossible to use one Manager app and have it be able to
manage apps cross-host ?  So it's not so much a matter of what you want?
I'm curious, because I'd like the opposite (one manager app, for all apps on
all hosts) and I've always thought that not possible.  Not true?
But what I want (1 manager for each virtualhost) is possivel, isn't?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 3:58 PM
To: Tomcat Users List
Subject: Re: Different virtuel hosts with Tomcat 5

One question is not related to server.xml.
If I want different manager/virtualhost to have different 
users/passwords, I need to deploy it directly to it's own 
virtualhost's 
webapps? (and changing the role-name tag in web.xml)

thanks
Emerson Cargnin

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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional Auxiliar - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: User IP address

2004-07-16 Thread Emerson Cargnin
if the users are behind a proxy use the following approach:
String endIp = req.getRemoteAddr();
String endIpfoward = req.getHeader(X-Forwarded-For);
//the user is behind a proxy
if (endIpfoward != null) {
endIp = endIpfoward;
}
so you will get the real ip address anyway, even if it's behind a proxy...
Emerson

 Tim Funk wrote:
HttpServletRequest.getRemoteAddr()
-Tim
Jarl Skogsholm wrote:
How do I get the user IP address?  I only get the IP of the server.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DBCP pool

2004-07-15 Thread Emerson Cargnin
Is there a way to set the database timeout in dbcp??? I have a database 
which I have no control under its timeout. I used a pool api that 
allowed me to set the database timeout, but as I want to move to DBCP, 
is there a way to set this???

--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DBCP pool

2004-07-15 Thread Emerson Cargnin
none of them, I mean the timeout set in database, the maximum life time 
for an connection. This is used when you have a database that has a 
given timeout, let's say, 10 minutes, so you can't have this connection 
opened for more than 10 minutes, what would case an error due to an 
timeouted connection.

Mike Curwen wrote:
what timeout?
the amount of time it keeps an idle connection in the pool?
the amount of time it waits before considering a connection abandoned?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 2:40 PM
To: Tomcat Users List
Subject: DBCP pool

Is there a way to set the database timeout in dbcp??? I have 
a database 
which I have no control under its timeout. I used a pool api that 
allowed me to set the database timeout, but as I want to move 
to DBCP, 
is there a way to set this???

--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DBCP pool

2004-07-15 Thread Emerson Cargnin
How do I specify the test query as context param? There is nothing in 
the JDBC configuration of DBCP in tomcat 5 docs.
BTW, I found some typos erros, must I create a bug, or may I put it here?

other question:
May I mix the Resource and ResourceParams tags?? I'm asking this because 
I have  to configure 2 connection in some apps, so I must put a Resource 
and a ResourceParams tag sequencially for each connection I want to 
configure??

Thanks for your response
Emerson
Mike Curwen wrote:
I think the way to do this with DBCP is to specify a test query.  The
pool would then run this query (like SELECT 1) before giving out the
connection. If it failed (and if it's because the connection is closed),
it will null this connection in the pool, open a new connection, and
retest it, and then give this one out.
 
If any of that is factually wrong, someone will be sure to jump in and
correct me.



-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 3:03 PM
To: Tomcat Users List
Subject: Re: DBCP pool

none of them, I mean the timeout set in database, the maximum 
life time 
for an connection. This is used when you have a database that has a 
given timeout, let's say, 10 minutes, so you can't have this 
connection 
opened for more than 10 minutes, what would case an error due to an 
timeouted connection.



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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DBCP pool

2004-07-15 Thread Emerson Cargnin
What about this other question:
May I mix the Resource and ResourceParams tags?? I'm asking this because
I have  to configure 2 connection in some apps, so I must put a Resource
and a ResourceParams tag sequencially for each connection I want to
configure??
Thanks for your response
Emerson
Mike Curwen wrote:
I think the way to do this with DBCP is to specify a test query.  The
pool would then run this query (like SELECT 1) before giving out the
connection. If it failed (and if it's because the connection is closed),
it will null this connection in the pool, open a new connection, and
retest it, and then give this one out.
 
If any of that is factually wrong, someone will be sure to jump in and
correct me.



-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 3:03 PM
To: Tomcat Users List
Subject: Re: DBCP pool

none of them, I mean the timeout set in database, the maximum 
life time 
for an connection. This is used when you have a database that has a 
given timeout, let's say, 10 minutes, so you can't have this 
connection 
opened for more than 10 minutes, what would case an error due to an 
timeouted connection.



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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: DBCP pool

2004-07-15 Thread Emerson Cargnin
If testOnBorrow is not true, when is it tested?

Mike Curwen wrote:
I'm not an expert, but I suspect that the resource config parameters
will act like javabean setters.  So you should be able to specify
something like:
 
parameter
   namevalidationQuery/name
   valueSELECT 1/value
/parameter
parameter
   nametestOnBorrow/name
   valuetrue/value
/parameter


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 4:30 PM
To: Tomcat Users List
Subject: Re: DBCP pool

How do I specify the test query as context param? There is nothing in 
the JDBC configuration of DBCP in tomcat 5 docs.
BTW, I found some typos erros, must I create a bug, or may I 
put it here?

other question:
May I mix the Resource and ResourceParams tags?? I'm asking 
this because 
I have  to configure 2 connection in some apps, so I must put 
a Resource 
and a ResourceParams tag sequencially for each connection I want to 
configure??

Thanks for your response
Emerson
Mike Curwen wrote:
I think the way to do this with DBCP is to specify a test 
query.  The 

pool would then run this query (like SELECT 1) before 
giving out the 

connection. If it failed (and if it's because the connection is 
closed), it will null this connection in the pool, open a new 
connection, and retest it, and then give this one out.

If any of that is factually wrong, someone will be sure to 
jump in and 

correct me.


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 3:03 PM
To: Tomcat Users List
Subject: Re: DBCP pool
none of them, I mean the timeout set in database, the maximum
life time 
for an connection. This is used when you have a database that has a 
given timeout, let's say, 10 minutes, so you can't have this 
connection 
opened for more than 10 minutes, what would case an error due to an 
timeouted connection.




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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


dbcp pool global for only one virtualhost???

2004-07-13 Thread Emerson Cargnin
Is there a way to set a global pool only accessible for a given virtualhost?
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Deploying onto a specific host...

2004-07-13 Thread Emerson Cargnin
Yes, I thing that's it, but I haven't tried this yet...

Ivan Jouikov wrote:
Then how would you access that specific manager?  www.host.com/manager ?
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:16 PM
To: Tomcat Users List
Subject: Re: Deploying onto a specific host...

I think you have to have an manager per virtualhost, someone correct me 
if I'm wrong

Emerson Cargnin
Floripa/Brasil
Ivan Jouikov wrote:
When using manager application, how can you specify which virtual host 
you want to deploy your application onto?




Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004



--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubaro
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


common lib for each virtualhost?

2004-07-09 Thread Emerson Cargnin
Is there a way to set a diferent common/lib to each virtualhost?
thanks
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fwd: debug connection pool

2004-07-07 Thread Emerson Cargnin
So share your finding :)
Hans Wichman wrote:
Hi,
found it, sorry !
I had been searching in all the wrong directions, but the obvious one
grtz
Hans
Date: Wed, 07 Jul 2004 09:59:18 +0200
To: [EMAIL PROTECTED]
From: Hans Wichman [EMAIL PROTECTED]
Subject: debug connection pool
Hi,
does anyone know the correct way to debug a database connection pool, 
eg number of connections left in the pool etc?
Or a pointer in the right direction?
any help would be appreciated!

thanks!
Hans

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

a
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Como funciona tomcat en Fedora Core 2

2004-07-02 Thread Emerson Cargnin
It happened to me some time ago with Suse.
If you try the host name, does it work?? that was my case...
Emerson
Chris Alvarez wrote:
translation 
Hi List 
 
I installed Fedora Core 2, I see that the Tomcat service is in there and
 it even sets it up OK. But how do I access it? 
 
I thought that normally it was http://localhost:8080 but it doesn't
work. My question is: what do I need to do so that it works or how do I
test in order to get it to run JSP. 
 
 
Thanks so much 
/translation 
 
It is hard to get an answer unless you post in the language of the list.

 
 

Chris Alvarez
[EMAIL PROTECTED]
ext. 1-3837
IST Web Applications Services
Novell, Inc., the leading provider of information solutions
http://www.novell.com

[EMAIL PROTECTED] 07/02 9:40 am  
 
Hola Lista 
 
 
Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube
el servicio tomcat OK. Pero como lo acceso? 
 
Yo pense que era por lo normal http://localhost:8080 pero no funciona.
Mi pregunta es que tengo que hacer para que funcione o como tengo que
hacer la prueba para correr JSP. 
 
 
Muchas Gracias. 


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to use oracle pool instead of using DBCP pool?

2004-07-02 Thread Emerson Cargnin
);
   String password = application.getInitParameter(password);
   String minLimit = application.getInitParameter(minLimit);
   String maxLimit = application.getInitParameter(maxLimit);
   try
 {
 ds = new OracleConnectionCacheImpl();
 ds.setURL(jdbcURL);
 ds.setUser(user);
 ds.setPassword(password);
 ds.setMinLimit(Integer.parseInt(minLimit));
 ds.setMaxLimit(Integer.parseInt(maxLimit));
 }
   catch (Exception e)
 {
 application.log(Failed to create data source:  + e.getMessage());
 }
   /*
 Initialize the database connection pool.
   */
   try
 {
 ctx = new InitialContext();
 ctx.lookup(java:comp/env/jdbc/ApplicationNameHere);
 }
   catch (Exception e)
 {
 application.log(Failed to create database connection pool:  +
e.getMessage());
 }
   application.setAttribute(appDataSource, ds);
   }
 public void contextDestroyed(ServletContextEvent sce)
   {
   ServletContext application  = sce.getServletContext();
   application.removeAttribute(appDataSource);
   // Close the connections in the DataSource
   try
 {
 ds.close();
 }
   catch (java.sql.SQLException e)
 {}
   ds = null;
   }
 }
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 8:36 AM
To: Tomcat Users List
Subject: Re: How to use oracle pool instead of using DBCP pool?
Nope. (Oracle's technical support /bulletin boards might be of more help)
-Tim
Claudio Carvalho wrote:

Hi Tim,
I'm looking for an alternative directly on the application server,
something
like putting an oracle-pool jar into tomcat/common/lib directory, have
you
heard anything like that?
Claudio Carvalho.
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:52 AM
Subject: Re: How to use oracle pool instead of using DBCP pool?


An alternative is to look at the DBCP java-docs. Cast your Connection to
a
DBCP's ppoled connection class (or approrpiate). That class has a method
called getDelegate() which returns the real connection from Oracle. Then
cast

that to the appropriate Oracle class.
-Tim
Claudio Carvalho wrote:

Cláudio CarvalhoHi,
I'm trying to get the CLOB working in my application and I'm having
problems

with the Connection, so, does anybody knows how to use in Tomcat 5 the
oracle pool instead of using the DBCP pool?

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

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


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

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


--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Deploying onto a specific host...

2004-07-02 Thread Emerson Cargnin
I think you have to have an manager per virtualhost, someone correct me 
if I'm wrong

Emerson Cargnin
Floripa/Brasil
Ivan Jouikov wrote:
When using manager application, how can you specify which virtual host 
you want to deploy your application onto?

 

 


Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004

--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubaro
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Log rotation HOWTO

2004-06-29 Thread Emerson Cargnin
I didn't find how to make the catalina.log file split each day.
!-- Logger shared by all Contexts related to this virtual host.  By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME.  If you wish, you can specify
a different directory with the directory attribute.  Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--
Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. suffix=.txt
   timestamp=true/
what should I change in the following tag to get it done...?
thanks
Emerson
Jrme Duval wrote:
Search the mailing list! This question was asked recently... 

These messages might be useful...
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: Log rotation HOWTO

I haven't been able to find a clear answer to this anywhere online,
hopefully you fine folks can help...
I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
or weekly (monthly might be OK too).
Is thre any way to do this?  I assume so, so how?  Thanks in advance all!
_
Get fast, reliable Internet access with MSN 9 Dial-up  now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


Subject:
AW: Managing Tomcat logs
From:
Gunnar Prschke [EMAIL PROTECTED]
Date:
Tue, 22 Jun 2004 09:24:09 -0400
To:
'Tomcat Users List' [EMAIL PROTECTED]
To:
'Tomcat Users List' [EMAIL PROTECTED]
Could you please use tomcats web admin to change logging settings...
By default you can access http://localhost:8080/admin
You can activate a separate log for several contents.
-Ursprngliche Nachricht-
Von: Veera Sivakumar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Juni 2004 11:47
An: Tomcat Users List
Betreff: Managing Tomcat logs

Hi,
I am using Tomcat as web server for my application. I start Tomcat using
windows service. All the logs generated by the Application are written in to
a file called stdout.log which is under tomca/logs folder.
I have noticed that with continuous use of application,stdout file size
increasing to a large extent. To delete the it I have to stop the tomcat.
Is there any way that I can manage the logs date wise automatically(without
manual intervention). I am not using any third party tool for logging.
The logging mechanism I use is very simple.
We have class Debug.java that have a method log(String); This log() method
use System.out.println(); In the application, I use Debug.log(Exception);
I will be more happy if there is any way to manage logs.
I have also noticed the following logs generated by Tomcat:
1.localhost_log.2004-06-18.txt
2.localhost_access_log.2004_06_22.txt
How to maintain these logs?. Can we off them permanently?
Thanks in advance.
Regards
S.V.Sivakumar
QCA Project
Tata Infotech Limited
Tel:+44 1235 823411
[EMAIL PROTECTED] / [EMAIL PROTECTED]
Visit our website at http://www.rm.com
This message is confidential.  You should not copy it or disclose its
contents to anyone.  You may use and apply the information only for the
intended purpose.  Internet communications are not secure and therefore RM
does not accept legal responsibility for the contents of this message.  Any
views or opinions presented are only those of the author and not those of
RM.  If this email has come to you in error please delete it and any
attachments.  Please note that RM may intercept incoming and outgoing e-mail
communications.
This email has been scanned for viruses by Trend ScanMail.

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


Subject:
RE: Managing Tomcat logs
From:
Robert Harper [EMAIL PROTECTED]
Date:
Tue, 22 Jun 2004 10:20:15 -0400
To:
'Tomcat Users List' [EMAIL PROTECTED]
To:
'Tomcat Users List' [EMAIL PROTECTED]
Instead of using System.out.println() to log your messages, use the
HttpServlet's log() method. You can specify the logging class you want to
use,
the path it writes to, the base name, and extension. Each day a new file is
created and you can simply delete the old ones as they are closed when a new
file is started each day. You could also create your own logger that manages
the
file size in some way. I have used the former and have specified the file
name
and path so that it easy form me to manage. My logs are separate from the
normal
logs as well.
Robert S. Harper
801.265.8800 ex. 255

-Original Message-
From: Veera Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22

Re: Log rotation HOWTO

2004-06-29 Thread Emerson Cargnin
I thought that would be an easier way, just as you can do using a 
diferent class appender with log4j.

Trond Hersløv wrote:
Oh, noSYNTAX ERROR..sorry
 
WRONG: 
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21
 
I forgot to name the log file (otherwise you overwrite your rotate_log
script, and it will only work once):
RIGHT:
0 1 * * * /path/to/script/rotate_log  /path/to/script/logfile 21
 
Anyway...a good example of how you not should name your files..
 
\trond
 
 
Hi, maybe you would try the following:

Create a bash-script (or on windows a .bat, with modifications)
create a file called e.g. /path/to/script/rotate_log
#!/bin/sh
file_to_zip=`date +'%m%d'
cp /your_path_to/catalina.out /your_rot_dir/$file_to_zip
echo -n   catalina.out
cd /your_rot_dir
gzip $file_to_zip
cd /your_path_to
$ crontab -e (as a user with reading permission for catalina.log and add the
following line to rotate the log 1 am every day)
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21
If you are very unlucky, you might loose log entrys between the cp statement
and the echo statement.
At least this doesn't change the i-node of the catalina.out file, hence the
logging should continue.
I have not tried this myself, and there is NO WARRENTY that it is working.
I SUGGEST you await some comments from other users here before you trie it
out.
Be aware of possible misspellings of file names. It is ment to give you an
idea of how to rotate the logs.
\trond
 

 

-Opprinnelig melding-
Fra: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, June 29, 2004 21:09
Til: Tomcat Users List
Emne: [GFI-SPAM-BA] - RE: Log rotation HOWTO - Bayesian Filter detected
spam
 

Hi,
Or rather, you can't rotate catalina.out using functionality built into
tomcat. You can use an external tool such as Apache's logrotate (no space in
the name, google for it). And as the original poster mentioned this has been
discussed numerous times ;)
Yoav
-Original Message- 

From: Dale, Matt [mailto:[EMAIL PROTECTED] 

Sent: Tue 6/29/2004 3:05 PM 

To: Tomcat Users List 

Cc: 

Subject: RE: Log rotation HOWTO
 

You can't rotate catalina.out. You shouldnt have much in there anyway if
your webapps are coded correctly. If you have an webapp that outputs a lot
to it you can add a customer logger to the context and it is rotated
automatically every day.
Ta
Matt
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 18:30
To: Tomcat Users List
Subject: Re: Log rotation HOWTO
I didn't find how to make the catalina.log file split each day.
!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the directory attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt
timestamp=true/
what should I change in the following tag to get it done...?
thanks
Emerson
I©q´me Duval wrote:

Search the mailing list! This question was asked recently...


These messages might be useful...


-Original Message-

From: Frank Zammetti [mailto:[EMAIL PROTECTED]

Sent: Tuesday, June 29, 2004 10:04 AM

To: [EMAIL PROTECTED]

Subject: Log rotation HOWTO


I haven't been able to find a clear answer to this anywhere online,

hopefully you fine folks can help...


I need a way to rotate my stdout log in Tomcat 5.0.18. It could be dalily

or weekly (monthly might be OK too).


Is thre any way to do this? I assume so, so how? Thanks in advance all!


_

Get fast, reliable Internet access with MSN 9 Dial-up? now 3 months FREE!

http://join.msn.click-url.com/go/onm00200361ave/direct/01/


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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






Subject:

AW: Managing Tomcat logs

From:

Gunnar Oörschke [EMAIL PROTECTED]

Date:

Tue, 22 Jun 2004 09:24:09 -0400

To:

'Tomcat Users List' [EMAIL PROTECTED]


To:

'Tomcat Users List' [EMAIL PROTECTED]


Could you please use tomcats web admin to change logging settings...


By default you can access http://localhost:8080/admin


You can activate a separate log for several contents.


-Urspr¼ngliche Nachricht-

Von: Veera Sivakumar [mailto:[EMAIL PROTECTED]

Gesendet: Dienstag, 22. Juni 2004 11:47

An: Tomcat Users List

Betreff: Managing Tomcat logs


Hi,

I am using Tomcat as web server for my application. I start Tomcat using

windows service. All the logs generated by the Application are written in
to

a file called stdout.log which is under tomca/logs folder.

I have noticed that with continuous

Re: development/production configuration for JSPs

2004-06-25 Thread Emerson Cargnin
a simple yes/no will be enough...
Emerson Cargnin wrote:
May I set the following in the web.xml of the CATALINA_HOME/conf ??? 
Instead of put this in every application???

init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namereloading/param-name
param-valuefalse/param-value
/init-param
init-param



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: development/production configuration for JSPs

2004-06-24 Thread Emerson Cargnin
any response for this question? :)
Emerson Cargnin wrote:
May I set the following in the web.xml of the CATALINA_HOME/conf ??? 
Instead of put this in every application???

init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namereloading/param-name
param-valuefalse/param-value
/init-param
init-param

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1 - 5.0

2004-06-23 Thread Emerson Cargnin
I thought that warfile/META-INFO/context.xml was the right place
e-Denton Subscriber wrote:
Thanks--it works!
- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0

I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml
Randall
-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?

!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /
Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter
/ResourceParams
/Context

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

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1 - 5.0

2004-06-23 Thread Emerson Cargnin
At least to use default place to be expanded let's say, to just use 
the datasource configuration

e-Denton Subscriber wrote:
Thanks--it works!
- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0

I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml
Randall
-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?

!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /
Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter
/ResourceParams
/Context

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

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


development/production configuration for JSPs

2004-06-23 Thread Emerson Cargnin
May I set the following in the web.xml of the CATALINA_HOME/conf ??? 
Instead of put this in every application???

init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namereloading/param-name
param-valuefalse/param-value
/init-param
init-param
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please introduce a good Tomcat debug tool

2004-06-15 Thread Emerson Cargnin
Please, let's not start a IDE flame war again...
[]s
Emerson

Randy wrote:
I really like intellij by jetbrains 

RP
-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 15, 2004 2:13 PM
To: Tomcat Users List
Subject: Please introduce a good Tomcat debug tool

I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to
debug JSP and Servelt in TOMCAT?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Servlet question

2004-06-14 Thread Emerson Cargnin
Your classes must be inside ROOT/classes ...
is it a servlet or a JSP page...
Daxin Zuo wrote:
I thought this map may not work either.
in my web.xml I mapped the servlet as following:
servlet
servlet-nametestJSP/servlet-name
servlet-classtexcel.testJSP.spiderClass/servlet-class
  /servlet
  servlet-mapping
servlet-nametestJSP/servlet-name
   url-pattern/testJSP/url-pattern
  /servlet-mapping
All me jsp of frames are in ROOT/texcel/testjsp/
when frame2.jsp makes the frame1.jsp submit to testJSP. the error is: The
requested resource (/texcel/testjsp/testJSP) is not available.
if frame2.jsp makes the frame1.jsp submit to
http://localhost:8008/testJSP;, it works.
Look for further instruction.
Thanks.
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 3:49 PM
To: Tomcat Users List
Subject: Re: A Servlet question
  servlet
 servlet-namepartServlet/servlet-name
 servlet-classgov.tresc.sgip.PartServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-namepartServlet/servlet-name
 url-pattern/servlet/partServlet/*/url-pattern
   /servlet-mapping
In this example, to access the servlet you could use
http://localhost:8080/sgip/servlet/partServlet
Daxin Zuo wrote:
You are right, after I send my last email to this list, I tested it with
full URL of the servlet. It worked well. So I need to tell Tomcat that it
is
a servlet.
The previous problem is that Tomcat add the relative path before the
servlet
name.
Could you please give the example for the servlet name mapping?
Thanks.
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: A Servlet question
AFAIK, submiting from a frame is the same as a single page. What was the
error msg you've got?
Probably, it has some problem in the servlet mapping... did you try to
load the jsp alone in the browser and submit it? if it doens't work, it
doens't has to do with the frames at all.
Emerson
Daxin Zuo wrote:

I use Apache 2.4.9, Tomcat 4.1.9.
In a JSP, there there are three frames in a frameset. the script of each
frame is JSP.
Can a JSP in one frame submit to a Servlet? I did a test and failed.
Please

confirm or teach me how to do.
Thanks

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: aliases from apache don't work using soft links

2004-06-14 Thread Emerson Cargnin
Does anyone had this problem? or does anyone uses tomcat inside a soft link?
thanks
Emerson Cargnin wrote:
Maybe this is a little offtopic, although highly related.
I was used to use a symlink to access tomcat, so I could change the 
version just changing the softlink.

Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
This worked fine, but when I updated my system from 5.0.19 to 5.0.25, an 
error showed up, and even changing back to 5.0.19 didn't solved.

error:
Symbolic link not allowed: /opt/tomcat
Thanks in advance

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: aliases from apache don't work using soft links

2004-06-14 Thread Emerson Cargnin
tomcat 5.0.25
apache2-2.0.47-63
I use the mod_jk that cames with Suse 9. The RPM says it's 
apache2-jakarta-tomcat-connectors-4.1.27-32, but it just goes with the 
version of Tomcat. But I'm sure it worked before.

error message: Symbolic link not allowed: /opt/tomcat
Thanks
Schalk wrote:
Which version of mod_jk are you using? And which version of Apache?
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 15, 2004 12:14 AM
:: To: Tomcat Users List
:: Subject: Re: aliases from apache don't work using soft links
:: 
:: Does anyone had this problem? or does anyone uses tomcat inside a soft
link?
:: 
:: thanks
:: 
:: Emerson Cargnin wrote:
::  Maybe this is a little offtopic, although highly related.
:: 
::  I was used to use a symlink to access tomcat, so I could change the
::  version just changing the softlink.
:: 
::  Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
:: 
::  This worked fine, but when I updated my system from 5.0.19 to 5.0.25,
an
::  error showed up, and even changing back to 5.0.19 didn't solved.
:: 
::  error:
:: 
::  Symbolic link not allowed: /opt/tomcat
:: 
:: 
::  Thanks in advance
:: 
:: 
:: 
:: --
:: Emerson Cargnin
:: Analista de Sistemas
:: Setor de Desenvolvimento de Sistemas - TRE-SC
:: tel : (048) - 251-3700 - Ramal 3181
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: aliases from apache don't work using soft links

2004-06-14 Thread Emerson Cargnin
Specifying complete URL where???
what I did was to create the symlink and run tomcat from that. Before 
installing 5.0.25 it worked fine, after not, and returning to 5.0.19 
didn't solve. very strange...

Now i'm using the absolute path to tomcat and running it from there, so 
I have a mapping mod_jk.conf file that uses the absolute paths.

thanks anyway :P

Schalk wrote:
Just an idea, I might be totally of, have you tried specifying the complete
'URL' to the directory?
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 15, 2004 12:42 AM
:: To: Tomcat Users List
:: Subject: Re: aliases from apache don't work using soft links
:: 
:: tomcat 5.0.25
:: apache2-2.0.47-63
:: I use the mod_jk that cames with Suse 9. The RPM says it's
:: apache2-jakarta-tomcat-connectors-4.1.27-32, but it just goes with the
:: version of Tomcat. But I'm sure it worked before.
:: 
:: error message: Symbolic link not allowed: /opt/tomcat
:: 
:: Thanks
:: 
:: Schalk wrote:
::  Which version of mod_jk are you using? And which version of Apache?
:: 
::  Kind Regards
::  Schalk Neethling
::  Web Developer.Designer.Programmer.President
::  Volume4.Development.Multimedia.Branding
::  emotionalize.conceptualize.visualize.realize
::  Tel: +27125468436
::  Fax: +27125468436
::  email:[EMAIL PROTECTED]
::  web: www.volume4.co.za
:: 
::  This message contains information that is considered to be sensitive or
::  confidential and may not be forwarded or disclosed to any other party
::  without the permission of the sender. If you received this message in
error,
::  please notify me immediately so that I can correct and delete the
original
::  email. Thank you.
:: 
::  :: -Original Message-
::  :: From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
::  :: Sent: Tuesday, June 15, 2004 12:14 AM
::  :: To: Tomcat Users List
::  :: Subject: Re: aliases from apache don't work using soft links
::  ::
::  :: Does anyone had this problem? or does anyone uses tomcat inside a
soft
::  link?
::  ::
::  :: thanks
::  ::
::  :: Emerson Cargnin wrote:
::  ::  Maybe this is a little offtopic, although highly related.
::  :: 
::  ::  I was used to use a symlink to access tomcat, so I could change
the
::  ::  version just changing the softlink.
::  :: 
::  ::  Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
::  :: 
::  ::  This worked fine, but when I updated my system from 5.0.19 to
5.0.25,
::  an
::  ::  error showed up, and even changing back to 5.0.19 didn't solved.
::  :: 
::  ::  error:
::  :: 
::  ::  Symbolic link not allowed: /opt/tomcat
::  :: 
::  :: 
::  ::  Thanks in advance
::  :: 
::  ::
::  ::
::  :: --
::  :: Emerson Cargnin
::  :: Analista de Sistemas
::  :: Setor de Desenvolvimento de Sistemas - TRE-SC
::  :: tel : (048) - 251-3700 - Ramal 3181
::  ::
::  ::
-
::  :: To unsubscribe, e-mail: [EMAIL PROTECTED]
::  :: For additional commands, e-mail: [EMAIL PROTECTED]
::  ::
::  ::
::  ::
::  ::
-
::  :: To unsubscribe, e-mail: [EMAIL PROTECTED]
::  :: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
::  -
::  To unsubscribe, e-mail: [EMAIL PROTECTED]
::  For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: 
:: --
:: Emerson Cargnin
:: Analista de Sistemas
:: Setor de Desenvolvimento de Sistemas - TRE-SC
:: tel : (048) - 251-3700 - Ramal 3181
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


aliases from apache don't work using soft links

2004-06-11 Thread Emerson Cargnin
Maybe this is a little offtopic, although highly related.
I was used to use a symlink to access tomcat, so I could change the 
version just changing the softlink.

Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
This worked fine, but when I updated my system from 5.0.19 to 5.0.25, an 
error showed up, and even changing back to 5.0.19 didn't solved.

error:
Symbolic link not allowed: /opt/tomcat
Thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Servlet question

2004-06-11 Thread Emerson Cargnin
AFAIK, submiting from a frame is the same as a single page. What was the 
error msg you've got?
Probably, it has some problem in the servlet mapping... did you try to 
load the jsp alone in the browser and submit it? if it doens't work, it 
doens't has to do with the frames at all.
Emerson

Daxin Zuo wrote:
I use Apache 2.4.9, Tomcat 4.1.9.
In a JSP, there there are three frames in a frameset. the script of each
frame is JSP.
Can a JSP in one frame submit to a Servlet? I did a test and failed. Please
confirm or teach me how to do.
Thanks

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: aliases from apache don't work using soft links

2004-06-11 Thread Emerson Cargnin
Does anyone had this problem? or does anyone uses tomcat inside a soft link?
thanks
Emerson Cargnin wrote:
Maybe this is a little offtopic, although highly related.
I was used to use a symlink to access tomcat, so I could change the 
version just changing the softlink.

Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
This worked fine, but when I updated my system from 5.0.19 to 5.0.25, an 
error showed up, and even changing back to 5.0.19 didn't solved.

error:
Symbolic link not allowed: /opt/tomcat
Thanks in advance

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Servlet question

2004-06-11 Thread Emerson Cargnin
 servlet
servlet-namepartServlet/servlet-name
servlet-classgov.tresc.sgip.PartServlet/servlet-class
  /servlet
  servlet-mapping
servlet-namepartServlet/servlet-name
url-pattern/servlet/partServlet/*/url-pattern
  /servlet-mapping
In this example, to access the servlet you could use
http://localhost:8080/sgip/servlet/partServlet
Daxin Zuo wrote:
You are right, after I send my last email to this list, I tested it with
full URL of the servlet. It worked well. So I need to tell Tomcat that it is
a servlet.
The previous problem is that Tomcat add the relative path before the servlet
name.
Could you please give the example for the servlet name mapping?
Thanks.
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: A Servlet question
AFAIK, submiting from a frame is the same as a single page. What was the
error msg you've got?
Probably, it has some problem in the servlet mapping... did you try to
load the jsp alone in the browser and submit it? if it doens't work, it
doens't has to do with the frames at all.
Emerson
Daxin Zuo wrote:
I use Apache 2.4.9, Tomcat 4.1.9.
In a JSP, there there are three frames in a frameset. the script of each
frame is JSP.
Can a JSP in one frame submit to a Servlet? I did a test and failed.
Please
confirm or teach me how to do.
Thanks

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JAVAC Leaking Memory

2004-06-07 Thread emerson
WOuld be usefull to have the option to set those parameters per TC
installation, and not just per context.
If I use those switches at the web.xml of TC_HOME/conf/web.xml it will
work as it was configured at each context?
 hi,

 I think I am correct when I say javac is only used by tomcat compile
 jsp. You should be able to eliminate javac calls by pre-compiling your
 jsp pages.

 Now, as I have not yet started using tc v.5.x I am not sure if this will
 help, but in 4.1.x there is a switch in /tomcat/conf/web.xml to set the
 jsp compiler engine to forc the process. I recomend that you check that
 one out.

 In my opinion, if you are using tomcat in production environment you
 should turn of any reloading-options as they will always collect
 memory. that means context reloading, auto-deployment, jsp reloading and
 developement switches.

 By doing that you will minimize the overhead (both process and memory)
 of tomcat, leaving only the basic footprint of tomcat with the current
 configuration.

 Hope it helps
 -reynir



 java only wrote:

 Hi All,

 I have seen in Tomcat 5.0.25 Release notes the JAVAC Leaking memory
 problem is mentioned. Earlier I was using Tomcat 3.3.1 and was getting
 java.lang.OutOfMemory Exceptions after every 2-3 days and had to restart
 my Tomcat Server.I am planning to migrate to Tomcat 5.0.25 version , but
 here too seems is the same problem .I am using jdk 1.3.1 version. If I
 use jdk 1.4 version,would this problem be resolved? Or is there any way
 to get around this problem ..?
 Any feedback is welcome...

 Thanks in Advance,

 javaonlyjava.




 -
 Do you Yahoo!?
 Friends.  Fun. Try the all-new Yahoo! Messenger

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



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



Re: Mod_jk error... help me please

2004-05-28 Thread Emerson Cargnin
I'm confused... are you trying to use mod_jk or mod_jk2? mod_jk2 is on 
mod_jk.so, not mod_jk.so, this is the mod_jk library.

Kommuru, Bhaskar wrote:
I have compiled Mod_jk2-2.0.4 with apache2.0.49. But when i configtest/start
apache i get the following error.
# /usr/local/apache2/bin/apachectl configtest
Syntax error on line 269 of /usr/local/apache2/conf/httpd.conf:
Can't locate API module structure `jk2_module' in file
/usr/local/apache2/modules/mod_jk2.so: ld.so.1:
/usr/local/apache2/bin/httpd: fatal: jk2_module: can't find symbol
1. Is there problem with mod_jk.so object i.e. created by compiler?? 
mod_jk??? you mean mod_jk2?
2. Should the compiler version of Apache2.0.49 and Mod_jk2.0.4 be the same? 
3. If so, How can i find version of compiler that compiled apache?

Please help me if any one knows!!
Regards
Bhaskar
__
For information about the Standard Bank group visit our web site www.standardbank.co.za
__
	
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
___


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 out of memory

2004-05-28 Thread Emerson Cargnin
I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) 
and have the same problem...

do you have this kind of message at your catalina.log?
May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Emerson
James Sherwood wrote:
I am using  Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49
Memory just keeps ramping up untill it goes out of memory
It is on a Windows 2003 server
Any Ideas?
Thanks James

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-27 Thread Emerson Cargnin
Thanks a lot bill!!!
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which native
connector you are using.

thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-27 Thread Emerson Cargnin
AFAIK, most os the attributes used in jk2.properties as related to mod_jk2.
What other attributes can be used to configure later mod_jk?
Thanks
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which native
connector you are using.

thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Emerson Cargnin
Jk2 is a refactoring of jk. Jk2 uses APR library, and AFAIK, it's easier 
to build against apache 2. I tried some days to make jk2 to work, 
without too much success. mod_jk is a lot easier. jk2  gives you 
statistics of the connector from the apache side.

Emerson
Reis, Tom wrote:
I am confused as to which connector to use for connecting II 6.0 Tomcat 
4.1.30. It appears that either the JK 1.2 or the JK 2 will work but I am uncertain. If 
someone could clarify the difference between these connectors and which to use I would 
greatly appreciate it. Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Getting messages: INFO: Unknown message 0

2004-05-27 Thread Emerson Cargnin
The errors sttoped, but I still get the following messges in catalina.log
May 27, 2004 1:52:48 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:54:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:55:20 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 27, 2004 1:56:09 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Emerson Cargnin wrote:
AFAIK, most os the attributes used in jk2.properties as related to mod_jk2.
What other attributes can be used to configure later mod_jk?
Thanks
Bill Barker wrote:
Emerson Cargnin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...
I've seen a sugestion of the request.registerRequests=false to put in
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll
try this too. But... where do I put this conf, as mod_jk does not have a
jk.properties file. could be it worker.properties?

You put it in $CATALINA_HOME/conf/jk2.properties.  This file controls the
settings for the java side of the JK Connector, regardless of which 
native
connector you are using.


thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181



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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Horrible memory leak in tomcat 5.0.19

2004-05-26 Thread Emerson Cargnin
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...

I've seen a sugestion of the request.registerRequests=false to put in 
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll 
try this too. But... where do I put this conf, as mod_jk does not have a 
jk.properties file. could be it worker.properties? :)

thanks in advance
Joseph Shraibman wrote:
Robert Krüger wrote:
Hi,
we had the same problem (enormous memory leak which frequently made 
our production system crash), downgraded to 5.0.18 and everything went 
back to normal. Just yesterday a colleague of mine came to the 
conclusion that it is not too unlikely that it is the problem 
described in the message

http://www.mail-archive.com/[EMAIL PROTECTED]/msg53035.html
It that is so, you can simply disable the JMX registration of requests 
to get rid of the problem. We will try that probably later today but 
of course you can give it a shot yourself. There is not much to lose.

I was able to figure out how to reproduce this problem on my test 
machine (using multiple concurrent requests).

I added to my jk2.properties:
request.registerRequests=false
This got rid of some of the messages in catalina.out but left these:
Mar 19, 2004 1:47:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 19, 2004 1:47:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
... and the memory leak did not go away.
The message that I'm not getting anymore are:
Mar 19, 2004 1:25:34 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 19, 2004 1:25:34 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...

I've seen a sugestion of the request.registerRequests=false to put in 
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll 
try this too. But... where do I put this conf, as mod_jk does not have a 
jk.properties file. could be it worker.properties?

thanks in advance
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
Just to add, even when not getting out of memory, my catalina.log shows:
ay 26, 2004 3:44:35 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:36 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:37 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:43 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
May 26, 2004 3:44:55 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:46:15 PM org.apache.jk.common.HandlerRequest decodeRequest
Emerson Cargnin wrote:
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...

I've seen a sugestion of the request.registerRequests=false to put in 
jk2.properties. I'm using mod_jk, but as I see a similar message, I'll 
try this too. But... where do I put this conf, as mod_jk does not have a 
jk.properties file. could be it worker.properties?

thanks in advance


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
At this moment I have 5492 times the line WARNING: Error registering 
request at my catalina log

maybe this could be the cause of the memory leak?
In mod_jk, how do I solve this? in jk2 the solution is to add the 
request.registerRequests=false in jk2.properties

I have an upgraded prodution server that is running out of memory all 
the time, and I have to monitor it and reinitialize it periodically :)

thanks
Emerson
Emerson Cargnin wrote:
Just to add, even when not getting out of memory, my catalina.log shows:
ay 26, 2004 3:44:35 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:36 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:37 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:43 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
May 26, 2004 3:44:55 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:46:15 PM org.apache.jk.common.HandlerRequest decodeRequest
Emerson Cargnin wrote:
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...

I've seen a sugestion of the request.registerRequests=false to put 
in jk2.properties. I'm using mod_jk, but as I see a similar message, 
I'll try this too. But... where do I put this conf, as mod_jk does not 
have a jk.properties file. could be it worker.properties?

thanks in advance



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat 5.0.25 - Problem in running jsp

2004-05-26 Thread Emerson Cargnin
5.0.25
could it be 5.0.24?
Emerson
Rajesh_Narayanan wrote:
When i try to run any .jsp file (even hello world).. its throwing following
error:
-
ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling file:
/C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java
[javac] Compiling 1 source file
C:\workspace\VCE2\work\org\apache\jsp\org\apache\jsp\hw_jsp.java:48:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
if (_jspx_page_context != null)
_jspx_page_context.handlePageException(t);
  ^
1 error
--
Am I missing any .jar?...
Your help is appreciated.
Thanks
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put request.registerRequests=false when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
Does anyone could comment on that??
For what I saw the changelog of 5.0.25, there ins't any change in this 
field...

At this moment I have 5492 times the line WARNING: Error registering
request at my catalina log
maybe this could be the cause of the memory leak?
In mod_jk, how do I solve this? in jk2 the solution is to add the
request.registerRequests=false in jk2.properties
I have an upgraded prodution server that is running out of memory all
the time, and I have to monitor it and reinitialize it periodically :)
thanks
Emerson
Emerson Cargnin wrote:
Just to add, even when not getting out of memory, my catalina.log shows:
ay 26, 2004 3:44:35 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:36 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:37 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:44:43 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
May 26, 2004 3:44:55 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 26, 2004 3:46:15 PM org.apache.jk.common.HandlerRequest decodeRequest
Emerson Cargnin wrote:
I'm running out of memory with the msg:
...
WARNING: Error registering request
May 25, 2004 5:36:44 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
[EMAIL PROTECTED], terminating thread
May 25, 2004 5:37:05 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
...

I've seen a sugestion of the request.registerRequests=false to put 
in jk2.properties. I'm using mod_jk, but as I see a similar message, 
I'll try this too. But... where do I put this conf, as mod_jk does not 
have a jk.properties file. could be it worker.properties?

thanks in advance



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Hot deploy

2004-05-26 Thread Emerson Cargnin
dai cara!! :P
you have to undeploy before deploying again an already existing 
application...


Claudio Carvalho wrote:
Cláudio CarvalhoHi,
Does anybody know how to make a deploy on a running tomcat (hot deploy)?
When I try do it using the Tomcat Web Application Manager, I got the following message
FAIL - Application already exists at path /myapplicationThanks.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Hung!!! Help needed

2004-05-25 Thread Emerson Cargnin
my kernel is 2.4.21-99, does help using this export? :)
Zsolt Koppany wrote:
Did you try:
export LD_ASSUME_KERNEL=2.2.5
... start tomcat now
Zsolt

-Original Message-
From: Innovest Ken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 6:08 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Hung!!! Help needed
hello all,
Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.
I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.
I can post any more info upon request. Any help???
Thanks
Here is part of the server.xml:
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
 Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
 /Connector

innovest

	
		
__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Hung!!! Help needed

2004-05-25 Thread Emerson Cargnin
actually, my problem is memory consuming, I think you thought I had 
questioned first :) I'm using suse 9.1, does this export help in 
something in my case?

thaks
Emerson
Ryan Lissack wrote:
Hi,
Yes it will more than likely fix your problem.  It is a problem with RedHat
9 and NPTL.  Search the archives for further information.
Also you are probably better off using the following:
export LD_ASSUME_KERNEL=2.4.1
Ryan.
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 25 May 2004 17:28
To: Tomcat Users List
Subject: Re: Tomcat Hung!!! Help needed
my kernel is 2.4.21-99, does help using this export? :)
Zsolt Koppany wrote:
Did you try:
export LD_ASSUME_KERNEL=2.2.5
... start tomcat now
Zsolt

-Original Message-
From: Innovest Ken [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 6:08 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Hung!!! Help needed
hello all,
Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.
I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.
I can post any more info upon request. Any help???
Thanks
Here is part of the server.xml:
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
/Connector

innovest

	
		
__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


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




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Short Read error

2004-05-21 Thread Emerson Cargnin
These error occured at a TC 3.2.1 running un a HP-UX host (with 
virtualvault). This error never happened before.

I've got the following error when reading an request parameter:
124th line at my code : 
String cod_localidade_TSE = req.getParameter(munic);
obs: This happened at a production site, so the only thing I can tell 
(by a exception handling routine) is that there wasn't any parameters at 
the request.

Stacktrace:
java.lang.IllegalArgumentException: Short Read
	at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
	at org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
	at 
org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:719)
	at 
org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
	at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
	at 
org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRequestFacade.java:223)
	at gov.tresc.sgip.PartServlet.consulta(PartServlet.java:124)
	at gov.tresc.sgip.PartServlet.doGet(PartServlet.java:39)
	at gov.tresc.sgip.PartServlet.doPost(PartServlet.java:247)
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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


Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
wsedio wrote:
On 19-05-2004 23:15, Michiel Toneman wrote:
We were having severe memory problems too with 5.0.19.

Does Tomcat 5.0.24 fix this problem?
We added this to the jk2.properties:
 request.registerRequests=false
and the memory usage was normal again. Somewhat non-obvious, I agree. 
It also gets rid of Error registering request messages in 
catalina.out. We are using mod_jk (1.2) with Apache 1.3.x on Sun 
Solaris and Linux.

Do you have to add the setting even if you are using jk 1.2 (not jk 2)?
Someone could answer this question, please? Becouse my available memory 
is going down from 120 to 50 and to 10 megabytes to fast. And I'm not 
finding any leak in my apps...


Below is the memory profile of one of our servers before and after the 
change (old generation memory refers to the memory buckets in the 
garbage collector. For more information, see jvmstat. At 100% you will 
start getting OutOfMemory errors):

How do you get the memory profile? Is it a Tomcat command?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
 Someone could answer this question, please? Becouse my available memory
 is going down from 120 to 50 and to 10 megabytes to fast. And I'm not
 finding any leak in my apps...
Sorry if I looked rude, didn't mean that   :P
Maybe this leak is solved in tomcat 5.0.24??
Emerson Cargnin wrote:
wsedio wrote:
On 19-05-2004 23:15, Michiel Toneman wrote:
We were having severe memory problems too with 5.0.19.

Does Tomcat 5.0.24 fix this problem?
We added this to the jk2.properties:
 request.registerRequests=false
and the memory usage was normal again. Somewhat non-obvious, I agree. 
It also gets rid of Error registering request messages in 
catalina.out. We are using mod_jk (1.2) with Apache 1.3.x on Sun 
Solaris and Linux.

Do you have to add the setting even if you are using jk 1.2 (not jk 2)?



Below is the memory profile of one of our servers before and after 
the change (old generation memory refers to the memory buckets in 
the garbage collector. For more information, see jvmstat. At 100% you 
will start getting OutOfMemory errors):

How do you get the memory profile? Is it a Tomcat command?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Memory leak with Tomcat 5.0.19

2004-05-20 Thread Emerson Cargnin
Our load is very low, and all the new app deployed after changing to 
5.0.19 was tested (undeployed to see if mem usage get lower) and I 
didn't find any other clue.

I think I'll have to profile it... hope to find the hole ;P
thanks anyway
Emerson
Shapira, Yoav wrote:
Hi,
What if your webapp actually requires more than 120MB of memory under
your load?
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 1:09 PM
To: Tomcat Users List
Subject: Re: Memory leak with Tomcat 5.0.19
wsedio wrote:
On 19-05-2004 23:15, Michiel Toneman wrote:

We were having severe memory problems too with 5.0.19.

Does Tomcat 5.0.24 fix this problem?

We added this to the jk2.properties:
request.registerRequests=false
and the memory usage was normal again. Somewhat non-obvious, I
agree.
It also gets rid of Error registering request messages in
catalina.out. We are using mod_jk (1.2) with Apache 1.3.x on Sun
Solaris and Linux.

Do you have to add the setting even if you are using jk 1.2 (not jk
2)?
Someone could answer this question, please? Becouse my available memory
is going down from 120 to 50 and to 10 megabytes to fast. And I'm not
finding any leak in my apps...

Below is the memory profile of one of our servers before and after
the
change (old generation memory refers to the memory buckets in the
garbage collector. For more information, see jvmstat. At 100% you
will
start getting OutOfMemory errors):

How do you get the memory profile? Is it a Tomcat command?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


strange behaviour of available memory in status page

2004-05-19 Thread Emerson Cargnin
I use Suse 9.1 / Jdk 1.4.2-b28 ? TC 5.0.19
Recently I've been checking the status page due a memory leaks in one of 
our apps. I could see that the memory goes down as I reload the status 
page (/manager/status), but in a very slow fashion (about 0.3 megabytes 
per reload) until the GC is activated and the memory goes up again.

I tested it again have some time and could see the memory going down in 
giant steps, about 20-30 megas per reload. Just checked and it returned 
to normal.

Is this normal behaviour?
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can I use Tomcat 4.1.29 with Apache 1.3.x

2004-05-19 Thread Emerson Cargnin
AFAIK, jk2 doesn't require http2. The problem is that http2 comes with 
APR, as apache 1.3 don't use it, so you have to make it available.

please, correct me if I'm wrong...
Emerson
Yansheng Lin wrote:
jk2 needs httpd2.  You might want to try mod_webapps connector.  It's very
simple to set up btw.
-Yan
-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: May 19, 2004 14:13
To: Tomcat Users List
Subject: Re: Can I use Tomcat 4.1.29 with Apache 1.3.x

: Or do I need to go with an older version of Tomcat?
short answer:
It's possible to use Apache 1.x w/ Tomcat 4.x.
long answer:
Tomcat-Apache interaction is handled by connectors, aka jk and jk2.
These are Apache plugins/DSOs/modules/etc.  Both jk and jk2 can talk to
either of Tomcat 4 or Tomcat 5.
I believe JK2 requires Apache2 but I may be wrong on that, so don't
quote me.
Search the Apache site for details.
-QM

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


hwo to discover which app is is wating memory

2004-05-17 Thread Emerson Cargnin
Is there any way do discover which app is taking all the memory of the 
server?

I have 21 applications running at our production server. And from some 
days to now my TC instance is running out of memory. I configured it to 
use 128 megs, as the machine is also used as http server and has just 
256 mgs. In manager , server status givis me the total of memory used by 
tomcat, how do I find this use per app?? Will the answer be: use a 
profiler??  I think that this feature (mem per app) could help a lot to 
distinguish which app is consuming all the memory.

Thanks
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: hwo to discover which app is is wating memory

2004-05-17 Thread Emerson Cargnin
That's was I thought at first. Hadn't thought of all the implications in 
having the statistics broken by app.

thanks a lot anyway.
Emerson
Shapira, Yoav wrote:
Hi,
To continue my previous message, which I sent too early: so in practice,
one way to find out is by stress testing one application at a time and
seeing its memory usage to find the bad one if one exists.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 1:56 PM
To: Tomcat Users List
Subject: hwo to discover which app is is wating memory
Is there any way do discover which app is taking all the memory of the
server?
I have 21 applications running at our production server. And from some
days to now my TC instance is running out of memory. I configured it to
use 128 megs, as the machine is also used as http server and has just
256 mgs. In manager , server status givis me the total of memory used
by
tomcat, how do I find this use per app?? Will the answer be: use a
profiler??  I think that this feature (mem per app) could help a lot to
distinguish which app is consuming all the memory.
Thanks
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why 41 processes with Tomcat under Linux

2004-05-17 Thread Emerson Cargnin
Under kernel post 2.6 you'll see just one process per JVM.
Sheng Huang wrote:
Hi Bob,
Some process may be child processes of the Tomcat processes. For example,
Tomcat may have a process for a specific jar in the /lib directory. You can
tell this by examining process id. The root tomcat process id will have
ppid=1, where others will have ppid = pid of the root process. If you kill
the root process, all child processes of this process will be terminated.
Sheng
-Original Message-
From: Bob White [mailto:[EMAIL PROTECTED]
Sent: May 17, 2004 5:05 PM
To: [EMAIL PROTECTED]
Subject: Why 41 processes with Tomcat under Linux
I just installed TC 5.0.19 under Linux and I find that it causes 41 Tomcat
processes to be launched.  Why is this?  How can I control the number of
processes that are created?  Is this to be expected?
I naively expected only one Tomcat process.  There is absolutely no load on
the
server, it just initally generates 41 Tomcat processes.
..Bob.
=
--Bob White-- home:727-490-7363, cell:727-463-6061
New (popup free!) photos of Polina: http://polina.70kg.com/
Everything that irritates us about others can lead us to an understanding of
ourselves. - Carl Jung
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: BIG Problem

2004-05-14 Thread Emerson Cargnin
Send this to an ASP maillist :)

look at the error I just got when accessing the page:

Microsoft OLE DB Provider for SQL Server error '80004005'

Cannot open database requested in login 'k-server'. Login fails.

/vote/scriptlet.asp, line71

:)



Adam Buglass wrote:
Much as I sympathise with your problem, would you mind not sending it to
mailing lists such as this where it is totally irrelevant.
I would suggest enlisting the help of sympathetic religious groups,
politicians, world aid organisations and most importantly Amnesty
International.
In the meantime, so you really expect me to vote with radio buttons on a
site which I cannot even begin to understand? I failed A-Level French so
how can I begin to comprehend full-blown Arabic?
This e-mail does not appear very proffessional and for all I know you
are being dishonest - it could be a hoax to get us to vote for whatever
those radio buttons mean.
You see why this is not very useful?

On Fri, 2004-05-14 at 11:01, Ivan Petrov wrote:

Hi Tomcat users,

DO YOU AGREE TO CHANGE THE DEATH PENALTY FOR THOSE WHO 
CONTAMINATED THE BLOOD OF LYBEENS CHILDREN WITH AIDS?

BTW: It is NOT the right question: Bulgarian medics DIDN'T contaminate 
the blood. 3 diferent independent commisions, with strong professors in aids 
area, told that THE INFECTION IS STARTED 1 YEAR before Bulgarian 
medics to come in the Lybian hospital and it is internal hospital problem -
very bad hygiene and multiple usage of same injection. Lybians treing to
escape his own guilty with bulgarian medics - THAT IS NOT JUSTICE.
Please people don't trust them - see the facts! 
Lybians have one confession received  from one of the 5 bulgarian 
nurses, after 2 MOUNTS beating, thrashing, whopping, wresting nails,
 and a lot other tortures in the Lybian jail - THAT IS THE CRIME and
it can be THE ONLY ARGUMENT to EXECUTE 5 INNOCENT NURSES!

FREE THE BULGARIAN MEDICS NOW!

http://www.aljazeera.net/
First Radion Button: CHANGE IT! 
Second Radion Button:KILL THEM ALL

Please re-send it to all your contacts!

-
http://sport.netinfo.bg/ - ...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JProfiler vs. JProbe

2004-05-13 Thread Emerson Cargnin
have any of you taken a look at hyades?

http://www.eclipse.org/hyades/

Will Hartung wrote:
From: tom ly [EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 8:18 AM


My team is thinking about getting a profiling tool.  Does anybody have any
experience with either tool?  What are your thoughts about each one?

I've had mediocre success with any of them.

They all seem to basically do the same thing, they're all pretty darn slow,
and they've never really told us much that we didn't know already.
With our J2EE app, a lot of our issues turned out to be contention in the
container, something none of these tools were able to narrow down, isolate,
or identify (even some of the $$$ enterprise tools).
I've tried these tools, yet I still have better luck with strategically
placed Log4J statements, occasional thread dumps, and verbose GC chatter.
Even the stock hprof is basically usable, once you get the hang of it.
It's not that the tools aren't good, its just, to me, for the money, they're
not a good value over things that are readily available.
As a developer, you typically KNOW what's slow anyways, and a bit of logging
instrumentation goes a long way. If user X clicks on button Y and it feels
slow, that alone narrows down the problem.
For monitoring some behaviors, try BEA JRockit, it comes with a nice memory
profiler system built in. It also has a method profiler.
Finally, if you're looking for production logging, none of the tools
mentioned will help there at all. They're too expensive (performance wise)
to run.
If you have NO IDEA why you code is slow, these tools MAY help you. But in
that case they overwhelm you with so much data, that it's pretty much
hopeless. Wow, StringBuffer is the culprit. Yea, that's real helpful
information. We only call it 8000 times throughout the app.
It takes diligence and patience to tune your app, tune it one piece at a
time, make sure you can duplicate your results through load testing, and
make sure you only tweak one knob at a time, otherwise you may not know what
made it faster/slower.
Tune early, tune often.

One of the things we did was we wrote our own logging JDBC layer (they are
all simply interfaces, after all) which checks how long SQL queries take,
and logs those that hit a specific threshold. Dumps the SQL, dumps the bind,
whole ball of wax. Then we can go through that log on a regular basis to
tune queries, the DB, or the code. That helped a LOT for our system.
Regards,

Will Hartung
([EMAIL PROTECTED])
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat 5.0.25 with eclipse sysdeo plugin

2004-05-12 Thread Emerson Cargnin
I noticed that when upgrading to 5.0.24 in my dev machine, the logs stop 
appearing at console with the message:

log4j:WARN No appenders could be found for logger 
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

Does it has happened with anyone?
This plugin gives some error to debug with eclipse M8. Does anyone know 
a plugin that enables debbuging inside eclipse?

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 JK2 and IIS 5

2004-05-10 Thread Emerson Cargnin
There could be one of this to linux ;)

Raymond Blum wrote:
Thanks,  I will try it, The install2iis,.js that Jakarta puts out bombs 
trying to find the web server root dir.

---Raymond
On May 9, 2004, at 7:48 PM, Shane Linley wrote:
Well to tell the complete truth, at my site here we used this open source
JK2 IIS installer to do all the nitty gritty for us!
http://www.shiftomat.com/opensource/

It doesn't use the latest version of JK2, but I don't see why a simple 
dll
upgrade shouldn't fix that :)

This is the easiest way I've seen to install JK2... Otherwise I know 
of no
other way to help you at the moment...

shane..

-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat
is listening for HTTP requests instead of the default of 8080  I do
have the entry you describe below
---Raymond
On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009
not
8080 which is the default HTTP connector port. You worker2.properties
file
should specify to use port 8009 for your ajp13 connector and not 8018.
In your server.xml file look for an entry similar to:

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
to see what port your ajp13 connector is listening on.

Regards,
Shane.
-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and googled
this a dozen ways.
---Raymond
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Emerson Cargnin
You can create a different ip address for the same machine using 
ifconfig. Take a look at the archive, I once send a better explanation 
on that... This approach is better than changing ports so you can use 
the default ports, just define an ipAdress tag for each different isntance.

Yansheng Lin wrote:
Huh, interesting.  So you want all your three instances of Tomcat running at
the same time on the same box.  I am afraid Tomcat is not built that way.
But not sure it's not doable, just change the port that the 2nd and 3rd
instances listens too, you should be fine.  Not sure what you intend to
achieve here though.
-Yan

-Original Message-
From: Bond [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Muiltipul Tomcat 5.19 Servers on the same machine.



Hey Everyone,

I want to install 3 instances of Tomcat 5.19 as a
service on one box.  When I do this, I install each
one into it's own unique directory.  However, when I
try to start the service, it seems to not recognize
the 2nd or 3rd install.  I think I need to do some
more configuration here.  Anybody have any ideas on
how to do the above.   

Thanks in advanced.



	
		
__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto-configuration of mod_jk

2004-04-23 Thread Emerson Cargnin
Let me clear a little :

I used tomcat 3.2.3 with mod_jk, and automatic configuration

I'm upgrading to tomcat 5

I got mod_jk to work nicely

The problem is the automatic generation of mod_jk.conf

- It generates the tag regarding to virtualhost, so apache is unable to 
read the jkMount directives.

- I tried to use my host as the tag host of name property in server xml 
and defaultHost of engine, but it didn't work either.

- The only way to make it work is stripping the VIrtualHost tag. The 
problem is that it is regenerated, unless I use it to create the 
initical configuration.

SO I'd tried jk2 too, using unix sockets.
I'm getting the message (error?):
[Fri Apr 23 18:07:35 2004] [debug] mod_so.c(290): loaded module jk2_module
[Fri Apr 23 18:07:35 2004] [debug] ../../server/apache2/mod_jk2.c(426): 
mod_jk2 Create config for default server (null)

thanks for boring you... :)

Emerson

Daniel Gibby wrote:
Emerson,

I don't think many of us are understanding what it is you are asking... 
What are you trying to accomplish or what errors or obstacles are you 
trying to overcome?

Daniel Gibby

Emerson Cargnin wrote:

I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:
VirtualHost localhost
ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???
Listener className=org.apache.jk.config.ApacheConfig append=true
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties 

   /






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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: virtual host...

2004-04-22 Thread Emerson Cargnin
please, I really need some explanation about this.. or some link to it...

thanks...
Emerson
Emerson Cargnin wrote:
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the 
jkmount clauses:

VirtualHost localhost
ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost 
clause has to match with some apache configuration???

Listener className=org.apache.jk.config.ApacheConfig append=true 
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties 
   /






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


connection Poll

2004-04-22 Thread Emerson Cargnin
is there a way to create connection pools per app just with files inside 
the .war file? The problem is that I don't access to our internet server 
conf file.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: connection Poll

2004-04-22 Thread Emerson Cargnin
5.0.19.



Parsons Technical Services wrote:
Yes.

What version of Tomcat?

- Original Message - 
From: Emerson Cargnin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 12:52 PM
Subject: connection Poll



is there a way to create connection pools per app just with files inside 
the .war file? The problem is that I don't access to our internet server 
conf file.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


auto-configuration of mod_jk

2004-04-22 Thread Emerson Cargnin
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:
VirtualHost localhost
ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???
Listener className=org.apache.jk.config.ApacheConfig append=true
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties 

   /



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-20 Thread Emerson Cargnin
I'll try this afterwards, but the generated mod_jk.conf file will be the 
same...

In the docs of configuration of mod_jk.conf there's no mentioning of 
virtualHost tag...

Emerson Cargnin wrote:
Ok, I finally got our production server to work with tomcat 5.
The problem, that I said before is that I had to strip the following 
part to make it work form the generated file.:

 VirtualHost localhost
ServerName localhost
The problem is that it'll be regenerated each time I restart tomcat

Any help on this?? how to make the virtualhost configuration to work or 
how to make the generated file not have this?

Thanks anyway!!! :)
that's just what's missing to make our upgrade to tomcat 5.0.19...
Emerson Cargnin

Emerson Cargnin wrote:

Still trying to configure mod_jk.

The log from mod_jk when apache is started:

[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/connManager/servlet/gerenciadorconn/=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, exact rule 
/connManager/gerenciadorconn=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jspx=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jsp=ajp13 was added

The URL I try to browse:

http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools 

The log from mod_jk:

[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (500)]: Attempting to 
map URI '/connManager/servlet/gerenciadorconn'
[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

I can't undertand, the mapping looks fine (generated automatic by 
tomcat), the apache log show the mapping I test in the browser, but 
the log of apache show that there's not a match :(

Any help???

thanks in advance

Emerson

Emerson Cargnin wrote:

the strange thing is that a virtualhost tag is generated and no rule 
is created... if I take those out I can see the rules being created

How do I configure the autogeneration of the conf file not put the 
virtualhost tag???

Other question: the loadmodule, log and worker files and log level 
are generated in the mod_jk.conf file, do I need them anyway at 
httpd.conf?

thanks
Emerson
Yang Xiao wrote:

Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false 
modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /

That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, 
April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to 
make apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???










--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: the pain of choice

2004-04-20 Thread Emerson Cargnin
Strange you saying that if everyday I see so many problems and bugs in 
jk2...

A question : jk2 can use the same mod_jk.config used by jk?

question 2 : I've asked before but here it goes :

- How can I make tomcat  generate the mod_jk.conf withou those 
virtualhost tag? this makes apache ignore everything that goes 
inside this. DO I have to configureapache to be aware of this 
virtualhost config? Or i have to configure some property at the 
respective listeners of server.xml to do this

Thanks
Emerson
Angus Mezick wrote:
Jk vs jk2.  JK is dead STOP USING IT.  JK2 all the way!! (sorry, jk2 is
the prefered way to link apache2 to tomcat[45])
I would suggest using tomcat 4 for now if you are going immediately into
a production environment where you have to abide by a server level
agreement.  Otherwise use tomcat 5.  Tomcat 5 is listed as stable but
seems a bit shakey right now with the bugs that keep popping up.
There is no reason that I know of not to use Apache2.

You will be using worker2.properties.

Since I know nothing about JK I can't comment on the rest.



-Original Message-
From: C. Kukulies [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 5:33 PM
To: [EMAIL PROTECTED]
Subject: the pain of choice

Can someone give me an advice which way to go WRT to using a 
tomcat/apache combo on a Unix (not Linux) system?

There are so many options, jk, jk2, tomcat 3-4-5, apache 1.3, apache2.
worker.properties worker2.properties, jk2.properties in tomcat/conf,
mod_jk.conf in etc/apache, mod_jk, mod_jk2.
Then I see constructs in brackets [] in worker.properties and 
without these.
What is workers.host=jsp-hostname? Is it an IP host? Or is it 
some placeholder
which must be in workers.list?

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: the pain of choice

2004-04-20 Thread Emerson Cargnin
once I got jk2 build to work...
I remember having to create dirs and copy files by hand...
[]s
Emerson
to Greg Adams wrote:
Sad but true. Why DON'T the ant build files work? Did someone get lazy? Is
JK2 part of a source tree that we're only getting a portion of when we
download the source tarball?

Great, let's use JK2

My experience:

rant-mode

   tar -xvzf jakarta-tomcat-connectors-jk2-src-current.tar.gz
   cd jakarta-tomcat-connectors-jk2-2.0.4-src/
   less README.txt - gibberish, doesn't help me much
   less RELEASE-NOTES.txt
   --
Tomcat Connectors Version @VERSION@
   Release Notes
   This version matches the version included with tomcat-5.0.2, and
   supports tomcat 3.3, 4.0, 4.1, 5.0.
   Bugs and issues will be tracked with tomcat5 - this file will list
   only issues related with
   older versions.
   --
   5.0.2??? my confidence is growing.

   ls doc/*
   doc/install_tomcat33.html  doc/install_tomcat40.html
   doc/install_tomcat41.html
   Hmmm, I want to install it for tomcat 5.0.19. Ok, I'll read the most
   current (install_tomcat41.html). Try it, it's quite amusing... Not
   helpful.
   ant

   
   Buildfile: build.xml
   build:

   BUILD FAILED
   file:/data/michiel/jakarta-tomcat-connectors-jk2-2.0.4-src/build.xml:45:
   Basedir /data/michiel/jakarta-tomcat-connectors-jk2-2.0.4-src/util
   does not exist
   Total time: 1 second
   --
   Ok, it can't find it's own files Great

   cd jk

   See if this works.

   ant

   --
   Buildfile: build.xml
   detect:
[echo]  jakarta-tomcat-connectors 
   prepare:

   BUILD FAILED
   file:/data/michiel/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build.xml:142:
   Warning: Could not find file
   
/data/michiel/jakarta-tomcat-connectors-jk2-2.0.4-src/coyote/build/lib/tomcat-coyote.jar
   to copy.
   Total time: 1 second
   --
   lets read the README.txt

   blablabla Tomcat 4.1. No mention of Tomcat 5.x

   This feels like abandoned alpha software all the way, there is NO
   WAY I'm putting this on a production machine.
/rant-mode

Summary: if you package and distribute software like this, how on earth
do you expect your users to build, let alone use it?
Cheers,

Michiel

P.S. Compare this to the Tomcat release on UNIX:

tar xvzf jakarta-tomcat-xxx.tgz
cd jakarta-tomcat-xxx
bin/startup.sh
it works

Angus Mezick wrote:


Jk vs jk2.  JK is dead STOP USING IT.  JK2 all the way!! (sorry, jk2 is
the prefered way to link apache2 to tomcat[45])
I would suggest using tomcat 4 for now if you are going immediately into
a production environment where you have to abide by a server level
agreement.  Otherwise use tomcat 5.  Tomcat 5 is listed as stable but
seems a bit shakey right now with the bugs that keep popping up.
There is no reason that I know of not to use Apache2.

You will be using worker2.properties.

Since I know nothing about JK I can't comment on the rest.





-Original Message-
From: C. Kukulies [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 5:33 PM
To: [EMAIL PROTECTED]
Subject: the pain of choice
Can someone give me an advice which way to go WRT to using a
tomcat/apache combo on a Unix (not Linux) system?
There are so many options, jk, jk2, tomcat 3-4-5, apache 1.3, apache2.
worker.properties worker2.properties, jk2.properties in tomcat/conf,
mod_jk.conf in etc/apache, mod_jk, mod_jk2.
Then I see constructs in brackets [] in worker.properties and
without these.
What is workers.host=jsp-hostname? Is it an IP host? Or is it
some placeholder
which must be in workers.list?
--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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




--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED

Re: auto generation of mod_jk.conf in tomcat 5

2004-04-20 Thread Emerson Cargnin
Any answer for this

BTW... is there an automatic generation of mapping for jk2 too???

Emerson Cargnin wrote:
Ok, I finally got our production server to work with tomcat 5.
The problem, that I said before is that I had to strip the following 
part to make it work form the generated file.:

 VirtualHost localhost
ServerName localhost
The problem is that it'll be regenerated each time I restart tomcat

Any help on this?? how to make the virtualhost configuration to work or 
how to make the generated file not have this?

Thanks anyway!!! :)
that's just what's missing to make our upgrade to tomcat 5.0.19...
Emerson Cargnin

Emerson Cargnin wrote:

Still trying to configure mod_jk.

The log from mod_jk when apache is started:

[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/connManager/servlet/gerenciadorconn/=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, exact rule 
/connManager/gerenciadorconn=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jspx=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jsp=ajp13 was added

The URL I try to browse:

http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools 

The log from mod_jk:

[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (500)]: Attempting to 
map URI '/connManager/servlet/gerenciadorconn'
[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

I can't undertand, the mapping looks fine (generated automatic by 
tomcat), the apache log show the mapping I test in the browser, but 
the log of apache show that there's not a match :(

Any help???

thanks in advance

Emerson

Emerson Cargnin wrote:

the strange thing is that a virtualhost tag is generated and no rule 
is created... if I take those out I can see the rules being created

How do I configure the autogeneration of the conf file not put the 
virtualhost tag???

Other question: the loadmodule, log and worker files and log level 
are generated in the mod_jk.conf file, do I need them anyway at 
httpd.conf?

thanks
Emerson
Yang Xiao wrote:

Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false 
modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /

That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, 
April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to 
make apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???










--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


tomcat virtual hosts question

2004-04-20 Thread Emerson Cargnin
If I have configured some virtualhosts through tomcat, may I manage each 
one in a independent way like each one having a separate manager app???



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


virtual host...

2004-04-20 Thread Emerson Cargnin
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the 
jkmount clauses:

VirtualHost localhost
ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost 
clause has to match with some apache configuration???

Listener className=org.apache.jk.config.ApacheConfig append=true 
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties 
   /



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: virtual host...

2004-04-20 Thread Emerson Cargnin
please, I really need some explanation about this.. or some link to it...

thanks...
Emerson
Emerson Cargnin wrote:
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the 
jkmount clauses:

VirtualHost localhost
ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost 
clause has to match with some apache configuration???

Listener className=org.apache.jk.config.ApacheConfig append=true 
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties 
   /






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


setting cookies in servlet and read inside the JSP

2004-04-19 Thread Emerson Cargnin
How do I read a cookie (inside a JSP) that I created inside a servlet. 
It looks that it has different path properties and so when I'm inside 
the JSP it can't read the cookie...

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Emerson Cargnin
You can hide all this files inside the WEB-INF directory. It will be 
included when called by a JSP or servlet, but not served directly...

Stephen Bacon wrote:
Hello,
  I've got Tomcat 5 running standalone. Unfortunately I cannot 
discover how to prevent non-JSP files from being served. Specifically, 
I've got code sections (which aren't really appropriate to be written as 
beans) which I jsp:include into several pages. I end up giving all of 
these the extension .jspinclude.
Provided you know the name of the file, you can request it and see the 
source. This is also be the case for other files I do not want visible.
Previously I had Tomcat 3 connected to Apache and used Apache's config 
mechanism to deny access to files with certain extensions. Now I'm 
moving to Tomcat 5 and decided to give a standalone setup a try.
Is there a way to configure TC5 so that it gives a 404 error for all 
files with a certain extension (or name-matching a reg exp string)? Or 
conversely, configuring it so that it only serves files with an 
extension in [jsp, html, gif]?
thanks,
  Steve

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-19 Thread Emerson Cargnin
the strange thing is that a virtualhost tag is generated and no rule is 
created... if I take those out I can see the rules being created

How do I configure the autogeneration of the conf file not put the 
virtualhost tag???

Other question: the loadmodule, log and worker files and log level are 
generated in the mod_jk.conf file, do I need them anyway at httpd.conf?

thanks
Emerson
Yang Xiao wrote:
Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /
That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to make 
apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-19 Thread Emerson Cargnin
Still trying to configure mod_jk.

The log from mod_jk when apache is started:

[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/connManager/servlet/gerenciadorconn/=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, exact rule 
/connManager/gerenciadorconn=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jspx=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jsp=ajp13 was added

The URL I try to browse:

http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools

The log from mod_jk:

[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (500)]: Attempting to 
map URI '/connManager/servlet/gerenciadorconn'
[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

I can't undertand, the mapping looks fine (generated automatic by 
tomcat), the apache log show the mapping I test in the browser, but the 
log of apache show that there's not a match :(

Any help???

thanks in advance

Emerson

Emerson Cargnin wrote:
the strange thing is that a virtualhost tag is generated and no rule is 
created... if I take those out I can see the rules being created

How do I configure the autogeneration of the conf file not put the 
virtualhost tag???

Other question: the loadmodule, log and worker files and log level are 
generated in the mod_jk.conf file, do I need them anyway at httpd.conf?

thanks
Emerson
Yang Xiao wrote:

Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false 
modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /

That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, 
April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to 
make apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-19 Thread Emerson Cargnin
Ok, I finally got our production server to work with tomcat 5.
The problem, that I said before is that I had to strip the following 
part to make it work form the generated file.:

 VirtualHost localhost
ServerName localhost
The problem is that it'll be regenerated each time I restart tomcat

Any help on this?? how to make the virtualhost configuration to work or 
how to make the generated file not have this?

Thanks anyway!!! :)
that's just what's missing to make our upgrade to tomcat 5.0.19...
Emerson Cargnin

Emerson Cargnin wrote:
Still trying to configure mod_jk.

The log from mod_jk when apache is started:

[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/connManager/servlet/gerenciadorconn/=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, exact rule 
/connManager/gerenciadorconn=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jspx=ajp13 was added
[Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/connManager/.jsp=ajp13 was added

The URL I try to browse:

http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools 

The log from mod_jk:

[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (500)]: Attempting to 
map URI '/connManager/servlet/gerenciadorconn'
[Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

I can't undertand, the mapping looks fine (generated automatic by 
tomcat), the apache log show the mapping I test in the browser, but the 
log of apache show that there's not a match :(

Any help???

thanks in advance

Emerson

Emerson Cargnin wrote:

the strange thing is that a virtualhost tag is generated and no rule 
is created... if I take those out I can see the rules being created

How do I configure the autogeneration of the conf file not put the 
virtualhost tag???

Other question: the loadmodule, log and worker files and log level are 
generated in the mod_jk.conf file, do I need them anyway at httpd.conf?

thanks
Emerson
Yang Xiao wrote:

Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false 
modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /

That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, 
April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to 
make apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???








--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-16 Thread Emerson Cargnin
isn't missing the include to the mod_conf.xml

Yang Xiao wrote:
Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /
That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to make 
apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


auto generation of mod_jk.conf in tomcat 5

2004-04-15 Thread Emerson Cargnin
When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to make 
apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: auto generation of mod_jk.conf in tomcat 5

2004-04-15 Thread Emerson Cargnin
Thanks a lot Xiao, I'll try that.

I have most of the options you told to put in httpd.conf in mod_jk.conf 
itself.  I think when tomcat write the new file it preserves old 
configuration...

Why almost nobody (AFASK) uses this feature?? The problem I have is that 
we have a lot of apps, and it would be a nightmare to configure all by 
hand, besides having to add a new map each time a new app is deployed

thanks
Emerson


Yang Xiao wrote:
Hi,
In httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router
In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /
and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /
That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to make 
apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


overriding service

2004-04-12 Thread Emerson Cargnin
I've read somewhere that you should never override service method (from 
Servlet) and just override get/post methods???

Is that true? Or the only problem is that overriding service method, no 
other method types will be called?
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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


tomcat as deamon

2004-04-12 Thread Emerson Cargnin
Anyone has experience in using tomcat as deamon??
What would be the best way? using jsvc??? or create a script to be 
called by init.d?

Would be enough to call startup.sh and shutdown in apache init.d script

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is there a tomcat weblog anywhere?

2004-04-06 Thread Emerson Cargnin
you can try a countless of them, i can suggest you personalblog, the one 
I develop and use:

www.sf.net/projects/personalblog

http://echofloripa.sytes.net/

Or you mean  a weblog about tomcat?

:)

Shapira, Yoav wrote:
Hi,
Why would we have one?
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Is there a tomcat weblog anywhere?
I was wondering if there is any official tomcat weblogs on the net.
I

have searched and found some peoples individual weblogs, but was
wondering

if there is a more official site.





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

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 5.0.19 - won't start on anything other thatn *nix

2004-04-06 Thread Emerson Cargnin
I use it on win2000, and woks fine (although some probs at service install)

Alistair Young wrote:
Hi folks,
I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes:
On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or 
bin/catalina.bat/sh start produces the error:
java.lang.NoSuchMethodException: 
org.apache.catalina.startup.Catalina.setAwait(boolean)
at java.lang.Class.getMethod(Class.java:978)
at 
org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)
JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by 
catalina.bat regarding environment variables.
I'm using JDK 1.4.2_03
Can anyone please help as Tomcat is now unusable outside *nix!
cheers,
Alistair

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is there a tomcat weblog anywhere?

2004-04-06 Thread Emerson Cargnin
A tomcat blog would contain a more compact kind of data, as links to any 
tomcat article, news about tomcat, tips about configuration (an unified 
jk/jk2 how-to would be great!!), and whatever kind of information that 
would be useful to all tomcat users.

LILES, DAVID (CONTRACTOR) wrote:
How would a blog be any different then this forum? I'm not very familiar with blogs, but from what I've read, they appear to be basically a message board

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 12:46 PM
To: Tomcat Users List; tomcatuser
Subject: Re: Is there a tomcat weblog anywhere?
some of the tomcat developers have blogs, but they don't necessarily talk about tomcat in their blogs. some do.
 
there is not unified tomcat blog site, unless you are proposing to create one and let everyone use it :)
 
 
peter

tomcatuser [EMAIL PROTECTED] wrote:
I am talking about a weblog about tomcat.


---Original Message---

From: Emerson Cargnin 
Subject: Re: Is there a tomcat weblog anywhere?
Sent: 06 Apr 2004 16:05:48

you can try a countless of them, i can suggest you personalblog, the one
I develop and use:
www.sf.net/projects/personalblog

http://echofloripa.sytes.net/

Or you mean a weblog about tomcat?

:)

Shapira, Yoav wrote:

Hi,
Why would we have one?
Yoav Shapira
Millennium Research Informatics



-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Is there a tomcat weblog anywhere?
I was wondering if there is any official tomcat weblogs on the net.
I


have searched and found some peoples individual weblogs, but was
wondering


if there is a more official site.





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

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---Original Message---



-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Connecting the HTTP Server and Tomcat

2004-04-06 Thread Emerson Cargnin
You said you can connect through port 8009 through the browser???
The jk protocol is not http, so if the configuration was allright you 
can't connect through 8009 as http. Maybe the error is at your server.xml...

Wilson, Allen wrote:
Thanks but this is on a Windows system and will not help...I am on a
Solaris and I have looked at documents like this before and they still
do not give me a definitive way of setting everything and testing it...
Right now I have the HTTP server (port 80), Tomcat (port 8080), and the
connector (8009) running. I even looked at the netstat to see if each
port was available...and they were.
When a do the home page request (http://myserver.com) it works
fine...but if I request the page for the Jetspeed Portal
(http://myserver.com/portal), I get an error. If I request the portal
page through port 8080 it works fine. If I request the same page on 8009
it works fine.
In all cases there were no entries in my mod_jk.log.

I am looking for something that will outline the steps for me on a
Solaris machine or at least give me a better way to diagnose what I am
doing wrong


-Original Message-
From: kwilding [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 10:55 AM
To: 'Tomcat Users List'
Subject: RE: Connecting the HTTP Server and Tomcat

http://www.greenfieldresearch.ca/technical/jk2_config.html
 
This was a really good starting point. Ignore the fact it talks abut
windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4 and
5
Kevan

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED] 
Sent: 06 April 2004 16:42
To: Tomcat Users List
Subject: Connecting the HTTP Server and Tomcat

Good morning
 
Can any provide some assistance on connecting the HTTP server and Tomcat
together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun
Solaris
machine. I think I have everything in place but when the only way I can
reach the Tomcat stuff is my specifying the port number in the URL.
 
Can someone point me in the direction of some How to connect Apache and
Tomcat for Dummies instructions that will provide me some clear steps
and
methods for checking everything out.
 
Thanks...and any help is appreciated.
 
Allen





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




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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Connecting the HTTP Server and Tomcat

2004-04-06 Thread Emerson Cargnin
My configuration is for tomcat 5:

Service name=Catalina
Connector acceptCount=100 connectionTimeout=2 
disableUploadTimeout=true port=8080 redirectPort=8443
/Connector

Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_log. suffix=.txt timestamp=true/
...
...

Wilson, Allen wrote:
Here are the lines.

Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0
connectionTimeout=2 / 

!-- Define an AJP 1.3 Connector on port 8009 --
Connector
className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/
Let me know if there is something that is incorrect.

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 4:28 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat

You said you can connect through port 8009 through the browser???
The jk protocol is not http, so if the configuration was allright you 
can't connect through 8009 as http. Maybe the error is at your
server.xml...

Wilson, Allen wrote:

Thanks but this is on a Windows system and will not help...I am on a
Solaris and I have looked at documents like this before and they still
do not give me a definitive way of setting everything and testing
it...

Right now I have the HTTP server (port 80), Tomcat (port 8080), and
the

connector (8009) running. I even looked at the netstat to see if each
port was available...and they were.
When a do the home page request (http://myserver.com) it works
fine...but if I request the page for the Jetspeed Portal
(http://myserver.com/portal), I get an error. If I request the portal
page through port 8080 it works fine. If I request the same page on
8009

it works fine.

In all cases there were no entries in my mod_jk.log.

I am looking for something that will outline the steps for me on a
Solaris machine or at least give me a better way to diagnose what I am
doing wrong


-Original Message-
From: kwilding [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 10:55 AM
To: 'Tomcat Users List'
Subject: RE: Connecting the HTTP Server and Tomcat

http://www.greenfieldresearch.ca/technical/jk2_config.html

This was a really good starting point. Ignore the fact it talks abut
windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4
and

5
Kevan
-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED] 
Sent: 06 April 2004 16:42
To: Tomcat Users List
Subject: Connecting the HTTP Server and Tomcat

Good morning

Can any provide some assistance on connecting the HTTP server and
Tomcat

together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun
Solaris
machine. I think I have everything in place but when the only way I
can

reach the Tomcat stuff is my specifying the port number in the URL.

Can someone point me in the direction of some How to connect Apache
and

Tomcat for Dummies instructions that will provide me some clear steps
and
methods for checking everything out.
Thanks...and any help is appreciated.

Allen






This message may contain proprietary or confidential company
information.

Any unauthorized use or disclosure is prohibited.







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






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




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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


any standart way to keep passwords encripted???

2004-04-02 Thread Emerson Cargnin
Is there any standart way to keep the passwords of databases encripted 
when creating a pool through tomcat?

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Memory Leak Solution?

2004-04-02 Thread Emerson Cargnin
You can use hyades from eclipse, I tested it a long ago and it must be a 
lot more stable (it worked nice when I tried).

http://www.eclipse.org/hyades/

Shapira, Yoav wrote:
Hi,
Wonder wonder wonder ;)  Pick up a profiler (you can get free evals),
find the leak, and post your results.  If it's in tomcat I guarantee it
will be fixed very quickly (these are top-priority fixes always).
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 12:07 PM
To: Tomcat Users List
Subject: RE: Memory Leak Solution?
I'm wondering if the leak isn't maybe in Tomcat. I have an environment
that

has only be configured for about a week and there are only two java
projects that have been deployed. One is nothing more then a simple
Struts

site with no heavy code. The other site only uses Java to send SMTP
messages from submitted forms.
-Original Message-
From: John Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 10:28 AM
To: 'Tomcat Users List'
Subject: RE: Memory Leak Solution?
I've been fighting a similar symptom.  I downloaded the eval copy of
JProfiler and found the problem pretty quickly.  I had some static
classes

that kept allocating memory that never got de-referenced.

John

-Original Message-
From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 9:50 AM
To: [EMAIL PROTECTED]
Subject: Memory Leak Solution?
I've searched previous postings for a possible solution regarding the
memory
leak thread that was posted previously but didn't seem to find an
answer.

I'm running TC5 on IIS5 and have noticed that the memory gradually
decreases
to the point where the server needs to be rebooted.
Does anyone know of a solution for this?

Thanks.

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




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

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can Tomcat servers files outside the webapps directory

2004-04-02 Thread Emerson Cargnin
You can do this way, but a context just for containing the audio files 
is a kind of weird. Other approach is to have a symbolic link from your 
context to the audio directory...

Kam Lung Leung wrote:
Hi Emerson,

Thank you for your help. But I don't understand why I do I have to write Java
code to transmit the file. Shouldn't Tomcat already has this capability. For
example, when we press a link that references to a image said
http://hostName:portNumber/ImageFile/myImage.jpeg from a browser, then image is
render by the web container to the browser so that the user on the other end can
see it. I thought all I have to do is to create a context for this purpose.
Where the context path for this web component points to the directory at /audio
instead of a directory under the webapps. 

Thanks,
Kam 
On Thu, 01 Apr 2004 19:15:55 -0300, Emerson Cargnin wrote:


I think you have to do the inverted way as described in the thread Re: 
redirecting uploaded files in tomcat5, by TomK, you have to accept the 
 http request, read from an InputStream  and write to an OutputStream...

Just suggest to use Buffered streams, as it will help in the performance.

BufferedInputStream bf=new BufferedInputStream(new 
FileInputStream(/file_or_dir));

The rest of the code remaisn the same...

[]s
Emerson
Kam Lung Leung wrote:

Hi,

I am working on a project that needs to retrieve audio files under the root
directory of a server (/audio). My question is that Can Tomcat 4.x servers
files

that are not in the webapps directory. If it can, can someone point me to an
example of such set up. Here is an example of how the audio file may be
requested from a servlet using http.
  http://hostName:portNumber/myApp/Hi.wav
Tomcat should fetch the audio file Hi.wav from the /audio directory and not
from

the myApp that is under the webapps directory.

Thank you in advance,
Kam
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: any standart way to keep passwords encripted???

2004-04-02 Thread Emerson Cargnin
How can I mantain databases passwords without :

- Being put in the code (arg)
- Being in plain text in server.xml (as configured for tomcat)
I use another approache than the pool from tomcat, that consist in a 
separate servlet and a PoolManager, which is accessed in a static way. 
(so other apps can reference the same instance...). In the servlet I 
read the init properties from web-xml that follows a pattern 
(poolname1,dbuser1,dbpass1, and so on for all pools). In the application 
I just as for the pool by the name of it. It works and I can change the 
pool implementation without impacting in any code of the application. We 
are thinking in not let the password in plain text in the web.xml. I 
though of 2 approaches:

- Read the web.xml by a standalone app and encript the password, in my 
connection servlet I read it and decritp it.

- Have a separate file for each pool, this file,encripted, would contain 
info about each pool.

BTW, is there any way to use the same pool for more than one app, using 
tomcat pool configuration ???

thanks in advance
Emerson
Emerson Cargnin wrote:
Is there any standart way to keep the passwords of databases encripted 
when creating a pool through tomcat?



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >