RES: How does JNDI work if i dont have directory server?

2004-01-28 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you Shap!!! 
You mean something like an external LDAP server, if outside clients will
need to lookup any resource... Isnt it? But, if just my context( app ) needs
it, then i can just work with the Tomcat's JNDI internal service.
If i am right, its nice to me...
Good luck,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social


-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 28 de janeiro de 2004 11:56
Para: Tomcat Users List
Assunto: RE: How does JNDI work if i dont have directory server?



Howdy,
Tomcat has an internal JNDI provider as mandated by the Servlet
Specification.  That's a directory server for internal services listed in
tomcat's server.xml file.  If you need something more, e.g. a directory or
JNDI server accessible from outside clients, you need to look elsewhere like
a full-fledged J2EE container or a stand-alone JNDI provider.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 27, 2004 1:29 PM
>To: '[EMAIL PROTECTED]'
>Subject: How does JNDI work if i dont have directory server?
>
>Hi guys,
>often, where have to work with JNDI whenever any app needs to use
>Datasource. But, where is the directory server at TomCat environment?
>Thanks in advance,
>
>José Euclides Junior
>Projeto DOP201
>Infra-estrutura J2EE para as aplicações corporativas da Previdência Social
>Dataprev - 21-2528-7901
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



How does JNDI work if i dont have directory server?

2004-01-27 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
often, where have to work with JNDI whenever any app needs to use
Datasource. But, where is the directory server at TomCat environment?
Thanks in advance,

José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social
Dataprev - 21-2528-7901

 

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



RES: Off-topic - Java and X11 Window Server

2004-01-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Patrick,
Where (and HOW ) should i set it? 
Thanks in advance,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social


-Mensagem original-
De: Patrick Willart [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 7 de janeiro de 2004 16:51
Para: Tomcat Users List
Assunto: RE: Off-topic - Java and X11 Window Server


I am not an expert on any *nix system, but faced the same problem once.

I had to set to DISPLAY varirable to :1.0 (export DISPLAY=:1.0). It is
important that this is set for the same user that is running Tomcat.

grts,

Patrick

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 10:55 AM
To: '[EMAIL PROTECTED]'
Subject: Off-topic - Java and X11 Window Server


Hi guys,
Have anybody ever seen this error before? The X11 seems to be alive at my
environment --> Conectiva Linux. The target Java app,GraficoBig, works with
a free package, called org.jfree.char and org.jfree.gui.

500 Internal Server Error
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:53)
at java.awt.Window.(Window.java:183)
at java.awt.Frame.(Frame.java:310)
at java.awt.Frame.(Frame.java:289)
at javax.swing.JFrame.(JFrame.java:167)
at org.jfree.ui.ApplicationFrame.(Unknown Source)
at mypackage2.GraficoBig.(GraficoBig.java:26)
at _Jspbig._jspService(_Jspbig.java:128)
[SRC:Jspbig.jsp:118]
regards,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social



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



RES: Off-topic - Java and X11 Window Server

2004-01-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
1/ is Tomcat running on the same host with X? YES!
   If not, change $DISPLAY to "that_host:0.0"

2/ is X running on said host? YES! 

3/ is X on said host set to accept connections? I guess its not necessary,
since they are at the same host... isnt it?


Jose Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicacoes corporativas da Previdencia Social


-Mensagem original-
De: QM [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 7 de janeiro de 2004 16:33
Para: Tomcat Users List
Assunto: Re: Off-topic - Java and X11 Window Server



: Have anybody ever seen this error before? The X11 seems to be alive at my
: environment --> Conectiva Linux. The target Java app,GraficoBig, works
with
: a free package, called org.jfree.char and org.jfree.gui.
: 
: 500 Internal Server Error
: java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as
: the value of the DISPLAY variable.

1/ is Tomcat running on the same host with X?
   If not, change $DISPLAY to "that_host:0.0"

2/ is X running on said host?

3/ is X on said host set to accept connections?

-QM

-- 

software  -- http://www.brandxdev.net (C++ / Java / SSL)
tech news -- http://www.RoarNetworX.com


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

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



Off-topic - Java and X11 Window Server

2004-01-07 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
Have anybody ever seen this error before? The X11 seems to be alive at my
environment --> Conectiva Linux. The target Java app,GraficoBig, works with
a free package, called org.jfree.char and org.jfree.gui. 

500 Internal Server Error
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:53)
at java.awt.Window.(Window.java:183)
at java.awt.Frame.(Frame.java:310)
at java.awt.Frame.(Frame.java:289)
at javax.swing.JFrame.(JFrame.java:167)
at org.jfree.ui.ApplicationFrame.(Unknown Source)
at mypackage2.GraficoBig.(GraficoBig.java:26)
at _Jspbig._jspService(_Jspbig.java:128)
[SRC:Jspbig.jsp:118]
regards,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social

 

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



RES: how to deploy ejb in tomcat

2004-01-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Even praying, its impossible.Unless a miracle happens..Try to use JBoss, it
works fine with tomcat.. 

Jose Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicacoes corporativas da Previdencia Social


-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 5 de janeiro de 2004 18:44
Para: Tomcat Users List
Assunto: RE: how to deploy ejb in tomcat



