Re: Hi

2004-09-29 Thread fabio
Me too Craigmcc.
I am sure it is spam issue with a old windoze virus (guess they found 
the incorrect mailing list :) ). What I noted is the mailing list server 
is forwarding those emails. Can an outside user email to the list? Does 
the mail daemon accept connection only when the sender hostname resolves 
to the ip?

fabio.
Carlos Bracho wrote:
Hi, Craigmcc, I received a message from you with this text
On Wed, 29 Sep 2004 11:23:40 -0500, Craigmcc <[EMAIL PROTECTED]> wrote:
 

Dangerous Attachment has been Removed.  The file "price.cpl" has been removed because of a virus.  It was 
infected with the "W32/Bagle.AZ-net" virus.  File quarantined as: "". 
http://www.fortinet.com/VirusEncyclopedia/search/encyclopediaSearch.do?method=quickSearchDirectly&virusName=W32%2FBagle.AZ-net

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


 


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


Getting started questions about Jakarta

2004-09-28 Thread fabio
Hi.
I want to develop solutions based on Java. The servers are running 
Solaris sparc, we want to use apache httpd server. I would like to know 
What exactly is the different from Jakarta and conventional apache 
server version?. The analogy is "jakarta is to tomcat like apache is to 
"mod_foo" " ? What are the most significative differences between apache 
with mod_php to jakarta?

thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat5 not logging

2003-12-17 Thread Grassi Fabio
Hi, is there any known issue with Tomcat 5.0.16 and logger activity on
win2k? I recently upgraded from Tmcat 4.1.29 and have the "feeling" that
something is not working as properly as before. When installad as a
service, I don't get the file produced by Tomcat loggers, while I get
the log from log4j.
 
I'm still tracking down the problem and I'm a bit confused at the
moment, but just wanted to know whether there where known issues.
 
TIA, Fabio.
Ai sensi della Legge 675/96, si precisa che le informazioni contenute in questo 
messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in 
parola Le fosse pervenuto per errore, la preghiamo di eliminarlo senza copiarlo e di 
non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.This 
message, for the law 675/96 may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the sender 
immediately by reply e-mail and delete this message. Thank you for your cooperation.

problem in session closing for explorer

2003-09-11 Thread Fabio Bazzani
After I authenticate I begin a session.
Closing the browser my session does not go down.
When I open a new browser my old session is still on.
What to do to terminate my session when I close my browser?

FB.


Re: problem in FORM authentication

2003-09-11 Thread Fabio Bazzani
These are my steps:

1) I just call index.jsp
2) click on my link (/prenotazione/index.jsp)
3) tomcat give me logIn.jsp
4) I correctly authenticate (I saw in catalina_log.-mm-dd.txt)
5)  The request sent by the client was syntactically incorrect (Invalid
direct
 reference to form login page).


---

webapps/index.jsp  <-- where I call /prenotazione/index.jsp
webapps/prenotazione/index.jsp
webapps/logIn/logIn.jsp
webapps/logIn/logIn-error.jsp

--
 From server.xml :







   







  

  






  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  

  
  
maxActive
100
  

  
  
maxIdle
30
  

  
  
maxWait
1
  

  
  
   username
   admin
  
  
   password
   mysql
  

  
  
 driverClassName
 org.gjt.mm.mysql.Driver
  

  
  
url
jdbc:mysql://localhost:3306/webcup?autoReconnect=true
  

  


--
from web.xml :