Howdy,
With a lot of praying, perhaps.  Tomcat is not an EJB container, and
this is in the FAQ.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: bala magesh [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 05, 2004 10:35 AM
>To: [EMAIL PROTECTED]
>Subject: how to deploy ejb in tomcat
>
>hai to all
>i expect from any one how to deploy a ejb in tomcat
>plz reply soon
>bala
>
>_
>Gujarat Kite Fest at http://go.msnserver.com/IN/40247.asp
>www.gujaratkitefest.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



Did i forget anything when reinstalling TomCat 4.1.27 ?

2003-12-29 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
a quick helping hand, please! I have changed the tomcat environment into a
new fisical server. I ve used Winzip to compress and extract it. At the new
server, the Tomcat's admin page is up, but whenever i call my app, i get
this message:The requested resource (/Portal.jsp) is not available.
Of course, the server.xml is the same as the old one. 
Any help is wellcome... 

José Euclides Junior

 

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



RES: RES: TCP-FIN problem

2003-12-23 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Yes, you are right. 60 seconds is the defaut timelimit for TCP/IP
connection,also.Sebastian: unfortunatelly, you need to post all your code
that deals with connection...  

-Mensagem original-
De: Philipp Taprogge [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 23 de dezembro de 2003 14:54
Para: Tomcat Users List
Assunto: Re: RES: TCP-FIN problem


Hi!

Sebastian Klenk wrote:
> I didn't do anything ... the only problem I have is that my app. is not 
> very fast, and that is because it has to wait for tomcat to close the 
> connection, but tomcat closes the connection a lot later (ca 1 minute).
> My question is now if there is a way to tell tomcat that all data has 
> been written an that the connection can be closend!?

Your problem is not tomcat, but the application. Tomcat uses a default 
timeout of 60 seconds on the socket. But what seems to happen in your 
case is not tomcat causing that timeout, but _experiencing_ it.
Your application is not closing the connection properly and tomcat 
keeps it open until the timeout occurs. Could you perhaps post more 
information on that application? Is it written in Java as well? 
Perhaps you could post some code snipplets?

Phil


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



RES: TCP-FIN problem

2003-12-23 Thread Jose Euclides da Silva Junior - DATAPREVRJ
why did you do that? TCP/IP takes care of connection closing for you.Whatis
your real problem?

-Mensagem original-
De: Sebastian Klenk [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 23 de dezembro de 2003 13:15
Para: [EMAIL PROTECTED]
Assunto: TCP-FIN problem


Hi everybody,

I have an application which calls a webpage (servlet) and parses the 
response. Now my problem is that the application waits for the closing 
of the connection (FIN,ACK) wich acures ca 1 minute after the data has 
been sent.
I tried setting content-length header but that doesnt help!
does anybody have any advice fore me?

thanks in advance
Sebastian



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



RES: Tomcat ver 4.1.27

2003-10-24 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Probably and unfortunatelly, something stoped running fine in your code
since you made TomCat a W2k service. I ve gotten the same problem in the
past... Look for your app logs...

-Mensagem original-
De: Hardee, Brenda G NAVSAFECEN [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 24 de outubro de 2003 13:46
Para: Tomcat Users List
Assunto: RE: Tomcat ver 4.1.27


Yes, thanks I have done that!!!

-Original Message-
From: Bergan, Mark T - PGPL-5 [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 11:54
To: 'Tomcat Users List'
Subject: RE: Tomcat ver 4.1.27


Not sure where you're at in the process but have you gone into:

Start | Settings | Control Panel | Administrative Tools | Services

and verified that "Apache Tomcat 4.1" has:
Status = "Started" 
Startup Type = "Automatic"
?


> -Original Message-
> From: Hardee, Brenda G NAVSAFECEN [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 24, 2003 7:56 AM
> To: Tomcat Users List
> Subject: Tomcat ver 4.1.27
> Importance: High
> 
> 
> 
> 
>  I have Tomcat ver 4.1.27 running as a service on a win2000 
> platform.  I cannot connect to the service with my browser 
> (i.e.).  If a run Tomcat in the startup script I can connect 
> with my browser.  Can anyone give me some help?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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


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

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



Off-topic: File size check before upload

2003-10-23 Thread Jose Euclides da Silva Junior - DATAPREVRJ

Hi guys,
i know that here isnot the best place to ask something like that? But, since
many developers has used the commons component for uploading file, probably
someone has already deal with this situation.
I would like to know if anybody has tried it with Javascript.
Regards, Euclides. 




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



RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Chuck and friends,
here is all steps taken:
1 - disable old tomcat's service
2 - download new tomcat 4.1.17
3 - install it as a NT service
4 - process of app configuration ( server.xml, web.xml and adding folders )
AGAIN, the old big problem still alive: only the static pages are
availables, so whenever my app tries to use ResultSet, I get that known
error message:
  
HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)

Really, what is wrong with this procedure? Let me remind you: since i have
runned  this fucking tcservcfg ( to turn tomcat a service), my app have
never been running correctly anymore.Probably, some NT internal
configuration was wrongly mismatched by tcservcfg.
Any last hint? 

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 16:00
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Apache. Org (E-mail)
Assunto: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and
images saved.  Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-----Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
--> tcservcfg and the second one --> windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to 

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I will tried it, but i am afraid of unknowed changes done by Tcservcfg on
Windows register.
Since Tomcat isnt running anyway, i will reinstall it to the same port. One
question: Do you know how could i remove the remained Tomcat service?
Euclides.
-Mensagem original-
De: epyonne [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 15:13
Para: Tomcat Users List; [EMAIL PROTECTED]
Assunto: Re: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Just a thought.  You can reinstall Tomcat to a different port, with the NT
Service checked.  Or better yet, go ahead and install the Tomcat 4.1.2x to a
different port.  This is a great opportunity to upgrade.  Put some of your
apps there for test runs.  If there is no issue, then move everything over
to the new installation.  After that, you can change the port number back.


- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 12:45 PM
Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-----Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
--> tcservcfg and the second one --> windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = "Select * FROM DICAS WHERE ID_TOPICO = " + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() )
 {   // --> THIS IS LINE 413 <--
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher("/semconteudo.jsp");
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something abo

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
--> tcservcfg and the second one --> windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = "Select * FROM DICAS WHERE ID_TOPICO = " + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // --> THIS IS LINE 413 <--
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher("/semconteudo.jsp");
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before -->
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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


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

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


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

---

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
--> tcservcfg and the second one --> windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = "Select * FROM DICAS WHERE ID_TOPICO = " + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // --> THIS IS LINE 413 <--
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher("/semconteudo.jsp");
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before -->
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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



Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
--> tcservcfg and the second one --> windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = "Select * FROM DICAS WHERE ID_TOPICO = " + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // --> THIS IS LINE 413 <--
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher("/semconteudo.jsp");
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before -->
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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



RES: application eats up memory

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Could you separate and send us the suspected code?
Euclides.

-Mensagem original-
De: Bill Tantzen [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 21 de outubro de 2003 10:01
Para: Tomcat Users List
Assunto: application eats up memory


Hi All!

I'm having a problem with a particular application that grows and grows 
in size until the jvm runs out of memory, and tomcat shuts down.  I am 
on a box with 1GB of memory and 350MB+ of swap.  I have tried various 
settings in my catalina.sh, which just seem to make the app crash even 
quicker.  I suspect that the problem lies in my code, but I don't know 
exactly where to start looking.

Of course, I don't expect anyone to debug my code, but I'm hoping 
someone can give me some general hints about things to look for, 
problems that a relatively new java programmer may be overlooking.  For 
instance, as a c programmer, I am highly (too highly) familiar with 
memory leaks, and I have seen references to leaking memory in java 
apps, but in my naivete, I can't really understand what this means, 
since I neither allocate or free memory anymore.  What kind of code 
constructs cause memory to leak in java?  I have some listener classes 
in my app.  Are they a problem?  Sessions?  Database connections (no 
pooling)?  Any  of these things red flags?

Thanks in advance for anything you may have to offer!

tomcat 4.1.18, classes12.jar (from oracle), and xmlparserv2.jar (also 
oracle)
java version 1.4.0_00
solaris 9 (SunOS 5.9)

Cheers!

Bill


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



RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Ok, here it is:

 private void recuperaDicaTopico( String topico1 , String id,
HttpServletRequest request, HttpServletResponse response, DataSource ds)
throws ServletException,IOException
{
try
 {
  //  NOVO Connection con = null;
  this.ds = ds;
  //con = ds.getConnection();
  PreparedStatement pstmt = null;
  ResultSet rs = null;
  String topico2 = topico1;
  System.out.println( topico1 );
  ArrayList al = new ArrayList();
  String query = "Select * FROM DICAS WHERE ID_TOPICO = " + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // --> THIS IS LINE 413 <--
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher("/semconteudo.jsp");
chamadevolta.forward(request,response);
 }
  else 
{
   do 
 {
Dica total = getDica(rs);
al.add(total);
 } while (rs.next());
 System.out.println ( "passei query");
 //fechaconection( con,pstmt,rs);
 fechaconection( pstmt,rs,con);
 String resultado1 = "Resultado da consulta pelo Topico --> " +
vetorTopico[Integer.parseInt(topico2)];
 request.setAttribute("origem",resultado1);
 request.setAttribute("array",al);   
 chamadevolta =
getServletContext().getRequestDispatcher("/rodrigo2.jsp");
 chamadevolta.forward(request,response);

}
}

catch(SQLException se)
{
  System.out.println( "Erro na consulta a dicas: BancoServlet " +  se);
}
   }

t0
-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 15:34
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


Jose,

I understand that the error is occuring on line 413 from this
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)

But what that fails to tell me is the exact call it is failing on.  Can
you paste that actual code to the list.  Then we could pin point the
issue.  As in, soon after the statement rs.next()...are you calling
getString or getFloat or some ResultSet method, are you calling new
java.io.File(pathToFile) then some other functions for some reason?
What is the exact call on line 413?  That is where it is failing.  The
code is the key to gettting help in this situation.  Maybe you can post
a whole block around the failing line.  That would be more helpful.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 1:36 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: ENC: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs: line 413 --> soon after the statement
rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413->  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs a

ENC: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs:
line 413 --> soon after the statement rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413->  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-----
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent 

RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Answering your question...
DataBase: Oracle 8i - ORACLE THIN DRIVER / SERVER: WINDOWS NT 4.0 SP6.0a
Place where the error occurs:
line 413 --> soon after the statement rs.next()

con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
LINE 413->  {

If you have any other doubt let me know,
Regards, Euclides.

-Mensagem original-
De: Wade Chandler [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 20 de outubro de 2003 13:50
Para: 'Tomcat Users List'
Assunto: RE: Urgent please -crazy error when turnning tomcat a NT4.0
Servi ce


I would say it is a permissions error.  You are getting a
NullPointerException.  Which probably means something was not found.  It
could even be a targeting error.  The service is probably being ran as a
user with no permissions.  What are you doing on the lines in the code
from here:
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
This is the link to your problem.  It is not actually because of Tomcat.
I don't believe.  It is permissions and system administration.  Paste
your code.  We could help you better.  What type of database are you
using?  Are you accessing any files or directories?  That is the key to
your problem.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent please -crazy error when turnning tomcat a NT4.0 Servi
ce



Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT
4.0's service. This error (showed below) always happens whenever my app
try to work with the result set. Is it a hint? Of course, if i stop
making TomCat a NT service, the problem doesnt happen anymore and my app
runs fine... A hint: no logs are generated by NT and the Tomcat service
is UP! Thanks in advance, Euclides.  

-Mensagem original-----
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever
it tries to deal with the result set.Very strange! Another problem:
since i remove tool.jar from classpath, neither static nor dinamics
pages are loaded. Still needing help.





HTTP Status 500 - 





type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent 

RES: Urgent please -crazy error when turnning tomcat a NT4.0 Ser vi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Oracle 8i - Oracle Thin driver

what database are you using?
 
If it's MSAccess, then make sure you set up your DSN to be a 'system'
DSN.

> -Original Message-
> From: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 20, 2003 11:24 AM
> To: '[EMAIL PROTECTED]'
> Subject: Urgent please -crazy error when turnning tomcat a 
> NT4.0 Servi ce
> 
> 
> 
> Hi Guys,
> i am still having problems since Tomcat 4.1.18 was configured 
> as a NT 4.0's service. This error (showed below) always 
> happens whenever my app try to work with the result set. Is 
> it a hint? Of course, if i stop  making TomCat a NT service, 
> the problem doesnt happen anymore and my app runs fine... A 
> hint: no logs are generated by NT and the Tomcat service is 
> UP! Thanks in advance, Euclides.  
> 
> -Mensagem original-
> De: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:[EMAIL PROTECTED]
> Enviada em: sexta-feira, 17 de outubro de 2003 21:19
> Para: 'Tomcat Users List'
> Assunto: RES: Urgent help -crazy error when turnning tomcat a 
> NT4.0 Servi ce
> 
> Hi guys,
> BELOW IS SHOWED THE ERROR! The problems happens at my 
> Servlet, whenever it tries to deal with the result set.Very 
> strange! Another problem: since i remove tool.jar from 
> classpath, neither static nor dinamics pages are loaded. 
> Still needing help.
> 
> 
> 
> 
> 
> HTTP Status 500 - 
> 
> --
> --
> 
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
> exception 
> 
> java.lang.NullPointerException
>   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
>   at BancoServlet.service(BancoServlet.java:249)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:260)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:191)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172
> )
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at org.apache
> 
> 
> -Mensagem original-
> De: John Corrigan [mailto:[EMAIL PROTECTED]
> Enviada em: sexta-feira, 17 de outubro de 2003 21:00
> Para: Tomcat Users List
> Assunto: RE: Urgent help -crazy error when turnning tomcat a 
> NT4.0 Service
> 
> 
> If Jose is using a 4.1.x version of Tomcat and using the 
> tools which are included with Tomcat for running it as a 
> service then environment variables are irrelevant other than 
> during the service installation process.  To change CLASSPATH 
> or any other Java environment settings, he would have to edit 
> the registry.
> 
> It is not clear as to whether by "dynamic" pages he is 
> referring to JSPs, servlets, or 

Urgent please -crazy error when turnning tomcat a NT4.0 Servi c e

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ

Hi Guys,
i am still having problems since Tomcat 4.1.18 was configured as a NT 4.0's
service. This error (showed below) always happens whenever my app try to
work with the result set. Is it a hint? Of course, if i stop  making TomCat
a NT service, the problem doesnt happen anymore and my app runs fine...
A hint: no logs are generated by NT and the Tomcat service is UP!
Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever it
tries to deal with the result set.Very strange! Another problem: since i
remove tool.jar from classpath, neither static nor dinamics pages are
loaded.
Still needing help.





HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by "dynamic" pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like

ENC: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-20 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Guys,
i am still having problems when Tomcat 4.1.18 became a NT 4.0's service.
This error (showed below) always happens whenever my app try to work with
the result set. Is it a hint? Of course, if i stop  making TomCat a NT
service, the problem doesnt happen anymore and my app runs fine...
A hint: no logs are generated by NT and the Tomcat service is UP!
Thanks in advance, Euclides.  

-Mensagem original-
De: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:19
Para: 'Tomcat Users List'
Assunto: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Servi ce

Hi guys,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever it
tries to deal with the result set.Very strange! Another problem: since i
remove tool.jar from classpath, neither static nor dinamics pages are
loaded.
Still needing help.





HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by "dynamic" pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like that -->
c

RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I forgot one thing: i used tcservcfg to configure Tomcat service!

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by "dynamic" pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like that -->
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on
I am still needing help. Euclides.
-Mensagem original-
De: Filip Hanik [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:45
Para: Tomcat Users List
Assunto: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


the only thing I can think of is that JAVA_HOME (tools.jar in CLASSPATH)
is not set correctly when running as a service, this
would cause static pages to show up, but compiled pages to fail during
compilation

Filip

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 3:44 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Ok, i will try to find out something like that...


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:38
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


No.

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:27 PM
To: 'Tomcat Users List'
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right
none page would be showed! Isnt it?

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Perhaps the service needs to run as a different user?

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides.






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




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

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




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

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

RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Howdy,
BELOW IS SHOWED THE ERROR! The problems happens at my Servlet, whenever it
tries to deal with the result set.Very strange! Another problem: since i
remove tool.jar from classpath, neither static nor dinamics pages are
loaded.
Still needing help.





HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 21:00
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


If Jose is using a 4.1.x version of Tomcat and using the tools which are
included with Tomcat for running it as a service then environment variables
are irrelevant other than during the service installation process.  To
change CLASSPATH or any other Java environment settings, he would have to
edit the registry.

It is not clear as to whether by "dynamic" pages he is referring to JSPs,
servlets, or those which access the database.  If it is only JSPs which
fail, then I would suspect that the jvm.dll pointed to is incorrect (common
problem with 4.1.24).  If it is only database access (which the original
post implied) then I would stick with my original hunch that it is a
permissions issue, depending upon the database/driver.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:51 PM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


no, set your

JAVA_HOME=c:\j2sdk1.4.1_01

nothing else
then set

PATH=%JAVA_HOME%\bin;%PATH%

in your computer environments, not the user environment

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:40 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


I ve put tools.jar at my JAVA HOME - like that -->
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on
I am still needing help. Euclides.
-Mensagem original-
De: Filip Hanik [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:45
Para: Tomcat Users List
Assunto: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


the only thing I can think of is that JAVA_HOME (tools.jar in CLASSPATH)
is not set correctly when running as a service, this
would cause static pages to show up, but compiled pages to fail during
compilation

Filip

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: &

RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I ve put tools.jar at my JAVA HOME - like that -->
c:\j2sdk1.4.1_01\lib\tools.jar. Unfortunatelly, this problem goes on 
I am still needing help. Euclides.
-Mensagem original-
De: Filip Hanik [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:45
Para: Tomcat Users List
Assunto: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


the only thing I can think of is that JAVA_HOME (tools.jar in CLASSPATH)
is not set correctly when running as a service, this
would cause static pages to show up, but compiled pages to fail during
compilation

Filip

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 3:44 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Ok, i will try to find out something like that...


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:38
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


No.

-----Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:27 PM
To: 'Tomcat Users List'
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right
none page would be showed! Isnt it?

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Perhaps the service needs to run as a different user?

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides.






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




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

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




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

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


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



RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I didnt find this file ( tools.jar ) anywhere! Where would it be stay?

-Mensagem original-
De: Filip Hanik [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:45
Para: Tomcat Users List
Assunto: Re: Urgent help -crazy error when turnning tomcat a NT4.0
Service


the only thing I can think of is that JAVA_HOME (tools.jar in CLASSPATH)
is not set correctly when running as a service, this
would cause static pages to show up, but compiled pages to fail during
compilation

Filip

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 3:44 PM
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Ok, i will try to find out something like that...


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:38
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


No.

-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:27 PM
To: 'Tomcat Users List'
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right
none page would be showed! Isnt it?

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Perhaps the service needs to run as a different user?

-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides.






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




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

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




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

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


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



RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Ok, i will try to find out something like that...


-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:38
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


No.

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:27 PM
To: 'Tomcat Users List'
Subject: RES: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right
none page would be showed! Isnt it?

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Perhaps the service needs to run as a different user?

-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides. 
 





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




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

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




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

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



RES: Urgent help -crazy error when turnning tomcat a NT4.0 Servi ce

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Why? its no make sense... I didnt setted up any kind of rule about it. I
guess, if you were right
none page would be showed! Isnt it?

-Mensagem original-
De: John Corrigan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 19:20
Para: Tomcat Users List
Assunto: RE: Urgent help -crazy error when turnning tomcat a NT4.0
Service


Perhaps the service needs to run as a different user?

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help -crazy error when turnning tomcat a NT4.0 Service


Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides. 
 





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



Urgent help -crazy error when turnning tomcat a NT4.0 Service

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Howdy,
this is really a strange error. My app was running fine until TomCat 4.1.18
became a NT service. After that, only static web pages runs fine and the
environment  always returns me -> http 500 error when a dinamic page is
called ( accessing database).
Thanks in advance, Euclides. 
 





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



RES: Java/JSP/Servlet Programmer

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I agree with you. Concepts like name's method arent the most important
thing!  

-Mensagem original-
De: Hart, Justin [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 18:21
Para: Tomcat Users List
Assunto: RE: Java/JSP/Servlet Programmer


It's not that it's difficult, but I wouldn't ask questions about specific
functions/parameters/methods.  I have written plenty of java, and couldn't
tell you what methods most specific interfaces implement.  I couldn't even
tell you what methods the interfaces that I've written implement.

Instead, I would look for conceptual knowledge.

I think that just about anybody can spit up wrote knowledge like that after
an hour of studying and not know how to implement a thing, but most people
who understand the actual concepts couldn't tell you what methods or how
many methods, or what their parameters are.

Just my $.02.

-Original Message-
From: Ruben Gamez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 5:17 PM
To: Tomcat Users List
Subject: RE: Java/JSP/Servlet Programmer


Does anyone else think that what I'm asking for is so difficult?


-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 4:54 PM
To: Tomcat Users List
Subject: RE: Java/JSP/Servlet Programmer

On Fri, October 17, 2003 at 1:27 pm, Ruben Gamez sent the following
> The first is a written test which has J2SE, Servlet, and JSP
questions.
> The second is a programming test, they must write a JSP page that form
> posts to a Servlet, that retrieves ANYTHING from a Bean and outputs it
> in the Servlet.  I have a lab computer set up with everything except
the
> code.  They must also use notepad to do this.

Wow, sounds like entry level coding to me!  And you're having trouble
getting people to pass these things?

-Dave

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



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


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

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



RES: Java/JSP/Servlet Programmer

2003-10-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I thought it was already dead...

-Mensagem original-
De: epyonne [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 17 de outubro de 2003 17:31
Para: Tomcat Users List
Assunto: Re: Java/JSP/Servlet Programmer


Correct me if I am wrong, but I think Cold Fusion is dying (if not already
dead) technology.


- Original Message -
From: "Ruben Gamez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 03:23 PM
Subject: RE: Java/JSP/Servlet Programmer


Yes, well, I'm only asking for 1 1/2+ years experience in JSP & Servlets
and I'm still having trouble.  I was asking for ColdFusion as well, but
I've given up on that.  I'll just have to train the new developer on CF
later on.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:15 PM
To: Tomcat Users List
Subject: Re: Java/JSP/Servlet Programmer

I agree. I worked for a place that listed C++ in all there job listings,

but there was not one line of C in the whole company. I asked who was
programming C, but they didn't know what I was talking about. LOL


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813




"John B. Moore" <[EMAIL PROTECTED]>
10/17/2003 03:10 PM
Please respond to "Tomcat Users List"


To: Tomcat Users List <[EMAIL PROTECTED]>
cc:
Subject:Re: Java/JSP/Servlet Programmer


Yeah, and those of "us" that do have the credentials get lost in the
"forest".  (Not to mention the observation that many of these "job
postings" want the person to have x years of experience in 6-7 different

areas, mostly unrelated and the total "experience" years exceeds most
normal human's productive lifespans, even accounting for reasonable
"overlap"...)

John..

Hart, Justin wrote:

>That's what I've found.  The market is full of tech workers, but that
doesn't mean that they're a programmer, or as familiar with technology X

(for position Y) as they should be.  I went to a job fair a couple years

ago for 4 job opennings, 2 for programmers.  2 for techs.  1000 people
showed up, and I spoke with only 4-5 that I really thought qualified for

the programming jobs or had credentials that showed that they qualified
for the job.
>
>-Original Message-
>From: Ruben Gamez [mailto:[EMAIL PROTECTED]
>Sent: Friday, October 17, 2003 3:57 PM
>To: Tomcat Users List
>Subject: RE: Java/JSP/Servlet Programmer
>
>
>I would think so, but it's true.  I've gotten several people that
>interview well, but none that can pass a couple of simple tests (I
>consider them simple).
>
>-Original Message-
>From: epyonne [mailto:[EMAIL PROTECTED]
>Sent: Friday, October 17, 2003 3:55 PM
>To: Tomcat Users List
>Subject: Re: Java/JSP/Servlet Programmer
>
>Cannot find anyone?!?!?!  It is rather hard to believe based on current
>job
>market.
>
>
>- Original Message -
>From: "Ruben Gamez" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, October 17, 2003 02:33 PM
>Subject: Java/JSP/Servlet Programmer
>
>
>I'm looking for an experienced JSP/Servlet programmer located in our
>area.  We're located in West Palm Beach, FL.  We've tried posting the
>Job on Monster, and looking for candidates on there, but still cannot
>find someone that can do the job.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


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




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


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



RES: Steps to make Tomcat a NT service

2003-10-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I ve gotten this error message when i tried to run the main application
(tcserver.exe). Does anyone know why?

Configuration
Service name tomcat-www 
Catalina home C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager 
Catalina base C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager 
Tomcat config file
C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\server.xml 
Use security manager 0 
Security policy file
C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\catalina.policy 
Java home c:\j2sdk1.4.1_01 
JVM Path c:\j2sdk1.4.1_01\jre\bin\server\jvm.dll 
Classpath
C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\bin\bootstrap.jar;C:\jak
arta-tomcat-4.1.18\bin\tomcat-service-manager\common\lib;c:\j2sdk1.4.1_01\li
b\tools.jar 
Temp directory C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\temp 
System.out file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs 
System.err file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs 
Initial heap  
Max heap  
Stack size  
JVM server 
-Xrs 1 


Info, Errors and Warnings
'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\server.xml' is
specified for 'Tomcat config file' but it does not exist. Tomcat may not
start without it.
'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\bin\tomcat.exe' is
specified for 'Tomcat service executable' but it does not exist. Tomcat may
not start without it.
'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\temp' is specified for
'Temp directory' but it does not exist. Create it?
'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs' is specified for
'System.outfile' but it does not exist. Create it?
'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs' is specified for
'System.err file' but it does not exist. Create it?




-Mensagem original-
De: Tim Funk [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 16 de outubro de 2003 10:33
Para: Tomcat Users List
Assunto: Re: Steps to make Tomcat a NT service


FAQ. http://jakarta.apache.org/tomcat/faq/windows.html

-Tim

Jose Euclides da Silva Junior - DATAPREVRJ wrote:

> Hi guys,
> where can i find all steps to make Tomcat 4.1.18 a NT service?
> Regards,
> Euclides.
>  


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



Steps to make Tomcat a NT service

2003-10-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
where can i find all steps to make Tomcat 4.1.18 a NT service?
Regards,
Euclides.

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



RES: Still needing help with DBCP - slow response time

2003-10-10 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks Adams. I will try it.

-Mensagem original-
De: Adam Hardy [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 10 de outubro de 2003 11:54
Para: Tomcat Users List
Assunto: Re: Still needing help with DBCP - slow response time


On 10/09/2003 11:58 PM Jose Euclides da Silva Junior - DATAPREVRJ wrote:
> Hi,
> i am still having problems with DBCP 1.0 - TomCat 4.18.
> Some hints:
> 1 - I didnt setted the server.xml up.
> 2 - I am using the Oracle Thin Driver
> 3 - I ve created my own  connection pooling class, called BeanPoolConn,
> which returns a datasource object. See below the main statement:
> 
>   DriverAdapterCPDS cpds = new DriverAdapterCPDS();
>   cpds.setDriver("oracle.jdbc.driver.OracleDriver");
>   cpds.setUrl("jdbc:oracle:thin:@uxrjo038:1526:drj1");
>   cpds.setUser("PORTAL_PRATICA");
>   cpds.setPassword("PORTAL_PRATICA00");
>   Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource();
>   tds.setConnectionPoolDataSource(cpds);
>   tds.setDefaultMaxActive(10);
>   tds.setDefaultMaxWait(50);
>   tds.getConnection();
>   ds = tds;
>   return ds; 
> 
> 4 -  My main class instances this BeanPoolConn class:
> 
>  if ( ds == null )
> {
>BeanPoolConn bp = new BeanPoolConn();
>ds = bp.conexao();
> }
>  con = ds.getConnection();
>   ... do something...
>   pstmt = con.prepareStatement(query);
> resultcount = pstmt.executeUpdate();
> 
> Question: Is it enough? Are there others steps to be done?   
> Thanks again, Euclides.

Hi Euclides,
if you are making a custom connection pool with DBCP, you would get a 
better response by mailing their users & developers on the commons 
mailing list.

Sounds interesting, but I can't help, sorry. What drives you to write a 
custom connection pool anyway? Have you got problems with the commons 
implementation?

Adam

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


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

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



Still needing help with DBCP - slow response time

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
i am still having problems with DBCP 1.0 - TomCat 4.18.
Some hints:
1 - I didnt setted the server.xml up.
2 - I am using the Oracle Thin Driver
3 - I ve created my own  connection pooling class, called BeanPoolConn,
which returns a datasource object. See below the main statement:

  DriverAdapterCPDS cpds = new DriverAdapterCPDS();
  cpds.setDriver("oracle.jdbc.driver.OracleDriver");
  cpds.setUrl("jdbc:oracle:thin:@uxrjo038:1526:drj1");
  cpds.setUser("PORTAL_PRATICA");
  cpds.setPassword("PORTAL_PRATICA00");
  Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource();
  tds.setConnectionPoolDataSource(cpds);
  tds.setDefaultMaxActive(10);
  tds.setDefaultMaxWait(50);
  tds.getConnection();
  ds = tds;
  return ds; 

4 -  My main class instances this BeanPoolConn class:

 if ( ds == null )
{
   BeanPoolConn bp = new BeanPoolConn();
   ds = bp.conexao();
}
 con = ds.getConnection();
... do something...
pstmt = con.prepareStatement(query);
resultcount = pstmt.executeUpdate();

Question: Is it enough? Are there others steps to be done?   
Thanks again, Euclides.

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



RES: AW: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Good! Its enough to me! So, i always can use the 'close()' method whenever
the query statement ends since my connection pool will stand 'alive', still.
Of course, my pool wraps the connection object... My email service was down
yesterday...
Thanks at all,
Euclides.

-Mensagem original-
De: Adam Hardy [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 9 de outubro de 2003 10:42
Para: Tomcat Users List
Assunto: Re: AW: Urgent help, please!Best practices using Connection
Pool


I think he must be having problems with his email because he send more 
or less the same msg 12 hours ago but didn't respond to any of the replies.

On 10/09/2003 03:27 PM Nitschke Michael wrote:
> I could remember that there was a mail today that answered your question.
> The pool provides an wrapper for the connection object that you receive,
this means you call getConnection and you do not get the real connection
instead you recive an object implementing the Connection functionality with
an altered "close()" method, which does not close/release the connection,
but returns the connection to the pool.
> 
> If it was to short, read the original post in the archives.
> Mike
> 
> -----Ursprüngliche Nachricht-
> Von: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 09. Oktober 2003 15:27
> An: '[EMAIL PROTECTED]'
> Betreff: Urgent help, please!Best practices using Connection Pool
> 
> Hi gurus, help me please.
> i am using DBCP 1.0 to make connection pool avaiable. My question can be
> easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
> object), what should i do whenever my sql queries are done? Should i close
> the connection after each sql command is completed? But, if i do this,
will
> i loose my connection pool facility, so my next sql command will spend
more
> time since the connection process ( with the database ) would be started
> before the sql running. I really need to improve my database response
time!
> Thanks in advance,
> Euclides.  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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


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

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



Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus, help me please.
i am using DBCP 1.0 to make connection pool avaiable. My question can be
easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
object), what should i do whenever my sql queries are done? Should i close
the connection after each sql command is completed? But, if i do this, will
i loose my connection pool facility, so my next sql command will spend more
time since the connection process ( with the database ) would be started
before the sql running. I really need to improve my database response time!
Thanks in advance,
Euclides.  


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



Urgent help, please!Best practices using Connection Pool

2003-10-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
i am using DBCP 1.0. My question is simple: since DBCP doesnt create a
singleton object ( just a data source object), what should i do whenever my
sql queries are done? Should i close the connection after that? But, if i do
this, will i loose my connection pool facility, so my next connection time
will waste more time...
Thanks in advance,
Euclides.  

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



RES: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dont worry about that! The condition statement is just a test that i have
included in my the original code...
The real problem is why the dica object doesnt exist?!
Euclides.

-Mensagem original-
De: Mike Curwen [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 25 de setembro de 2003 12:10
Para: 'Tomcat Users List'
Assunto: RE: URGENT, PLEASE. The old Bug with bean cache?


Well uhh

if (dica == null) // NEW !
  System.out.println("valorrr"+dica.getteDescricaodica());

You check an object, determine it is null, and then try to call a method
(gettDescricaodica()) on that object.. but you just determined it was
null!!
 
That's why you get java.lang.NullPointerException as the root cause of
your servlet exception.



> -Original Message-----
> From: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 25, 2003 10:01 AM
> To: 'Tomcat Users List'; '[EMAIL PROTECTED]'
> Subject: RES: URGENT, PLEASE. The old Bug with bean cache?
> 
> 
> HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.
> 
> The server encountered an internal error () that prevented it 
> from fulfilling this request.
> 
> exception 
> 
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:2
> 48)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> ionDispatcher.
> java:684)
>   at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
> cationDispatch
> er.java:432)
>   at 
> org.apache.catalina.core.ApplicationDispatcher.forward(Applica
> tionDispatcher
> .java:356)
>   at BancoServlet.recuperaDicaTopico(BancoServlet.java:370)
>   at BancoServlet.service(BancoServlet.java:228)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:260)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:191)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172
> )
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> java:2

RES: URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)


HERE IS WHERE TOMCAT SHOWS THE ERROR.

The  bean name is dica. I made a test, putting a line with a condition like
this:
if (dica == null) // NEW !
  System.out.println("valorrr"+dica.getteDescricaodica());
and this condition is true when this app runs!!! Why?

_

 System.out.println(" passei no getatribute " + autorizacao);
 
  for(int i = 0;pega.hasNext()&&i<10;i++)
  {
dica = (Dica)pega.next();
int limite = 0;
if (dica == null) // NEW !
  System.out.println("valorrr"+dica.getteDescricaodica());
if (dica.getteDescricaodica().length() <= 40 )
  limite = dica.getteDescricaodica().length(); 
else
   limite = 40;
if (limite == 0) limite = 1;
  

if ( autorizacao == null )

{ %>
<%=dica.getnomeDica()%>
 
<%
} 
 else   
{ %>
   <%=dica.getnomeDica()%><
/a>
<%
} %>
 <%=dica.getNmAutor()%>

 
 <%=dica.getteDescricaodica().substring(0,limite)%>...

 
   
<%
  } 


-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 25 de setembro de 2003 11:53
Para: Tomcat Users List
Assunto: RE: URGENT, PLEASE. The old Bug with bean cache?



Howdy,
You should post the logs with the full error and your relevant source
code.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 25, 2003 10:40 AM
>To: '[EMAIL PROTECTED]'
>Subject: URGENT, PLEASE. The old Bug with bean cache?
>
>Hi gurus,
>a little helping hand, please! I have updated my bean and so, i have
put
>this new bean version  in right package. However, the problem begins
>whenever a new  bean object is created (instanced) by a servlet and
>captured
>by a jsp later. The browser returns me error - 500. Probably, i guess
my
>TomCat 4.1.18 is working with old bean version, instead of the newer.
What
>should i do?
>Euclides.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



URGENT, PLEASE. The old Bug with bean cache?

2003-09-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
a little helping hand, please! I have updated my bean and so, i have put
this new bean version  in right package. However, the problem begins
whenever a new  bean object is created (instanced) by a servlet and captured
by a jsp later. The browser returns me error - 500. Probably, i guess my
TomCat 4.1.18 is working with old bean version, instead of the newer. What
should i do?
Euclides.

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



How to make Dispatcher send the right resource?

2003-09-24 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi TomCat guys,
my jsp generates a PDF file, which should be send to the browser. However,
this pdf file is created under Tomcat's bin directory (outside my context
path) instead of my app context (WEB-INF\guia). So, how can my jsp catch
this file or better, how can i change TomCat configuration?
Thanks in advance,
Euclides.  

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



HELP PLEASE- SQLException event whenever DBCP works

2003-08-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys, 
i am needing help with DBCP. Since it doesnt work as a singleton object, iam
making something crazy like that. 

if ( ds == null )
{
 BeanPoolConn bp = new BeanPoolConn();
 ds = bp.conexao();
}

The BeanPoolConn instances DBCP component. The problem regards sometimes
when my application throws an SQLException with the following content: no
more data to read from socket.
So, what does it mean? Help needed.
Regards, Euclides.

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



RES: Lomboz or Sysdeo Eclipse Plugin?

2003-08-22 Thread Jose Euclides da Silva Junior - DATAPREVRJ
The most used is Lomboz. I have never heard about Sysdeo before.

-Mensagem original-
De: Mark Lenz [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 22 de agosto de 2003 12:10
Para: [EMAIL PROTECTED]
Assunto: Lomboz or Sysdeo Eclipse Plugin?


Hi everyone!
Which plugin are you guys using for JSP development in Eclipse?  Have you
tried other plugins or just started using your current one?

Mark Lenz
Pierce Manufacturing, Inc.
(920) 832-3523
[EMAIL PROTECTED]

The information contained in this electronic mail message is confidential
information and intended only for the use of the individual or entity named
above, and may be privileged.  If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.  If
you have received this transmission in error, please  contact the sender
immediately, delete this material from your computer and destroy all
related paper media.  Please note that the documents transmitted are not
intended to be binding until a hard copy has been manually signed by all
parties.
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]



MemoryRealm question?

2003-08-14 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody,
i am trying to use MemoryRealm  without digest option. From a login form, my
app should send an authentication request to Realm. There are two question
about it:
1 -  What URL should i set at form action option?
2 -  Since i need to know the authenticated user roles, how can i get it as
soon as the Realm service returns me the user status.
Regards, Euclides.

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



RES: Tomcat Conn Pooling in 4.0.4 - Very Slow?

2003-08-14 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I guess that DBCP would be the better choice, since it is db platform
independency. I use it in 4.1.18 and its nice to me.
Eculides.

-Mensagem original-
De: Andoni [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 6 de agosto de 2003 14:51
Para: Tomcat Users List
Assunto: Re: Tomcat Conn Pooling in 4.0.4 - Very Slow?


I am afraid Tomcat 4.0.4 does not have DBCP.

It uses Tyrex instead.
I have found from:  http://tyrex.sourceforge.com/tomcat.html that I should
be using:
tyrex.resource.jdbc.xa.EnabledDataSource

But my .jar file for Tyrex only seems to have:
tyrex.jdbc.xa.EnabledDataSource
so I am using this instead.

I also have a class in my oracle driver's .jar archive called:
oracle/jdbc/pool/OracleDataSource.class
and another called:
oracle/jdbc/pool/OracleConnectionPoolDataSource.class

So I might try these also.

I think I have a pdf manual for that Oracle JDBC driver somewhere I'll look
that up.

Have you any thoughts?  Should I install commons DBCP?

Andoni.


- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 6:27 PM
Subject: RE: Tomcat Conn Pooling in 4.0.4 - Very Slow?



Howdy,

>Factory?  What is a factory?  What does it look like?

It's a class implementing the GoF Factory pattern.

>I thought what I had below WAS a factory?  is having DataSource there
not
>good enough?

No.

>What's below is exactly what my Tomcat book has!!

Your book could be out of date or incorrect.

>Can you please help?

Add this parameter to your server.xml:


  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


And read the JNDI DataSource HOW-TO in the tomcat docs.

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]

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



RES: Where can i set Groups and user roles?

2003-08-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Ok, thanks! At this moment, I will try to use MemoryRealm. My last doubt is:
does my application know the user role automatically whenever the login
process have finished (role comes together)? Or not, my app should ask for
authorization later... So ( automatically option ), the app could choose
what view the user will deal with.  
Thanks Murray.

-Mensagem original-
De: Murray [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 4 de agosto de 2003 22:26
Para: Tomcat Users List
Assunto: RE: Where can i set Groups and user roles?


Euclides,

Try starting tomcat then look at the examples at
http://localhost:8080/tomcat-docs/realm-howto.html.  You can assign roles to
users based on any of the three realm types but the mechanism is different
in each case.  I have implemented the JDBC based realm model and have a
table in my database which has two columns: user and role.  A user may have
more than one role in my implementation and I have used the request taglib
to ask

to determine whether or not to display particular parts of a page.  If the
user has a row in the table with role set to "leader" access is allowed.
Note that I discovered it is essential that all protected pages need to
belong to some generic role first before you can gain access to the page to
make the test above.  Thus, if a user is to pass the above test, he must
have at least two entries in the role table: one with "member" and one with
"leader".  The "member" role permits access to the secure part of the
website (as defined in the web.xml snippet below) and the "leader" role
provides additional access controls.

 
  
   ScoutGroup-Secure
   /members/*
  
  
member
  
  
   CONFIDENTIAL
  
 

Murray

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 August 2003 06:01
To: '[EMAIL PROTECTED]'
Subject: Where can i set Groups and user roles?


Hi guys,
my application should ask for user's authentication and then, associate him
to some skills. My question is easy: what is the easiest way to make it
possible on TomCat's environment?  Is there any xml tag?
Thanks in advance, Euclides.

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



RES: Where can i set Groups and user roles?

2003-08-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I think so. My needs are:
1- user authentication
2- user authorization by roles
The question is: if i work with tomcat-user.xml, how can i customize an
on-line real-time
authentication process ( like a browser form )? 
Euclides.

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 4 de agosto de 2003 17:09
Para: Tomcat Users List
Assunto: RE: Where can i set Groups and user roles?



Howdy,
You mean like tomcat-users.xml where you can define roles and users?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, August 04, 2003 4:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Where can i set Groups and user roles?
>
>Hi guys,
>my application should ask for user's authentication and then, associate
him
>to some skills. My question is easy: what is the easiest way to make it
>possible on TomCat's environment?  Is there any xml tag?
>Thanks in advance, Euclides.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



Where can i set Groups and user roles?

2003-08-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
my application should ask for user's authentication and then, associate him
to some skills. My question is easy: what is the easiest way to make it
possible on TomCat's environment?  Is there any xml tag?
Thanks in advance, Euclides.

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



RES: RES: Cookie problem max age problem - Best practice to solve it

2003-08-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
thanks, Steve.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 4 de agosto de 2003 11:52
Para: 'Tomcat Users List'
Assunto: Re: RES: Cookie problem max age problem - Best practice to
solve it


> one information isnt right! First, using Sniffer to monitor all http
> traffic, i found out one important news: the authentication app's plugin
> works with Session object instead of Cookie object. What kind of
information
> would you like to receive about it? Does Session object work different
> between OC4J and TomCat?

Then you're in trouble.  Session objects live within the memory of the
JVM process where the servlet container is running.  You aren't going
to be able to share them between two different processes.

Even within a single container, there are still limitations on sharing
Session data; you can't share from one context to another.  (See 7.3
"Session Scope" in the servlet specification).

-- 
Steve

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



RES: Cookie problem max age problem - Best practice to solve it

2003-08-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Sorry Steve,
one information isnt right! First, using Sniffer to monitor all http
traffic, i found out one important news: the authentication app's plugin
works with Session object instead of Cookie object. What kind of information
would you like to receive about it? Does Session object work different
between OC4J and TomCat?
Euclides.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 1 de agosto de 2003 12:22
Para: 'Tomcat Users List'
Assunto: RES: Cookie problem max age problem - Best practice to solve it


> Assunto: Re: RES: Cookie problem max age problem - Best practice to solve
it

> the authentication app's plugin wasnt created by me, its only stored on
> TomCat to be used by my Java app. This plugin runs together with another
app
> server, which completes the authentication process. After this process is
> completed ok, a cookie is created. So, when the user asks for logout, the
> plugin tries to delete the cookie, probably setting 0 to max age. If i
work
> with OC4J, this steps runs fine and the user becomes abled to make another
> login request on the same browser instance, without needing to close it.
> But, if i work with TomCat, i need to close the browser instance and open
> another one to be sucessful.
> Needing help still.
> Regards, Euclides.


This does not change any of the previous discussion.  The problem
hinges on the answers to two questions:

>> What are the values used for domain, path, and name when the cookie
>> is set?

>> What are the values used for domain, path, and name when the cookie
>> is deleted?

If you can demonstrate that the same set of values are used in both
cases, then this sounds like it would be a tomcat problem.  You can
examine the Set-Cookie headers sent by the server to see whether this
is the case.

Otherwise, this is an issue that should be raised with the vendor who
provided the authentication plugin.

-- 
Steve

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



RES: RES: Cookie problem max age problem - Best practice to solve it

2003-08-01 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Steve,
the authentication app's plugin wasnt created by me, its only stored on
TomCat to be used by my Java app. This plugin runs together with another app
server, which completes the authentication process. After this process is
completed ok, a cookie is created. So, when the user asks for logout, the
plugin tries to delete the cookie, probably setting 0 to max age. If i work
with OC4J, this steps runs fine and the user becomes abled to make another
login request on the same browser instance, without needing to close it.
But, if i work with TomCat, i need to close the browser instance and open
another one to be sucessful.
Needing help still.
Regards, Euclides.   

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 1 de agosto de 2003 10:11
Para: 'Tomcat Users List'
Assunto: Re: RES: Cookie problem max age problem - Best practice to
solve it


srevilak> Setting the max age of a cookie to zero is the proper way to
srevilak> delete a cookie.  When doing the deletion, are you sure that
srevilak> the name, domain, and path values are identical to the ones
srevilak> used when the cookie was initially set?

jose> Thanks for your attention! The question stays alive because this
jose> plugin runs fine on OC4J(Oracle) environment, but its always a
jose> failure on Tomcat env.  Any other help would be appreciated.
jose> Euclides.

It's perfectly okay for a cookie to be set by one application, then
removed by another.

What are the values used for domain, path, and name when the cookie is
set?  Most useragents provide a way to have the user prompted for each
cookie.  That would be a helpful thing to do in this case.

What are the values used for domain, path, and name when the cookie is
deleted?

While domain and path are set when sending a cookie, the client only
sends back the name and value pair (domain and path are used by the
client in determining what cookies to send).  As a result, something
like this won't work

  deleteCookie.setDomain(cookieFromClient.getDomain());

hth.

-- 
Steve

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



RES: Cookie problem max age problem - Best practice to solve it

2003-08-01 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks for your attention! The question stays alive because this plugin runs
fine on OC4J(Oracle) environment, but its always a failure on Tomcat env.
Any other help would be appreciated.
Euclides.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 31 de julho de 2003 09:32
Para: '[EMAIL PROTECTED]'
Assunto: Re: Cookie problem max age problem - Best practice to solve it


> From: Jose Euclides da Silva Junior - DATAPREVRJ
> Subject: Cookie problem max age problem - Best practice to solve it

> this question is very important to me. My application works with an
external
> authentication app ( like a plugin).When the user is logged, a browser
> cookie is created. The problem stays whenever the user asks for a logout
> process and the external app tries to "kill" its cookie (created before by
> the app), probably setting cookie's max age to 0, i guess. But TomCat
doesnt
> know that this cookie is already killed, because it just fetch the name
and
> value.  So, i would like any tips about best practice on solving this kind
> of problem.

Cookie exchanges fall into one of two categories:

 - what the server sends to the client
 - what the client sends back to the server

Tomcat wouldn't fetch the value; the client's browser sends it.

Setting the max age of a cookie to zero is the proper way to delete a
cookie.  When doing the deletion, are you sure that the name, domain,
and path values are identical to the ones used when the cookie was
initially set?

-- 
Steve

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



Cookie problem max age problem - Best practice to solve it

2003-07-30 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
this question is very important to me. My application works with an external
authentication app ( like a plugin).When the user is logged, a browser
cookie is created. The problem stays whenever the user asks for a logout
process and the external app tries to "kill" its cookie (created before by
the app), probably setting cookie's max age to 0, i guess. But TomCat doesnt
know that this cookie is already killed, because it just fetch the name and
value.  So, i would like any tips about best practice on solving this kind
of problem.
Thanks in advance, Euclides.

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



Loosing DBCP object - how to solve it?

2003-07-19 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
i have made a bean which creates a Data Base Connection Pool instance once,
so that others systems components can use it. This beans is instanced when
the Controller Servlet's init method runs. In other words, just one time
this bean is instanced! Whenever i wanna get a connection object, i just
call the bean's connection method, without creating new instances. However,
i am getting the following errror, in which probably, the garbage collector
is killing this object instance.   

BeanTip error -  java.sql.SQLException: Timeout waiting for idle object

I guess i could use a Singleton to deal with this situation, but i dont know
how to!
Could anybody help me, please.
Regards, Euclides.

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



RES: Where can i find mod_webapp ?

2003-07-19 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Sorry,
but i guess i am a little bit confused. First, which file(s) should i
download ? Second, where can i find the main steps to install it?
Thanks, Euclides.

-Mensagem original-
De: Yann Cibron [mailto:[EMAIL PROTECTED]
Enviada em: sabado, 19 de julho de 2003 11:01
Para: [EMAIL PROTECTED]
Assunto: Re: Where can i find mod_webapp ?


mod_webapp is deprecated, you should use mod_jk(2):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

Yann

> Hi,
> i am looking for a connector between Apache 1.3 and TomCat 4.1.18. Can
> anybody help me?
> Regards,
> Euclides.




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



Where can i find mod_webapp ?

2003-07-19 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
i am looking for a connector between Apache 1.3 and TomCat 4.1.18. Can
anybody help me?
Regards,
Euclides.

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



(How to) Tomcat as a Linux service

2003-07-18 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody,
where can i find tips about how  to make TomCat be a Linux's service?
Regards,
Euclides.


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



[off-topic]Nightmare between Blob object X Java.SQL

2003-07-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
i am almost crazy with this headache. I have tried a lot of methods, however
i always get failed. The Server returns me a java.IOException whenever i try
to retrieve ( from a Array ) and build a blob type content. My JVM version
is 1.4.1. Any kind of help ( extra code, for example) will be appreciated!
Thanks in advance,
Euclides.

public void setteAnexodica(byte [] teAnexodica1) {
// public void setteAnexodica( InputStream teAnexodica1) {
try
{
// InputStream is = new InputStream();
// int tamanho = 0;
// is.read(teAnexodica1);


long val = (long)teAnexodica1.length;
tamanho = teAnexodica.setBytes(val,teAnexodica1);
/* InputStream is = teAnexodica1;
OutputStream os = null;
int tam = 0;

while ( (tam = is.read() ) != -1)
{
System.out.println("conteudo recuperado: " + tam);
os.write(tam); 
}
}*/
// InputStream is = teAnexodica1;





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



RES: Urgent please, what does this error mean( IncompatibleClassChangeError)?

2003-07-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
No, iam using Jakarta-commons/fileupload ! I found out that it only runs if
i work with DiskFileUpload class, instead of FileUpload ( I got a
nullexception ). Very strange, isnt it? I have to deal with this problem,
since i have just to persist streams on DB. 
Regarding the problem described bellow, i have fixed it by recompiling my
classes.
Thanks Yoav,
Euclides. 

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 17 de julho de 2003 09:47
Para: Tomcat Users List
Assunto: RE: Urgent please, what does this error mean(
IncompatibleClassChangeError)?



Howdy,
What are you using (if a 3rd party package) to handle file uploads?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 16, 2003 7:30 PM
>To: '[EMAIL PROTECTED]'
>Subject: Urgent please, what does this error mean(
>IncompatibleClassChangeError)?
>
>Hi guys,
>the following error message have been coming since my (servlet)
controller
>started to deal with an optional multipart-form/data . Any kind of help
>would be appreciated.
>Regards, Euclides.
>
>
>java.lang.IncompatibleClassChangeError
>   at BancoServlet.init(BancoServlet.java:50)
>   at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:9
>3
>4)
>   at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
666)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:214)
>   at org.apache.catalina.core.StandardPipeline
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



RES: Urgent please, what does this error mean( IncompatibleClassChangeError)?

2003-07-17 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you! This is the real problem...
Euclides.

-Mensagem original-
De: Rick [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 16 de julho de 2003 23:50
Para: Tomcat Users List
Assunto: Re: Urgent please, what does this error mean(
IncompatibleClassChangeError)?


You might need to recompile all of your classes. 

- Original Message - 
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 4:29 PM
Subject: Urgent please, what does this error mean(
IncompatibleClassChangeError)?


> Hi guys,
> the following error message have been coming since my (servlet) controller
> started to deal with an optional multipart-form/data . Any kind of help
> would be appreciated.
> Regards, Euclides.
> 
> 
> java.lang.IncompatibleClassChangeError
> at BancoServlet.init(BancoServlet.java:50)
> at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
> 4)
> at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
> at org.apache.catalina.core.StandardPipeline
> 
> -
> 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]



Urgent please, what does this error mean( IncompatibleClassChangeError)?

2003-07-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
the following error message have been coming since my (servlet) controller
started to deal with an optional multipart-form/data . Any kind of help
would be appreciated.
Regards, Euclides.


java.lang.IncompatibleClassChangeError
at BancoServlet.init(BancoServlet.java:50)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at org.apache.catalina.core.StandardPipeline

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



Is there a Bug at Jakarta-commons/fileupload when parsing?!

2003-07-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys, 
i guess that package FileUpload has a bug whenever it try to parse
HTTPRequest. I always get the  javaNullPointerException error message
whenever this servlet runs.
HERE IS THE CODE:
...
boolean isMultipart = FileUpload.isMultipartContent(request);
 FileUpload upload = new FileUpload(); 
 System.out.println("Passei 0");
ERROR HERE=> List items = upload.parseRequest(request);
 System.out.println("Passei 1");
 Iterator iter = items.iterator();
 while (iter.hasNext())
  {
   //String comment = ((FileItem)i.next()).getString();
 FileItem item = (FileItem)iter.next();
 if ( item.isFormField()) 
  {
String name = item.getFieldName();
String value = item.getString();
System.out.println("item eh: " + name);
  }
 else
  {
String nomeArq = item.getName();
long tamBytes = item.getSize();
int tam = (int) tamBytes;
   // InputStream uploadFile = item.getInputStream();
System.out.println("nome do  arquivo eh: " + nomeArq );
   // uploadFile.close();
   // byte [] conteudo;
   // conteudo.length( tam );
byte[] conteudo = item.get();
}
   }
  System.out.println ("Passei fim");
  
Any help would be appreciated! 
Thanks, Euclides.





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



ENC: Still needing help with jakarta-commons/fileupload

2003-07-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
can anybody help me? I am trying to retrieve fields and one file from a
submitted form. The question is simple: can jakarta-commons/fileupload does
it? I am afraid it just can uploads files!
should i use O'reilly package? Code  sample would be appreciated.
Thanks in advance, Euclides.




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



Still needing helping with jakarta-commons/fileupload

2003-07-16 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
can anybody help me? I am trying to retrieve fields and one file from a
submitted form. The question is simple: can jakarta-commons/fileupload does
it? I am afraid it just can uploads files!
should i use O'reilly package? Code  sample would be appreciated.
Thanks in advance, Euclides.


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



Question regarding jakarta-commons/fileupload

2003-07-15 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi friends,
can anybody help me? I am trying to retrieve fields and one file from a
submitted form. Is it possible, if i use jakarta-commons/fileupload? Or, i
should use O'reilly package. Code  sample would be appreciated.
Thanks in advance,
Euclides.

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



RES: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-14 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks at all. I will try FileUpload of Apache.I have already gotten
Oreilly's package too.
Regards,
Euclides.



-Mensagem original-
De: Reginald Oake [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 14 de julho de 2003 13:41
Para: Tomcat Users List
Assunto: Re: [off-topic] - Where can i find Oreilly's package for
uploading files?


Hi.

According to the book Java Servlet Programming the cos.jar file can be
found at www.servlets.com.


On Mon, 2003-07-14 at 01:22, Guus Holshuijsen wrote:
> Try http://examples.oreilly.com/jservlet2/. There you will find a link to
> http://www.servlets.com/cos/.
> 
> Regards,
> Guus
> - Original Message -
> From: "Susan Hoddinott" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, July 12, 2003 6:05 PM
> Subject: Re: [off-topic] - Where can i find Oreilly's package for
uploading
> files?
> 
> 
> > Have you tried www.oreilly.com?
> >
> > Regards,
> > Susan Hoddinott
> > http://www.hexworx.com
> >
> > - Original Message -
> > From: "Jose Euclides da Silva Junior - DATAPREVRJ"
> > <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 10, 2003 2:02 AM
> > Subject: [off-topic] - Where can i find Oreilly's package for uploading
> > files?
> >
> >
> > > Hi, i have tried to search for , but i didnt find it. Can somebody
help
> > me?
> > > Thanks in advance,
> > > Euclides.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

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



RES: RES: [off-topic] - Where can i find Oreilly's package for uploadi ng fi les?

2003-07-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
thank you too.

-Mensagem original-
De: John Turner [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 9 de julho de 2003 15:54
Para: Tomcat Users List
Assunto: Re: RES: [off-topic] - Where can i find Oreilly's package for
uploadi ng fi les?



http://www.servlets.com/cos/index.html

John

On Wed, 9 Jul 2003 15:27:38 -0300, Jose Euclides da Silva Junior - 
DATAPREVRJ <[EMAIL PROTECTED]> wrote:

> I am not looking for examples, just the own package.
> Euclides.
>
> -Mensagem original-
> De: Rick Roberts [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 9 de julho de 2003 15:33
> Para: Tomcat Users List
> Assunto: Re: [off-topic] - Where can i find Oreilly's package for
> uploading fi les?
>
>
> Not sure if this is what you are after but:
> There is a MultiPartRequest Class in the "Java Servlet Programming" Book.
>
> http://examples.oreilly.com/jservlet2/
>
> HTH,
>
> Rick
>
> Jose Euclides da Silva Junior - DATAPREVRJ wrote:
>> Hi, i have tried to search for , but i didnt find it. Can somebody help
> me?
>> Thanks in advance,
>> Euclides.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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



RES: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
thanks.

-Mensagem original-
De: Mike Curwen [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 9 de julho de 2003 15:39
Para: 'Tomcat Users List'
Assunto: RE: [off-topic] - Where can i find Oreilly's package for
uploading files?


www.servlets.com/cos


> -Original Message-
> From: Jose Euclides da Silva Junior - DATAPREVRJ 
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 09, 2003 1:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: [off-topic] - Where can i find Oreilly's package for 
> uploading files?
> 
> 
> Hi, i have tried to search for , but i didnt find it. Can 
> somebody help me? Thanks in advance, Euclides.
> 
> -
> 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]



RES: [off-topic] - Where can i find Oreilly's package for uploading fi les?

2003-07-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I am not looking for examples, just the own package.
Euclides.

-Mensagem original-
De: Rick Roberts [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 9 de julho de 2003 15:33
Para: Tomcat Users List
Assunto: Re: [off-topic] - Where can i find Oreilly's package for
uploading fi les?


Not sure if this is what you are after but:
There is a MultiPartRequest Class in the "Java Servlet Programming" Book.

http://examples.oreilly.com/jservlet2/

HTH,

Rick

Jose Euclides da Silva Junior - DATAPREVRJ wrote:
> Hi, i have tried to search for , but i didnt find it. Can somebody help
me?
> Thanks in advance,
> Euclides.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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



[off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi, i have tried to search for , but i didnt find it. Can somebody help me?
Thanks in advance,
Euclides.

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



Retrieving a blob object?

2003-07-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi friends,
I would like to know what is fastest way to retrieve a blob object sent by a
web form. Should i use Enumeration? Some examples would be welcome.
Thanks in advance,
Euclides.

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



RES: RES: off-topic: please, help needed with cookie question

2003-07-03 Thread Jose Euclides da Silva Junior - DATAPREVRJ
And, what do you think about SSL V3? Does it use cookie?

-Mensagem original-
De: Raiden [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 3 de julho de 2003 19:30
Para: Tomcat Users List
Assunto: Re: RES: off-topic: please, help needed with cookie question


On Thu, 3 Jul 2003, Jose Euclides da Silva Junior - DATAPREVRJ wrote:

> Thanks for your reply! My question regards on best practices on user
> authentication management. So, cookies is really the best choice, since my
> application offers  authentication/authorization   service, isnt it?
> Thanks again,
> Euclides.
>

Unless you're working with a set of clients that are completely in your
control, I'd venture to say no... relying on cookies is not the best
choice.  If your service is open to the public Internet, and you want to
have as much compatability as possible, then I would make sure that you
use URL rewriting everywhere that you have a link, redirect or a form
post.  That way, if their cookies are off, you will still maintain the
session with the user.

-Raiden


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



RES: off-topic: please, help needed with cookie question

2003-07-03 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks for your reply! My question regards on best practices on user
authentication management. So, cookies is really the best choice, since my
application offers  authentication/authorization   service, isnt it?
Thanks again,
Euclides.

-Mensagem original-
De: Brett Neumeier [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 3 de julho de 2003 18:27
Para: 'Tomcat Users List'
Assunto: RE: off-topic: please, help needed with cookie question


Jose Euclides da Silva Junior wrote:
> if any servlet generate a cookie object ( during http connection, 
> of course), so it will always store this cookie on the client 
> side ( the user' browser) , which called the servlet 
>( of course). Is it right? If yes, what happens if the browser 
> doesnt accept cookies?

That's not exactly right.  Servlets can't actually store cookies on the
client; all they can do is return an HTTP response to the client.

If a servlet creates a Cookie object and adds it to the HttpServletResponse,
then the HTTP response sent to the client will include a "Set-Cookie"
header.  For example:

public class MyServlet extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
// ... 
resp.addCookie(new Cookie("foo", "bar"));
// ... 
}
}

When a GET request is received by this servlet, the HTTP response will
contain a header like this:

Set-Cookie: foo=bar

Now, the rest of the question is, what does the client do as a result?
There are two possibilities.  First, if the client is configured to accept
cookies, then future requests to this servlet will include a HTTP header
like:

Cookie: foo=bar

The servlet container will parse this header line and make it available in
the HttpServletRequest via the getCookies method.

Second, if the client is NOT configured to accept cookies, then future
requests to this servlet will not include the above HTTP header line, so the
HttpServletRequest object's getCookies method will return an empty array.

Does that make sense?  Does that answer your question?

Cheers,

bn

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



off-topic: please, help needed with cookie question

2003-07-03 Thread Jose Euclides da Silva Junior - DATAPREVRJ

My question is:
 if any servlet generate a cookie object ( during http connection, of course
), so it will always store this cookie on the client side ( the user'
browser) , which called the servlet ( of course). Is it right? If yes, what
happens if the browser doesnt accept cookies?
Thanks , Euclides.


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



RES: off-topic: session cookie question

2003-07-03 Thread Jose Euclides da Silva Junior - DATAPREVRJ

I mean if any servlet create a cookie object, it will be created a cookie on
the user browser, which called the servlet ( of course).
Thanks again,
Euclides.

-Mensagem original-
De: Jens Skripczynski [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 3 de julho de 2003 16:00
Para: '[EMAIL PROTECTED]'
Assunto: Re: off-topic: session cookie question


Jose Euclides da Silva Junior - DATAPREVRJ:
> Hi guys, just a simple question:
>  Does session cookie genarates browser's cookie, automatically?
I do not fully understand you question.

Do you mean, does a coockie sent by some html server generate a coockie on
the
client side ?

This may not always be the case, since some Browsers and Proxies tend to
filter out coockies or store them only after the user has accepted to store
the coockie.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

True ignorance is not the absence of knowledge, but the refusal to acquire
it.
   -- Karl Popper


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



off-topic: session cookie question

2003-07-03 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys, just a simple question:
 Does session cookie genarates browser's cookie, automatically?
Thanks in advance,
Euclides.

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



Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys,
do you know what this message means? Fortunatelly, my environment is working
fine. I guess its a digital certificate file, named saa.prop, which i had to
store on TomCat.

Digester error
SEVERE: Parse Error at line 59 column 11: The content of element type
"web-app" must match "
(icon?,display-name?,description?,distributable?,context-param*,filter*,filt
er-mapping*,list
ener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-l
ist?,error-page*
,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,
security-role*,e
nv-entry*,ejb-ref*,ejb-local-ref*)".

Thanks in advance,
Euclides.

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



Do i really need a framework for authentication process ?

2003-06-26 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
i am needing some help to choose any kind of external component or even
framework solution which  allow my system' s user policies to be stored.
This policy is very simple:
- some users ( not groups of them!) will have permition to some system's
funcionalities
- they should have passwords
- these rules should be persisted on anywhere.
Of course, I am using TomCat - version 4.1.18 - not JBoss yet.
So, can just TomCat solve this question if i configure it at XML squema? If
yes, how can i make it work?
If not, is there any simple framework for it? It should work with Tomcat.
Thanks in advance,
Euclides.




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



RES: Display Tag, Tiles and Paging

2003-06-12 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Mark,
can you find out why doesnt this following jsp tag (bellow) work in TomCat
4.1.18?
A previous servlet create a bean object and adds it to an ArrayList, which
is setted as a setAttribute. At the end, it is always a failure whenever my
jsp try to show the bean properties,even it makes the type casting
correctly. I guess a lot of developers have the same problem.
Thanks in advance,
Euclides
 

http://wtrjo210/ConsultaDica?pagina=pagina_atual&indice=i";>


-Mensagem original-
De: Mark F [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 11 de junho de 2003 20:37
Para: Tomcat Users List
Assunto: Re: Display Tag, Tiles and Paging


Thanks for the info but I got it fixed.  I just set the requestURI parameter
to a global forward which points to the tag definition name which contains
results.jsp.  That fixed it.  Maybe it will help you.  From my original post
the only part that changed was:

 requestURI="/SearchForm.do"

was changed to

 requestURI="/results.do"


-Mark


- Original Message -----
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2003 4:02 PM
Subject: RES: Display Tag, Tiles and Paging


> Hi,
> i have the same problem! I try to recover some bean properties from a
> collection object but, it seems that TomCat doesnt accept getproperty and
> setpropertys ...
>
> -Mensagem original-
> De: Raible, Matt [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 11 de junho de 2003 17:57
> Para: 'Tomcat Users List'
> Assunto: RE: Display Tag, Tiles and Paging
>
>
> Here's what I do as a workaround for this.  I'm sure you could easily
> enhance this to convert all your request parameters into a URL with
> name/value pairs.
>
> <%@ include file="/common/taglibs.jsp"%>
> <%@ page import="org.apache.struts.util.MessageResources,
>  org.apache.struts.Globals"%>
>
> <%
> MessageResources resources =
> (MessageResources) request.getAttribute(Globals.MESSAGES_KEY);
> String searchTerm = "";
> String action = request.getParameter("action");
> if ("search".equalsIgnoreCase(action)) {
> if (request.getParameter("searchBy") != null) {
> searchTerm = "&searchBy="+request.getParameter("searchBy");
> }
> }
> %>
>
> <%-- For linking to edit screen --%>
> 
> 
>
> 
requestURI='<%=request.getContextPath()+thisURL.getPath()+searchTerm%>'
> scope="request" pagesize="20" styleClass="list">
>
>
> HTH,
>
> Matt
>
> -Original Message-
> From: Mark F [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2003 1:25 PM
> To: Tomcat Users List
> Subject: Display Tag, Tiles and Paging
>
>
> I have an ArrayList that is a collection of JavaBeans containing three
> attributes id, name, ssn.  It is working well with the display column like
> this:
>
> 
>  cellspacing="0" border="0"  requestURI="/SearchForm.do" summary="Table
> summary - Listing of medical records contained in docbase for the given
> name">
>
> autolink="true"  paramId="rid" paramProperty="id" href="/GetObjectByRid"
/>
>  
>   value="true" />
> 
> 
>
> The paging and sorting do not work.  It seems that I need to give it a
> requestURI parameter, but this causes the app to loose the request scoped
> values (the name that was searched on).  It appends on some new URI
> parameters (page, order and sort).  I found some examples on the
developers
> site that allowed me to get this far but nothing on what needs to be in
> place before-hand to make this work.  Also tiles definitions do not work
in
> the requestURI parameter.
>
> Thanks,
> -Mark
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



jsp:getProperty Bug in TomCat 4.1.18 (running log attached) - stop using tomcat

2003-06-12 Thread Jose Euclides da Silva Junior - DATAPREVRJ
In TomCat 4.1.18, its impossible to get any bean content as bellow! The
TomCat's running process seems to be WRONG.Why? The code bellow is correct,
and runs fine in OC4J! Unfortunately, I am thinking in stop using TomCat
forever...
Euclides.

->
http://wtrjo210/ConsultaDica?pagina=pagina_atual&indice=i";>
->

But, this  bean property is well defined into my Javabeans!!!

Take a look at the log running process of Tomcat:
 dica = (euc.Dica) pageContext.getAttribute("dica", PageContext.PAGE_SCOPE);
if (dica == null){
  try {
dica = (euc.Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "euc.Dica");
  } catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
  } catch (Exception exc) {
throw new ServletException("Cannot create bean of class " +
"euc.Dica", exc);
  }
  pageContext.setAttribute("dica", dica, PageContext.PAGE_SCOPE);
}


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



NoSuchMethodError when using custom tag with attributes

2003-06-12 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
my TomCat ( 4.1.18) doesnt catch a change made in a Bean which is  used
inside the JSP custom tag. So, i get NoSuchMethodError! What should i do to
update it in TomCat.  
Regards,
Euclides.

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



Still having problems to display tags

2003-06-11 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Srs,
My tag JSP app doesnt show me my Bean property atribuites property - 4
attributes like NM_DICA (bean Dica )- see the complete code below. However,
I always get succeed if i call the getNM_Dica method that belongs to this
Bean. It really seems very strange since this code bellow runs FINE at BC4J
(JDeveloper)environment !!.I am using TomCat, version is 4.1.18. Some
helping hand needed, please.
Thanks in addvance,
Euclides.

>

   
   
   
   
  <%
  } %>




Página de Resultados - 
  <%
  int cont = 1;
  if (pagina_atual == 0)
  {
  %>
1
  <%
cont = cont + 1;
resultado = resultado - 1;
  }
  while (resultado > 0 )
  {
if (cont == pagina_atual) 
{
%>
  <%=cont%>
<%
}
else
{
%>
  <%=cont%>
<%
}
cont = cont + 1;
resultado = resultado - 1;
  }
%>
  






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



RES: Display Tag, Tiles and Paging

2003-06-11 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
i have the same problem! I try to recover some bean properties from a
collection object but, it seems that TomCat doesnt accept getproperty and
setpropertys ...

-Mensagem original-
De: Raible, Matt [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 11 de junho de 2003 17:57
Para: 'Tomcat Users List'
Assunto: RE: Display Tag, Tiles and Paging


Here's what I do as a workaround for this.  I'm sure you could easily
enhance this to convert all your request parameters into a URL with
name/value pairs.

<%@ include file="/common/taglibs.jsp"%>
<%@ page import="org.apache.struts.util.MessageResources,
 org.apache.struts.Globals"%>

<% 
MessageResources resources = 
(MessageResources) request.getAttribute(Globals.MESSAGES_KEY); 
String searchTerm = "";
String action = request.getParameter("action");
if ("search".equalsIgnoreCase(action)) {
if (request.getParameter("searchBy") != null) {
searchTerm = "&searchBy="+request.getParameter("searchBy");
}
}
%>

<%-- For linking to edit screen --%>






HTH,

Matt

-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 1:25 PM
To: Tomcat Users List
Subject: Display Tag, Tiles and Paging


I have an ArrayList that is a collection of JavaBeans containing three
attributes id, name, ssn.  It is working well with the display column like
this:



   
   
 
 



The paging and sorting do not work.  It seems that I need to give it a
requestURI parameter, but this causes the app to loose the request scoped
values (the name that was searched on).  It appends on some new URI
parameters (page, order and sort).  I found some examples on the developers
site that allowed me to get this far but nothing on what needs to be in
place before-hand to make this work.  Also tiles definitions do not work in
the requestURI parameter.

Thanks,
-Mark


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



Loosing bean property at JSP

2003-06-11 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
my JSP app doesnt show my tags property contents - like property NM_DICA (
bean Dica )- see the complete code below. This crazy situation occurs at the
same time when I get succeed if i call the getNM_Dica method of the bean
DICA. It really seems very strange since this code runs FINE at OC4J
(JDeveloper)environment !!.I am using TomCat, version is 4.1.18. Some
helping hand needed, please.
Thanks in addvance,
Euclides.

>

   
   
   
   
  <%
  } %>




Página de Resultados - 
  <%
  int cont = 1;
  if (pagina_atual == 0)
  {
  %>
1
  <%
cont = cont + 1;
resultado = resultado - 1;
  }
  while (resultado > 0 )
  {
if (cont == pagina_atual) 
{
%>
  <%=cont%>
<%
}
else
{
%>
  <%=cont%>
<%
}
cont = cont + 1;
resultado = resultado - 1;
  }
%>
  






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



Problem or Tomcat's bug when type casting

2003-06-11 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
my JSP app doesnt show my tags property contents - like property NM_DICA -
see code below. The crazy situation occurs because I always get succeed if
i call the  getNM_Dica method of the bean DICA.   However, this code runs
FINE at OC4J (JDeveloper) !! Its very strange to me. My TomCat version is
4.1.18. I am needing some helping hand.
Thanks in addvance,
Euclides.
...

<%
  int contador = 0 ;
  double resultado = 0 ;
  int numero_pagina_multiplicado = 0 ;
  Collection pega_bean = (ArrayList)request.getAttribute("array");
  Iterator pega = null;
  int pagina_atual = 0; 
 
  if (pega_bean != null)
  {
//System.out.println("Rodrigoprimeira vez");
session.setAttribute("bean",pega_bean);
  }
  else
  {
Object sessaobean = session.getAttribute("bean");
pega_bean = (ArrayList)sessaobean;
//System.out.println("numero total - "+pega_bean.size());
pagina_atual = Integer.parseInt(request.getParameter("num"));
numero_pagina_multiplicado = ((pagina_atual - 1) * 10); 
//System.out.println("numero_pagina_multiplicado =" +
numero_pagina_multiplicado);
   }  
  
  contador = pega_bean.size();
  //System.out.println("contador =" + contador);
  resultado = contador/10.0;
  pega = pega_bean.iterator();
  while (numero_pagina_multiplicado > 0)
  {
pega.next();
numero_pagina_multiplicado = numero_pagina_multiplicado - 1;
  }
 
  for(int i = 0;pega.hasNext()&&i<10;i++)
  {
dica = (Dica)pega.next();
String teste = dica.getNM_DICA();
out.print("Conteudo : "+teste);
%>
   http://wtrjo210/ConsultaDica?pagina=pagina_atual&indice=i";>

   
   
   
   
  <%
  } %>




Página de Resultados - 
  <%
  int cont = 1;
  if (pagina_atual == 0)
  {
  %>
1
  <%
cont = cont + 1;
resultado = resultado - 1;
  }
  while (resultado > 0 )
  {
if (cont == pagina_atual) 
{
%>
  <%=cont%>
<%
}
else
{
%>
  <%=cont%>
<%
}
cont = cont + 1;
resultado = resultado - 1;
  }
%>
  







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



RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Yes, it does! It has 2 constructors, one of then has no-args. I ve already
taken it off, but this error message goes on...
Thanks again,
Euclides.

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 17:31
Para: [EMAIL PROTECTED]
Assunto: RE: What does this crazy error message mean?



Howdy,
This error is different than what you got before.

Does your Dica bean have a public no-arguments constructor?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 4:25 PM
>To: 'Tomcat Users List'; Shapira, Yoav
>Subject: RES: What does this crazy error message mean?
>
>Dear Yoav,
>i ve already done it. But i always get the following error:
>
>HTTP Status 500 -
>
>---

>-
>
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented
it
>from fulfilling this request.
>
>exception
>
>org.apache.jasper.JasperException: Cannot create bean of class Dica
>   at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>2
>48)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
>   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat
cher
>.
>java:684)
>   at
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis
patc
>h
>er.java:432)
>   at
>org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa
tche
>r
>.java:356)
>   at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
>   at BancoServlet.service(BancoServlet.java:65)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:247)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:193)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:260)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:191)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
15)
>   at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.
>java:170)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>2
>)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:174)
>   at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>k
>eNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>   at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4
32)
>   at
>org.apache.coyote.http11.Http11Protocol$Http11

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Yoav,
i ve already done it. But i always get the following error:

HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Cannot create bean of class Dica
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
at BancoServlet.service(BancoServlet.java:65)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: Cannot create bean of class Dica
at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:65)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at BancoServlet.recuperaDicaTopico(BancoServlet.java:135)
at BancoServ

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
ok, la vai. Me ajude. Att,Euclides.


I did it. I ve created a package ( named euc ) under my app directory, but
TomCat didnt find it - " package euc does not exist... " - TomCat returns
me. Classpath is setted correctly.
I guess i need more help.
Thanks, Euclides.
-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:25
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?



Howdy,
Perhaps you should place Dica in a package:
http://tomcatfaq.sourceforge.net/classnotfound.html


-Mensagem original-
De: Marco Rojas [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:38
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?


Euclides,

Eu não recebi o código...
Vc. poderia me enviar zipado?

Abs.
Marco


-Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 9 de junho de 2003 16:18
To: '[EMAIL PROTECTED]'
Subject: What does this crazy error message mean?


Hi everybody, i cant stand without solve this problem:
whenever Rodrigo2.jsp runs, I always get  the bellow message, but the bean
Dica is there What should i do? The jsp complete code is attached.
Regards, Euclides.

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^

 <> 


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

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I did it. I ve created a package ( named euc ) under my app directory, but
TomCat didnt find it - " package euc does not exist... " - TomCat returns
me. Classpath is setted correctly.
I guess i need more help.
Thanks, Euclides.
-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 9 de junho de 2003 16:25
Para: Tomcat Users List
Assunto: RE: What does this crazy error message mean?



Howdy,
Perhaps you should place Dica in a package:
http://tomcatfaq.sourceforge.net/classnotfound.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 3:18 PM
>To: '[EMAIL PROTECTED]'
>Subject: What does this crazy error message mean?
>
>Hi everybody, i cant stand without solve this problem:
>whenever Rodrigo2.jsp runs, I always get  the bellow message, but the
bean
>Dica is there What should i do? The jsp complete code is attached.
>Regards, Euclides.
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>[javac] Compiling 1 source file
>
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
4:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>  Dica dica = null;
>  ^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
6:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica) pageContext.getAttribute("dica",
>PageContext.PAGE_SCOPE);
>^
>
>
>
>An error occurred at line: 12 in the jsp file: /rodrigo2.jsp
>
>Generated servlet error:
>C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:5
9:
>cannot resolve symbol
>symbol  : class Dica
>location: class org.apache.jsp.rodrigo2_jsp
>dica = (Dica)
>java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
>^
>
> <>




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]