..
  
   
Web CUP: pagina di prenotazione e
registrazione
/prenotazione/*
/disponibilita/*
DELETE
GET
POST
PUT
  
  
   patient
   doctor
 
  

  

Web CUP: pagina di accettazione visita da
parte dei dottori
/dottori/*
DELETE
GET
POST
PUT


doctor

  

  

  
   FORM
   
/logIn/logIn.jsp
/logIn/logIn-error.jsp
   
  

  
   doctor role
   doctor
  

  
   patient role
   patient
  

.


-





- Original Message -
From: "Madere, Colin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 9:36 PM
Subject: RE: problem in FORM authentication


> If searching the archives of this list don't help, try posting a trimmed
> down version of your server.xml (probably just the  or even just
your
> relevent  tag if you have one) and your auth setup from your
> web.xml and the structure of your web-app (in case it is non-standard
which
> may cause problems).


> But you are saying after you get this error page you are authenticated and
> can access the protected area?

YES


>
> -Original Message-
> From: Fabio Bazzani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 3:17 PM
> To: Tomcat Users List
> Subject: problem in FORM authentication
>
>
> I'm using tomcat 4.1.27.
>
> I authenticate with FORM login and I get 400 error:
>
> The request sent by the client was syntactically incorrect (Invalid direct
> reference to form login page).
>
> when I try to get a page with security constraints Tomcat show me the
login
> page (action = "j_security_check" , etc). I authenticate but Tomcat
give
> me 400 error code.
>
> where to find the error ?
>
> From %CATALINA_HOME%\logs\catalina_log.-mm-dd.txt  user results to be
> authenticated correctly but it doesn't show me the page I requested.
>
> what about j_security_check ??
>
> Please, help me.
>
> FB.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



problem in FORM authentication

2003-09-11 Thread Fabio Bazzani
I'm using tomcat 4.1.27.

I authenticate with FORM login and I get 400 error:

The request sent by the client was syntactically incorrect (Invalid direct reference 
to form login page).

when I try to get a page with security constraints Tomcat show me the login page 
(action = "j_security_check" , etc). I authenticate but Tomcat give me 400 error 
code. 

where to find the error ?

>From %CATALINA_HOME%\logs\catalina_log.-mm-dd.txt  user results to be 
>authenticated correctly but it doesn't show me the page I requested.

what about j_security_check ??

Please, help me.

FB.


tomcat 4.1.27: Realm authentication 400 error code

2003-09-05 Thread Fabio Bazzani
How is it possible I get this message:

HTTP Status 400 - Invalid direct reference to form login page

during JDBC Realm FORM authentication.

These are the stpes I followed :


1. create tables in mysql db :

create table IsInRole(
usernamevarchar(20) not null,
userrolevarchar(10) not null,
primary key(username,userrole)
);

create table usertable(
usernamevarchar(20) not null,
userpwdvarchar(10) ,

...
primary key (username)
);

2. in server.xml

  



3.  always in server.xml, commented out :

4. created webapps/logIn/login.jsp with:


   
   
   
   
   

5. in web.xml :

  
   
test
/protected/*

DELETE
GET
POST
PUT

  

   
myrole
   

  

  
   FORM
   authentication test
   
/logIn/logIn.jsp
/logIn/logIn-error.jsp
   
  


when I try to go to "/protected/index.jsp" I have to pass the login.jsp and when I 
authenticate I get 400 error code ? what's wrong ?

thank you

FB



tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
shutdown with telnet is ok.

It appears the message "Stopping service Tomcat-Standalone" on the shell but
the Window does not close.

Should I recompile the entire catalina source code ?

Thank you

fabio

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 4:28 PM
Subject: RE: (errata corrige) tomcat 4.1.27: cannot shutdown tomcat !!



Howdy,

>> >Can you telnet to localhost:8005 and issue SHUTDOWN?
>
> YES, but how to issue shutdown ?

Ah, OK, this is better.  Just type SHUTDOWN and press enter.  Tomcat
looks for any TCP/IP connection with sending that string.  See the
Server configuration reference:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/server.html

See the await() function here for the source code:
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share
/org/apache/catalina/core/StandardServer.java?rev=1.22&content-type=text
/vnd.viewcvs-markup

Yoav Shapira





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


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





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



(errata corrige) tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
I'm sorry for previous wrong message !!
This is the correct one !!

see details down.

Fabio


- Original Message -
From: "Fabio Bazzani" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 4:03 PM
Subject: tomcat 4.1.27: cannot shutdown tomcat !!


> >- Original Message -
> >From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Thursday, September 04, 2003 3:01 PM
> >Subject: RE: tomcat 4.1.27: cannot shutdown tomcat !!
> >
>
> >
> >Buongiorno ;)
> >
> >That's not an exception we see very often.
> >Your server.xml still has the default shutdown port (8005)?

 YES

> >Can you telnet to localhost:8005 and issue SHUTDOWN?

 YES, but how to issue shutdown ?

> >Do you have a strange networking setup on this machine?

 I'm not connected to any network !!

> >During shutdown, tomcat tries to connect to the server shutdown port and
> >issue the simple string command, SHUTDOWN.  For safety, tomcat will only
> >accept connections from localhost on the shutdown port.
> >
> >Yoav Shapira
> >Millennium ChemInformatics
> >
> >
> >>-Original Message-
> >>From: Fabio Bazzani [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, September 03, 2003 12:29 PM
> >>To: Tomcat Users List
> >>Subject: tomcat 4.1.27: cannot shutdown tomcat !!
> >>
> >>I'm working with JDK 1.4.0 and tomcat 4.1.27.
> >>I'm in advanced development and unexpectedly I cannot shutdown Tomcat.
> >>I spent all day to try undertand the why ?
> >>
> >>shell error message:
> >>
> >>Stopping service Tomcat-Standalone
> >>java.net.NoRouteToHostException: No route to host: connect
> >>at java.net.PlainSocketImpl.socketConnect(Native Method)
> >>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
> >>at
> >>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:159)
> >>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
> >>at java.net.Socket.connect(Socket.java:425)
> >>at java.net.Socket.connect(Socket.java:375)
> >>at java.net.Socket.(Socket.java:290)
> >>at java.net.Socket.(Socket.java:146)
> >>at
> >>org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384)
> >>at org.apache.jk.server.JkMain.stop(JkMain.java:311)
> >>at
> >>org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181)
> >>at
> >>org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:120
> 5)
> >>at
> >>org.apache.catalina.core.StandardService.stop(StandardService.java:546)
> >>at
> >>org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
> >>at
> org.apache.catalina.startup.Catalina.start(Catalina.java:543)
> >>at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >>at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>at
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:3
> >>9)
> >>at
> >>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImp
> >>l.java:25)
> >>at java.lang.reflect.Method.invoke(Method.java:324)
> >>at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> >>
> >>Does anybody know what happened ?
> >>
> >>Thank you.
> >>
> >>Fabio
>
>
>
> 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]
>
>



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



tomcat 4.1.27: cannot shutdown tomcat !!

2003-09-04 Thread Fabio Bazzani
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, September 04, 2003 3:01 PM
>Subject: RE: tomcat 4.1.27: cannot shutdown tomcat !!
>

>
>Buongiorno ;)
>
>That's not an exception we see very often.
>Your server.xml still has the default shutdown port (8005)?

YES

>Can you telnet to localhost:8005 and issue SHUTDOWN?

NO

>Do you have a strange networking setup on this machine?

I'm not connected to any network !!

>During shutdown, tomcat tries to connect to the server shutdown port and
>issue the simple string command, SHUTDOWN.  For safety, tomcat will only
>accept connections from localhost on the shutdown port.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Fabio Bazzani [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, September 03, 2003 12:29 PM
>>To: Tomcat Users List
>>Subject: tomcat 4.1.27: cannot shutdown tomcat !!
>>
>>I'm working with JDK 1.4.0 and tomcat 4.1.27.
>>I'm in advanced development and unexpectedly I cannot shutdown Tomcat.
>>I spent all day to try undertand the why ?
>>
>>shell error message:
>>
>>Stopping service Tomcat-Standalone
>>java.net.NoRouteToHostException: No route to host: connect
>>at java.net.PlainSocketImpl.socketConnect(Native Method)
>>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
>>at
>>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:159)
>>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
>>at java.net.Socket.connect(Socket.java:425)
>>at java.net.Socket.connect(Socket.java:375)
>>at java.net.Socket.(Socket.java:290)
>>at java.net.Socket.(Socket.java:146)
>>at
>>org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384)
>>at org.apache.jk.server.JkMain.stop(JkMain.java:311)
>>at
>>org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181)
>>at
>>org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:120
5)
>>at
>>org.apache.catalina.core.StandardService.stop(StandardService.java:546)
>>at
>>org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
>>at
org.apache.catalina.startup.Catalina.start(Catalina.java:543)
>>at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>>at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>>9)
>>at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>>l.java:25)
>>at java.lang.reflect.Method.invoke(Method.java:324)
>>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>>
>>Does anybody know what happened ?
>>
>>Thank you.
>>
>>Fabio



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]




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



Re: Tomcat 4.1.27 : error in FORM authentication

2003-09-03 Thread Fabio Bazzani
I'm sorry I was not so detailed in my problem description.
I've just done all that you said !
I made a link to a jsp page which was included in a security constraint in
web.xml.
When I click on my link before getting my page, Tomcat give me the login.jsp
to authenticate. The authentication fail !!

Whats wrong ?

Fabio.

- Original Message -
From: "Mike Curwen" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 6:54 PM
Subject: RE: Tomcat 4.1.27 : error in FORM authentication


>
>
> > -Original Message-
> > From: Fabio Bazzani [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 03, 2003 11:15 AM
> > To: Tomcat Users List
> > Subject: Tomcat 4.1.27 : error in FORM authentication
> >
> >
> > I'm working with JDK 1.4.0 and tomcat 4.1.27.
> > I configured JDBCRealm in server.xml for a FORM
> > authentication. When I authenticate I get a 400 error code:
>
> How do you 'authenticate'?  Do you browse directly to login.jsp ?   This
> is the problem, if you are.  The usage scenario of container-managed
> auth is:  you browse to a protected resource, the container will take
> you to login.jsp, and then after that, bring you back to the originally
> requested resource.  If you are browsing directly to login.jsp (the
> "direct reference" part of the error message) then the container cannot
> know where to send you after authentication.
>
>
> > message : Invalid direct reference to form login page
> >
> > description : The request sent by the client was
> > syntactically incorrect (Invalid direct reference to form login page).
> >
> > in my login.jsp I put "j_security_check" in ACTION attribute
> > in FORM tag.
> >
> > What's wrong ?
> >
> > Thank you
> >
> > Fabio Bazzani
> >
>
>
> -
> 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 4.1.27: cannot shutdown tomcat !!

2003-09-03 Thread Fabio Bazzani
I'm working with JDK 1.4.0 and tomcat 4.1.27.
I'm in advanced development and unexpectedly I cannot shutdown Tomcat.
I spent all day to try undertand the why ?

shell error message:

Stopping service Tomcat-Standalone
java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:159)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.(Socket.java:290)
at java.net.Socket.(Socket.java:146)
at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384)
at org.apache.jk.server.JkMain.stop(JkMain.java:311)
at org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181)
at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1205)
at org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Does anybody know what happened ?

Thank you.

Fabio


Tomcat 4.1.27 : error in FORM authentication

2003-09-03 Thread Fabio Bazzani
I'm working with JDK 1.4.0 and tomcat 4.1.27.
I configured JDBCRealm in server.xml for a FORM authentication.
When I authenticate I get a 400 error code:
message : Invalid direct reference to form login page

description : The request sent by the client was syntactically incorrect (Invalid 
direct reference to form login page).

in my login.jsp I put "j_security_check" in ACTION attribute in FORM tag.

What's wrong ?

Thank you

Fabio Bazzani


Re: why i must restart the Tomcat ??

2003-08-29 Thread Fabio Bazzani
put reloadable ="true" in your context in server.xml

- Original Message -
From: "L.Karam" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, August 30, 2003 2:06 PM
Subject: why i must restart the Tomcat ??


> Hi,
>
> Every time I compile any class I must restart the Tomcat in order to see
the
> changes, what might be wrong?
> (Tomcat 4.1.24)
>
> Leandro Karam
>
>
> -
> 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: security hole on windows tomcat?

2003-08-11 Thread Moraes, Fabio

http://localhost/examples/jsp/num/numguess.jsp%20 = 404

(my tomcat is running on port 80)

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 13:28
To: Tomcat Users List
Subject: Re: security hole on windows tomcat?


Interesting.

WinXP
Tomcat 4.1.24

http://localhost:8080/examples/jsp/num/numguess.jsp%20

I get the source.

-e

On Mon, 11 Aug 2003, John Turner wrote:

>
> Let's see the Tomcat-only link.
>
> John
>
> Angus Mezick wrote:
>
> > Ok guys,
> > What could I have turned on that would have allowed this bug to happen?
> > I can make it happen in both tomcat and tomcat through apache.  (Most
> > recent of both)  I can provide a site where it DOES happen so you guys
> > can see what is happening.
> >
> >
> >>-Original Message-
> >>From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, August 11, 2003 12:07 PM
> >>To: 'Tomcat Users List'
> >>Subject: RE: security hole on windows tomcat?
> >>
> >>
> >>sorry, I don't know - I don't use Apache. This was just a
> >>thought that I
> >>had.
> >>
> >>I do not have this problem 4.1.24 on Win2k
> >>
> >>Charlie
> >>
> >>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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



RE: Java and tomcat issues

2003-08-07 Thread Moraes, Fabio

$JAVA_HOME != $PATH

try:

cd $JAVA_HOME/bin
java

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 14:54
To: [EMAIL PROTECTED]
Subject: Java and tomcat issues


Greetings,
I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep getting
this message after I set the JAVA_HOME path

-bash-2.05b# which java
/usr/bin/which: no java in
(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
)
-bash-2.05b#

Any suggestions?

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



The same servlet through 2 different URL

2003-08-01 Thread Moraes, Fabio

SCENE: I'm using Tomcat 4.1.

I want my servlet Principal.class to be called when someone access
http://localhost/projname/ OR http://localhost/projname/index

I put this in webapps/projname/web.xml:

   
   Principal
   servlets.Principal
   

and this:

   
  Principal
  /
   

Everything works for http://localhost/projname/, but not for
http://localhost/projname/index.

Then, I tried:

   
  Principal
  /
  /index
   

Everything works for http://localhost/projname/index, but not for
http://localhost/projname/.

It seems the last URL-PATTERN tag overwrites the others ...

How could I make it work fine ?

Thanks,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


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



RE: problem

2003-07-31 Thread Moraes, Fabio

i guess you forgot to add the  tag to conf/server.xml or maybe you
didn't pointed /index.jsp to anything (a servlet or anything else).

let me know if i'm wrong.

thanks,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 16:18
To: [EMAIL PROTECTED]
Subject: problem


Why is this happening?
http://placeanad.classifiedmarketplace.net:8080/adwebster

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

-
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: Checking for invalidated session

2003-07-31 Thread Moraes, Fabio

sorry.

session = request.getSession( false );

if( session != null )
{
session.invalidate();
}

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Moraes, Fabio [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:37
To: 'Tomcat Users List'
Subject: RE: Checking for invalidated session
Importance: High



i guess this will work fine ...

session = request.getSession( false );

if( session.isNew( ) )
{
out.println( "new session" );
}

someone let me know if i'm wrong.

hugs,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:32
To: [EMAIL PROTECTED]
Subject: Checking for invalidated session


Hi,

How can you check to see if a session has already been validated?
i.e.
 if( !session.isInvalidated()) <-- what should go here?
{
session.invalidate();
}

to prevent the following exception:
"org.apache.jasper.JasperException: invalidate: Session already invalidated"

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

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

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



RE: Checking for invalidated session

2003-07-31 Thread Moraes, Fabio

i guess this will work fine ...

session = request.getSession( false );

if( session.isNew( ) )
{
out.println( "new session" );
}

someone let me know if i'm wrong.

hugs,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:32
To: [EMAIL PROTECTED]
Subject: Checking for invalidated session


Hi,

How can you check to see if a session has already been validated?
i.e.
 if( !session.isInvalidated()) <-- what should go here?
{
session.invalidate();
}

to prevent the following exception:
"org.apache.jasper.JasperException: invalidate: Session already invalidated"

-
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: Where does index.jsp come from

2003-07-31 Thread Moraes, Fabio

try looking at webaaps/ROOT directory.

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:35
To: [EMAIL PROTECTED]
Subject: Where does index.jsp come from


Greetings,
I set up Tomcat again but I'm seeing this page
http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't
figure out what to uncomment b/c there is no index.jsp in my webapps
folder??

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



Exception invoking periodic operation

2003-07-28 Thread Moraes, Fabio

(I'm not sure if everybody saw this message, so I'm reposting it. Sorry for
the inconvenience)

Hello all,

I'm a begginner with Servlets, Tomcat and stuff, so, please, don't
laff on me ! :)

Scene: I installed Tomcat 5, J2SDK 1.4.2 and MySQL 4.0.13 on a Win2k
Professional.

While trying some servlets to authenticate users, i get this error
again and again ...

SEVERE: Exception invoking periodic operation:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationExc
eption: java.lang.IncompatibleClassChangeError:
org.apache.commons.logging.impl.SimpleLog
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3849)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2728)
at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.j
ava:4375)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta inerBase.java:1654)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta
inerBase.java:1663)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta
inerBase.java:1663)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1643)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.IncompatibleClassChangeError:
org.apache.commons.logging.impl.SimpleLog
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:416)

at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:525)

... 10 more

Caused by: java.lang.IncompatibleClassChangeError:
org.apache.commons.logging.impl.SimpleLog
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1265)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1225)
at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460
)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java
:454)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:406)

... 11 more

Could anyone help me ?

Thanks in advance,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548

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



RE: Strange request.setAttribute() problem

2003-07-28 Thread Moraes, Fabio

he meant:
use:

HttpSession session = request.getSession( );
session.setAttribute( "itemnumber",
Integer.valueOf(Integer.toString(itemnumber)));

and then:

session.getAttribute( "itemnumber" );

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 07:53
To: Tomcat Users List
Subject: Re: Strange request.setAttribute() problem


This is the correct behavior. In this scenario, you are operating on the 
request, not the session.

request.getParameter --> Get stuff from the query string (or input stream if

post) - a per request thing

request.setAttribute --> Set an attribute in the life of this particular
request

-Tim

Charles So wrote:
> Hello, I come across a problem with TC4.1.24 and hope fellow list users 
> can help me...
> 
> 
> 
> I set a variable in a servlet by calling:
> 
> request.setAttribute("itemnumber", 
> Integer.valueOf(Integer.toString(itemnumber)));
> 
> 
> 
> A JSP will then detect if this variable exists or not by:
> 
> if ( request.getParameter("itemnumber") != null ) {
> try {
> itemnumber = 
> Integer.parseInt((String)request.getParameter("itemnumber"));
> } catch (NumberFormatException ex) {
> System.out.println("No");
> }
> }
> 
> 
> 
> 
> I have two different web browsers opened (say, one IE and one Opera), 
> and both eventually will come to the page containing the code above.
> 
> The strange thing is that if the variable "itemnumber" is set via IE, 
> the same "itemnumber" will be seen at Opera!
> 
> This shouldn't happen as both have different session ID, and are 
> completely unrelated.
> 
> 
> 
> Who has come across this problem? How can I work around 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]



RE: Exception invoking periodic operation

2003-07-24 Thread Moraes, Fabio

Thanks for the answer.

No, I didn't mess with commons-logging.jar or commons-logging-api.jar.
I just added mysql-connector-java-3.0.8-stable-bin.jar, but (I THINK) there
is no problem with that action.

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 17:32
To: Tomcat Users List
Subject: RE: Exception invoking periodic operation
Sensitivity: Private



Howdy,

>SEVERE: Exception invoking periodic operation:
>org.apache.commons.logging.LogConfigurationException:
>org.apache.commons.logging.LogConfigurationExc
>eption: java.lang.IncompatibleClassChangeError:
>org.apache.commons.logging.impl.SimpleLog
>at
>org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryIm
pl.j

Did you add/remove/change any files in $CATALINA_HOME/common/lib?
Specifically the commons-logging.jar or commons-logging-api.jar files?

Yoav Shapira



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


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

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



Exception invoking periodic operation

2003-07-24 Thread Moraes, Fabio

Hello all,

I'm a begginner with Servlets, Tomcat and stuff, so, please, don't
laff on me ! :)

Scene: I installed Tomcat 5, J2SDK 1.4.2 and MySQL 4.0.13 on a Win2k
Professional.

While trying some servlets to authenticate users, i get this error
again and again ...

SEVERE: Exception invoking periodic operation:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationExc
eption: java.lang.IncompatibleClassChangeError:
org.apache.commons.logging.impl.SimpleLog
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3849)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2728)
at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.j
ava:4375)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta
inerBase.java:1654)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta
inerBase.java:1663)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(Conta
inerBase.java:1663)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.jav
a:1643)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.IncompatibleClassChangeEr
ror: org.apache.commons.logging.impl.SimpleLog
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:416)

at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:525)
... 10 more
Caused by: java.lang.IncompatibleClassChangeError:
org.apache.commons.logging.impl.SimpleLog
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1265)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1225)
at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460
)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java
:454)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:406)

... 11 more

Could anyone help me ?

Thanks in advance,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


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



Re: Cannot load JDBC Driver class 'com.ibm.db2.jdbc.app.DB2Driver'

2003-04-02 Thread Fabio Mengue
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,

See intermixed.

Stephen Peterson wrote:

|Other details, using DB2 Personal Edition version 7.2,
|on Windows 2000 Professional.
don't know about Windows, but I have some observations...

|In the server.xml listing below I added parms for username
|and password since I always see them in other postings, although
|I have always spcified the username/password in the
|getConnection
|method call, successfully in websphere.
If I remember correctly, I tried without username & pass and it don't work.

|
|  url
|  jdbc:db2:gupt1b
|
Do uppercase or lowercase matters in Windows ?

|The following is thrown in the ds.getConnection method:
|
|java.sql.SQLException: Cannot load JDBC driver class
|'com.ibm.db2.jdbc.app.DB2Driver'
|
|Now I did see Fabio Mengue's posting from Feb 20 in a response
|to someone asking a similar question.  I compared his config
|with mine, added at the top of /bin/setclasspath.sh
|the line
|set JAVA_OPTS="-Djava.library.path=C:/Program
|Files/sqllib/java/"
Perhaps the right file is setclasspath.bat ?

|and started tomcat with the startup.sh instead of the services
|start in the Computer Management dialog.
As I said, I don't know Windows... How could you call startup.sh ? Do 
you have startup.bat ?

|The other item:
|
|Add the following line
|Create /bin/setenv.sh, as a copy (or a link) of file
|/sqllib/db2profile.
|
|I am at a loss, since I cannot find a db2profile file on my PC,
|although I do have the DB2 server software installed as well as
|the
|DB2 client software.
The db2profile file sets some environment varibles, like

DB2DIR
DB2INSTANCE
INSTHOME
And so on. Perhaps these variables are set on autoexec.bat ? Or other 
script file ?

Couple of things. Maybe you could add "debug=99" to your DefaultContext 
(is that possible ?) and watch the localhost_log file. When my tomcat 
starts, I see:

2003-01-06 16:10:43 NamingContextListener[/Standalone/localhost/pool]: 
Creating JNDI naming context
2003-01-06 16:10:43 NamingContextListener[/Standalone/localhost/pool]:   
Resource parameters for jdbc/db2 = ResourceParams[name=jdbc/db2, 
parameters={url=jdbc:db2:DATABASE, driverName=jdbc:db2:DATABASE, 
maxIdle=0, maxActive=10, maxWait=1, 
driverClassName=COM.ibm.db2.jdbc.app.DB2Driver, username=fabio, 
factory=org.apache.commons.dbcp.BasicDataSourceFactory, 
password=mypassword}]
2003-01-06 16:10:43 NamingContextListener[/Standalone/localhost/pool]:   
Adding resource ref jdbc/db2
2003-01-06 16:10:43 NamingContextListener[/Standalone/localhost/pool]:   
ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,
factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},
{type=auth,content=Container},{type=url,content=jdbc:db2:DATABASE},
{type=driverName,content=jdbc:db2:DATABASE},{type=maxIdle,content=0},{type=maxActive,content=10},
{type=maxWait,content=1},{type=driverClassName,content=COM.ibm.db2.jdbc.app.DB2Driver},
{type=username,content=fabio},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},
{type=password,content=mypassword}]

I'm sorry I can't help you more. All I know is that I fought with DB2 
for a long time, and it has to have all things set before you can see 
the first pooled connection :)

Good luck,

F.

- --
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
- 
When explaining a command, or language feature, or hardware widget, 
first describe the problem it is designed to solve. David Martin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+iyXR9+h2CYv5ecARApPDAKCSMewZKXP/PO+LeN54FFVDByPB0wCfRt5O
8MX+xDMFmgWaJgaE+DdcQPk=
=rleZ
-END PGP SIGNATURE-


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


Re: proxy and sessions problem

2003-03-07 Thread Fabio Mengue
I have the same configuration and mine works well (ie, the JSESSIONID 
get/set works fine). I have something like



#  General setup for the virtual host
DocumentRoot "/www/apache/htdocs"
ServerName www.myserver.unicamp.br
ServerAdmin [EMAIL PROTECTED]
ErrorLog /www/apache/logs/error_log
TransferLog /www/apache/logs/access_log
ProxyRequests Off

ProxyPass / http://tomcat01.sist.unicamp.br:8080/
ProxyPassReverse / http://tomcat01.sist.unicamp.br:8080/
...

And my Apache server is one firewall away from the Tomcat servers.

Fabio.

Gaston Escobar wrote:

Sorry, I've made a mistake, I'm not using mod_jk, I'm just using mod_proxy.
So, the only possibilty I have is to change from proxy pass to mod_jk?




-Mensaje original-
De: p niemandt [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 06 de Marzo de 2003 11:36 a.m.
Para: Tomcat Users List
Asunto: Re: proxy and sessions problem
Don't use both proxy pass and mod_jk: use either one or the other.

To keep your sessions, you will need to use mod_jk.

Sadly this is about the extend of my advice: other people on the list
might have better advice. I know I had to change from proxy pass to
mod_jk to keep my session
On Thu, 2003-03-06 at 13:57, Gaston Escobar wrote:
 

(tomcat 4.1.18 + apache 1.3 + mod_jk + Linux + Proxy via Apache ProxyPass)
I have the following scenario.:
A main server that runs Apache with mod_proxy:
ProxyPass /tomcat http://mytomcatserver
ProxyPassReverse /tomcat http://mytomcatserver
When someone request an URL containing "/tomcat" then apache redirects the
call to Tomcat server.
The problem is that with above approach, I lost session id?s
I also added "proxyName=mainserver" and "Proxyport=80" to the HTTP
   

connector
 

under server.xml, but no luck.

Can someone help me to fix this?

Thanks a lot

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

--
p niemandt <[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]
 

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

[The First Rule of Program Optimization] Don't do it.


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


Re: mysql-connector-java-3.0.6-stable-bin.jar pgjdbc2.jar

2003-02-26 Thread Fabio Mengue
Hello,

/common/lib works for me. Althought you may put it on 
webapps//WEB-INF/lib.

F.

Georges Roux wrote:

Hi,

I run under Linux, with tomcat 4.18 Standalone,
and want to set up some JDBC Datasource for connection pooling, where 
do I need to put the jar file?

/common/lib?

/shared/lib?

Thanks in advanced.

Georges

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

When explaining a command, or language feature, or hardware widget, first describe the 
problem it is designed to solve. David Martin


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


Re: DB2 version 8.1 using Jakarta Commons Connection Pool

2003-02-20 Thread Fabio Mengue
Hello,

I don't exactly know the version (or revision) of DB2 we are using, but 
it is working.

Configuration:
-DB2 version x.x on Solaris
-Tomcat 4.1.x on Linux with DB2 ClientConnect instaled
- Sun jdk 1.3.x.

Add the following line

JAVA_OPTS="-Djava.library.path=/sqllib/java12/"

to file /bin/setclasspath.sh.

Create /bin/setenv.sh, as a copy (or a link) of file 
/sqllib/db2profile.
Create /common/lib/db2java.jar (has to be a .jar file, the name 
don't really matter). This is a copy (or a link) of file 
/sqllib/java12/db2java.zip.

Added (in the right place, look for a similar entry as example) to 
/conf/server.xml:


   reloadable="true" crossContext="true">
   
   auth="Container"
   type="javax.sql.DataSource"/>
   
   
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
   
   
   driverClassName
   COM.ibm.db2.jdbc.app.DB2Driver
   
   
   url
   jdbc:db2:MYDATABASE
   
   
   username
   myusername
   
   
   password
   mypassword
   
   
   driverName
   jdbc:db2:MYDATABASE
   
   
   maxIdle
   0
 
 
   maxActive
   10
 
 
   maxWait
   1
 
 


Here, myapp is the name of your .war file or directory in 
/webapps. Of course your directory name will be different.

Add (in the right place, look for a similar entry as example or if the 
file is "empty", put it between  and ) to 
/webapps/myapp/WEB-INF/web.xml:


   DB Connection
   jdbc/db2
   javax.sql.DataSource
   Container



And then, your servlet code may have something like this:

import java.sql.Connection;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
...
Connection c = null;
   try {
 Context ctx = (Context) new 
InitialContext().lookup("java:comp/env");
 c = ((DataSource) ctx.lookup("jdbc/db2")).getConnection();
   } catch (Exception e) {
 e.printStackTrace(System.err);
   }


Variable 'c' is now a pooled DB2 connection.

I think that's it. Hope that helps,

Fabio.



Simon Wong wrote:

Hello, all,

Does anyone successfully configure DB2 version 8.1 using Jakarta Commons
Connection Pool?

Could you share your experience with us?



Thanks in advance,
Simon



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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

Testing can show the presence of bugs, not their absence. Edsger W. Dijkstra



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




[OT] Transaction

2003-02-18 Thread Fabio Mengue
Hi,

Anybody know if it is possible to share a transaction context between 
all levels of my system ?

I explain: today I am able to start a transaction between my servlet 
(inside Tomcat) and the database. Is it possible to "expand" this 
transaction to the client browser ? Do I need to write  an applet for 
that or a fat client ?

In fact, do I make sense at all ? :)

Thanks a lot,

F.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

Furious activity is no substitute for understanding. H.H. Williams



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



Re: preview of webapp of Tomcat Performance book

2003-02-11 Thread Fabio Mengue
Very much :)))

F.

Peter Lin wrote:


I plan on releasing the webapp and utilities for
Tomcat Performance Handbook Remy and I are writing in
the next few days. I'd like to know if tomcat-users
find that appealing?

peter lin


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

The first step in fixing a broken program is getting it to fail repeatably. Tom Duff



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




Re: 4.1.17 Problems - Possibly Coyote Connector?

2003-01-06 Thread Fabio Mengue
Hi Torsten,

Sorry the delay (and for sending a copy directly to your address). I got 
a little vacation :)

Torsten Fohrer wrote:

Please try this steps.

1. hang on catalina.out, access.log 

OK. I assume that access.log is localhost_log., is that correct ?


2. request the page with the browser => something changes in logs?


Yes. I get several GC info (-verbose:gc in setclasspath.sh) on 
catalina.out, and on localhost_log, I get several lines like

2003-01-06 16:19:19 StandardContext[/des]:   Trying exact match
2003-01-06 16:19:19 StandardContext[/des]:   Trying prefix match
2003-01-06 16:19:19 StandardContext[/des]:  Mapped to servlet 
'org.apache.catalina.INVOKER.pckSipeServlet.ConsultaProducao.ControleConsultarProducao' 
with servlet path 
'/servlet/pckSipeServlet.ConsultaProducao.ControleConsultarProducao' and 
path info 'null' and update=true
2003-01-06 16:19:23 StandardContext[/des]: Mapping contextPath='/des' 
with 
requestURI='/des/servlet/pckSipeServlet.ConsultaOrgao.ControleConsultarOrgao' 
and 
relativeURI='/servlet/pckSipeServlet.ConsultaOrgao.ControleConsultarOrgao'

Looks like one of this sets per request.

3. add some System.out.println() at beginning and end of the servlet


The servlet is kinda complicated (generated by VisualAge Generator), but 
I think I got it.

4. request the page again with the browser => output of the System.out.println 

Well. Lemme say that on port 8083 (HttpConnector), everything went OK, 
and I was able to see my println on catalina.out. Localhost_log is 
almost the same as above.

On port 8080 (Coyote) I got the following exception (and the blank screen):

- UNCAUGHT EXCEPTION -
java.lang.IllegalStateException: Cannot create a session after the 
response has been committed
   at 
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884)
   at 
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
   at 
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:365)
   at 
br.unicamp.ccuec.servlet.http.VisualServlet.getSession(Unknown Source)
   at 
pckAdcoGUIComum.ControleErro.ControleErro.mtSalvaErroGenericoArquivo(Unknown 
Source)
   at pckAdcoGUIComum.ControleErro.ControleErro.mtSalvaErro(Unknown 
Source)
   at 
pckAdcoGUIComum.ControleErro.ControleErro.mtDefineErro(Unknown Source)
   at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.handleException(Unknown 
Source)
   at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.mtTrataConsultarProducao(Unknown 
Source)
   at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.connEtoM1(Unknown 
Source)
   at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.requestReceived(Unknown 
Source)
   at 
br.unicamp.ccuec.servlet.http.VisualServlet.fireRequestReceived(Unknown 
Source)
   at br.unicamp.ccuec.servlet.http.VisualServlet.service(Unknown 
Source)
   at 
br.unicamp.ccuec.servlet.http.Router.forwardToServiceHandler(Unknown Source)
   at br.unicamp.ccuec.servlet.http.Router.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

and some more stuff I deleted.

If I hit "Reload" once (sometimes twice), things work (no exception, I 
see my println on catalina.out and get data on the browser). If I hit 
"Reload" again, I get the exception again...

I don't know if this is time related or has something to do with my 
application. Some people wrote me directly saying that they had the same 
problem and it disapeared when they switched to HttpConnector.

I don't really understand the cause of this exception... Seems to be 
related to getSession() method. I'm not aware of any changes in the 
interface... And I did not tried an older version of the JDK (I'm using 
1.4.1_01 and 1.3.1_06).

Thanks a lot for your time,

Fabio.

ok?

On Thursday 19 December 2002 18:50, you wrote:
 

Remy Maucherat wrote:
   

Fabio Mengue wrote:
 

Hello,

Did not work for me. I still get the blank pages. Mine are servlet
related, not JSP related.
   

The bug can affect servlets which use a Writer. The same patch should
fix it.
 

I'm sorry... But it didn't.

What can I do to help figure this out ? I'm not directly involved with
the developers, so I don't know exactly what they are using. If the
Writer class you said is related to HttpServletResponse, then they are
using it.

I don't get any output of it on the log files, I just know that request
is processed, and the response is a blank page.

And on the machine next to mine, connected to port 8083, everything is
fine.

Thanks a lot,

Fabio.

   

Remy


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



--
To unsubscribe, e-mail:   <m

Re: 4.1.17 Problems - Possibly Coyote Connector?

2002-12-19 Thread Fabio Mengue
Remy Maucherat wrote:


Fabio Mengue wrote:


Hello,

Did not work for me. I still get the blank pages. Mine are servlet 
related, not JSP related.


The bug can affect servlets which use a Writer. The same patch should 
fix it. 

I'm sorry... But it didn't.

What can I do to help figure this out ? I'm not directly involved with 
the developers, so I don't know exactly what they are using. If the 
Writer class you said is related to HttpServletResponse, then they are 
using it.

I don't get any output of it on the log files, I just know that request 
is processed, and the response is a blank page.

And on the machine next to mine, connected to port 8083, everything is fine.

Thanks a lot,

Fabio.



Remy


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



--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

pi seconds is a nanocentury. - Tom Duff



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




Re: Session timeout setting

2002-12-19 Thread Fabio Mengue
On Tomcat 4.0.x, you had a Manager property for this (in server.xml, 
called |maxInactiveInterval|). Docs say **"The value for this property 
is inherited automatically if you specify a || element 
in the web application deployment descriptor (|/WEB-INF/web.xml|)." 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)

I just looked 4.1.x docs 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html) 
and the property is gone :) What version are you using ? Perhaps now it 
MUST be set on web.xml...

I have a problem like yours. Development team will release an 
application soon that will require users to have sessions that last more 
that 1 hour; it's much much easier (for them) to just create a session 
and configure Tomcat to hold it for a whole day. Scalability is not on 
their minds, of course :)

I think that has to be another way, something like Persistent Manager 
Implementation.

Anyone knows a better way to solve this problem ?

Thanks a lot,

F.

Kenny G. Dubuisson, Jr. wrote:

Sorry to repost this but I'm kind of in a bind (got users about to lynch me
which may or may not be a bad thing).  Anyway...session ID's on my site
(using Tomcat) are getting regenerated after a user has been logged in for
60 mins.  I would like to change this to a higher value but don't know where
to set it.  I've read throught posts on this list and I've seen some things
mention the web.xml file and its session-timeout setting but my web.xml
session-timeout setting is currently set to 30 mins in that file so that
can't be the proper setting that I'm looking for.

Any ideas would be greatly appreicated.  My users are upset that they have
to re-login evey hour on an application that they use all day.  Thanks in
advance,
Kenny


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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

pi seconds is a nanocentury. - Tom Duff



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




Re: 4.1.17 Problems - Possibly Coyote Connector?

2002-12-19 Thread Fabio Mengue
Hello,

Did not work for me. I still get the blank pages. Mine are servlet 
related, not JSP related.

Fabio.

Torsten Fohrer wrote:

This is bug in 4.1.17 which will fixed in Tomcat 4.1.18,

i attach the compiled classes that fixe it.

update the tomcat-coyote and it should work...


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

pi seconds is a nanocentury. - Tom Duff



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




Re: 4.1.17 Problems - Possibly Coyote Connector?

2002-12-19 Thread Fabio Mengue
Hello,

Rasputin wrote:


This might be a dumb question, but have you tried using the older http/1.1
connectors to see if the problem goes away? At least then you know it's
Coyote's fault.


I did, and it goes away :)

I wrote to the list some time ago; I have the same problem, on all 4.1.x 
versions.

F.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

pi seconds is a nanocentury. - Tom Duff



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



Re: DB2 JDBC

2002-12-17 Thread Fabio Mengue
Hi,

Sherif D Mohamad wrote:


Thanks for your help,
I have done what you said, but I am running tomcat4 on Linux,


Me too...


I do not have /bin/setclasspath.sh


?!?!


in /bin I have : bootstrap.jar  commons-daemon.jar
tomcat-jni.jar


Did you installed it using RPM's ? What version are you using ?


so I added JAVA_OPTS="-Djava.library.path=//sqllib/java12/" to
/conf/tomcat4.conf


I don't have this file either. tomcat4.conf ? Mine is server.xml...


I am not sure if that it right or wrong, will test and see, if you find I
need something else pls advise.


I don't know, your tomcat don't look like the one I use.

F.



Thank you.
Sherif


- Original Message -
From: "Fabio Mengue" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 4:08 AM
Subject: Re: DB2 JDBC


 

Hello,

DB2 JDBC library files are usually in

/sqllib/java12

The file name is db2java.zip. You can copy it to

/common/lib

Change its name to db2java.jar or something with .jar extension, so
Tomcat will be aware of it.

I had to do other things to DB2 work. I added the line

JAVA_OPTS="-Djava.library.path=//sqllib/java12/"

To /bin/setclasspath.sh, and copied db2profile to
/bin, changing its name to

setenv.sh

After that, DB2 worked :)

Good luck,

Fabio.


Sherif D Mohamad wrote:

   

I need to make JSP files on tomcat to connect to a DB2 database.
I installed the DB2 client for Linux, but I have problems, how can I
configure it to work with JSP files ? where is the JDBC ?


--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 



 

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 



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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

[The Test of Negation] Don't include a sentence in documentation if its negation is obviously false. Bob Martin



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




Re: DB2 JDBC

2002-12-16 Thread Fabio Mengue
Hello,

DB2 JDBC library files are usually in

/sqllib/java12

The file name is db2java.zip. You can copy it to

/common/lib

Change its name to db2java.jar or something with .jar extension, so 
Tomcat will be aware of it.

I had to do other things to DB2 work. I added the line

JAVA_OPTS="-Djava.library.path=//sqllib/java12/"

To /bin/setclasspath.sh, and copied db2profile to 
/bin, changing its name to

setenv.sh

After that, DB2 worked :)

Good luck,

Fabio.


Sherif D Mohamad wrote:

I need to make JSP files on tomcat to connect to a DB2 database.
I installed the DB2 client for Linux, but I have problems, how can I
configure it to work with JSP files ? where is the JDBC ?


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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



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




Off Topic: SAP DB

2002-12-10 Thread Fabio Mengue
Hello,

Does anyone here has tested or uses SAP DB (www.sapdb.org) ?

I am willing to try it, but the setup is a little complicated.

Thanks,

Fabio.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



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




Re: Onde esta o ????

2002-12-04 Thread Fabio Mengue
Oi Marcus,

Nao sei se vc notou, mas a lingua da lista eh o ingles :)

Acho que o material que vc esta usando eh antigo. Recomendo vc dar uma 
lida em

http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html

Ate,

Fabio.

Milhomem, Marcus wrote:

Pessoal,
	Estou montando o combo Apache2 + tomcat4.0.4 usando o how-to da
seguinte página :
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html#s8

nele me pede pra colocar o seguinte bloco  no arquivo
server.xml logo abaixo do bloco , porem nao existe esse
bloco no meu arquivo, alguém poderia me ajudar? como fazer o tomcat gerar o
arquivo de configuracao do apache automáticamente?



Obrigado
Marcus Renaud Milhomem

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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



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




Re: Problems with DB2ConnectionPoolDataSource - "Cannot create JDBCdriver"

2002-11-11 Thread Fabio Mengue
Hi Andrew,

You are trying to set up a connection pool, right ?

I think you might use something like:

(server.xml)


 
   
   
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
   
   
   driverClassName
   COM.ibm.db2.jdbc.app.DB2Driver
   
   
   url
   jdbc:db2:my_database
   
   
   username
   xxx
   
   
   password
   xxx
   
   
   maxIdle
   0
 
 
   maxActive
   10
 
 
   maxWait
   1
 
 



The URL part is the challenge. I think you may have something like 
jdbc:db2://9.17.41.96:5/rtmwasdb in it, but I don't know for sure, 
since I use DB2 Connect (client). driverName is not needed.

Your servlet will now print

org.apache.commons.dbcp.PoolableConnection@.

Voila, you have a poolable connection, managed by Jakarta-Commons DBCP. 
I'm using Tomcat 4.1.14 + JDK 1.4.1_01 on linux.

I tried to set a DB2 connection pool for several weeks, a while ago. IBM 
docs only show how to do it using WebSphere. I can't say that I laughed 
a bit when I saw your domain :)

Good luck,

Fabio.

Andrew D Johnson wrote:

I'm trying to configure Tomcat to use a DB2ConnectionPoolDataSource, but
I'm experiencing problems which appear to be related to configuration -
more specifically the datasource I've defined in the server.xml file, and
the datasource returned from the InitialContext within the code are
different.  I receive a "Cannot create JDBC driver of class
'COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource' " exception

Maybe this situation is best described with code.

In server.xml

crossContext="true">

="javax.sql.DataSource"/>


userusername


passworduserpassword

driverClassNameCOM.ibm.db2.jdbc.DB2ConnectionPoolDataSource


driverNamejdbc:db2:rtmwasdb


url//9.17.41.96:5




In web.xml

DB2 Connection
jdbc/emsltestds
javax.sql.DataSource
Container


the code in my servlet
try {
 Context jndiCntx = new InitialContext();
 out.println("new InitialContext");
 DataSource ds = (DataSource)jndiCntx.lookup
("java:comp/env/jdbc/emsltestds");
 out.println("got a DataSource");
 out.println(ds.toString() + "");
 out.println( (ds instanceof org.apache.commons.dbcp.BasicDataSource)
+ "");
 out.println( (ds instanceof
COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource) + "");
 conn = ds.getConnection();   // exception is thrown here
 
} catch (Exception e) {
 out.println("Problems: " + e.toString());
}

and finally the end result viewed with a web browser
new InitialContext
got a DataSource
org.apache.commons.dbcp.BasicDataSource@7200b4
true
false
Problems: java.sql.SQLException: Cannot create JDBC driver of class
'COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource' for connect URL
'//9.17.41.96:5'

What is weird to me is if you notice the debug statements, I echo out
"ds.toString()" which gives me
org.apache.commons.dbcp.BasicDataSource@some_memory_address.  I think this
might be where at least one of my problems reside.  Seems to me this should
be COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource@some_memory_address - maybe
I need additional information in the server.xml file?!?!

Any ideas/pushes in the right direction are greatly appreciated.  Thanks in
advance.

Andrew D Johnson
IBM Global Services
Enterprise Monitoring Solutions Lab
(303) 924-6951  5-6951 T/L 263-6951
[EMAIL PROTECTED]

This is not rocket science - its only suborbital ballistic propulsion
engineering



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




REPOST - Coyote Connector problem ?

2002-11-06 Thread Fabio Mengue
Hello,

I posted this a while ago, and nobody seems to be interested :) I'm 
trying again, as I updated my server to 4.1.14 and the problem 
continues. If somebody could at least give me a direction (like "install 
Apache, write to other list, send more info...).

I have a Tomcat 4.0.6 server (Linux, Sun JVM 1.3.1_05). My system uses 
JSP's and servlets. Everything works fine.

I'm testing Tomcat 4.1.14 (Linux, Sun JVM 1.3.1_05). Just cp -R 
/webapps/myapps /webapps/myapps. Started 
4.1.14.

Navigating on my apps, sometimes the answer that I get is something like






where there should be information. If I hit "Reload" on my browser, 
sometimes I get the expected answer, sometimes I don't (I also tried on 
different browsers).

The log files shows that thr processing is happening (servlets are 
getting instantiated, catalina.out shows the garbage colletion), but the 
answer never comes to my browser. I mean, I get a blank page with some 
tags, but not the answer I expected.

Then, on /conf/server.xml, I altered


...

To


...

After the restart, things work fine, like tomcat-4.0.6. Anyone knows 
what (why) this is happening ? Is it a bug on Coyote ? I did not found 
anything on mailing lists (perhaps my search did not contained the right 
words - I'm not a native english speaker, you know :).

Thanks a lot,

Fabio.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



Re: Tomcat 4.1.12 won't start- giving exception

2002-10-28 Thread Fabio Mengue
That's correct. Sorry for the previous message.

F.

Burt Johnson wrote:


At 4:07 PM -0300 10/28/02, Fabio Mengue wrote:
 

You have to use JDK 1.4.x to use tomcat-4.1.12-LE. Or any other "LE"
version.

   


Not true. Just add the Xerces parsers and it works fine.  I'm using it
under Mac OS X running JDK 1.3.1.
 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




Re: Tomcat 4.1.12 won't start- giving exception

2002-10-28 Thread Fabio Mengue
You have to use JDK 1.4.x to use tomcat-4.1.12-LE. Or any other "LE" 
version.

Fabio.

Nalini wrote:

Hi,

I have installed jdk1.3.1_04 and made JAVA_HOME point
to the jdk home =
directory.
Then I have down loaded the release version of tomcat
4.1.12 and unzipped =
it. When I tried to start tomcat from the
tomcathome\bin directory using =
the startup command , I get the following error.

Using CATALINA_BASE:  
C:\jakarta-tomcat-4.1.12-LE-jdk14
Using CATALINA_HOME:  
C:\jakarta-tomcat-4.1.12-LE-jdk14
Using CATALINA_TMPDIR:
C:\jakarta-tomcat-4.1.12-LE-jdk14\temp
Using JAVA_HOME:   C:\jdk1.3.1_04
Exception in thread "main"
java.lang.NoClassDefFoundError: org/xml/sax/Inpu=
tSour
ce
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Class.java:232)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)

Could someone help me fix this error.

Thanks in advance.



__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




R: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

2002-10-23 Thread Fabio Marsilio
I installed The ManagerX servlet of  http://www.talika.org/

and works great!

now I can manage all apps of all virtualhosts from a single url.

thank you Wu Yiqun!

Fabio


-Messaggio originale-
Da: Wu Yiqun [mailto:yqwu@;mail.etonenet.com]
Inviato: mercoledì 23 ottobre 2002 03.10
A: Tomcat Users List
Oggetto: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all
TOGHETHER?


There was a site http://www.talika.org/. The author wrote a Tomcat ManagerX
Servlet
which can support virtual host. He sent out an email about it long time ago.
I have successfully
tested it with Tomcat 4.0.4 or some early version.(I cannot remember) You
can have a try.

Btw, developer such as Craig, Remy or someone else, would you please
consider adding this
servlet to new version of tomcat? IMHO this is useful to tomcat user.
Thanks.

- Original Message -
From: "Randy Secrist" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 7:50 AM
Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?


>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 22, 2002 10:34 AM
> Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?
>
> > It depends on how you've configured your Tomcat virtual hosts.  If you
> > have set up separate  elements for each of them, then you must set
> > up a webapp for the Manager inside each of them.  If there is a single
> >  element (relying on the "defaulthost" attribute to resolve all
> > unknown host names to the same one), then a single Manager webapp will
> > manage all of them.
> >
> > Craig
> >
>
> Silly question I suppose - but can you nest a  element inside
another
>  element?  Unless you can, then a single manager app will not
> encompass all virtual hosts since each host needs it's own manager...
>
> Randy
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




R: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

2002-10-23 Thread Fabio Marsilio
Thank you Wu!

I will immediatly try to use managerx servlet.

Thanks a lot  to Craig and Remy for their help

For Remy: ( maybe the question was silly but the need to manage all virtual
hosts from one app is not)





-Messaggio originale-
Da: Wu Yiqun [mailto:yqwu@;mail.etonenet.com]
Inviato: mercoledì 23 ottobre 2002 03.10
A: Tomcat Users List
Oggetto: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all
TOGHETHER?


There was a site http://www.talika.org/. The author wrote a Tomcat ManagerX
Servlet
which can support virtual host. He sent out an email about it long time ago.
I have successfully
tested it with Tomcat 4.0.4 or some early version.(I cannot remember) You
can have a try.

Btw, developer such as Craig, Remy or someone else, would you please
consider adding this
servlet to new version of tomcat? IMHO this is useful to tomcat user.
Thanks.

- Original Message -
From: "Randy Secrist" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 7:50 AM
Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?


>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 22, 2002 10:34 AM
> Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?
>
> > It depends on how you've configured your Tomcat virtual hosts.  If you
> > have set up separate  elements for each of them, then you must set
> > up a webapp for the Manager inside each of them.  If there is a single
> >  element (relying on the "defaulthost" attribute to resolve all
> > unknown host names to the same one), then a single Manager webapp will
> > manage all of them.
> >
> > Craig
> >
>
> Silly question I suppose - but can you nest a  element inside
another
>  element?  Unless you can, then a single manager app will not
> encompass all virtual hosts since each host needs it's own manager...
>
> Randy
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

2002-10-22 Thread Fabio Marsilio
Hi all,

I have configured tomcat (4.0.5) with more (virtual) hosts.

If I want to manage the apps of those virtual hosts with tomcat app manager,
I must create a manager application inside every virtual host.

so for example, to manage the applications of virtualhost1.com I must use
the URL http://virtualhost1.com/manager ,

to manage the applications of virtualhost2.com I must use the URL
http://virtualhost2.com/manager ...etc, etc.


Do you know if there is the possibility to manage all apps of all virtual
hosts within the same url?

Thank you in advance

Fabio.




TOMCAT MANAGER-APP and WARP CONNECTOR PROBLEM

2002-10-21 Thread Fabio Marsilio
Hello,

First my configuration: apache 1.3.26 , tomcat 4.0.5 and mod_webapp.

I' m trying to use the manager app of tomcat

1) connect to manager app : http://localhost:8080/manager

2) login as manager

3) try to list currently deployed applications :
http://localhost:8080/manager/list

the response is:

OK - Listed applications for virtual host localhost
/manager:running:0
/examples:running:0
/tomcat-docs:running:0
/webdav:running:0
/:running:0

The problem is that are listed only application of http/1.1 connector (port:
8080)
not the ones with warp connector (port 8008).

I tried to access manager app with port 8008

http://localhost:8008/manager

but there is no reply at all.


Is there a configuration of server.xml that gives me the possibility to

manage applications deployed under warp connector?

Thank you in advance

Fabio




R: turn off directory listing in tomcat 4.0.3

2002-10-21 Thread Fabio Marsilio
To disable directory browsing, edit the file "web.xml" in Tomcat's config
directory.
Change the value of the parameter "listings" in the servlet named "default"
from "true" to "false".

Fabio


-Messaggio originale-
Da: unix guy [mailto:unixguy@;verizonmail.com]
Inviato: lunedì 21 ottobre 2002 17.52
A: [EMAIL PROTECTED]
Oggetto: turn off directory listing in tomcat 4.0.3


How do I do this?  Is this automatically turned on by default?

Sorry for the easy newbie questions.


Thanks
--
___
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
http://www.net2phone.com/cgi-bin/link.cgi?143




--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




R: MOD_JK2 installation question

2002-10-11 Thread Fabio Marsilio

Thank you Georg,
but what about the .jar files to put inside catalina home?



-Messaggio originale-
Da: Georg Puchta [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 11 ottobre 2002 18.02
A: 'Tomcat Users List'
Oggetto: RE: MOD_JK2 installation question


Copy the file from e.g. ./jk/build/jk/apache13/mod_jk.so to
${APACHE_HOME}/libexec/mod_jk.so

-Georg

-Original Message-----
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 8:54 AM
To: Tomcat Users List
Subject: MOD_JK2 installation question


Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio


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



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




MOD_JK2 installation question

2002-10-11 Thread Fabio Marsilio

Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio




MOD_WEBAPP PROBLEM: RESTART APACHE IF RESTART TOMCAT

2002-10-03 Thread Fabio Marsilio

Hello,

I use tomcat 4.0.5 and apache 1.3.26 with mod_webapp (the one built from
sources of tomcat- connectors 4.0.5)

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/src/
jakarta-tomcat-connectors-4.0.5-src.tar.gz

THE PROBLEM:

when I restart tomcat I must restart apache too in order to make it work
(otherwise apache works but the connection with tomcat is lost)

is there a possible configuration to avoid this behavior?

thank you in advance.

Fabio







RESTART APACHE IF RESTART TOMCAT with MOD_WEBAPP

2002-09-26 Thread Fabio Marsilio

Hello,

I use tomcat 4.0.5 and apache 1.3.26 with mod_webapp (the one built from
sources of tomcat 4.0.5)

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/src/
jakarta-tomcat-connectors-4.0.5-src.tar.gz

when I restart tomcat I must restart apache too in order to make it work
(otherwise apache works but the connection with tomcat is lost)

is there a possible configuration to avoid this behavior?

thank you in advance.

Fabio




FIREWALL AND APACHE + TOMCAT MOD_WEBAPP : RESTART APACHE IF RESTART FIREWALL

2002-09-25 Thread Fabio Marsilio

Hi all,

I have a box with apache 1.3.26 in the DMZ network of my firewall

and a box with tomcat 4.0.5  in the trusted network of the firewall.

they are connected  by mod_webapp

(tcp traffic on port 8008 is allowed between the two boxes.)


The problem :

if I reboot my firewall (ex: because of a change of policy)

the connection between apache and tomcat is lost.

(apache alone works but the connection with tomcat is lost)

In order to have apache+tomcat working again I must restart apache (not
tomcat).

The question:

Is there something to change in the configuration that makes the connection
work without restart of apache?

Any suggestion is welcome  :-)

Fabio




MOD_WEBAPP [error] Cannot shutdown "warpConnection"

2002-09-24 Thread Fabio Marsilio

Hi all,

I have a problem with apache + tomcat  (mod_webapp)

My configuration:

- Webserver Machine (Linux):  apache 1.3.26 + mod_ssl 2.8.10-1.3.26 +
mod_webapp 1.0.1

  (this Machine is in the firewall's Dmz)


- Jsp Machine (Solaris): tomcat 4.0.1

  (this machine is in the trusted network of the firewall)


The firewall has a rule that allows tcp traffic between the two machines on
port 8008 (webapp ponnector)

All worked fine between apache and tomcat until I began to use ssl.

I configured a virtual host with ssl and all worked fine but if I wait a
certain amount of time without browsing (at least 12 hours)

then the apache server seem not to respond any more.

Every time I try to connect to my jsp application it gives an error:

[error] Cannot shutdown "warpConnection"

If I connect to the httpd://myserver.com/webapp-info/ pages it says that the
link with the jsp machine is ok

If I restart apache (not tomcat!) all works again.

This did not happen with apache withous ssl.

If someone has any Idea .it's welcome!

I cannot make an apache restart every morning ...   : )

This will be soon a production site!!

Thank you in advance



Fabio Marsilio

[EMAIL PROTECTED]






apache + tomcat + ssl

2002-09-23 Thread Fabio Marsilio

Hi all,

I have a problem with apache + tomcat + ssl

My configuration:

- Webserver Machine (Linux):  apache 1.3.26 + mod_ssl 2.8.10-1.3.26 +
mod_webapps 1.0.1

  (this Machine is in the firewall's Dmz)


- Jsp Engine Machine (Solaris): tomcat 4.0.1

  (this machine is in the trusted network of the firewall)

The firewall has a rule that allows tcp traffic between the two machines on
port 8008 (webapp ponnector)

All worked fine between apache and tomcat until I began to use ssl.

I configured a virtual host with ssl and all worked fine but if I wait a
certain amount of time (at least 12 hours)

then the server seem not to respond any more.

If I restart apache (not tomcat!) all works again.

This did not happen with apache withous ssl.

Yes , it's a strange problem, maybe a timeout of connections...

If someone has any Idea .it's welcome!

I cannot make an apache restart every morning ...   : )

Thank you in advance



Fabio Marsilio

[EMAIL PROTECTED]




Re: Character Encoding problem

2002-08-28 Thread Fabio Mengue

Perhaps something like this is /bin/setclasspath.sh

JAVA_OPTS="-Dfile.encoding=ISO-8859-1"

(with you ISO configuration, of course).

Fabio.

Nehemia Litterat wrote:

>Hi 
>
>I am using tomact 4.0.4 and JDK1.3.1
>
>I am trying to read parameter in hebrew from the URL but get '???' writing Hebrew to 
>the browser works fine
>
>I can not use req.setCharacterEncoding(java.lang.String env) (can not compile the 
>code when I am using it)
>
>is there a way to go around it. I am very flexiable in choosing the JDK and TOMCAT 
>version to work with but they need to be release version and not beta or something 
>like this 
>
>Thanks in advance
>
>Nehemia Litterat
>
> 
>
>
>
>-----
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>  
>

-- 
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor



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




Apache+tomcat configuration

2002-08-15 Thread Alarcon, Fabio

Hi guys
Is there a page or an archive list where I can found in order to run apache
together with Tomcat?
I know some of you has already configured sucessfuly

Thanks in advance for your replies

Fabio


--

"Este mensaje y sus anexos están dirigidos exclusivamente a su destinatario y puede(n) 
contener información confidencial. En consecuencia, de conformidad con las leyes 
peruanas, está prohibida su reproducción o difusión a través de cualquier medio.

Si ha recibido esta comunicación por error, sírvase informarlo al remitente a través 
de correo electrónico o al teléfono (511) 611- y borrar de inmediato este mensaje. 
Muchas Gracias."

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




Re: LD_LIBRARY_PATH

2002-07-12 Thread Fabio Mengue

Hi,

Create in $TOMCAT/bin a file called setenv.sh. In there, put 
LD_LIBRARY_PATH and any other env variable you want (I have the entire 
db2profile file on setenv.sh).

Fabio.

Johnny wrote:

> To all Tomcat users :
>
> How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate
>way to set the LD_LIBRARY_PATH in Tomcat 4.0.3 in Linux?
>
> Regards,
> Johnny.
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>

-- 
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




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




Re: Tomcat-induced HotSpot Server VM crashes

2002-06-26 Thread Fabio Mengue

Hello,

I had a similar crash (SIG 11) on a linux machine (kernel 2.4.18). It 
was related to a DB2 native code that was not correctly set up. Do you 
make reference to (or use) any native code ? Maybe its library can't 
work with 1.4 -server.

I've seen that in Solaris too, caused by applications that can't handle 
64 bits.

Perhaps this won't help, but who knows.

Fabio.

[EMAIL PROTECTED] wrote:

>Has anyone encountered (and fixed, ideally) the following problem:
>
>This is on a 2 cpu 1Gb ram linux workstation ( Redhat 7.2 kernel
>2.4.7-10smp, libc-2.2.4.so) and happens in both the j2sdk1.4.0,
>j2sdk1.4.0_1, and j2sdk1.4.1 java development kits.
>
>If I start tomcat with the HotSpot VM in server mode
>($CATALINA_OPTS="-server"), my first servlet request crashes the server,
>with the HotSpot error listed below.  Starting it up in client mode
>works like a charm, however.
>
>--David 
>
>Unexpected Signal : 11 occurred at PC=0x40559490
>Function=Value__C12URShiftINodeP14PhaseTransform+0x94
>Library=/usr/java/j2sdk1.4.1/jre/lib/i386/server/libjvm.so
>
>Current Java thread:
>
>Dynamic libraries:
>08048000-0804e000 r-xp  03:05 245749
>/usr/java/j2sdk1.4.1/bin/java
>0804e000-0804f000 rw-p 5000 03:05 245749
>/usr/java/j2sdk1.4.1/bin/java
>4000-40016000 r-xp  03:06 621482 /lib/ld-2.2.4.so
>40016000-40017000 rw-p 00015000 03:06 621482 /lib/ld-2.2.4.so
>40018000-40021000 r-xp  03:05 932389
>/usr/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
>40021000-40022000 rw-p 8000 03:05 932389
>/usr/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
>40023000-4002a000 r--s  03:05 4350214   
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/bin/bootstrap.jar
>4002a000-40033000 r--s  03:05 4169945   
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/common/lib/naming-resources.jar
>40033000-4004 r-xp  03:06 981125 /lib/i686/libpthread-0.9.so
>4004-40048000 rw-p c000 03:06 981125 /lib/i686/libpthread-0.9.so
>40048000-4004b000 r-xp  03:06 621390 /lib/libdl-2.2.4.so
>4004b000-4004c000 rw-p 2000 03:06 621390 /lib/libdl-2.2.4.so
>4004c000-4017f000 r-xp  03:06 981128 /lib/i686/libc-2.2.4.so
>4017f000-40184000 rw-p 00132000 03:06 981128 /lib/i686/libc-2.2.4.so
>40188000-4061d000 r-xp  03:05 1014151   
>/usr/java/j2sdk1.4.1/jre/lib/i386/server/libjvm.so
>4061d000-40829000 rw-p 00494000 03:05 1014151   
>/usr/java/j2sdk1.4.1/jre/lib/i386/server/libjvm.so
>4083b000-4084e000 r-xp  03:06 621395 /lib/libnsl-2.2.4.so
>4084e000-4084f000 rw-p 00012000 03:06 621395 /lib/libnsl-2.2.4.so
>40851000-40873000 r-xp  03:06 981123 /lib/i686/libm-2.2.4.so
>40873000-40874000 rw-p 00021000 03:06 981123 /lib/i686/libm-2.2.4.so
>40874000-40884000 r-xp  03:05 1472259   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libverify.so
>40884000-40886000 rw-p f000 03:05 1472259   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libverify.so
>40886000-408a7000 r-xp  03:05 1472247   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libjava.so
>408a7000-408a9000 rw-p 0002 03:05 1472247   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libjava.so
>408a9000-408be000 r-xp  03:05 1472260   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libzip.so
>408be000-408c rw-p 00014000 03:05 1472260   
>/usr/java/j2sdk1.4.1/jre/lib/i386/libzip.so
>408c-408d4000 r--s  03:05 4169944   
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/common/lib/servlet.jar
>408d4000-408da000 r--s  03:05 4169946   
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/common/lib/naming-common.jar
>408da000-41fa6000 r--s  03:05 180278
>/usr/java/j2sdk1.4.1/jre/lib/rt.jar
>41fe9000-4200 r--s  03:05 180279
>/usr/java/j2sdk1.4.1/jre/lib/sunrsasign.jar
>4200-42071000 r--s  03:05 180272
>/usr/java/j2sdk1.4.1/jre/lib/jsse.jar
>42071000-42084000 r--s  03:05 180271
>/usr/java/j2sdk1.4.1/jre/lib/jce.jar
>42084000-4234e000 r--s  03:05 180260
>/usr/java/j2sdk1.4.1/jre/lib/charsets.jar
>443f6000-443f9000 r--s  03:05 4513590   
>/usr/java/j2sdk1.4.1/jre/lib/ext/dnsns.jar
>443f9000-443fb000 r--s  03:05 311022
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/server/lib/servlets-snoop.jar
>443fb000-443fe000 r--s  03:05 311025
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/server/lib/servlets-manager.jar
>443fe000-443ff000 r--s  03:05 311027
>/usr/www/tomcat-4.0.3_j2sdk1.4.1/server/lib/servlets-common.jar
>7a8b9000-7a8e4000 r--p  03:05 2436466   
>/usr/lib/locale/en_US/LC_CTYPE
>7a8e4000-7a8f2000 r--s  03:05 4513591   
>/usr/java/j2sdk1.4.1/jre/lib/ext/ldapsec.jar
>7a8f2000-7a8fa000 r--s  03:05 4513666   

Re: javax.naming.NamingException: Cannot create resource instance

2002-06-25 Thread Fabio Mengue

Hello,

Dave Gibbs wrote:

>DB2 driver does need the URL formatted as follows.
>URL="jdbc:db2:your_db_name"
>
My server.xml entry (this DON'T work)

  

  
factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  maxActive10
  
maxIdle3
  maxWait100

  
username   // Get 
this from the application...
  
password   // idem
  driverClassName
   COM.ibm.db2.jdbc.net.DB2Driver
  
  url
   jdbc:db2://server.unicamp.br:8088/database
  


>Have you installed the DB2 CAE on the host machine ?
>
Yes. I don't know much about DB2, we have a DBA for that. I'm just the 
poor guy trying to make this work :) I can telnet my server on port 
8088, I assume that the host is responding.

>also if you want to use JDBC2 you need to build a new db2java.zip by running
>usejdbc2.bat in Drive:\DB2\java12.
>
The DBA guy done that. In fact, I've got my application working with 
COM.ibm.db2.jdbc.app.DB2Driver on one context, got it working with 
COM.ibm.db2.jdbc.net.DB2Driver on another, and I'm trying to make it 
work with COM.ibm.db2.jdbc.net.DB2Driver and DBCP on another context. 
All on the same server and with Tomcat 4.0.4 (did not tried 4.1.x)

To do that, I had to put on TOMCAT/bin/setclasspath.sh

JAVA_OPTS="-Djava.library.path=/home/db2inst1/sqllib/java12/"

and created a TOMCAT/bin/setenv.sh that is a soft link to 
DB2/sqllib/db2profile.

When my servlet try to connect to DB2, I get* 
java.lang.UnsupportedOperationException*.


There are several things I don't understand. I read that 
javax.sql.DataSource is an interface, that has to be implemented by 
another class, supplied by the database vendor. I read Les Hughes 
examples and comments, and several people have done their configuration 
using other classes than javax.sql.DataSource. DB2 has 
DB2BaseDataSource, DB2ConnectionPoolDataSource, DB2DataSource and 
DB2XADataSource in his db2java.zip, and I did not found any 
documentation on them. May I use them directly ? Do I need to use 
javax.sql.ConnectionPoolDataSource ? If DBCP just pools general 
Connection objects, why do I get UnsupportedOperationException ? Is DB2 
driver not JDBC2.0 compliant ? I don't know, so I'm trying option by 
option. Until now, no luck (I'm glad that I have time to test this, my 
deadline is a couple of months from now).

I think I'll rm -rf Tomcat and start all over again :) Now for the 
million dolar question: Dave, did you manage to make DB2 + DBCP work ? 
If so, may you send me your server.xml ?

Thanks,

Fabio.

Dave Gibbs wrote:

>DB2 driver does need the URL formatted as follows.
>URL="jdbc:db2:your_db_name"
>Have you installed the DB2 CAE on the host machine ?
>also if you want to use JDBC2 you need to build a new db2java.zip by running
>usejdbc2.bat in Drive:\DB2\java12.
>Dave


-- 
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




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




Re: javax.naming.NamingException: Cannot create resource instance

2002-06-25 Thread Fabio Mengue

Hi,

Les Hughes wrote:

>Also, I dont think you need both drivername and url - they are synonyms for
>the same thing. 
>
I think DBCP wants URL to be configured. At least with DB2, if I don't 
configure url on server.xml, I get

Cannot create JDBC driver of class 'COM.ibm.db2.jdbc.net.DB2Driver' for 
connect URL 'null'

on catalina.out.

>One last thing, the property "user" or "username" seems to be driver
>specific maybe? Try both and let us know which one works :-)
>
I think that DBCP also wants username to be configured. I get

DBCP DataSource configured without a 'username'

on catalina.out

>IF either of you guys get a functioning DB2 and Oracle setting, could you
>mail me them? I'm updating the documentation to include specific examples.
>
I still can't make DB2 work. I get

*java.lang.UnsupportedOperationException*

and no catalina.out entry for that.

Lack of documentation from IBM is always my problem :)

See ya,

Fabio.

- 
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




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




Re: Connection Pool Configuration OT!!

2002-05-23 Thread Fabio Mengue

Hi,

D Watson wrote:

> BTW, which version of WS are you using?

WebSphere 4.0 on a Sun Enterprise, with Solaris 8.

Fabio.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




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




Re: Connection Pool Configuration

2002-05-21 Thread Fabio Mengue

Hi,

I have the same problem. Want connection pool to work on Tomcat and Websphere
without to rewrite code. IBM send us instructions to set up the server and a
piece of code that looks like this:

...
java.util.Properties parms = new java.util.Properties();
parms.setProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
javax.naming.Context ctx = new
javax.naming.InitialContext(parms);
javax.sql.DataSource ds =
(javax.sql.DataSource)ctx.lookup("jdbc/db2proddb02DS");
java.sql.Connection c = ds.getConnection(user,pass);
...

It works on Websphere, but as you can see, initial conext is provided by
Websphere code, and I won't use that in Tomcat (in fact I think this is EJB
code, and Tomcat does not support it; I can't use it even if I want to).

So I'm trying an alternate path:

...
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/db2proddb02DS");
java.sql.Connection c = ds.getConnection(user,pass);
...

And on /conf/server.xml




  
  

 user
 password
 driverClassName

COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource
 driverName
  jdbc:db2:database



I'm still getting a "Null Pointer" error, but I think that when I got it to
work, I might use the very same configuration (and code) on both servers, since
COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource it's not Websphere code.

Hope it helps. And note that I may be wrong :) Perhaps one of the fine people in
this list may correct me.

Fabio.

D Watson wrote:

> I am testing under Tomcat but I will be deploying the project to WebSphere
> (as per the client's request). I would like to be able to have the project
> work under any application server, so I do not want to rely on a 3rd party
> product for pooling but rather use a built in solution (if available).  In
> doing this I also hope to keep any application server specific
> coding/configuration to a minimum.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




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




Re: java.library.path and database connection

2002-04-18 Thread fabio

Hi,

I think you are right. Went to

http://www-4.ibm.com/software/data/db2/java/
http://industry.java.sun.com/products/jdbc/drivers

Looks that native IBM DB2 drivers only supports jdbc v2. There's a company that
have a jdbc v3 driver for DB2
(http://www.datadirect-technologies.com/jdbc/jdbc.asp), but unfortunaly is not
free.

I guess I'll have to resign myself to the fact that I'll have to use
JVM 1.3 :(

Thanks a lot Andy.

Fabio.

Andy Eastham wrote:

> Fabio,
>
> jdk1.4 includes jdbc v3 as standard.  Perhaps your database drivers
> explicitly require jdbc v2?
>
> Andy
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 18 April 2002 13:43
> > To: Tomcat Users List
> > Subject: Re: java.library.path and database connection
> >
> >
> > Hello again,
> >
> > I've sent an email about the error
> >
> > java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
> > java.library.path
> >
> > Changed the JVM from 1.4 to 1.3.1 and things get going.
> >
> > Despite the happiness to see the database connection working,
> > I want to
> > understand why it doesn't work with JVM 1.4. I think that perhaps this has
> > something to do with libdb2jdbc.so, but I can connect via an
> > aplication, using JVM
> > 1.3.
> >
> > Anyone ?
> >
> > Thansk again,
> >
> > Fabio.
> >
> > fabio wrote:
> >
> > > Hello,
> > >
> > > I have a problem and I'm having a hard time to figure out
> > what is going on.
> > >
> > > Scenario: New machine. Solaris 2.8, all patches. J2SDK 1.4.0. Tomcat
> > > 4.0.3-LE-jdk1.4. DB2 7.1 (local, not db2client, but I think
> > that it's not the
> > > problem; I can connect via Java applications).
> > >
> > > I have several servlets on
> > tomcat/webapps/some-dir/WEB-INF/classes. The DB2
> > > driver (db2java.jar) is on tomcat/classes/lib. When I try to
> > execute anything
> > > (that connects to the database), I get the message:
> > >
> > > java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
> > > java.library.path
> >
> > stuff deleted.
> >
> > --
> > Fabio Mengue - Centro de Computacao - Unicamp
> > [EMAIL PROTECTED]   [EMAIL PROTECTED]
> > "Quem se mata de trabalhar merece mesmo morrer." - Millor
> >
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: java.library.path and database connection

2002-04-18 Thread fabio

Hello again,

I've sent an email about the error

java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path

Changed the JVM from 1.4 to 1.3.1 and things get going.

Despite the happiness to see the database connection working, I want to
understand why it doesn't work with JVM 1.4. I think that perhaps this has
something to do with libdb2jdbc.so, but I can connect via an aplication, using JVM
1.3.

Anyone ?

Thansk again,

Fabio.

fabio wrote:

> Hello,
>
> I have a problem and I'm having a hard time to figure out what is going on.
>
> Scenario: New machine. Solaris 2.8, all patches. J2SDK 1.4.0. Tomcat
> 4.0.3-LE-jdk1.4. DB2 7.1 (local, not db2client, but I think that it's not the
> problem; I can connect via Java applications).
>
> I have several servlets on tomcat/webapps/some-dir/WEB-INF/classes. The DB2
> driver (db2java.jar) is on tomcat/classes/lib. When I try to execute anything
> (that connects to the database), I get the message:
>
> java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
> java.library.path

stuff deleted.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




java.library.path and database connection

2002-04-16 Thread fabio

Hello,

I have a problem and I'm having a hard time to figure out what is going on.

Scenario: New machine. Solaris 2.8, all patches. J2SDK 1.4.0. Tomcat
4.0.3-LE-jdk1.4. DB2 7.1 (local, not db2client, but I think that it's not the
problem; I can connect via Java applications).

I have several servlets on tomcat/webapps/some-dir/WEB-INF/classes. The DB2
driver (db2java.jar) is on tomcat/classes/lib. When I try to execute anything
(that connects to the database), I get the message:

java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path

Search on ibm.com. The needed .so is on /opt/IBMdb2/V7.1/java12. Tried to
add to setclasspath.sh

JAVA_OPTS="-Djava.library.path=/opt/IBMdb2/V7.1/java12"

Same error. Created a servlet to show Java System.properties, and
java.library.path is there, with the correct value.

Search in Google brought several pages with same instruction: "define
LD_LIBRARY_PATH or LIBPATH that points to the directory". No luck (does Tomcat
bother to look at LD_LIBRARY_PATH ?).

I tried to run db2profile (a shell script full of environment definitions)
before tomcat/bin/startup.sh, put db2profile as /tomcat/bin/setenv.sh, tried
Tomcat 4.0.4b2, and got the same message.

Of course I'm missing something, but I don't know what is it.

Anyone has a clue ? Except giving up on DB2 :)

    Thanks a lot in advance.

Fabio.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
"Quem se mata de trabalhar merece mesmo morrer." - Millor




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




How do i set up a JDBC connection pool to access from my servlet?

2002-04-12 Thread Fabio Lin

Hi,

 How do i set up a JDBC connection pool to access from my servlet?

Thx!



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared librarypath"

2002-03-04 Thread Fabio Sato

Why don´t you try the Oracle Thin JDBC Driver?

Fabio Sato - [EMAIL PROTECTED]

On Tue, 5 Mar 2002, Abhishek Pamecha wrote:

> nope i am using tomcat from my user area ..
> both tomcat and apache run from my user area
> there is some problem with a particular .so file which it is not able to find
> 
> 
> -Original Message-
> From: brian ally [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 11:04 PM
> To: Tomcat Users List
> Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> library path"
> 
> 
> Are you starting tomcat as root? On my linux box, if i su to root, all 
> manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
> dash). Could this be your problem?
> 
> /b
> 
> Abhishek Pamecha wrote:
> 
> >it is there..
> >
> >-Original Message-
> >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 04, 2002 2:34 PM
> >To: Tomcat Users List
> >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> >library path"
> >
> >
> >
> >First, please make sure that Oracle client is installed
> >in your machine.
> >
> >Abhishek> Thanks buddy!
> >Abhishek> but ..i already did that
> >Abhishek> but i have a a requirement which says i have to use oci client only
> >Abhishek> any other solution ???
> >
> >UnsatisfiedLinkError means JVM can't find shared library.
> >You need to add shared library path to environment variable.
> >
> >If you use solaris or linux, then you should add following 
> >statement in your tomcat.sh.
> >
> >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >if you use HP-UX, then
> >
> >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> >export SHLIB_PATH
> >
> >if you use Windows, then you should add following to tomcat.bat.
> >
> >set PATH=%ORACLE_HOME%\lib;%PATH%
> >
> >
> >then it will be able to find shared library. 
> >
> >regards,
> >Watanabe.
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Tomcat 4.0 and Poolman

2001-11-23 Thread Fabio Mengue

Hello,

I sent a email about a error that happened when I tried to use Poolman
2.1b1 and Tomcat 4.0 (Linux + jdk1.3.1). If I put the examples that came with
poolman in /webapps, Tomcat just don't start.

No one answered, and since no one post anything else...

I was able to made them work together. I had to disable (ie, delete) the
configuration of the Velocity classes. I don't know why, but they crashed
Tomcat. After delete the entries from /webapps/poolman/WEB-INF/web.xml,
everything works fine (and quick too :).

Fabio.

[EMAIL PROTECTED] wrote:

> Hi Folks
>
> I have searched the archives and there is lots of messages saying people
> are having problems with Tomcat 4.0 and Poolman, but there is no follow
> up messages saying definitly that these two do not work together, or how
> things can be configured so they do work in harmony.
> Can someone please tell me if it is possible to get them working together.
>
> Cheers
>
> Tony
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Vacum ad brejus mobilet




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Tomcat 4.0 and Poolman 2.1b1

2001-10-26 Thread Fabio Mengue

Hello,

I'm having a problem using Poolman. I wonder if anybody has the same problem...

I have a server (PIII 800, 256Mb RAM) with Linux (kernel 2.4.5). Using Sun JDK 
1.3.1_1, and binary
Tomcat 4.0 for Linux.

Tomcat runs fine out of the box (ie, standalone, no connection with Apache. I just 
tar xvzf
jakarta-tomcat-4.0 and /bin/startup).

I stopped the server, added poolman to /webapps (cp -R /poolman-webapp/ 
/webapps),
and /bin/startup.

On /logs/localhost_log:


2001-10-26 11:48:16 StandardHost[localhost]: Installing web application at context 
path /poolman from URL
file:/usr/local/jakarta-tomcat-4.0/webapps/poolman
... (adding JAR's to context) ...
2001-10-26 11:48:16 StandardManager[/poolman]: Seeding random number generator class
java.security.SecureRandom
2001-10-26 11:48:16 StandardManager[/poolman]: Seeding of random number generator has 
been completed
2001-10-26 11:48:17 StandardWrapper[/poolman:default]: Loading container servlet 
default
2001-10-26 11:48:17 default: init
2001-10-26 11:48:17 poolman-velocity: init


And Tomcat core dumps.

No error message on the log files (catalina.out, catalina_log, localhost_log).

I configured poolman.xml, and followed the instructions (just cody the 
poolman-webapp to tomcat
webapps directory).

Is there a way to find out what is wrong ? Poolman did not work with TC 4.0 in his 
previous version
too...

Thanks a lot,

Fabio.


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Vacum ad brejus mobilet






Tomcat + mod_vhost_alias

2001-09-14 Thread Fabio Wakim Trentini

Hi dudes,

I'd like to use tomcat with mass virtual hosting. Is it possible?

Thanks in advance.
-- 
(O- Fabio Wakim Trentini
//\ UOL Systems Engineering Supervisor
V_/_[EMAIL PROTECTED]

"Dodge This!!!"
-- Trinity, "The Matrix"



Can not generate mod_jk.so file

2001-01-31 Thread Fabio Galarraga

Hi to all:
I'm trying to configure Tomcat+Apache+SSL so I must install mod_jk. When I
execute apxs command as:

apxs -o mod_jk.so -I../jk -I/usr/local1.2.2/jdk/include
-I/usr/local/jdk1.2.2/include/linux -c *.c ../jk/*.c

it abort with error:
gcc:*.c: No such file or directory
gcc: No input files

I look at /usr/local/jdk1.2.2/include/linux directory and only have some .h
files (not .c files)

Any ideas?

Best regards,
Fabio Galarraga
[EMAIL PROTECTED]

 application/ms-tnef

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


Re: init-param

2001-01-15 Thread Fabio Sato

Hi Geoff,

Yes, I'm keeping the package hierarchy under WEB-INF/classes...


Geoff Lane wrote:
> 
> Are you putting the class files under the package directory or just in
> WEB-INF/classes?
> E.g. from your example, the ShowMessage.class file would need to go into
> WEB-INF/classes/coreservlets/
> Basically I think you need to recreate the package heirarchy under the
> classes directory, which is why it works when you have no package
> declared. Look at the webapps/examples/WEB-INF/classes for an example of
> this.
> 
> Fabio Sato wrote:
> >
> > Thanks Regis, but I had already added the new context when I reported
> > this problem.
> >
> > It seems to be related to packages. When I use packages with my
> > servlets, they can't get the init parameters. If I don't use packages
> > everything works as expected...
> >
> > Regis Muller wrote:
> > >
> > > You may need to add a context in TOMCAT_HOME/conf/server.xml
> > >
> > > like
> > >  > > docBase="webapps/webdev/WEB-INF" />
> > >
> > > Fabio Sato wrote:
> > >
> > > > I'm facing a strange problem with servlets and init parameters under
> > > > Tomcat 3.2.1:
> > > >
> > > > I created a servlet and put it in the following directory:
> > > >
> > > > $TOMCAT_HOME/webapps/webdev/WEB-INF/classes/coreservlets/
> > > >
> > > > Then, I created the file web.xml under the WEB-INF directory:
> > > >
> > > > 
> > > >  > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > > > "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> > > >
> > > > 
> > > >   
> > > > 
> > > >   ShowMsg
> > > > 
> > > > 
> > > >   coreservlets.ShowMessage
> > > > 
> > > >
> > > > 
> > > >   message
> > > >   xxx
> > > > 
> > > >
> > > > 
> > > >   repeats
> > > >   5
> > > > 
> > > >
> > > >   
> > > > 
> > > >
> > > > With this configuration the servlet didn't read any of the init
> > > > parameters and both values are set to null.
> > > >
> > > > But if I remove the package declaration of the source file, recompile
> > > > it, put the servlet in the WEB-INF/classes directory, and remove the
> > > > package prefix in the  section of the web.xml, everything
> > > > works fine.
> > > >
> > > > Any hints?
> > > > --
> > > > Fábio Sato - [EMAIL PROTECTED]
> > > >
> > --
> > Fábio Sato - [EMAIL PROTECTED]
> 
> --
> ---
> Geoff Lane  <[EMAIL PROTECTED]>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
Fábio Sato - [EMAIL PROTECTED]

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




Re: init-param

2001-01-15 Thread Fabio Sato

Thanks Regis, but I had already added the new context when I reported
this problem.

It seems to be related to packages. When I use packages with my
servlets, they can't get the init parameters. If I don't use packages
everything works as expected...

Regis Muller wrote:
> 
> You may need to add a context in TOMCAT_HOME/conf/server.xml
> 
> like
>  docBase="webapps/webdev/WEB-INF" />
> 
> Fabio Sato wrote:
> 
> > I'm facing a strange problem with servlets and init parameters under
> > Tomcat 3.2.1:
> >
> > I created a servlet and put it in the following directory:
> >
> > $TOMCAT_HOME/webapps/webdev/WEB-INF/classes/coreservlets/
> >
> > Then, I created the file web.xml under the WEB-INF directory:
> >
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> >
> > 
> >   
> > 
> >   ShowMsg
> > 
> > 
> >   coreservlets.ShowMessage
> > 
> >
> > 
> >   message
> >   xxx
> > 
> >
> > 
> >   repeats
> >   5
> > 
> >
> >   
> > 
> >
> > With this configuration the servlet didn't read any of the init
> > parameters and both values are set to null.
> >
> > But if I remove the package declaration of the source file, recompile
> > it, put the servlet in the WEB-INF/classes directory, and remove the
> > package prefix in the  section of the web.xml, everything
> > works fine.
> >
> > Any hints?
> > --
> > Fábio Sato - [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
Fábio Sato - [EMAIL PROTECTED]

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




init-param

2001-01-15 Thread Fabio Sato

I'm facing a strange problem with servlets and init parameters under
Tomcat 3.2.1:

I created a servlet and put it in the following directory:

$TOMCAT_HOME/webapps/webdev/WEB-INF/classes/coreservlets/

Then, I created the file web.xml under the WEB-INF directory:


http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">


  

  ShowMsg


  coreservlets.ShowMessage



  message
  xxx



  repeats
  5


  


With this configuration the servlet didn't read any of the init
parameters and both values are set to null.

But if I remove the package declaration of the source file, recompile
it, put the servlet in the WEB-INF/classes directory, and remove the
package prefix in the  section of the web.xml, everything
works fine.

Any hints?
-- 
Fábio Sato - [EMAIL PROTECTED]

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




JSP mailing list

2001-01-09 Thread Fabio Sato

Hi,

Does anyone know a good JSP mailing list? 
-- 
Fábio Sato - [EMAIL PROTECTED]

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