What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody, i cant stand without solve this problem:
whenever Rodrigo2.jsp runs, I always get  the bellow message, but the bean
Dica is there What should i do? The jsp complete code is attached.
Regards, Euclides.

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^

 <> 

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

Urgent: Strange Exception in my jsp file

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
help me to solve this strange problem at my project. The rodrigo2.jsp file (
CODE BELOW ) runs fine in JDeveloper but returns an strange exception in
TomCat 4.1.18. This jsp app creates a reference to a java bean, named DICA,
which is instanced by an previous servlet. What does this message mean?
Should i configure anything else in my TomCat?
Thanks in advance,
Euclides.


HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
  Dica dica = null;
  ^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica) pageContext.getAttribute("dica",
PageContext.PAGE_SCOPE);
^



An error occurred at line: 12 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Dica");
^



An error occurred at line: 44 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:100:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
dica = (Dica)pega.next(); 
^



An error occurred at line: 45 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:105:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getNM_DICA(;
  ^



An error occurred at line: 47 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:111:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_DESCRICAO_DICA(;
  ^



An error occurred at line: 48 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:114:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_BENEFICIO(;
  ^



An error occurred at line: 49 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:117:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getTE_CONTEXTUALIZACAO(;
  ^



An error occurred at line: 50 in the jsp file: /rodrigo2.jsp

Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:122:
cannot resolve symbol
symbol  : class Dica 
location: class org.apache.jsp.rodrigo2_jsp
 
out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute("dica
")).getNM_AUTOR(;
  ^
9 errors


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDi

How to add an external package in my web app?

2003-06-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
> an external package in my web app?
> 
> Hi gurus,
> i guess it is a good question. I added an external package (
> org.apache.commons ... ) into my project since my servlets need it to run.
> 
> My project was developed with JDeveloper and then, i added a  command line
> like "package org.apache.commons... " at my servlet "BancoServlet" to
> allow package's classes access. It runned fine, but whenever  i put my
> application in TomCat environment, inside GUIA directory, i get the
> following error. So, first of all, what this message means and then, what
> should i do to fix it?
> Thanks again in advance,
> Euclides.
> 
> HTTP Status 500 - 
> 
> type Exception report
> message 
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> exception 
> 
> 
> javax.servlet.ServletException: Error allocating a servlet instance
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:670
> )
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:214)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:191)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 80)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
> e.java:170)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 72)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va:174)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
>   at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCon
> nection(Http11Protocol.java:386)
>   at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> ava:530)
>   at java.lang.Thread.run(Thread.java:536)
> root cause 
> java.lang.NoClassDefFoundError: BancoServlet (wrong name:
> org/apache/commons/dbcp/jdbc2pool/BancoServlet)
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>   at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>   at
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClass
> Loader.java:1664)
>   at
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.j
> ava:953)
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.j
> ava:1394)
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.j
> ava:1274)
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
> 884)
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666
> )
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:214)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
> okeNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina

How to include an external package in my web app?

2003-06-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus,
i guess it is a good question. I added an external package (
org.apache.commons ... ) into my project since my servlets need it to run. 
My project was developed with JDeveloper and then, i added a  command line
like "package org.apache.commons... " at my servlet "BancoServlet" to allow
package's classes access. It runned fine, but whenever  i put my application
in TomCat environment, inside GUIA directory, i get the following error. So,
first of all, what this message means and then, what should i do to fix it?
Thanks again in advance,
Euclides.

HTTP Status 500 - 

type Exception report
message 
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception 


javax.servlet.ServletException: Error allocating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:670)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.NoClassDefFoundError: BancoServlet (wrong name:
org/apache/commons/dbcp/jdbc2pool/BancoServlet)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1664)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:953)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1394)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1274)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
4)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPi

RES: Sharing a connection pool among contexts

2003-06-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I do it in another different way:
First - I have a JavaBean that sets my connection pools
Second - My main servlet' init method uses this Java Bean instance to get an
data source pool object 
Third - create my sql...
I guess it's right.
Euclides.
-Mensagem original-
De: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 5 de junho de 2003 16:42
Para: Tomcat Users List
Assunto: Re: Sharing a connection pool among contexts


I do it in a different way :

I have a servlet in charge to set all pools, and I have a class with  
statics methods to manage the pools, creating, test, and show their use.
This class is shared with all contexts through a jar in common/lib.

So I have a servlet, with all configuration of the pools in param in the 
web.xml. this servlet can create pools (in its init method), test and 
show it, and show statistics.
I works great, and I can share a pool among contexts.
I use the bitmechanic connection pool, a little old, but still works. 
http://www.bitmechanic.com/projects/jdbcpool/dist/jdbcpool-1.0b1.zip
  
I put the jar of the pool in the common/lib dir. I f anyone is 
interested in the ConnectionManager, I can share it, it's an eclipse 
project with ant build file that generates both war and the lib jar.

Hope it can help :)

Emerson

Scott wrote:

> Hi, I have configured the commons-dbcp datasource as a JNDI resource 
> for MSSQL and Oracle and all is working as expected. However, as I 
> understand, it is only possible to keep a factory as a resource and so 
> a new datapool must be created everytime a JNDI lookup is done. I 
> would like to share a single connection pool among different contexts.
>
> My first attempt was to create a listener that put a single instance 
> of a pool into the JNDI only to find that it is read-only. For my next 
> attempt I am thinking of creating a javabean with a static collection 
> of datasources and name keys that can be gotten as a JNDI resource so 
> that the different applications can just retrieve the bean and do a 
> lookup of the datasource that way.
>
> Am I missing an easier or better way to do this? I do not have any 
> experience with Javabeans and based on the stuff I've seen on the web 
> beans are usually graphic oriented. Is this an appropriate use of a 
> bean (or perhaps an Enterprise Javabean)?
>
> Thank you in advance,
> Scott
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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

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



RES: RES: RES: Best Practice: choose between SessionCookie or just Ses sion

2003-06-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Jake,
my  jsp app ( named nivel1.jsp) access my servlet ( named BancoServlet.java
) !

Take a look below at the part of jsp code - the IIS link redirects the
application to BancoServlet:


<%@ page contentType="text/html;charset=windows-1252" session = "true"
isErrorPage="true"%>
Portal de boas dicas

 
   

  
  Servidores 
de Aplicação
<% session.setAttribute("idsessionconnection",session.getId());%>
http://10.2.4.3:8994/Workspace2-SBPORCLE-context-root/BancoServlet";>II
S 


Part of BancoServlet code is below:

package org.apache.commons.dbcp.jdbc2pool;
import localdobean.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.*;
import java.util.Collection;
import java.util.ArrayList;
import java.sql.*;
import org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS;
import javax.sql.DataSource;

public class BancoServlet extends HttpServlet 
{
  private static final String CONTENT_TYPE = "text/html;
charset=windows-1252";
  private DataSource ds;
  private String query;
  private Dica dica;
  public String topico;

  
  public void init(ServletConfig config) throws ServletException
  {
super.init(config);
ds = null;
query = null;
String origem = null;
String valorcookie = null;
String endorigem = null;
  }

  public void service(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
  {
BeanPoolConnection bp = new BeanPoolConnection();
ds = bp.conexao();
//ds = bp.ds;
//Connection con = null;
//PreparedStatement pstmt = null;
//ResultSet rs = null;
  response.setContentType(CONTENT_TYPE);
  String origem =  request.getHeader("referer");
  // testar sessao;
  HttpSession session = request.getSession(true);
  String sValue = session.getId();
  String id = (String) request.getAttribute("idsessionconnection");
  System.out.println ( "sValue " + sValue );
  System.out.println ( "id " + id );
  if ( id.compareTo(sValue) == 0 )
...
But i got null at id field ! Thats my problem. I thought that i could
recover the session id generated when Nivel1.jsp runned. What should i do?
Thanks again,
Euclides.







-Mensagem original-
De: Jacob Kjome [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 3 de junho de 2003 19:49
Para: Tomcat Users List
Assunto: Re: RES: RES: Best Practice: choose between SessionCookie or
just Ses sion



Hmm normally the pattern is that someone accesses your controller 
servlet which handles the request and then you forward the request to the 
.jsp page which provides the view response.

Also, you don't need to use the session for this. Just add the information 
to the request using request.setAttribute() and then obtain that data in 
your view by request.getAttribute().

I'm really a bit confused by your approach here. It seems backards.

Jake

At 07:03 PM 6/3/2003 -0300, you wrote:
>1 - What is the "correct url"? The right url (example:
>http://userip/tomcatappdirect/first.jsp)  which  generated a http request
to
>my servlet. This way, the user cant directly reach my servlets. So, i guess
>i can create a session in my JSP FORM like this:
>
>HTTPSession se = request.getSession(true);
>se = req.setAttribute ("idsessionconnection", session.getId());
>
>and then, retrieve it in the destination servlet:
>...
>HTTPSession session;
>String sValue = session.getId();
>String id = (String) request.getAttribute("idsessionconnection");
>if (sValue.equals(id)){ ...
>
>So, the question is: since you know my needs, is the above code right?
>If yes, it solve the item 2 too.
>Regards, Euclides.
>
>
>-Mensagem original-
>De: Jacob Kjome [mailto:[EMAIL PROTECTED]
>Enviada em: terca-feira, 3 de junho de 2003 18:29
>Para: Tomcat Users List
>Assunto: Re: RES: Best Practice: choose between SessionCookie or just
>Session
>
>
>
>At 04:04 PM 6/3/2003 -0300, you wrote:
> >Jacob and James,
> >thanks a lot for your attention!I just need 2 things:
> >1 - find out who generated the http request , so i could compare it
against
> >the correct url.
>
>What is the "correct url"?  You have some application logic that I am not
>aware of.  I can't really help you out until you detail what you mean here.
>
> >2 - to avoid direct http request ( i.e, from browser ), so i would create
a
> >session id in the prior JSP and then, search for it into my servlet ( the
> >destination ). Is it clear?
>
>What do you mean "avoid a direct http request"?  What is your purpose
>here?  I'm afraid it isn't very clear.
>
>Jake
>
> >Regards,
> >Euclides.
> >
> >
> >
> >-Mensagem original-
> >De: Jacob Kjome [mailto:[EMAIL PROTECTED]
> >Enviada em: terca-feira, 3 de junho de 2003 12:19
> >Para: Tomcat Users List
> >Assunto: Re: Best Practice: choose between SessionCookie or just Session
> >
> >
> >
> >I think you are mixing concepts together.  The session cookie simply
> >pro

RES: RES: Best Practice: choose between SessionCookie or just Session

2003-06-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
1 - What is the "correct url"? The right url (example:
http://userip/tomcatappdirect/first.jsp)  which  generated a http request to
my servlet. This way, the user cant directly reach my servlets. So, i guess
i can create a session in my JSP FORM like this: 

HTTPSession se = request.getSession(true);
se = req.setAttribute ("idsessionconnection", session.getId());

and then, retrieve it in the destination servlet:
...
HTTPSession session;
String sValue = session.getId();
String id = (String) request.getAttribute("idsessionconnection");
if (sValue.equals(id)){ ...

So, the question is: since you know my needs, is the above code right?
If yes, it solve the item 2 too.
Regards, Euclides.
 

-Mensagem original-
De: Jacob Kjome [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 3 de junho de 2003 18:29
Para: Tomcat Users List
Assunto: Re: RES: Best Practice: choose between SessionCookie or just
Session



At 04:04 PM 6/3/2003 -0300, you wrote:
>Jacob and James,
>thanks a lot for your attention!I just need 2 things:
>1 - find out who generated the http request , so i could compare it against
>the correct url.

What is the "correct url"?  You have some application logic that I am not 
aware of.  I can't really help you out until you detail what you mean here.

>2 - to avoid direct http request ( i.e, from browser ), so i would create a
>session id in the prior JSP and then, search for it into my servlet ( the
>destination ). Is it clear?

What do you mean "avoid a direct http request"?  What is your purpose 
here?  I'm afraid it isn't very clear.

Jake

>Regards,
>Euclides.
>
>
>
>-Mensagem original-
>De: Jacob Kjome [mailto:[EMAIL PROTECTED]
>Enviada em: terca-feira, 3 de junho de 2003 12:19
>Para: Tomcat Users List
>Assunto: Re: Best Practice: choose between SessionCookie or just Session
>
>
>
>I think you are mixing concepts together.  The session cookie simply
>provides an id that uniquely points to a session.  This can also be
>replaced using URL rewriting of the session id.  You don't directly
>manipulate the session id.  This is handled by the container.  You just
>grab a session and start adding stuff to it and reading stuff from it.
>
>If you are talking about a "remember me" feature, you could place a cookie
>on the client which is completely and utterly separate from the session
>cookie which stores some information about how to automatically re-log in
>without user intervention.
>
>I think the latter is what you are looking for.
>
>Jake
>
>At 11:48 AM 6/3/2003 -0300, you wrote:
> >Hi , friends. This is a important best practice question for me. My
project
> >has a web form which is showed and filled ( by the user) after an
external
> >authentication process. The question is: should i generate a session
Cookie
> >that will be recovered by my following servlet or just generate any
session
> >parameter ( which will be recovered later too ), since i guess i only
need
> >to control the whole internal process.
> >Thanks in advance,
> >Euclides.
> >
> >-
> >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]



RES: How SessionID works?

2003-06-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
this is my doubt too !! So,  should i always create a cookie? What should i
do if i just need to avoid direct http request and know where (original URL)
the http request came from?
Thanks,
Euclides.   

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 3 de junho de 2003 16:01
Para: Tomcat Users List; Billy Ng
Assunto: RE: How SessionID works?



Howdy,
If your browser will not allow cookies, tomcat will add the jsessionid
to the URL.  See the Servlet Specification, v2.3, SRV.7.1.3 for details.

If your browser does accept cookies, tomcat just uses the normal,
standard HTTP cookies mechanism.  Per the spec, the cookie name must be
JSESSIONID.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Billy Ng [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 03, 2003 2:56 PM
>To: Tomcat Users List
>Subject: How SessionID works?
>
>Hi folks,
>
>Would anybody tell me how tomcat writes the SessionID via cookie?  I
>chnaged my IE browser to block all cookie, how could tomcat still can
>manaitain the session?
>
>Thanks in advance!
>
>Billy Ng



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]



RES: Best Practice: choose between SessionCookie or just Session

2003-06-04 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Jacob and James, 
thanks a lot for your attention!I just need 2 things:
1 - find out who generated the http request , so i could compare it against
the correct url.
2 - to avoid direct http request ( i.e, from browser ), so i would create a
session id in the prior JSP and then, search for it into my servlet ( the
destination ). Is it clear?
Regards,
Euclides.



-Mensagem original-
De: Jacob Kjome [mailto:[EMAIL PROTECTED]
Enviada em: terca-feira, 3 de junho de 2003 12:19
Para: Tomcat Users List
Assunto: Re: Best Practice: choose between SessionCookie or just Session



I think you are mixing concepts together.  The session cookie simply 
provides an id that uniquely points to a session.  This can also be 
replaced using URL rewriting of the session id.  You don't directly 
manipulate the session id.  This is handled by the container.  You just 
grab a session and start adding stuff to it and reading stuff from it.

If you are talking about a "remember me" feature, you could place a cookie 
on the client which is completely and utterly separate from the session 
cookie which stores some information about how to automatically re-log in 
without user intervention.

I think the latter is what you are looking for.

Jake

At 11:48 AM 6/3/2003 -0300, you wrote:
>Hi , friends. This is a important best practice question for me. My project
>has a web form which is showed and filled ( by the user) after an external
>authentication process. The question is: should i generate a session Cookie
>that will be recovered by my following servlet or just generate any session
>parameter ( which will be recovered later too ), since i guess i only need
>to control the whole internal process.
>Thanks in advance,
>Euclides.
>
>-
>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]



  1   2   >