strange behaviour with servlets on WinNT

2002-04-30 Thread Edson Alves Pereira

 Before i had some problems to make Tomcat understand my JSP pages and servlets, now 
Tomcat work fine with my JSP pages, but when i post a servlet IExplorer try to 
download my class file. Why this happen?

 PS.: I have a WinNT with Apache 1.3.2 and Tomcat 4.0.3

  With best wishes,
  Edson Alves Pereira


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


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




Sharing classes from diferent wbeapps!

2003-02-13 Thread Edson Alves Pereira
Hello dudes, i´m having some problems trying to share servlets from
diferent webapps, i can´t put the classes which my second webapp need in
$CATALINA/shared/lib, because they aren´t .jar they are servlets indeed and
second webapp extends them, here is the snapshoot of my second webapp´s
web.xml:

servlet
servlet-nameintranet/servlet-name
servlet-classIN_Login/servlet-class

init-param
param-nameclasspath/param-name
param-value

${CATALINA_HOME}/panfinance-app/WEB-INF/classes:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/appi.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jcServlet.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/crimson.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jaxp.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jndi.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jstyle.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/mail.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/oreilly.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/shell_term.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/acme.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/ojdbc14.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/com.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/conceptsoft.jar:

${CATALINA_HOME}/panfinance-app/WEB-INF/lib/tinySQL.jar/param-value
/init-param   
/servlet

What i must do?

With best wishes,
Edson Alves Pereira



JSP files between many webapps

2003-02-14 Thread Edson Alves Pereira
Hello folks, i´m doubt about which is the best way to share JSP
files with many webapps ( in my case, i have 2 ), i don´t want copy the same
JSP to another directory and every page is easy configurable with parameters
like:

http://127.0.0.1/jsp/financ/browseLoansBr.jsp?formAction=/exec/PF_Maintenanc
eLoans

I tried to call the JSP from another webapp ( /intranet for instance
) but it isn´t the same session or enviromnent, all that i want is not to
use the same thing twice, waht i could do?

With best wishes,
Edson Alves Pereira



RE: why can't i use jsp:useBean

2003-02-17 Thread Edson Alves Pereira
Make sure that your package is in webapps´s CLASSPATH,
here´s the way to do that.

servlet
servlet-nameMy_Blah_Project/servlet-name
servlet-classMy_Blah_MainServlet/servlet-class

init-param
param-nameclasspath/param-name
param-value
/WEB-INF/lib/appi.jar:
/WEB-INF/lib/jcServlet.jar:
/WEB-INF/lib/crimson.jar:
/WEB-INF/lib/jaxp.jar:
/WEB-INF/lib/jndi.jar:
/WEB-INF/lib/jstyle.jar:
/WEB-INF/lib/mail.jar:
/WEB-INF/lib/oreilly.jar:
/WEB-INF/lib/shell_term.jar:
/WEB-INF/lib/acme.jar:
/WEB-INF/lib/classes111.jar:
/WEB-INF/lib/com.jar:
/WEB-INF/lib/conceptsoft.jar:
/WEB-INF/lib/tinySQL.jar/param-value
/init-param   
/servlet


 --
 De:   Peter Choe[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 14 de fevereiro de 2003 17:28
 Para: [EMAIL PROTECTED]
 Assunto:  why can't i use jsp:useBean
 
 i am using tomcat 4.1.10 and am trying to write a jsp.  when i use:
 jsp:useBean id=foo scope=request class=Bar /
 
 i get a servlet context error.  i am importing the package that Bar.class 
 is in.
 
 any suggestions?
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: applet

2003-02-17 Thread Edson Alves Pereira
First you must put the package in /WEB-INF/lib, for instance we
could use blah.jar. Following the new Applet specification you must put the
archive param in your object or applet tag like: archive=blah.jar
and call the full applet name as code=com.blah.JSuperApplet.
This solve all, try it!

 --
 De:   Cédric Grun[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 17 de fevereiro de 2003 3:21
 Para: [EMAIL PROTECTED]
 Assunto:  applet
 
 I must use an applet in my webapp, but this applet uses library which 
 are in directory WEB-INF/lib.
 If I copy this library in same directory the jsp page, the applet works. 
 But if I put my packed applet
 in directory WEB-INF/lib, the jsp page can't found it.
 How can I do to not copy library, which are uses also by servlet, and 
 users can't access the applet
 by typing his url address ?
 
 
 _
 Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
 http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: TomCat to run with the IIS locally

2003-02-18 Thread Edson Alves Pereira
Why not to use Apache? I don´t now if there are modules for ISS for
tomcat, or maybe ( and if you can ) is need create a module for ISS to
understand tomcat.

 --
 De:   Edemilson Aguiar[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 18 de fevereiro de 2003 16:52
 Para: 'Tomcat Users List'
 Assunto:  TomCat to run with the IIS locally
 
 
 I am trying to set up the TomCat to run with the IIS locally.
 
 I am looking in the internet for the documentations about How to set up
 the TomCat with IIS. Does somebody could help me, please? I'll
 appreciate some help.
 
 I am using the following configuration:
 Tomcat 4.1.18 
 IIS 
 j2sdk1.4.1_01
 
 Thanks in advance,
 
 
 Edemilson Aguiar
   Instituto Atlantico 
  PSC Brazil 
 Phone: 55-85-216-7859
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.455 / Virus Database: 255 - Release Date: 13/2/2003
  
 



RE: urgent related to tomcat

2003-02-19 Thread Edson Alves Pereira
Try to call startup.bat in the same directory where the batch is,
but i always use Cygwin with windows.

 --
 De:   afshan amir ali[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 19 de fevereiro de 2003 5:47
 Para: [EMAIL PROTECTED]
 Assunto:  urgent related to tomcat
 
 
 i just want to know about the cofiguration of tomcat in windows98 when i
 started tomcat i got a message bad command or file name and also this one 
 
 C:\tomcat\bincall C:\tomcat\bin\tomcat start
 Including all jars in C:\tomcat\lib in your CLASSPATH.
 
 Using CLASSPATH:
 C:\tomcat\classes;C:\tomcat\lib\JAXP.JAR;C:\tomcat\lib\SERVLET.
 JAR;C:\tomcat\lib\ANT.JAR;C:\tomcat\lib\PARSER.JAR;C:\tomcat\lib\WEBSER~1.
 JAR;C:
 \tomcat\lib\JASPER.JAR
 
 Starting Tomcat in new window
 Bad command or file name
 C:\tomcat\bin
 C:\tomcat\bin
 
 can you tell me how to remove the above error???
 
 thankyou
 
  
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 



RE: jsp issues

2003-02-19 Thread Edson Alves Pereira
Take the web.xml from /examples´s webapp and use it as base for your
own web.xml, your error certainly is a parser error.

 --
 De:   Filip Hanik[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 18 de fevereiro de 2003 16:04
 Para: Tomcat Users List
 Assunto:  RE: jsp issues
 
 download tomcat 4.1.x LE edition for JDK1.4
 
 Filip
 
 -Original Message-
 From: Brian P. McLoughlin [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 18, 2003 9:51 AM
 To: [EMAIL PROTECTED]
 Subject: jsp issues
 
 
 I've recently installed Tomcat on my local machine, and I'm having some
 problems.  I'm using tomcat 4.0.4 with j2sdk 1.4.1, and at first it seemed
 to be working, but once I created my own webapp with a virtually empty
 web.xml (webapp/webapp), Tomcat started crashing on JSP pages.  I can
 no
 longer view any JSP pages, even those that came with Tomcat, and when I
 try
 the below message is displayed.  I've tried reinstalling Tomcat, but this
 did not help.  Any suggestions would be appreciated.
 
 
 -Brian
 
 
 Error:
 
 message Internal Server Error
 
 description The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw
 exception
   at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.java:946)
   at org.apache.catalina.core.StandardWrapper.allocate
 (StandardWrapper.java:655)
   at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:214)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:566)
   at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:943)
   at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:190)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:566)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke
 (AuthenticatorBase.java:475)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:564)
   at org.apache.catalina.valves.CertificatesValve.invoke
 (CertificatesValve.java:246)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:564)
   at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:943)
   at org.apache.catalina.core.StandardContext.invoke
 (StandardContext.java:2347)
   at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:180)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:566)
   at org.apache.catalina.valves.ErrorDispatcherValve.invoke
 (ErrorDispatcherValve.java:170)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:564)
   at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:170)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:564)
   at org.apache.catalina.valves.AccessLogValve.invoke
 (AccessLogValve.java:468)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:564)
   at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:943)
   at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:174)
   at org.apache.catalina.core.StandardPipeline.invokeNext
 (StandardPipeline.java:566)
   at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:943)
   at org.apache.catalina.connector.http.HttpProcessor.process
 (HttpProcessor.java:1027)
   at org.apache.catalina.connector.http.HttpProcessor.run
 (HttpProcessor.java:1125)
   at java.lang.Thread.run(Thread.java:536)
 
 
 root cause
 
 java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths
 (Ljava/lang/String;)Ljava/util/Set;
   at org.apache.jasper.compiler.TldLocationsCache.processJars
 (TldLocationsCache.java:202)
   at org.apache.jasper.compiler.TldLocationsCache.
 (TldLocationsCache.java:139)
   at org.apache.jasper.EmbededServletOptions.
 (EmbededServletOptions.java:350)
   at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
   at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.java:918)
   at org.apache.catalina.core.StandardWrapper.allocate
 (StandardWrapper.java:655)
   at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:214)
  

RE: DEBUG JSP

2003-02-20 Thread Edson Alves Pereira
Hey João, always i debug my JSP pages with remote debugging and only
calling to JSP´s name that Tomcat create in the work directory.

 --
 De:   João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 20 de fevereiro de 2003 8:35
 Para: Tomcat Users List
 Assunto:  DEBUG JSP
 
 Hello.
 I'd like to know if any one has actually been able to configure Tomcat 
 to debug JSP, and not just Servlets or other Java Classes?
 Everybody that helped so far gives me some intruction but tells me that 
 they have not tested the instructions. I've done everything I've found 
 about this topic.
 Switched to OJSP (Oracle JSP compiler) and still got nothing.
 I'd like to know if any one DID configure tomcat and TESTED it to Debug
 JSP.
 
 Thanks a lot...
 Sincerely,
 John
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: DEBUG JSP

2003-02-20 Thread Edson Alves Pereira
First tell me, do you know remote debugging, that´s the way do do
this. After you can create a break point like:

stop at teste_jsp:48

Use JAVA_OPTS make Tomcat run in remote debug mode.

 --
 De:   João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 20 de fevereiro de 2003 10:49
 Para: Tomcat Users List
 Assunto:  Re: DEBUG JSP
 
 I understand your concern, and my JSP are not that complicated that need 
 to be put in any kind of Java Beans.
 But I still want to be able to Debug JSP through Tomcat.
 
 Thanks for the tip.
 
 
 John.
 
 Barney Hamish wrote:
 
 If your JSPs are so complicated that you need a debugger then I would
 seriously consider cutting out some of your java code and putting it into
 java beans that you access from your JSPs. 
 
 It's much better practice to have JSPs that are only responsible for the
 view.
 Hamish
 
   
 
 -Original Message-
 From: João Augusto Charnet [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 12:35 PM
 To: Tomcat Users List
 Subject: DEBUG JSP
 
 
 Hello.
 I'd like to know if any one has actually been able to 
 configure Tomcat 
 to debug JSP, and not just Servlets or other Java Classes?
 Everybody that helped so far gives me some intruction but 
 tells me that 
 they have not tested the instructions. I've done everything 
 I've found 
 about this topic.
 Switched to OJSP (Oracle JSP compiler) and still got nothing.
 I'd like to know if any one DID configure tomcat and TESTED 
 it to Debug JSP.
 
 Thanks a lot...
 Sincerely,
 John
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
   
 
 
 



RE: DEBUG JSP

2003-02-20 Thread Edson Alves Pereira
Ai João, o lance é o seguinte: Eu também uso o JDeveloper9i, mas não
depuro ou uso o Tomcat ligado junto com a ferramenta, JAVA_OPTS pode conter
qualquer parâmetro que você desejar passar para o Tomcat como por exemplo o
comando para que a virtual machine use mémoria compartilhada ( remote
debugging ) assim você poderá depurar seus programas de qualquer máquina,
até aqui tudo bem. O que realmente lhe interessa é conseguir depurar as
páginas JSP, quando o Tomcat cria, compila ou simplesmente carrega a página
esta esta em sua JVM, então não existe nenhum problema em mandar a ordem
para criar o breakpoint na página JSP, no diretório work é onde os fontes e
binários das páginas são armazenados, consulte a documnetação do JDB para
saber como funciona o esquema da depuração remota, lá você vai encontrar o
comando que deve ser colocado dentro do JAVA_OPTS. Qualquer coisa dá um
grito ai.

 --
 De:   João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 20 de fevereiro de 2003 13:09
 Para: Tomcat Users List
 Assunto:  Re: DEBUG JSP
 
 I'm using JDeveloper 9i as my IDE. I can attach to tomcat's Debugger 
 port through JDeveloper, and my breakpoints only works in my classes. In 
 my JSP it does not work. Could it bem some option on the JAVA_OPTS ?
 Where could I get the complete reference for the options in JAVA_OPTS ?
 
 Thanks again ...
 
 John
 
 Randy Paries wrote:
 
 Not sure what ide you are using, but with intellij by idea you can debug
 jsp's with tomcat and remote debug
 
 It works very well
 
 RP
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 20, 2003 8:54 AM
 To: 'Tomcat Users List'
 Subject: RE: DEBUG JSP
 
 
  First tell me, do you know remote debugging, that´s the way do
 do this. After you can create a break point like:
 
  stop at teste_jsp:48
 
  Use JAVA_OPTS make Tomcat run in remote debug mode.
 
   
 
 --
 De: João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
 Responder:  Tomcat Users List
 Enviada:quinta-feira, 20 de fevereiro de 2003 10:49
 Para:   Tomcat Users List
 Assunto:Re: DEBUG JSP
 
 I understand your concern, and my JSP are not that complicated that 
 need
 to be put in any kind of Java Beans.
 But I still want to be able to Debug JSP through Tomcat.
 
 Thanks for the tip.
 
 
 John.
 
 Barney Hamish wrote:
 
 
 
 If your JSPs are so complicated that you need a debugger then I would
   
 
 
   
 
 seriously consider cutting out some of your java code and putting it 
 into java beans that you access from your JSPs.
 
 It's much better practice to have JSPs that are only responsible for 
 the view. Hamish
 
  
 
   
 
 -Original Message-
 From: João Augusto Charnet [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 12:35 PM
 To: Tomcat Users List
 Subject: DEBUG JSP
 
 
 Hello.
 I'd like to know if any one has actually been able to
 configure Tomcat 
 to debug JSP, and not just Servlets or other Java Classes?
 Everybody that helped so far gives me some intruction but 
 tells me that 
 they have not tested the instructions. I've done everything 
 I've found 
 about this topic.
 Switched to OJSP (Oracle JSP compiler) and still got nothing.
 I'd like to know if any one DID configure tomcat and TESTED 
 it to Debug JSP.
 
 Thanks a lot...
 Sincerely,
 John
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: RequestDispatcher and WEB-INF

2003-02-20 Thread Edson Alves Pereira
You need the CGI module to do this, that´s not a hard work but only
with Apache, Tomcat don´t deal with CGI.

 --
 De:   Erik Price[SMTP:[EMAIL PROTECTED]]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 20 de fevereiro de 2003 14:31
 Para: Tomcat Users List
 Assunto:  Re: RequestDispatcher and WEB-INF
 
 I do not think you can forward to a .exe file, not sure of what the spec 
 says but the Javadoc says only JSP or HTML files.
 
 This link will probably get broken in your mail client, but if you 
 reassemble it you can read the doc:
 
 http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatc
 her.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResp
 onse)
 
 Erik
 
 
 -Original Message-
 From: rf [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 3:51 AM
 To: [EMAIL PROTECTED]
 Subject: RequestDispatcher and WEB-INF
 
 
 I want to give out an exe after an authorization. So I
 put the exe in WEB-INF to avoid direct access, and
 tried to do:
 RequestDispatcher rd =
 req.getRequestDispatcher(/WEB-INF/my.exe);
rd.forward (req, res);
 
 Tomcat 4.0.6 says /WEb-INF/my.exe cannot be found.
 
 I dont know how this is different from what Craig
 mentioned at
 http://marc.theaimsgroup.com/?l=tomcat-userm=99790295202902w=2
 
 
 Thank you
 Rf
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



About the shared directory

2003-02-25 Thread Edson Alves Pereira
Hello dudes, is the shared directory reloadable or it could be in
that feature?

With best wishes,
Edson Alves Pereira


RE: Need help - jk2_init() Can't find child

2003-02-25 Thread Edson Alves Pereira
Try to use mod_jk-2.0.43.so

 --
 De:   Charles A Jordan[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 25 de fevereiro de 2003 17:26
 Para: [EMAIL PROTECTED]
 Assunto:  Need help - jk2_init() Can't find child
 
 I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using
 mod_jk2.so.
 tomcat starts with no errors but when I start apache I see the following
 in the error_log file:
 
 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in
 scoreboard
 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0
 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2
 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in
 scoreboard
 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2
 [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev
 confi
 gured -- resuming normal operations
 
 Any help would be appreciated.
 Thanks.
 
 Charles (Allen) Jordan   [EMAIL PROTECTED]
   System Administrator(407)771-8919
   Convergys
   285 International Parkway, 
   Lake Mary, FL 32746-5007
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Need help - jk2_init() Can't find child

2003-02-25 Thread Edson Alves Pereira
Then, get the mod_jk2´s source and build it for your system, if the
same error happen again tell us.

 --
 De:   Charles A Jordan[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 25 de fevereiro de 2003 17:50
 Para: [EMAIL PROTECTED]
 Assunto:  RE: Need help - jk2_init() Can't find child
 
 I tried this but I get the exact same results
  
  Try to use mod_jk-2.0.43.so
  
   --
   De:   Charles A Jordan[SMTP:[EMAIL PROTECTED]
   Responder:Tomcat Users List
   Enviada:  terça-feira, 25 de fevereiro de 2003 17:26
   Para: [EMAIL PROTECTED]
   Assunto:  Need help - jk2_init() Can't find child
   
   I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using
   mod_jk2.so.
   tomcat starts with no errors but when I start apache I see the
 following
   in the error_log file:
   
   [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in
   scoreboard
   [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0
   [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2
   [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in
   scoreboard
   [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2
   [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix)
 mod_jk2/2.0.3-dev
   confi
   gured -- resuming normal operations
   
   Any help would be appreciated.
   Thanks.
   
   Charles (Allen) Jordan   [EMAIL PROTECTED]
 System Administrator(407)771-8919
 Convergys
 285 International Parkway, 
 Lake Mary, FL 32746-5007
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
 
 Charles (Allen) Jordan   [EMAIL PROTECTED]
   System Administrator(407)771-8919
   Convergys
   285 International Parkway, 
   Lake Mary, FL 32746-5007
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)

2003-02-26 Thread Edson Alves Pereira
Dude, you must take a look at Sun´s tutorial about servlet, i´m
think that it´s your first step to understand the Servlet/JSP universe:

 --
 De:   zafar ahsan[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 26 de fevereiro de 2003 2:10
 Para: [EMAIL PROTECTED]
 Assunto:  Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)
 
  Dear sir/madam, 
 
 Just after looking at email, u might be thinking ohhh am there to eat
 yr time, but sir/madam am sorry for this, i try my best not to take much
 of yr time and when i really get in to trouble i use to write to u, i know
 yr time is very precious, am very thankful for yr kind help that u have
 provided to me till date. 
 
 Sir/madam i have little problem pls try to solve it. am using tomcat3.2.4 
 
 ok i have created my own application directory,
 $tomcat_home\webapps\zaf_fin 
 
 and have configured server.xml file and also 
 
 $tomcat_home\webapps\zaf_fin\web-inf\web.xml for my servlet. 
 
 The server is starting without any problem though initially there were
 some mistake and it cozed some problem but then i could be able to make it
 so now its working ok. 
 
 i have my htm file at 
 
 $tomcat_home\webapps\zaf_fin\salslip.html 
 
 and my class file for servlet in 
 
 $tomcat_home\webapps\zaf_fin\web-inf\classes\Salaryslip 
 
 Now pls let me know 
 
 1 Do i need to configure server.xml file again for jdbc if so what i
 would have to do. 
 
 2How to call servlet from html file. 
 
 i mean am usng form tag method=post
 action=..( what i have to
 write to here pls write me  considering am on local host) 
 
 am confused about this becoz on its local host site if i try to some
 examples it shows action to a directory servlet and in tomcat whole
 directory structure there is no servlet directory but there is one
 servlets directory. 
 
 How does it do that where to cheek for this clue. 
 
 pls help me i would be really very -very thankful to yr kind help.pls 
 
 zafar 
 [EMAIL PROTECTED]
 
 
 
 
 
 
 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Shared servlets between webapps

2003-02-26 Thread Edson Alves Pereira
Hello folks, i want to use the same servlet with two webapps, then i
put it in shared/classes, everything was fine and the servlet work almost as
i expected, but when this servlet need to get a variable from the
environment, it has null value, why it happens and how i can solve it?

With best wishes,
Edson Alves Pereira


RE: Re[2]: Shared servlets between webapps

2003-02-27 Thread Edson Alves Pereira
Maybe i wasn´t so clear and explained wrong whant happened. I´m
don´t want values from classes´s variables, like MyClass.dAssuranceTax, the
variables that i said are session atributes. I have some servlets that are
global for some aplications, for example: webapp A and webapp B uses
servlets from webapps X and there are session attributes very importants for
webapp X work if others webapps need use it, but webapp X ( only servlets )
are located in shared/classes. I thought that all servlets inside this
directory has access to every session or whatever others webapps use.

 --
 De:   Filip Hanik[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 26 de fevereiro de 2003 20:50
 Para: Tomcat Users List; Jacob Kjome
 Assunto:  RE: Re[2]: Shared servlets between webapps
 
 yes, they will be shared.
 
 Filip
 
 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 3:47 PM
 To: Tomcat Users List
 Subject: Re[2]: Shared servlets between webapps
 
 
 Hello Will,
 
 Hmm... shouldn't static variables be shared in this case?  I don't see
 why not?
 
 Jake
 
 Wednesday, February 26, 2003, 3:39:20 PM, you wrote:
 
  From: Edson Alves Pereira [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 12:53 PM
  Subject: Shared servlets between webapps
 
 
  Hello folks, i want to use the same servlet with two webapps, then i
  put it in shared/classes, everything was fine and the servlet work
 almost
 WH as
  i expected, but when this servlet need to get a variable from the
  environment, it has null value, why it happens and how i can solve it?
 
 WH More detail is needed, but to begin with just because the servlet
 class
 WH itself is shared, the actual servlet instances are within different
 contexts
 WH and would actually share very little. So if you're expecting the
 shared
 WH servlet to see something set by WebApp A when run in Web App B, then
 you'll
 WH be disappointed.
 
 WH Regards,
 
 WH Will Hartung
 WH ([EMAIL PROTECTED])
 
 
 
 
 WH -
 WH To unsubscribe, e-mail: [EMAIL PROTECTED]
 WH For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 Best regards,
  Jacobmailto:[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]
 


Invalid Bean construtor error

2003-02-27 Thread Edson Alves Pereira
Hello folks, i´m having this error on one of my webapps, all of them
use the same library:

2003-02-27 11:39:40 StandardManager[/intranet] IOException while loading
persisted sessions: java.io.InvalidClassException: appi.beans.html.JTable;
no valid constructor
java.io.InvalidClassException: appi.beans.html.JTable; no valid constructor

What i must do?

With best wishes,
Edson Alves Pereira


RE: Sharing session info between Tomcat and IIS

2003-02-27 Thread Edson Alves Pereira
Try to use cookies, if you between ASP and JSP.to share information
or you could the the URL like http://127.0.0.1/blah.jsp?login=edson

 --
 De:   Schleimer, Ben[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 27 de fevereiro de 2003 11:19
 Para: Tomcat Users List
 Assunto:  Sharing session info between Tomcat and IIS
 
 Hi,
 
   I am working on a project which must  securely
 Timeout the user for security purposes. Unfortunately,
 all of the login/logout code has been written (not by
 me) in ASP. I really want to use Servlets for the
 project instead of ASP. I was thinking of storing the
 user's last access time in the backend DB and updating
 it everytime a user makes a request to Tomcat. But
 this requires a DB lookup every request. Is there a
 more direct way to communicate session info between
 IIS and Tomcat?
 
 Thanks,
 Ben
 
 --- Greg Speechley [EMAIL PROTECTED] wrote:
  Hi Yoav,
  
  I was wondering why using sessions is unreliable for
  tracking users who are
  logged in, getting last accessed time, etc? I would
  have thought that
  storing all the current sessions in a Vector (or
  some other data structure)
  with a User object (storing all their relevant info)
  bound to each session
  would work well. What alternative would you suggest
  because the situation
  described by R.C.Nougain sounds very similar to what
  we have where I work.
  
  Cheers
  Greg Speechley
  
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 26 February 2003 12:46 AM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.1.18 session objects
  
  
  
  Howdy,
  
  Where can I find the changes list from Tomcat 4.0.x
  to Tomcat 4.1.x.
  
  Download any release of tomcat.  Explode the
  distribution and you'll see a
  bunch of release notes files, one for each labeled
  release, detailing what's
  new in that release.
  
  | For each user session I store the reference| to
  the session in a Vector
  so that I
  | can tell what users are logged-in,
  last-accessed-time etc. It was working
  fine
  | in Tomcat 4.0.4. But in Tomcat4.1.18 (perhaps due
  to new specifications)
  session
  | objects are pooled (StandardSessionFactory) and
  hence the references I
  | am storing in the Vector become useless across
  the jsp page calls. I have
  a
  | thread that uses this Vector to clean up the
  users that are timedout but
  since
  | the session refs in my Vector are useless I can
  do nothing. Instead of
  | storing the refs if I store Session IDs then can
  I get ref to a session
  from
  | JSP Server so that I can get the attributes I
  have set in it. Please
  comment.
  
  Since you only asked for comments... There is no new
  specification regarding
  http servlet sessions from tomcat 4.0 to 4.1.  It's
  still the servlet spec
  v2.3.
  
  Your design is vulnerable to any changes in the
  container session façade
  implementation.  Note that the container is not
  required to provide you with
  a session list per se.
  
  I don't think using sessions to track who's logged
  in and last-access-time
  for resources is reliable.  But if you want to do it
  that way, write an
  HttpSessionListener.  It was created for these sort
  of session tracking
  things.  Move your vector into that listener.  Add a
  reference each time a
  session is created, remove it when a session is
  destroyed.  Add whatever
  other functionality you need to the listener.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  
  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]
  
 
 
 =
 The competent programmer is fully aware of the strictly limited size of
 his own skull; therefore he approaches the programming task in full
 humility, and among other things he avoids clever tricks like the plague
 - Edsger Dijkstra
 
 http://snow.prohosting.com/bensch
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL 

RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Edson Alves Pereira
Have you ever tried Ant and Jasper, they are the tools that Tomcat
use to create JSP files and compile then.

 --
 De:   Molof, Barry[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 28 de fevereiro de 2003 15:07
 Para: Tomcat Users List
 Assunto:  RE: Compile JSP on Tomcat Startup
 Prioridade:   Alta
 
 Can someone PLEASE help me?  This is an urgent issue.
 
 Thanks
 
 -Original Message-
 From: Molof, Barry 
 Sent: Friday, February 28, 2003 10:02 AM
 To: Tomcat Users List
 Subject: RE: Compile JSP on Tomcat Startup
 
 I tried jspc and all it did was convert .jsp to .java, instead of
 .class.  I'm looking for a solution that handles the conversion of .jsp
 to .java to .class files during Tomcat 3.3.1a startup.  
 
 Can anyone else help?
 
 Thanks
 
 -Original Message-
 From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 26, 2003 3:07 AM
 To: Tomcat Users List
 Subject: Re: Compile JSP on Tomcat Startup
 
 I think that you would use jspc (JSP compiler) that comes with Tomcat 
 distribution. It's materialized in jsp.bat[sh] in
 $TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
 more 
 info
 
 regards,
 c.
 
 At 04:07 PM 2/25/2003 -0500, you wrote:
 How can I compile all of my JSPs when I start Tomcat?  The version I am
 using is 3.3.1a.  Any help would be great.
 
 Thanks.
 Barry
 
 
 -
 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]
 


Error while shutdown

2003-02-28 Thread Edson Alves Pereira
Does anyone known how to solve this error?

Catalina.stop: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1189

With best wishes
Edson Alves Pereira


RE: Profiler for Servlets?

2003-06-25 Thread Edson Alves Pereira
Here you will find some good tools!

http://www.opensourcetesting.org/performance.php

 --
 De:   Jiann-Ming Su[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 19 de junho de 2003 14:56
 Para: Tomcat Users List
 Assunto:  Profiler for Servlets?
 
 What's a good java profiler for use with servlets?  So far I've found
 JMemProf
 and JProfiler.  Thanks for any recommendations.
 
 -- 
 Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
 Development Team Systems Administrator
 General Libraries Systems Division
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: NetBeans Debug in JSP Tag Files

2003-08-08 Thread Edson Alves Pereira
Once you are connected with the JVM using ( jdb -attach, for example
) command you can debug everything that tomcat read.

 --
 De:   Shawn Zernik[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 8 de agosto de 2003 15:40
 Para: [EMAIL PROTECTED]
 Assunto:  NetBeans Debug in JSP Tag Files
 
 Tomcat-Users:
 
 I have the tag lib working.  Thanks again.
 
 I was wondering if anyone could point me to a good tutorial on how to use
 NetBeans with Tomcat that's running.  I can configure tomcat to allow
 debug
 connections and connect using NetBeans, but once I'm online with the
 server
 how do I trace through a JSP page?
 
 Shawn
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


taglibs inside another taglib

2003-08-10 Thread Edson Alves Pereira
Hello folks, how do i could do this in right way?

panfinance:numero
name=edCPF
size=11
value=panfinance:getVar_CPF/panfinance:get/


Remote debugging throught network

2003-03-07 Thread Edson Alves Pereira
Hello folks, i´m trying to debug my application in a special machine
throught network, that machine is a Linux with Tomcat-4.1.18 as it´s server.
I´m already have a development environment in my personal machine, but there
are some error with my application that happen only in Linux.

My Linux´s Tomcat is running with remote debugging using this
parameters:
JAVA_OPTS=-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

The problems is, i don´t known how to reach this VM from my own
machine, how i could do that?

With best wishes,
Edson Alves Pereira


RE: Remote debugging throught network

2003-03-07 Thread Edson Alves Pereira
Hey dudes, i got an example from Debugging Midlets, and it shows
me how i could debug Tomcat in other machine: here is the command to do so

D:\home\edsonjdb -sourcepath %SOURCEPATH% -connect
com.sun.jdi.SocketAttach:hostname=172.17.2.200,port=8000

As you can see i´m using a WinNT and the machine that i must test is
a Linux besides me, the hostname is an address for the JVM. That´s all!

 --
 De:   pcampaigne[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 7 de março de 2003 15:08
 Para: Tomcat Users List
 Assunto:  Re: Remote debugging throught network
 
 To All.
 Has anyone got remote debugging working with tomcat 4.1.X?  It is my
 understanding that it only works with 4.0.X?
 Phil Campaigne
 
 - Original Message -
 From: Karr, David [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, March 07, 2003 8:31 AM
 Subject: RE: Remote debugging throught network
 
 
 Any JPDA-compliant debugger can do this.  NetBeans is one example.  You
 simply specify the Attach to remote server option (different debuggers
 will name this differently), and specify the host where your JVM is
 running
 on, dt_socket connections, and the address.  You'll probably want to
 have
 your application source code and/or Tomcat's source code mounted in the
 project (so you'll have something to set breakpoints on).
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 07, 2003 5:55 AM
  To: 'Tomcat-User List'
  Subject: Remote debugging throught network
 
  Hello folks, i´m trying to debug my application in a special machine
  throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
  server.
  I´m already have a development environment in my personal machine, but
  there
  are some error with my application that happen only in Linux.
 
  My Linux´s Tomcat is running with remote debugging using this
  parameters:
  JAVA_OPTS=-Xdebug
  -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
 
  The problems is, i don´t known how to reach this VM from my own
  machine, how i could do that?
 
  With best wishes,
  Edson Alves Pereira
 
 -
 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]
 


error while downloading applet

2003-03-10 Thread Edson Alves Pereira
Hello folks, i´m using Apache-2.0 and Tomcat-4.1.18 in my redhat
Linux-2.4.18-14 with 
2sdk-1.4.1_01 that´s the features from it´s server. My web-application has
some applets to deal
with check-printers, when JavaPlugin try to download the applets it shows me
this error:

load: class iac.JChronos not found.

java.lang.ClassNotFoundException: iac.JChronos

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 11 more

For me it´s a security issue, but i don´t known what to do. Could
anyone tell me
what i must do to fix it?


Regards,
Edson Alves Pereira



RE: error while downloading applet

2003-03-10 Thread Edson Alves Pereira
No at all, my binaries are in the correct place and everything
loooks fine, i can tell you that because i have the same configuration with
my WinNT and my applets works, but with my Linux it doesn´t work for while.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 10 de março de 2003 15:33
 Para: Tomcat Users List
 Assunto:  RE: error while downloading applet
 
 
 Howdy,
 It's been a long time since I've worked with applets, as I really dislike
 them, but it seems to me that you should just put the iac.JChronos class
 file and related classes in the file name in the ARCHIVE attribute of the
 APPLET tag in your html document...
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 10, 2003 1:29 PM
 To: 'Tomcat-User List'
 Subject: error while downloading applet
 
  Hello folks, i´m using Apache-2.0 and Tomcat-4.1.18 in my redhat
 Linux-2.4.18-14 with
 2sdk-1.4.1_01 that´s the features from it´s server. My web-application
 has
 some applets to deal
 with check-printers, when JavaPlugin try to download the applets it shows
 me
 this error:
 
 load: class iac.JChronos not found.
 
 java.lang.ClassNotFoundException: iac.JChronos
 
  at sun.applet.AppletClassLoader.findClass(Unknown Source)
 
  at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
 
  at java.lang.ClassLoader.loadClass(Unknown Source)
 
  at sun.applet.AppletClassLoader.loadClass(Unknown Source)
 
  at java.lang.ClassLoader.loadClass(Unknown Source)
 
  at sun.applet.AppletClassLoader.loadCode(Unknown Source)
 
  at sun.applet.AppletPanel.createApplet(Unknown Source)
 
  at sun.plugin.AppletViewer.createApplet(Unknown Source)
 
  at sun.applet.AppletPanel.runLoader(Unknown Source)
 
  at sun.applet.AppletPanel.run(Unknown Source)
 
  at java.lang.Thread.run(Unknown Source)
 
 Caused by: java.io.IOException: open HTTP connection failed.
 
  at sun.applet.AppletClassLoader.getBytes(Unknown Source)
 
  at sun.applet.AppletClassLoader.access$100(Unknown Source)
 
  at sun.applet.AppletClassLoader$1.run(Unknown Source)
 
  at java.security.AccessController.doPrivileged(Native Method)
 
  ... 11 more
 
  For me it´s a security issue, but i don´t known what to do. Could
 anyone tell me
 what i must do to fix it?
 
 
  Regards,
  Edson Alves Pereira
 
 
 
 
 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]
 


Microsoft ISA Proxie

2003-03-11 Thread Edson Alves Pereira
Hello folks, i having some problems with Microsoft Proxies in our
network, it´s use Microsoft specific User Authentication protocol (NTLM),
someone known how i could fix it?

With best wishes,
Edson Alves Pereira



RE: Can Tomcat 4 be configured to listen on two ports simultaneously

2003-03-13 Thread Edson Alves Pereira
Tomcat can listen as many port as you created conectors to do so.
Take a look at server.xml i think it´s a good start.

 --
 De:   Marina McGale[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 13 de março de 2003 14:42
 Para: [EMAIL PROTECTED]
 Assunto:  Can Tomcat 4 be configured to listen on two ports
 simultaneously
 
 Hi.
 I am using Tomcat 4.1.12 and would like it to listen on both port 80 and
 8080 because I have already sent out URLs with 8080 in them but want to
 remove the 8080 for the future (and still want everyone to be able to
 access my apps).  I had tried adding another Connector for port 80 for
 Tomcat running stand-alone in the server.xml file (so there are two
 Connectors - one each for port 80 and 8080) and it worked on my
 localhost (Windows) machine but not when I tried the same thing on
 Redhat 8.  I do not have Apache running so there is no conflict between
 it and Tomcat trying to listen on the same port.
 
 Thanks for any help.
 
 M.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Can Tomcat 4 be configured to listen on two ports simultaneously

2003-03-13 Thread Edson Alves Pereira
If you put mozilla to browse 127.0.0.1/ what it shows? Nothing or
when you start tomcat it gives you am error?

 --
 De:   Marina McGale[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 13 de março de 2003 14:42
 Para: [EMAIL PROTECTED]
 Assunto:  Can Tomcat 4 be configured to listen on two ports
 simultaneously
 
 Hi.
 I am using Tomcat 4.1.12 and would like it to listen on both port 80 and
 8080 because I have already sent out URLs with 8080 in them but want to
 remove the 8080 for the future (and still want everyone to be able to
 access my apps).  I had tried adding another Connector for port 80 for
 Tomcat running stand-alone in the server.xml file (so there are two
 Connectors - one each for port 80 and 8080) and it worked on my
 localhost (Windows) machine but not when I tried the same thing on
 Redhat 8.  I do not have Apache running so there is no conflict between
 it and Tomcat trying to listen on the same port.
 
 Thanks for any help.
 
 M.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Taglib using BodyTagSupport

2003-05-29 Thread Edson Alves Pereira
Hello folks, i´m using tomcat-4.1.18 and i tried to create a tag
that would read its body and do some work. But bodyContent always cames
null, i´m following this example:

package com.acme.tag;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.naming.*;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

/**
 * A Tag for sending Mail messages
 * @author Magnus Rydin
 */
public class SendMailTag extends BodyTagSupport {
private String mimeType = text/plain;
private Session session = null;
private Message message = null;
private String to = null;
private String cc = null;
private String bcc = null;
private String from = null;
private String subject = null;
private String sessionLocation = null;
private Multipart multipart = new MimeMultipart();
private InitialContext context = null;

/** Constructor */
public SendMailTag() {
super();
}

/**
 * Method used by the JSP container to set the to variable
 * @param to the TO address
 */
public void setTo(String to) {
this.to = to;
}

/**
 * Method used by the JSP container to set the cc variable
 * @param cc the CC address
 */
public void setCc(String cc) {
this.cc = cc;
}

/**
 * Method used by the JSP container to set the bcc variable
 * @param bcc the BCC address
 */
public void setBcc(String bcc) {
this.bcc = bcc;
}

/**
 * Method used by the JSP container to set the from variable
 * @param from the FROM address
 */
public void setFrom(String from) {
this.from = from;
}

/**
 * Method used by the JSP container to set the subject variable
 * @param from the FROM address
 */
public void setSubject(String subject) {
this.subject = subject;
}

/**
 * Method used by the JSP container to set the mimeType variable
 * @param mimeType the mimetype to use
 */
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}

/**
 * Method used by the JSP container to set the session variable
 * @param mimeType the mimetype to use
 */
public void setSession(String session) {
this.sessionLocation = session;
}

/** Method used by subTags to add parts to the message */
public Multipart getMultipart() {
return multipart;
}

/**
 * Method called at start of tag
 * @return EVAL_BODY_TAG
 * @throws JspException if mail session could not be found
 */
public int doStartTag() throws JspTagException {
try {
context = new InitialContext();
//get the mail session
if (sessionLocation != null) {
session = (Session)context.lookup(java:comp/env/mail/ +
sessionLocation);
} else {
session = Session.getDefaultInstance(
new Properties(), null);
}
} catch (NamingException ne) {
throw new JspTagException(ne.getMessage());
}
message = new MimeMessage(session);
return EVAL_BODY_TAG;
}

/**
 * Method called at end of body
 * @return SKIP_BODY
 * @throws JspException if message content could not be set
 */
public int doAfterBody() throws JspTagException {
try {
MimeBodyPart mbp = new MimeBodyPart();
mbp.setContent(bodyContent.getString(), mimeType);
multipart.addBodyPart(mbp, 0);
message.setContent(multipart);
} catch (MessagingException me) {
throw new JspTagException(me.getMessage());
}
// clear body
bodyContent.clearBody();
return SKIP_BODY;
}

/**
 * Method called at end of tag
 * @return EVAL_PAGE
 * @throws JspException if there is an illegal address or if the mail
could not be sent
 */
public int doEndTag() throws JspTagException {
try {
if (from != null) {
message.setFrom(
new InternetAddress(from));
}
if (subject != null) {
message.setSubject(subject);
}
addRecipients(to,Message.RecipientType.TO);
addRecipients(cc,Message.RecipientType.CC);
addRecipients(bcc,Message.RecipientType.BCC);
Transport.send(message);
} catch (AddressException ae) {
throw new JspTagException(ae.getMessage());
} catch (MessagingException me) {
throw new JspTagException(me.getMessage());
}
return EVAL_PAGE;
}

   /**
 * Adds one or more recipients to the message.
 * Multiple recipients should be separated by comma-signs
 * @throws AddressException if there is an illegal address
 * @throws MessagingException if the address cannot be added to the
Message
 */
public void 

RE: Taglib using BodyTagSupport

2003-05-30 Thread Edson Alves Pereira
No, i´m doing something like this:

my:sendMail to=[EMAIL PROTECTED]
from=[EMAIL PROTECTED]
subject=testToday is a good day for
java./my:sendMail

 --
 De:   Bill Barker[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 29 de maio de 2003 4:26
 Para: [EMAIL PROTECTED]
 Assunto:  Re: Taglib using BodyTagSupport
 
 The class looks Ok to me.  How are you referring to it in your JSP page?
 It
 should fail if you are doing something like:
   my:sendMail to=[EMAIL PROTECTED]
 from=[EMAIL PROTECTED]
 subject=test /
 
 (e.g. an empty body).
 
 Edson Alves Pereira [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 br
 ...
 Hello folks, i´m using tomcat-4.1.18 and i tried to create a tag
 that would read its body and do some work. But bodyContent always cames
 null, i´m following this example:
 
 package com.acme.tag;
 
 import javax.servlet.jsp.*;
 import javax.servlet.jsp.tagext.*;
 import javax.naming.*;
 import javax.mail.*;
 import javax.mail.internet.*;
 import java.util.*;
 
 /**
  * A Tag for sending Mail messages
  * @author Magnus Rydin
  */
 public class SendMailTag extends BodyTagSupport {
 private String mimeType = text/plain;
 private Session session = null;
 private Message message = null;
 private String to = null;
 private String cc = null;
 private String bcc = null;
 private String from = null;
 private String subject = null;
 private String sessionLocation = null;
 private Multipart multipart = new MimeMultipart();
 private InitialContext context = null;
 
 /** Constructor */
 public SendMailTag() {
 super();
 }
 
 /**
  * Method used by the JSP container to set the to variable
  * @param to the TO address
  */
 public void setTo(String to) {
 this.to = to;
 }
 
 /**
  * Method used by the JSP container to set the cc variable
  * @param cc the CC address
  */
 public void setCc(String cc) {
 this.cc = cc;
 }
 
 /**
  * Method used by the JSP container to set the bcc variable
  * @param bcc the BCC address
  */
 public void setBcc(String bcc) {
 this.bcc = bcc;
 }
 
 /**
  * Method used by the JSP container to set the from variable
  * @param from the FROM address
  */
 public void setFrom(String from) {
 this.from = from;
 }
 
 /**
  * Method used by the JSP container to set the subject variable
  * @param from the FROM address
  */
 public void setSubject(String subject) {
 this.subject = subject;
 }
 
 /**
  * Method used by the JSP container to set the mimeType variable
  * @param mimeType the mimetype to use
  */
 public void setMimeType(String mimeType) {
 this.mimeType = mimeType;
 }
 
 /**
  * Method used by the JSP container to set the session variable
  * @param mimeType the mimetype to use
  */
 public void setSession(String session) {
 this.sessionLocation = session;
 }
 
 /** Method used by subTags to add parts to the message */
 public Multipart getMultipart() {
 return multipart;
 }
 
 /**
  * Method called at start of tag
  * @return EVAL_BODY_TAG
  * @throws JspException if mail session could not be found
  */
 public int doStartTag() throws JspTagException {
 try {
 context = new InitialContext();
 //get the mail session
 if (sessionLocation != null) {
 session = (Session)context.lookup(java:comp/env/mail/ +
 sessionLocation);
 } else {
 session = Session.getDefaultInstance(
 new Properties(), null);
 }
 } catch (NamingException ne) {
 throw new JspTagException(ne.getMessage());
 }
 message = new MimeMessage(session);
 return EVAL_BODY_TAG;
 }
 
 /**
  * Method called at end of body
  * @return SKIP_BODY
  * @throws JspException if message content could not be set
  */
 public int doAfterBody() throws JspTagException {
 try {
 MimeBodyPart mbp = new MimeBodyPart();
 mbp.setContent(bodyContent.getString(), mimeType);
 multipart.addBodyPart(mbp, 0);
 message.setContent(multipart);
 } catch (MessagingException me) {
 throw new JspTagException(me.getMessage());
 }
 // clear body
 bodyContent.clearBody();
 return SKIP_BODY;
 }
 
 /**
  * Method called at end of tag
  * @return EVAL_PAGE
  * @throws JspException if there is an illegal address or if the mail
 could not be sent
  */
 public int doEndTag() throws JspTagException {
 try {
 if (from != null

Network access

2003-06-12 Thread Edson Alves Pereira
Hello folks, i have an application that does many requests to an
external machine, each request is a thread that send and receive text to
process, my problem here is, some times there are so many requests and i
fear this external machine can´t accept all requests or my application
cannot get at same time high volume text through my network. Could anyone
point the best way to send and receive high volume´s network information?

Best regards,
Edson




RE: Network access

2003-06-13 Thread Edson Alves Pereira
We´ve already store all request and responses, but the problem is
when we have a lot of request at same time ( something like 100 requests per
second ). I´d like to improve the speed and make all resposes and requests
has data to transfer.

 --
 De:   Angus Mezick[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de junho de 2003 18:08
 Para: Tomcat Users List
 Assunto:  RE: Network access
 
 Is local caching an option?  Any chance that external machine can somehow
 serve the information directly?  Perhaps using an IFRAME element?
 --Angus
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, June 12, 2003 4:57 PM
  To: 'Tomcat-User List'
  Subject: Network access
  
  
  Hello folks, i have an application that does many requests to an
  external machine, each request is a thread that send and 
  receive text to
  process, my problem here is, some times there are so many 
  requests and i
  fear this external machine can´t accept all requests or my application
  cannot get at same time high volume text through my network. 
  Could anyone
  point the best way to send and receive high volume´s network 
  information?
  
  Best regards,
  Edson
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson


RE: Strange exception at tomcat 4.1.29 startup

2004-03-11 Thread Edson Alves Pereira
Maybe path, libraries or environment variables are different.

 --
 De:   Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 11 de março de 2004 8:32
 Para: Tomcat Users List
 Assunto:  Strange exception at tomcat 4.1.29 startup
 
 Hi all,
 
 I really can't find what I've done wrong in copying the tomcat
 environement from one machine to another. I have this exception (with
 standard server.xml) :
 
 Mar 11, 2004 12:29:36 PM org.apache.commons.digester.Digester startElement
 SEVERE: Begin event threw exception
 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 at
 org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:2
 52)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at
 org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unk
 nown Source)
 at
 org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootEl
 ementHook(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispa
 tcher.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
 pl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Any help appreciated.
 
 François.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Question on the packaging of tag libraries

2004-03-11 Thread Edson Alves Pereira
Maybe this helps.

The required extensions for a tag file are .tag if you write the file in JSP
syntax, and .tagx if the file is only composed of XML elements. The JSP 2.0
specification requires you to place the tag file in the WEB-INF/tags
directory, or a subdirectory thereof. If you want to package the tag file in
a Java Archive .jar file as part of a custom tag library, then you can store
it in META-INF/tags (or a subdirectory of META-INF/tags), and then describe
the tag file in a Tag Library Descriptor (TLD), a type of configuration
file. You do not have to describe the tag files that are placed beneath
WEB-INF/tags in a TLD, but you can, if you want to consolidate a library of
traditional custom tags and tag files in one TLD.

 --
 De:   Faine, Mark[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 11 de março de 2004 10:38
 Para: '[EMAIL PROTECTED]'
 Assunto:  Question on the packaging of tag libraries
 
 Tomcat 4.1.27 on Solaris 8
  
 I'm looking at centralizing our tag libraries that our used by several web
 applications.  Unfortunately the way one of our vendors packages their
 taglibs is not very portable.  I know class files for taglibs can (and
 should) go in a jar file and be loaded by the web app from a lib directory
 but what about tlds can they also be placed in some central location and
 loaded by every web application instead of having to maintain them in each
 web application individually.
  
 Thanks,
 -Mark
 


redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson



test

2004-03-11 Thread Edson Alves Pereira


redirect and request´s attributes doubts

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson




doubts about attributes

2004-03-11 Thread Edson Alves Pereira
Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

Regards,
Edson





RE: JProfiler... help!

2004-03-17 Thread Edson Alves Pereira
I´ll try to explain, when i profile my web-application i just use
JProfiler and tomcat ( ´cause my machine isn´t that good ). You have two
possibilities create a new process or bind JProfiler to a already running (
usually i bind JProfiler to tomcat ), then you must fill Session window to
inform JProfiler how to start your process, its very simple ( i do recomend
to test first with very small programs to get some ideas and learn how to
manage JProfiler ), after this step press start button. Try to profile a
HelloWorld made by yourself, its a good exercise.

 --
 De:   bort[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 16 de março de 2004 21:35
 Para: [EMAIL PROTECTED]
 Assunto:  JProfiler... help!
 
 Hi all
 
 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.
 
 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
 then,
 nothing happens.
 
 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.
 
 Can anyone help and/or provide some guidance?
 bort
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: JProfiler... help!

2004-03-17 Thread Edson Alves Pereira
Try this also, maybe it helps more.

http://download.ej-technologies.net/tutorials/jprofiler/tutorial_1_viewlet_s
wf.html

 --
 De:   bort[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 16 de março de 2004 21:35
 Para: [EMAIL PROTECTED]
 Assunto:  JProfiler... help!
 
 Hi all
 
 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.
 
 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
 then,
 nothing happens.
 
 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.
 
 Can anyone help and/or provide some guidance?
 bort
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: JProfiler Tomcat Integration -tyrex driver error

2004-03-19 Thread Edson Alves Pereira
I believe that there are some things in your code calling this tyrex
DataSource, try to make a find in files or take a look in the full
exception stack trace.

 --
 De:   armalai[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 18 de março de 2004 19:23
 Para: Tomcat Users List
 Assunto:  JProfiler Tomcat Integration -tyrex driver error
 
 Hi.,
In Jprofiler i just created a new session and i did select
 NewApplication Server Integration.
 then i just select servlet optin to configure my particuler web-app.
 While start profilling i'm getting error like 
 
 TyrexDataSourceFactory:  Cannot create DataSource, Exception
 java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource
 
 But i'm not at all using this tyrex driver.I'm using oracle driver in my
 web-app.
 
 Please advise me to get thru this error.
 
 Thanks.,
 MALAI
 


RE: thread deadlock problem

2004-03-19 Thread Edson Alves Pereira
Why are you trying to do this kind of control?

 --
 De:   Christian Cryder[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 19 de março de 2004 9:55
 Para: Tomcat-User
 Assunto:  thread deadlock problem
 
 Hi folks,
 
 I need to know if someone can explain the following behavior:
 
 1. client browser issues a request
 2. tomcat servlet code starts handling the request...
 a. writes an html redirect to the resp, flushes the buffer, etc
 b. thread continues processing (writing to a data structure)
 3. client browser receives 2a response and generates another request...
 a. reads data out of the data structure populated by 2b
 
 What's happening is that 2b fills up the structure and then blocks,
 waiting
 until 3a reads some of the data out, so that it can continue. The blocking
 code looks like this:
 
 ...check to see if data pipe still full
 ...timeout if we've waited too long
 
 notifyAll();
 try {
 wait(1000);
 Thread.yield();
 } catch (InterruptedException ex) {
 throw new java.io.InterruptedIOException();
 }
 
 Now what is happening is that in certain situations, the request for 3a
 never gets accepted by the server until 2b times out. I'm trying to
 understand why (and what to do about it). I have verified that the client
 not only receives the response from 2a, but it actually issues the request
 for 3a. Nevertheless, once Tomcat is in this blocking code (above) it does
 not seem to accept requests from this particular browser window, -UNTIL-
 2b
 times out.
 
 Can anyone explain this to me? Should I be blocking/yielding in some other
 fashion? Why won't Tomcat accept my subsequent requests when I'm in this
 blocking code?
 
 What I'm looking for more than just that's a stupid thing to do - I'm
 hoping someone can either
 
 a) explain the nitty-gritty of how tomcat handles writing the code back to
 the browser (and telling the browser that everything is complete) in the
 case where the thread may actually need to continue running for a longer
 period of time -or-
 
 b) offer some constructive suggestions as to where I should start looking
 in
 the tomcat code to answer those questions myself
 
 Any suggestions would be greatly appreciated...
 
 tia,
 Christian
 --
 Christian Cryder
 Internet Architect, ATMReports.com
 Project Chair, BarracudaMVC - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: JProfiler Tomcat Integration -tyrex driver error

2004-03-19 Thread Edson Alves Pereira
Maybe your server.xml there isn´t tyrex declarations, but what about
your servlets? Do you have any default inicialization?

 --
 De:   armalai[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 19 de março de 2004 11:26
 Para: Tomcat Users List
 Assunto:  Re: JProfiler Tomcat Integration -tyrex driver error
 
 Hi.,
 I do not have any config element related to tyrex.In my Server.xml i'm
 using the factory class as
 org.apache.catalina.users.MemoryUserDatabaseFactory
 and my driverC.lassName is  - oracle.jdbc.OracleDriver
 
 please check this stack trace below ...
 
 Working directory: C:\$Java\5_Tools\jprofiler3\tomcat\bin
 Executed call:
 C:\$Java\1_SDK\1.4.2_03\bin\javaw.exe -Xint -Xrunjprofiler:port=31757
 -Djava
 .endorsed.dirs=C:\$Java\5_Tools\jprofiler3\tomcat\bin;C:\$Java\5_Tools\jpr
 of
 iler3\tomcat\common\lib -Dcatalina.base=C:\$Java\5_Tools\jprofiler3\tomcat
 -
 Dcatalina.home=C:\$Java\5_Tools\jprofiler3\tomcat
 -Xbootclasspath/a:C:\$Java
 \5_Tools\jprofiler3\bin\agent.jar -classpath
 C:\$Java\1_SDK\1.4.2_03\lib\tools.jar;C:\$Java\5_Tools\jprofiler3\tomcat\b
 in
 \bootstrap.jar org.apache.catalina.startup.Bootstrap start
 
 JProfiler Protocol version 14
 JProfiler Listening on port: 31757.
 JProfiler Native library initialized
 JProfiler Hotspot VM detected
 JProfiler Waiting for a connection ...
 JProfiler Using dynamic instrumentation
 JProfiler Time measurement: elapsed time
 JProfiler CPU profiling enabled
 JProfiler Starting org/apache/catalina/startup/Bootstrap ...
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.6
 TyrexDataSourceFactory:  Cannot create DataSource, Exception
 java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource
 at
 org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDa
 ta
 SourceFactory.java:166)
 at
 org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactor
 y.
 java:164)
 at
 javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at
 com.sentori.common.util.ServiceLocator.getDatabaseConnection(ServiceLocato
 r.
 java:66)
 at
 com.sentori.common.dao.ControllerDAO.getLookupList(ControllerDAO.java:173)
 at com.sentori.ebpp.plugin.StartupPlugIn.init(StartupPlugIn.java:60)
 at
 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.jav
 a:
 1158)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
 91
 8)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.jav
 a:
 3279)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
 pl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 2004-03-19 09:19:38,955 ERROR ControllerDAO - .getLookupList: Exception
 creating DataSource: tyrex/jdbc/xa/EnabledDataSource
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.6
 end of stact trace---
 
 - Original Message - 
 From: Edson Alves Pereira [EMAIL

Parser error in web.xml

2004-03-22 Thread Edson Alves Pereira
Could someone explain why tomcat complain about it?

2004-03-22 10:54:06 ContextConfig[/osctrl-app] Parse error in application
web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'jsp' is not
unique
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2383)


Here´s my web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameosctrl/display-name
descriptionSite para controle de SSI/description


!--//--
context-param

param-nameCtx_osctrl.common.OS_cadastroUsuarioBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroUsuarioB
rhdnCTRL=IdhdnTitulo=usuário]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroPerfilBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroPerfilBr
hdnCTRL=IdhdnTitulo=perfil]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroGrupoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroGrupoBr
hdnCTRL=IdhdnTitulo=grupo]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroVinculoPerfilTelaBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroVinculoP
erfilTelaBrhdnCTRL=IdhdnTypeCTRL=numerohdnSizeCTRL=3hdnTitulo=vínculo de
perfil com telas]]/param-value
/context-param

!-- Cadastro geral: --
context-param

param-nameCtx_osctrl.common.OS_cadastroEquipeBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroEquipeBr
hdnCTRL=IdhdnTitulo=equipes de
trabalhohdnSizeCTRL=10hdnTituloCTRL=Equipe]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroRecursoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroRecursoB
rhdnCTRL=IdhdnTitulo=recursoshdnTypeCTRL=numerohdnSizeCTRL=3hdnTituloCT
RL=Recurso]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroDiretoriaBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDiretori
aBrhdnCTRL=IdhdnTitulo=diretoriahdnSizeCTRL=3hdnTypeCTRL=numerohdnTitul
oCTRL=Diretoria]]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroFaseBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroFaseBrhd
nCTRL=IdhdnTitulo=fasehdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloCTRL=Fase]
]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroSituacaoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroSituacaoB
rhdnCTRL=IdhdnTitulo=situaçãohdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloCT
RL=Situacao]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroDeptoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDeptoBr
hdnCTRL=IdhdnTitulo=departamentohdnSizeCTRL=3hdnTypeCTRL=numerohdnTitulo
CTRL=Departamento]]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroPatrocinadorBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroPatrocina
dorBrhdnCTRL=IdhdnTitulo=pstrocinador de
projetoshdnSizeCTRL=4hdnTypeCTRL=numerohdnTituloCTRL=Patrocinador]]/par
am-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroStatusBr/param-name


JSP encoding problems

2004-03-22 Thread Edson Alves Pereira
Hello folks, I created my JSP pages with JspC in the right encoding
and i can ensure everything is ok, but when i see them already compiled in
my web browser they show me a lot of encoding errors. All is made with ant,
any hint?

Regards,
Edson


RE: How to write file into webapp directory?

2004-03-22 Thread Edson Alves Pereira
I think that the easyer way is to use, getRealPath( ).

 --
 De:   Jonathan Melhuish[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 22 de março de 2004 15:02
 Para: Tomcat Users List
 Assunto:  How to write file into webapp directory?
 
 A FileOutputStream writes by default to the Tomcat bin directory.  
 What's the easiest way to write a file into the current webapp folder?
 
 TIA,
 
 Jon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


JSP suggestion

2004-03-24 Thread Edson Alves Pereira
Hello folks, i´d like to build a default jsp header to all my
jsp´page, in this header i would put all taglibs and imports i need, but i
in doubt about which is the best way to do it. Sould i make all others page
extends this header page or do a @ page import in every page? Any idea?

Regards,
Edson


RE: links encoding issue

2004-05-05 Thread Edson Alves Pereira
Take care with URL encoding, you must convert your values based on
correct URL encoding, for example: space is %20, ü is %FC, it´s just hex
based numbers.

This page can show you more information about it:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

 --
 De:   alex[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 5 de maio de 2004 5:35
 Para: [EMAIL PROTECTED]
 Assunto:  links encoding issue
 
 Hi, guys.
 
 the problem that freaks me out.
 I got a couple of thousand xml files that are processed by cocoon, firstly
 receiving requests by tomcat 5.0.18.
 Some of them (files) contain german specific symbols that are out of
 standard encoding (I mean out of [a-zA-Z]).
 And whatever I tried to get tomcat catch the file name it doesn't work.
 
 for example this one doesn't work:
 a href=de.v.f_hren.1.xmlde.v.f_hren.1.xml/a
 and there's this line at the beginning too:
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 
 gentoo linux, I assume tomcat uses utf-8.
 
 Is there a specific option for that thing, or tomcat uses JRE settings?
 Anyway, does someone got on with a problem like this one?
 
 I can't rename the file names as that's a part of a project that I'm not
 the one who can do such modifications.
 
 any issues would be appreciated.
 
 best regards,
 alex.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


taglibs - strange behavior

2003-09-29 Thread Edson Alves Pereira
Hello folks, tomcat-4.1.24 just recognize our taglibs if we put the
.tld file inside a directory named WEB-INF, i mean, if you named this
directory like web-inf, Web-Inf or WeB-InF and so on, Tomcat ignore, even
inside M$-Windows this happen.


RE: taglibs - strange behavior

2003-09-29 Thread Edson Alves Pereira
So if i write web-inf or web-INF in my web.xml the directory name
must be the same, even with Windows. Isn´t it?

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 29 de setembro de 2003 16:22
 Para: Tomcat Users List
 Assunto:  RE: taglibs - strange behavior
 
 
 Howdy,
 Like most strings in java, the WEB-INF directory name is case-sensitive.
 WEB-INF is not the same as Web-Inf or any other case permutation.  The
 former is the one required by the servlet specification.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 29, 2003 3:10 PM
 To: 'Tomcat-User List'
 Subject: taglibs - strange behavior
 
  Hello folks, tomcat-4.1.24 just recognize our taglibs if we put
 the
 .tld file inside a directory named WEB-INF, i mean, if you named this
 directory like web-inf, Web-Inf or WeB-InF and so on, Tomcat ignore,
 even
 inside M$-Windows this happen.
 
 
 
 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]
 


RE: taglibs - strange behavior

2003-09-29 Thread Edson Alves Pereira
Ok, now i´m understand.
Thank you for your help.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 29 de setembro de 2003 16:35
 Para: Tomcat Users List
 Assunto:  RE: taglibs - strange behavior
 
 
 Howdy,
 Whereever you refer to the WEB-INF directory, do so in all upper case.
 This applies to settings in your web.xml file, to code you write, and to
 directories you create in the file system, whatever the operating system
 may be.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 29, 2003 3:32 PM
 To: 'Tomcat Users List'
 Subject: RE: taglibs - strange behavior
 
  So if i write web-inf or web-INF in my web.xml the directory name
 must be the same, even with Windows. Isn´t it?
 
  --
  De:Shapira, Yoav[SMTP:[EMAIL PROTECTED]
  Responder: Tomcat Users List
  Enviada:   segunda-feira, 29 de setembro de 2003 16:22
  Para:  Tomcat Users List
  Assunto:   RE: taglibs - strange behavior
 
 
  Howdy,
  Like most strings in java, the WEB-INF directory name is
 case-sensitive.
  WEB-INF is not the same as Web-Inf or any other case permutation.  The
  former is the one required by the servlet specification.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 29, 2003 3:10 PM
  To: 'Tomcat-User List'
  Subject: taglibs - strange behavior
  
Hello folks, tomcat-4.1.24 just recognize our taglibs if we put
  the
  .tld file inside a directory named WEB-INF, i mean, if you named this
  directory like web-inf, Web-Inf or WeB-InF and so on, Tomcat ignore,
  even
  inside M$-Windows this happen.
 
 
 
  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]
 
 
 
 
 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]
 


taglibs - writing dynamically tag´s name

2003-10-02 Thread Edson Alves Pereira
Hello dudes, i have some tags to manipulate primitive types like,
fieldInt, fieldText, fieldDate, etc. My problem is, i´d like in some
way dynamic define those tags dynamically in my JSP page, because i´m trying
to create so template pages and some field´s types i would pass as request
parameter. Any idea?

Regards,
Edson


RE: Tag Libraries in host other than the main server.

2003-10-03 Thread Edson Alves Pereira
Check WEB-INF directory to see if its name is in the same way as
web.xml, because its case-sensitive.

Regards,
Edson

 --
 De:   Wade Chandler[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 3 de outubro de 2003 16:29
 Para: 'Tomcat Users List'; [EMAIL PROTECTED]
 Assunto:  RE: Tag Libraries in host other than the main server.
 
 I thought I would give a run down of my setup.
 
 I have my web.xml file.  I am not using long URIs.  I am using URIs of
 the form apache_taglibname in my web.xml file, but don't assume this is
 the problem.  The URIs are definitely unique in the host or context.
 The host I am running has it's files out side of the application
 directory.  They reside in a folder
 /usr/servers/tomcat/server/cltractor/ROOT.  I have my context setup
 correctly.  I can run an jsp pages I want as long as I don't need to
 have any tag libraries installed as well.  I have this web page running
 and it runs fine: www.cltractor.com.  This is the host I am trying to
 run under.  Again, thanks for any help and it is appreciated.
 
 This is my web.xml file:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-namewww.cltractor.com/display-name
 description
   New and Used Tractor Parts.
/description
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
   taglib
   taglib-uriapache_mailer/taglib-uri
   
 taglib-location/WEB-INF/taglibs-mailer.tld/taglib-location
   /taglib
   taglib
   taglib-uriapache_request/taglib-uri
   
 taglib-location/WEB-INF/taglibs-request.tld/taglib-location
   /taglib
   taglib
   taglib-uriapache_response/taglib-uri
   
 taglib-location/WEB-INF/taglibs-response.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_session/taglib-uri
   
 taglib-location/WEB-INF/taglibs-session.tld/taglib-location
   /taglib
   taglib
   taglib-uriapache_page/taglib-uri
   
 taglib-location/WEB-INF/taglibs-page.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_application/taglib-uri
   
 taglib-location/WEB-INF/taglibs-application.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_string/taglib-uri
   
 taglib-location/WEB-INF/taglibs-string.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_log/taglib-uri
   
 taglib-location/WEB-INF/taglibs-log.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_datetime/taglib-uri
   
 taglib-location/WEB-INF/taglibs-datetime.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_regexp/taglib-uri
   
 taglib-location/WEB-INF/taglibs-regexp.tld/taglib-location
   /taglib   
   taglib
   taglib-uriapache_dbtags/taglib-uri
   taglib-location/WEB-INF/dbtags.tld/taglib-location
   /taglib   
   
   
 /web-app
 
 Maybe I'm missing an attribute in my Context or Host tag in my ROOT.xml
 or server.xml file?
 
 Thanks again,
 
 
 Wade
 
 -Original Message-
 From: Wade Chandler [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 03, 2003 3:20 PM
 To: Tomcat User List
 Subject: Tag Libraries in host other than the main server.
 
 
 Hello,
 
  I'm using the Tomcat 5.x branch.  I'm having an issue with Tag libs
 apparently.  I downloaded an installed the mailer tag libraries.  The
 examples with installed from a WAR file to the main server run fine, but
 when I take the libs and move them into another host I get this error
 message:
 org.apache.jasper.JasperException: Unable to initialize
 TldLocationsCache: null
   at
 org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java
 :218)
   at
 org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCac
 he.java:188)
   at
 org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationCon
 text.java:557)
   at
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:452)
   at
 org.apache.jasper.compiler.Parser.parseDirective(Parser.java:514)
   at
 org.apache.jasper.compiler.Parser.parseElements(Parser.java:1562)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
   at
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:
 247)
   at
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:
 150)
   at
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:
 137)
   at
 

RE: StackOverflow

2003-10-09 Thread Edson Alves Pereira
Hello Adam, we got here StackOverflow or OutOfMemory errors it s
because our servlets consumed too much resources from JVM. when you run
Tomcat with just you in your machine everything seems fine and quick, but
with more then 100 or 200 users from production server, history is
different as we say here. Try to check profile your JVM and find out which
servlets wast more resources.

Regards,
Edson Alves Pereira

 --
 De:   Adam Hardy[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 9:56
 Para: Tomcat Users List
 Assunto:  Re: StackOverflow
 
 Fiendishly logical.
 
 But thanks for the info Yoav.
 
 On 10/09/2003 02:52 PM Shapira, Yoav wrote:
  Howdy,
  You usually don't get stack traces on StackOverflowErrors.  In fact,
  many times you won't get a stack trace for an Error at all (as opposd to
  an exception).  It's not a tomcat issue: I've seen the same behavior on
  Weblogic and Websphere.  The reason is simple: there's no room on the
  stack to store the error stack trace itself ;)
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 09, 2003 8:44 AM
 To: Tomcat Users List
 Subject: Re: StackOverflow
 
 For all those out there hanging on every msg in this thread, it seems
  
  it
  
 was just an infinite loop. Personally I think it was gremlins that came
 in last night and coded it.
 
 Remarkable how their coding style is so similar to my own. ;)
 
 At least there's one positive point, I'm learning to listen to the
 little voice in the back of my head, which told me not to put it in
 bugzilla with lots of quotes from Nietzsche and Dostoevsky.
 
 But seriously, the original error message was amazingly misleading.
  
  That
  
 my code threw the exception was my fault but tomcat couldn't handle the
 stack trace and worse, output an error message quoting my filter as the
 source.
 
 I know the filter would have been near the bottom of the stacktrace,
 since it would be amazingly long due to the infinite loop, but of
  
  course
  
 it made me think that tomcat had fallen over trying to handle the
 request before it even passed it on to struts  my code.
 
 No? Is this an issue?
 
 Adam
 
 On 10/09/2003 02:09 PM Adam Hardy wrote:
 
 OK can someone answer a simple question here:
 
 if tomcat gives me a StackOverflowError, does that mean that there is
  
  no
  
 way of getting a stack trace? Or am I making 2 + 2 = 5?
 
 Adam
 
 
 
 
 On 10/09/2003 01:45 PM Adam Hardy wrote:
 
 
 OK so I took the SetCharacterEncodingFilter out of the equation, but
 the stack overflow still occurs:
 
 StandardWrapperValve[action]: Servlet.service() for servlet action
 threw exception
 java.lang.StackOverflowError
 
 I presume [action] refers to struts, which I'm running.
 
 Any ideas anyone?
 
 On 10/08/2003 10:00 PM Adam Hardy wrote:
 
 
 I'm getting a Status 500 error page in my app
 
 javax.servlet.ServletException: Servlet execution threw an
  
  exception
  
 org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF
  
  ilte
  
 r.java:146)
 
 root cause java.lang.StackOverflowError
 
 It goes on to say that the full stack trace of the root cause is
 available in the Tomcat logs., but it isn't. I have the looked on
 the console, in the engine, host  context log files but I can't
  
  find
  
 a stack trace.
 
 Whether I need one or not is questionable - that
 SetCharacterEncodingFilter is the one from tomcat's example app and
 has been working faultlessly for at least two weeks on tomcat5.
  
  Sets
  
 encoding to UTF-8.
 
 I can't think of what I have changed that has caused this, so I am
  
  at
  
 a loss. There's nothing in bugzilla that looks like this, and I
  
  can't
  
 see anything relevant in the archives.
 
 It's reproducible, every time at the same place. Is there anything
  
  I
  
 can do or should I just log it straight into bugzilla?
 
 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]
  
  
  
  
  
  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]
  
  
 
 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9

RE: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Edson Alves Pereira
Usually you should return every connection to your Persistence
mechanism, you cannot close the connection, because if do that other process
won´t use it.

 --
 De:   Jose Euclides da Silva Junior -
 DATAPREVRJ[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 10:26
 Para: '[EMAIL PROTECTED]'
 Assunto:  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]
 


RE: Charset encoding issue (again :-))

2003-10-09 Thread Edson Alves Pereira
The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in
JAVA_OPTS, with this you ensure that your JVM is using the encoding that you
want.

 --
 De:   Daniel H A Lima[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 10:45
 Para: Tomcat Users List
 Assunto:  Charset encoding issue (again :-))
 
 Hi, everybody. I've some doubts about html form charset encoding. I 
 will be glad if someone could answer questions above.
 
 1 ) We have jsp files with directive %@ page language=java 
 pageEncoding=utf-8 contentType=text/html;charset=utf-8 %
 and some classes with the following working code :
 
 if ( request.getEncoding() == null ) {
   String s = request.getParameter( some_param );
   byte [] b = s.getBytes( iso-8859-1);
   s = new String( b, utf-8 );
 }
 
   a) Will it work for any charset encoding ? If i replace utf-8 for 
 windows-1251 this code will still work ?
   b) Is there another clean way to use utf-8 in my jsp pages ?

I've read the document in http://tagunov.tripod.com/i18n/i18n.html 
 but i'm not sure if i could understand it.   :-(
 
 2 ) When i use request.setEncoding( windows-1251) and 
 request.getParameter( some_param ), which one of these sentences will 
 be true ?
 
 a) request.getParameter() will do
 
 byte [] b = s.getBytes( iso-8859-1);
 return new String( b, windows-1251 );
 
 b) request.getParameter() will do
  
 byte [] b = s.getBytes( windows-1251 );
 return new String( b );   
 
 c) request.getParameter() will do
  
 byte [] b = s.getBytes( windows-1251 );
 return new String( b, windows-1251 );   
 
 d) request.getParameter() will do
 
 byte [] b = s.getBytes();
 return new String( b, windows-1251 );
 
 
 Thanks in advance 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Charset encoding issue (again :-))

2003-10-09 Thread Edson Alves Pereira
Then, you could create a class that would convert strings from some
encoding that you don´t known and transform to UTF-8 and that class load its
configuration from a local .properties file to make it flexible, for
example:

public String getParameter( String stName_ )
{
//This will change the native encoding to you favorite one:
byte[ ]b = request.getParameter( MyParam ).getBytes(
UTF-8 );

return new String( b ); //To use default encoding:
return new String( b, UTF-8 );//Some different:
}


 --
 De:   Daniel H A Lima[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 11:11
 Para: Tomcat Users List
 Assunto:  Re: Charset encoding issue (again :-))
 
 But with this approach, all web apps running under the same JVM will use 
 this encoding. We want to avoid this...
 
 Edson Alves Pereira wrote:
 
  The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in
 JAVA_OPTS, with this you ensure that your JVM is using the encoding that
 you
 want.
 
   
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: String added to session in servlet not available in jsp

2003-10-09 Thread Edson Alves Pereira
When i need to get session variables or objects i use Taglibs, its
do a good job.

 --
 De:   [EMAIL PROTECTED]:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 12:01
 Para: Tomcat Users List
 Assunto:  RE: String added to session in servlet not available in jsp
 
 Yoav,
 
 Very good point. The sessionid from the servlet is different to the one in
 the browser, as shown below.
 
 Ser: 1DFADA80613F3BE01C86A5C6DE2501A8
 jsp: AEAE6C4879702A3CF4254FF85B778D81
 
 Rudi
 
  Howdy,
  If you display the session ID before adding the user name, and then in
  your JSP as you already do, are they the same session?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 09, 2003 10:44 AM
 To: [EMAIL PROTECTED]
 Subject: String added to session in servlet not available in jsp
 
 Hi,
 
 I created a session object and added a string (username) to it.
 Systemout.println shows the username from the request. My page is then
 forwarded to another as follows:
 
 RequestDispatcher disp = ctx.getRequestDispatcher(target);
 disp.forward(request, response);
 
 On this jsp page, I have teh following code:
 
   String usr = (String)session.getAttribute(usr);
   out.println(User:  + usr + !);
   out.println(Session Id:   + session.getId());
 
 The page displays the session Id but not the usr.
 
 I'm quite baffled at why this is the case.
 
 looking in google for similar problems, but any help would be much
 appreciated!
 
 Rudi
 
 -
 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]
 


doubt about environment tag!

2003-10-20 Thread Edson Alves Pereira
Hello folks, i´m trying to create a default attribute for all
sessions in my context, to do it i wrote this in my server.xml:

Context ... 
Environment name=database-name
type=java.lang.String
value=Oracle/
/Context

My problem here is, how do i get this value from a servlet? I´m
trying to do this on init( ) method as follow:

 public void init( ServletConfig cfg_ )
throws ServletException
 {
doSomething( cfg_.getServletContext( ).getAttribute( database-name );
  }


What did i wrong?

Regards,
Edson


encoding issues with HTML pages

2003-10-28 Thread Edson Alves Pereira
Hello folks, this a different kind of matter, i have some web pages
under a web-server. My pages are displayed with strange characters, an
encoding problem, this web-server is for public use and i don´t have
administrator previlegies. Is there a way to make my HTML pages displays
correctly whatoever is the server encoding?

Regards,
Edson


Multiple requests to the same servlet is problem

2003-10-29 Thread Edson Alves Pereira
Hello folks, i have one page with iframes, each iframe has a GET
request, to a servlet that must bring description for a product code, and
therefore each iframe has a different request like:

url=/osctrl/exec/ProductDescription?code=478541.1

But when tomcat seems to confuse those three request and all of then
display errors or the first request is displayed for all! Why does this
happen?

Regards,
Edson


RE: Multiple requests to the same servlet is problem

2003-10-29 Thread Edson Alves Pereira
There´s no variable that would control that behavior, if reload each
iframe, one after another, it fine ( using mouse for example ). But tell me,
a thread-safe servlet could change this situation?

 --
 De:   Bodycombe, Andrew[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 29 de outubro de 2003 9:08
 Para: 'Tomcat Users List'
 Assunto:  RE: Multiple requests to the same servlet is problem
 
 Sounds like your servlet is not thread-safe. Have you got any instance
 variables declared in your servlet class?
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
 Sent: 29 October 2003 13:07
 To: 'Tomcat-User List'
 Subject: Multiple requests to the same servlet is problem
 
 
   Hello folks, i have one page with iframes, each iframe has a GET
 request, to a servlet that must bring description for a product code, and
 therefore each iframe has a different request like:
 
 url=/osctrl/exec/ProductDescription?code=478541.1
 
   But when tomcat seems to confuse those three request and all of then
 display errors or the first request is displayed for all! Why does this
 happen?
 
   Regards,
   Edson
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Thread-safe servlets ( best way to store an attribute on session )

2003-10-29 Thread Edson Alves Pereira
Hello folks, which is best way to store an object in a session? I
want to ensure that one servlet´s thread cannot access the same object from
other thread of the same instance. How it could be done?

Regards,
Edson


RE: Multiple requests to the same servlet is problem

2003-10-30 Thread Edson Alves Pereira
No, but i store my database connection into a Session Attribute with
servlet´s name. Now i now that´s reason for my problem, i´ll try to use JNDI
DataSource, i hope it helps.

 --
 De:   [EMAIL PROTECTED]:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 29 de outubro de 2003 9:55
 Para: Tomcat Users List
 Assunto:  Re: Multiple requests to the same servlet is problem
 
 Can you post the servlet code?
 Are you using global variables in you logic?
 If so, you probably have a threading issue.
 
 
 
 On Wednesday 29 October 2003 08:07 am, you wrote:
  Hello folks, i have one page with iframes, each iframe has a GET
  request, to a servlet that must bring description for a product code,
 and
  therefore each iframe has a different request like:
 
  url=/osctrl/exec/ProductDescription?code=478541.1
 
  But when tomcat seems to confuse those three request and all of then
  display errors or the first request is displayed for all! Why does this
  happen?
 
  Regards,
  Edson
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


where should i store a attribute

2003-10-31 Thread Edson Alves Pereira
Hello folks, i´m trying to store a database connection in a session
attribute or request attribute, but i must choose a name that just one
thread per time would knowns. Any idea?

Regards,
Edson


problems with dbcp

2003-11-03 Thread Edson Alves Pereira
Hello folks, i followed what is written in tomcat-4.1.x´s JDNI
DataSource documentation, but i getting this error:

java.sql.SQLException: DBCP could not obtain an idle db connection, pool
exhausted

The machanism is not returning my connection to pool, what do i
should do? Do i really need tirex as Persistence Layer?  Here is my DBCP
configuration:

Resource name=jdbc/OracleDS
auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/OracleDS
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
namemaxActive/name
value10/value
/parameter


parameter
namemaxIdle/name
value30/value
/parameter

parameter
namemaxWait/name
value1/value
/parameter

parameter
nameusername/name
valueblah/value
/parameter
parameter
namepassword/name
valueblah/value
/parameter  

parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
/parameter

parameter
nameurl/name
valuejdbc:oracle:thin:@000.000.000:blah/value
/parameter

parameter
namevalidationQuery/name
valueselect sysdate from dual/value
/parameter

parameter
nameremoveAbandoned/name
valuetrue/value
/parameter

parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter

parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

As i wrote above, DBCP should revover all connection objects and
close automatic everything, but is not. Any idea?

Regards,
Edson


RE: problems with dbcp

2003-11-03 Thread Edson Alves Pereira
But removeAbandoned and removeAbandonedTimeout doesn´t close
all ResultSet, Statement and Connections even if they are forsaken?


 --
 De:   Florian Ebeling[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 9:51
 Para: Tomcat Users List
 Assunto:  Re: problems with dbcp
 
 Hi,
 
 you probably do nor close some statement, resultSet or connection. When 
 using CP one has to do this always explicitly.
 
 Tyrex is an alternative CP implementation which has been replaced by DBCP.
 
 Edson Alves Pereira wrote:
 
  Hello folks, i followed what is written in tomcat-4.1.x´s JDNI
  DataSource documentation, but i getting this error:
  
  java.sql.SQLException: DBCP could not obtain an idle db connection, pool
  exhausted
  
  The machanism is not returning my connection to pool, what do i
  should do? Do i really need tirex as Persistence Layer?  Here is my DBCP
  configuration:
  
  Resource name=jdbc/OracleDS
  auth=Container
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/OracleDS
  parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  
  parameter
  namemaxActive/name
  value10/value
  /parameter
  
  
  parameter
  namemaxIdle/name
  value30/value
  /parameter
  
  parameter
  namemaxWait/name
  value1/value
  /parameter
  
  parameter
  nameusername/name
  valueblah/value
  /parameter
  parameter
  namepassword/name
  valueblah/value
  /parameter  
  
  parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  
  parameter
  nameurl/name
  valuejdbc:oracle:thin:@000.000.000:blah/value
  /parameter
  
  parameter
  namevalidationQuery/name
  valueselect sysdate from dual/value
  /parameter
  
  parameter
  nameremoveAbandoned/name
  valuetrue/value
  /parameter
  
  parameter
  nameremoveAbandonedTimeout/name
  value60/value
  /parameter
  
  parameter
  namelogAbandoned/name
  valuetrue/value
  /parameter
  /ResourceParams
  
  As i wrote above, DBCP should revover all connection objects and
  close automatic everything, but is not. Any idea?
  
  Regards,
  Edson
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: DBCP error

2003-11-03 Thread Edson Alves Pereira
And what about the exception? Which is the message?

 --
 De:   [EMAIL PROTECTED]:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 10:11
 Para: Tomcat Users List
 Assunto:  DBCP error
 
 
 Help me, please, to set Tomcat DBCP !
 
 Configuration: Tomcat 4.1.27, Oracle 9i.
 
 1. Struts DBCP works well.
 
 2. Files classes12.jar, commons-collections, -pool, -dbcp
has been removed from WEB-INF/lib into commons\lib .
 3. web.xml
 resource-ref
 descriptionDatabase Reference/description
 res-ref-namejdbc/BANK/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 env-entry
 env-entry-namejndi-datasource-name/env-entry-name
 env-entry-valuejdbc/BANK/env-entry-value
 env-entry-typejava.lang.String/env-entry-type
 /env-entry
 
 4.  GetConnection:
 
Error in line conn=ds.getConnection() .
printStackTrace() - cannot load JDBC driver class 'null' .
 
Context ic = new InitialContext() ;
Context env = (Context) ic.lookup(java:/comp/env) ; 
 
DataSource ds = (DataSource) env.lookup(jdbc/BANK) ; 

try {
conn=ds.getConnection() ;  ERROR .
System.out.println(  Connection  ) ;
}
catch ( java.sql.SQLException sqle )
{
   System.out.println(  ds.Connection exception  ) ;
   sqle.printStackTrace() ;
}
 
 5. Server.xml
 
Resource name=jdbc/BANK auth=Container
 type=javax.sql.DataSource/
 
 ResourceParams name=jdbc/BANK
   parameter
 namefactory/name
  
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:oracle:thin:@localhost:1521:XXX/value
   /parameter
   parameter
 nameusername/name
 valueuname/value
   /parameter
   parameter
 namepassword/name
 valuepwd/value
   /parameter
   parameter
 namemaxActive/name
 value20/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
   parameter
 namemaxWait/name
 value-1/value
   /parameter
  /ResourceParams
 
 
 
 
 Thank in advance !
  Andrey  mailto:[EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: problems with dbcp

2003-11-03 Thread Edson Alves Pereira
That´s true, but i thought that DBCP would close everything for me!
I can do that. The point here is, DBCP configuration tells: i´ll close all
resources for you and it´s not!

 --
 De:   Peter Guyatt[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 10:30
 Para: Tomcat Users List; [EMAIL PROTECTED]
 Assunto:  RE: problems with dbcp
 
 Hi,
 
   Why dont you override the finialize method so that when your objects
 fall
 out of scope and are garbage collected then you close the connections ?
 
 Thanks
 
 Pete
 
 -Original Message-
 From: Florian Ebeling [mailto:[EMAIL PROTECTED]
 Sent: 03 November 2003 13:27
 To: Tomcat Users List
 Subject: Re: problems with dbcp
 
 
 Ok. That's the same point I am currently trying to solve. I
 intentionally leave connections open, but they don't get freed. Perhaps
 someone else could comment here?
 
 -Florian
 
 my settings in server.xml---
 
 Resource name=jdbc/TomcatDS
 auth=Container
 type=javax.sql.DataSource/
 
ResourceParams name=jdbc/TomcatDS
  parameter
namefactory/name
  
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 
  !-- Maximum number of dB connections in pool. Make sure you
   configure your mysqld max_connections large enough to handle
   all of your db connections. Set to 0 for no limit.
   --
  parameter
namemaxActive/name
value20/value
  /parameter
 
  !-- Maximum number of idle dB connections to retain in pool.
   Set to 0 for no limit.
   --
  parameter
namemaxIdle/name
value5/value
  /parameter
 
  !-- Maximum time to wait for a dB connection to become
 available
   in ms, in this example 10 seconds. An Exception is thrown if
   this timeout is exceeded.  Set to -1 to wait indefinitely.
   --
  parameter
namemaxWait/name
value1/value
  /parameter
 
  parameter
   nameusername/name
   valuecaspar/value
  /parameter
  parameter
   namepassword/name
   valuegeheim/value
  /parameter
 
  parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
  /parameter
 
  !-- The JDBC connection url for connecting to your MySQL dB.
   The autoReconnect=true argument to the url makes sure that
 the
   mm.mysql JDBC Driver will automatically reconnect if
 mysqld closed the
   connection.  mysqld by default closes idle connections
 after 8 hours.
   --
  parameter
nameurl/name
 
 valuejdbc:mysql://localhost:3306/tomcatds?autoReconnect=true/value
  /parameter
 
  !-- Umgang mit nicht geschlossenen Statements, Connections
 und
   ResultSets.
  --
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
 
  parameter
nameremoveAbandonedTimeout/name
value10/value
  /parameter
 
  parameter
namelogAbandoned/name
valuetrue/value
  /parameter

  /ResourceParams
 
 Edson Alves Pereira wrote:
 
  But removeAbandoned and removeAbandonedTimeout doesn´t close
  all ResultSet, Statement and Connections even if they are forsaken?
 
 
 
 --
 De: Florian Ebeling[SMTP:[EMAIL PROTECTED]
 Responder:  Tomcat Users List
 Enviada:segunda-feira, 3 de novembro de 2003 9:51
 Para:   Tomcat Users List
 Assunto:Re: problems with dbcp
 
 Hi,
 
 you probably do nor close some statement, resultSet or connection. When
 using CP one has to do this always explicitly.
 
 Tyrex is an alternative CP implementation which has been replaced by
 DBCP.
 
 Edson Alves Pereira wrote:
 
 
Hello folks, i followed what is written in tomcat-4.1.x´s JDNI
 DataSource documentation, but i getting this error:
 
 java.sql.SQLException: DBCP could not obtain an idle db connection,
 pool
 exhausted
 
The machanism is not returning my connection to pool, what do i
 should do? Do i really need tirex as Persistence Layer?  Here is my
 DBCP
 configuration:
 
 Resource name=jdbc/OracleDS
 auth=Container
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/OracleDS
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
 parameter
 namemaxActive/name
 value10/value
 /parameter
 
 
 parameter
 namemaxIdle/name
 value30/value
 /parameter

RE: problems with dbcp

2003-11-03 Thread Edson Alves Pereira
I have here tomcat-4.1.24.

 --
 De:   Florian Ebeling[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 12:52
 Para: Tomcat Users List
 Assunto:  Re: problems with dbcp
 
 Hi,
 
 Edson Alves Pereira wrote:
  Hello folks, i followed what is written in tomcat-4.1.x´s JDNI
  DataSource documentation, but i getting this error:
  
  java.sql.SQLException: DBCP could not obtain an idle db connection, pool
  exhausted
 
 Edson, which Tomcat versions do you use? I was puzzled why the example 
 would not work and moved from my 4.1.24 to the most recent one, 4.1.29. 
 Now it works without any further changes. I for one found it helpful to 
 use my old configuration and custom app files by specifying 
 CATALINA_BASE as to point to the old tomcat installation dir.
 
 -Florian
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Applets and SSL

2003-11-03 Thread Edson Alves Pereira
How are you setting codebase property? Is it full url address? 

Like: codebase=http://www.blah.com.de/applets/;

 --
 De:   Gregor Kovac([SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 16:53
 Para: [EMAIL PROTECTED]
 Assunto:  Applets and SSL
 
 Hi!
 
 I have a working webapp that uses one applet to send some data back to 
 server. It does wor as expected only on plain HTTP 8080 or 80 port.
 But if I turn on the 8443 (SSL) and try to load a JSP page that has an 
 applet embedded inside I get a ClassNotFoundException on the client 
 side's plugin Console.
 
 Anyone getting this one too? How to solve it?
 
 Best regards,
   Kovi
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Applets and SSL

2003-11-04 Thread Edson Alves Pereira
Maybe your problem is a relative URL in the codebase, try to use
something like this:

codebase=https://www.blah.com/applets;
code=my-applet.class

I´m thinking that if you don´t specify the protocol your web-browser
will try to use the default HTTP port like 80.

 --
 De:   Gregor Kovac([SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 3 de novembro de 2003 19:31
 Para: Tomcat Users List
 Assunto:  Re: Applets and SSL
 
 Hi!
 
 The whole application WORKS under HTTP.
 But when I turn on SSL Connector on port 8443 I get ClassNotFound
 exception.
 Codebase is set like: codebase=applet.
 
 I'm using JDK 1.4.2 on client side and I'+m using plain applet tag not 
 jsp:plugin.
 
 Best regards,
   Kovi
 
 Edson Alves Pereira wrote:
  How are you setting codebase property? Is it full url address? 
  
  Like: codebase=http://www.blah.com.de/applets/;
  
  
 --
 De: Gregor Kovac([SMTP:[EMAIL PROTECTED]
 Responder:  Tomcat Users List
 Enviada:segunda-feira, 3 de novembro de 2003 16:53
 Para:   [EMAIL PROTECTED]
 Assunto:Applets and SSL
 
 Hi!
 
 I have a working webapp that uses one applet to send some data back to 
 server. It does wor as expected only on plain HTTP 8080 or 80 port.
 But if I turn on the 8443 (SSL) and try to load a JSP page that has an 
 applet embedded inside I get a ClassNotFoundException on the client 
 side's plugin Console.
 
 Anyone getting this one too? How to solve it?
 
 Best regards,
 Kovi
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Tomcat oracle 9 question

2003-11-04 Thread Edson Alves Pereira
You must put your Oracle driver in common/lib also, where tomcat
will try to find for its only use. Do that and tell us if went everything
ok.

 --
 De:   Didier Wiroth[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 4 de novembro de 2003 12:11
 Para: [EMAIL PROTECTED]
 Assunto:  Tomcat oracle 9 question
 
 Hi, 
 
 We have windows 2000 server running oracle 9.2.0.1.
 
 I've installed a freebsd machine running tomcat 4.1.27 which has the
 following config in server.xml:
 start snip--
 Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true
 
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 cookies=true crossContext=false debug=1
  displayName=Apache-Axis
 docBase=our_application
 mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/our_application privileged=false
 reloadable=false swallowOutput=false useNaming=true
 
 wrapperClass=org.apache.catalina.core.StandardWrapper
 Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=localhost_our_application_log. suffix=.txt
 timestamp=true/
 Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/myoracle
 parameter
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 namedriverClassName/name
 
 valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
 nameurl/name
 
 valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value
 /parameter
 parameter
 nameusername/name
 valuexyz/value
 /parameter
 parameter
 namepassword/name
 valuexyz/value
 /parameter
 parameter
 namemaxActive/name
 value80/value
 /parameter
 parameter
 namemaxIdle/name
 value40/value
 /parameter
 parameter
 namemaxWait/name
 value1/value
 /parameter
 /ResourceParams
 /Context
 --end snip -
 I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the
 webapplication
 WEB-INF/lib directory
 1) ojdbc14.jar
 2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are
 present)
 
 The web.xml of the webapplication has the following lines: 
 -start snip-
 resource-ref
   descriptionmysql connection/description
   res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
 -stop snip
 
 Here is stdout.log
 start snip
 Apache Tomcat/4.1.27
 WebappClassLoader:
 validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourdatabase/WEB-INF/l
 ib
 /servlet.jar) - jar not
 loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
 javax/servlet/Servlet.class
 NoKey
 getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in
 this Context
 NoKey
 - (null) :  javax.naming.NameNotFoundException: Name NoKey is not bound in
 this Context
 -stop snip
 
 Unfortunately it doesn't work :-( there are no database connections. Do I
 also need to install an oracle 9i client (I don't hope because freebsd
 doesn't have an available client)
 
 Thanks for any kind of help
 Didier
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


war file tips

2003-11-05 Thread Edson Alves Pereira
Hello folks, i´m making a war file to deploy under tomcat-4.1.24,
but there is something that i don´t known. I need to put my TLD files inside
WEB-INF, how can i do that? Here´s my simple XML, as example.

?xml version=1.0?
!--/--
projectname=osctrl
basedir=/tmp
default=dist
property name=src value=/desenv/

  property name=pannet_home value=/desenv/pannet/
  property name=src value=${pannet_home}/src/servlets/
  property name=tomcat value=/usr/local/ApacheGroup/tomcat-4.1.24/

target name=dist
warwarfile=osctrl-app.war
webxml=${src}/osctrl/src/web.xml
!-- Arquivos do raiz: --
fileset dir=${src}/osctrl/src/html/

fileset dir=${src}/osctrl/src/jsp
exclude name=cadastro/
exclude name=util/
/fileset

lib dir=${tomcat}/shared/lib
exclude name=*.zip/
/lib

classes dir=${src}/osctrl/classes/

zipfileset dir=${src}/osctrl/src/jsp
prefix=jsp/
zipfileset dir=${src}/osctrl/src/img
prefix=img/
zipfileset dir=${src}/osctrl/src/css
prefix=css/
zipfileset dir=${src}/osctrl/src/js prefix=js/

zipfileset
dir=${src}/pannet/src/servlets/panfinance/jsp

prefix=jsp/
/war
/target
/project
!--/--

My TLD files are stored in =${src}/osctrl/src/taglib and i must
put inside WEB-INF, should do i do this?
zipfileset dir=${src}/osctrl/src/taglib prefix=WEB-INF/


Regards,
Edson


servlet invoker

2003-11-06 Thread Edson Alves Pereira
Hello folks, does anyone knows how can i get the Invoker URI inside
a servlet?

Regards,
Edson


RE: Multiple webapps talking to same DB

2003-11-06 Thread Edson Alves Pereira
If you want to create a default database for all web-apps ( i don´t
known if you want the same database´s user also ), you should add a JNDI
datasource in GlobalNamingResources, try to use tomcat´s manager. Remeber,
you must put your JDBC driver in common/lib also, because tomcat need it to
create the datasource, but in your case, maybe you did try a simple
connection and forgot to put JDBC driver in shared/lib or WEB-INF/lib.

 --
 De:   [EMAIL PROTECTED]:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 6 de novembro de 2003 10:22
 Para: [EMAIL PROTECTED]
 Assunto:  Multiple webapps talking to same DB
 
 Version of Tomcat - 4.1.24
 OS - WinXP (development workstation)
 DB - MySQL 4.0.13
 
 I currently have a single webapp (test1) that can connect to the database
 and
 perform DB operations just fine. This uses JSP, Servlets and JDBC.
 What I want to do is have other webapps connect to the same database. Here
 is
 what I did:
 1. I copied my existing webapp, tomcat_home\webapps\test1 and created
 tomcat_home\webapps\test2.
 2. I restarted tomcat and when invoking the test2 webapp, I get the
 following
 error: java.sql.SQLException: Cannot load JDBC driver class 'null'
 This error happens when I call the getConnection() method on the
 DataSource
 object.
 
 I believe I don't have the correct configuration in the server.xml for the
 webapp, test2. I tried several different ways to try and get this to work,
 but
 those have
 failed so far.
 
 So, when making a straight copy of one webapp like I did above, what would
 need
 to change in the server.xml (in the MySQL section) to get this to work?
 Or, would the culprit be some other configuration?
 
 Thanks for any help on this,
 Kevin
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


jsp compiling and deploy

2003-11-07 Thread Edson Alves Pereira
Hello folks, i´m trying to deploy my web-application from my
developer environment ( Tomcat-4.1.24 ) to a Oracle9iAS ( Production ),
could anyone point me how i can compile my JSP pages and deploy in other
servlet-engine?

Regards,
Edson


ant jspc task and tomcat-4.1.24

2003-11-07 Thread Edson Alves Pereira
Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
trying to compile some JSP pages but i´m getting this error:

D:\desenv\osctrl\buildant
Buildfile: build.xml

compilar-jsp:
 [jspc] Compiling 3 source
filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
sp
  [jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp' generated
the f
ollowing general exception: java.lang.NullPointerException
  [jasperc] error:org.apache.jasper.JasperException: Error compiling
\frmMenu_.j
sp
  [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)

BUILD FAILED
file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9

Total time: 5 seconds


RE: ant jspc task and tomcat-4.1.24

2003-11-07 Thread Edson Alves Pereira
That´s right, but i must put those JSP files in Oracle9iAS (
production server ) and i really must compile them to bring it ready.

 --
 De:   Filip Hanik[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 7 de novembro de 2003 16:08
 Para: Tomcat Users List
 Assunto:  Re: ant jspc task and tomcat-4.1.24
 
 you are way better off compiling into the work dir, that way you can still
 change JSPs on the fly
 http://cvs.apache.org/~fhanik/precompile.html and benefit from
 precompilation
 
 Filip
 
 - Original Message -
 From: Steph Richardson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 11:06 AM
 Subject: RE: ant jspc task and tomcat-4.1.24
 
 
 Yes it is possible. I am currently using it, there was some discussion on
 this :
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html
 
 I think your problem may be that you haven't set the compiler=jasper41
 attribute in the jspc element, as in :
 jspc
 srcdir=${rootdir}
 destdir=${webapp.workdir}
 failonerror=false
 classpathref=jspc_parse.classpath
 package=org.apache.jsp
 compiler=jasper41
 
 
 
 
 
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
  Sent: Friday, November 07, 2003 2:53 PM
  To: 'Tomcat-User List'
  Subject: ant jspc task and tomcat-4.1.24
 
 
  Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
  trying to compile some JSP pages but i´m getting this error:
 
  D:\desenv\osctrl\buildant
  Buildfile: build.xml
 
  compilar-jsp:
   [jspc] Compiling 3 source
  filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
  sp
[jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp'
 generated
  the f
  ollowing general exception: java.lang.NullPointerException
[jasperc] error:org.apache.jasper.JasperException: Error compiling
  \frmMenu_.j
  sp
[jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
[jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
[jasperc] at org.apache.jasper.JspC.main(JspC.java:823)
 
  BUILD FAILED
  file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9
 
  Total time: 5 seconds
 
 
 
 -
 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]
 


encoding problems with XML

2003-11-10 Thread Edson Alves Pereira
Hello folks, i´m trying to write some special characters in a XML
file, like:
company Doubs  Noble/company

But i don´t known the right encoding to [  ] be validate properly,
any idea?

Regards,
Edson




RE: DBCP could not obtain an idle db connection, pool exhausted

2003-11-11 Thread Edson Alves Pereira
Maybe our problem here is the DBCP itself, i´m trying to test
Evermind´s Oracle DBCP. I´ll see if the same happen.

 --
 De:   Galbayar[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 11 de novembro de 2003 3:31
 Para: Tomcat Users List
 Assunto:  RE: DBCP could not obtain an idle db connection, pool
 exhausted
 
 
 Yes
 I have closed ResultSet, Statement and Connection
 
  Have you tried to close ResultSet, Statement and Connection after each
  use?
 
  -Original Message-
  From: Galbayar [mailto:[EMAIL PROTECTED]
  Sent: November 10, 2003 4:50 AM
  To: Tomcat Users List
  Subject: DBCP could not obtain an idle db connection, pool exhausted
 
  How to solve this problem?
 
  I'm using
  Tomcat 4.1.27
  J2SDK (build 1.4.1_03-b02
  Tyrex 1.0
  Commons DBCP 1.1
  MySQL ConnectorJ version 3.0.8
 
 
  My server.xml configuration
 
  Context ...
  Resource name=jdbc/sss auth=Container type=javax.sql.DataSource/
 
ResourceParams name=jdbc/sss
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 
  parameter
namemaxActive/name
value20/value
  /parameter
 
  parameter
namemaxIdle/name
value20/value
  /parameter
 
  parameter
namemaxWait/name
value1/value
  /parameter
 
 
  parameter
   nameusername/name
   valueusername/value
  /parameter
 
  parameter
   namepassword/name
   valuepassword/value
  /parameter
 
 
  parameter
 namedriverClassName/name
 valueocom.mysql.jdbc.Driver/value
  /parameter
 
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/sss?autoReconnect=true/value
  /parameter
/ResourceParams
/Context
 
 
 
  Galbayar. D
  Senior software engineer
  Mobile Business Development
  Business Development Division
 
  MobiCom Corporation
  Peace Avenue 3/1
  P.O Box 20A
  Ulaanbaatar 210620
  Mongolia
 
 
  - 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]
 


just a debug matter

2003-11-12 Thread Edson Alves Pereira
Hello folks, i usually use JDB to debug my servlets, and some times
when i tried to display a result from a static method i get this error:

Thread-9[1] print Thread.currentThread()
com.sun.tools.example.debug.expr.ParseException: Name unknown:
Thread.currentThread
 Thread.currentThread() = null

Does anyone here knows why this happen?

Regards,
Edson


RE: just a debug matter

2003-11-12 Thread Edson Alves Pereira
Hey folks, i known the answer, it just to put the full class´s name,
like:
java.lang.Thread.currentThread( ).toString( )

 --
 De:   Edson Alves Pereira[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 12 de novembro de 2003 14:29
 Para: 'Tomcat-User List'
 Assunto:  just a debug matter
 
   Hello folks, i usually use JDB to debug my servlets, and some times
 when i tried to display a result from a static method i get this error:
 
 Thread-9[1] print Thread.currentThread()
 com.sun.tools.example.debug.expr.ParseException: Name unknown:
 Thread.currentThread
  Thread.currentThread() = null
 
   Does anyone here knows why this happen?
 
   Regards,
   Edson
 


RE: a doubt!!!!anyone plz

2003-11-13 Thread Edson Alves Pereira
First of all. you must create a web-application under tomcat ( you
can use Manager to do that ), put your classes or .jar inside your
WEB-INF/classes or WEB-INF/lib. After that you can put addicional jsp files
or html under your tree. The servlet can see all filesystem, therefore, once
you have a request for you servlet, it can do its work.

But maybe is better for take a look in those papers.


http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals
/

 --
 De:   R Aravind-A4524C[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 13 de novembro de 2003 8:54
 Para: Tomcat Users List
 Assunto:  a doubtanyone plz
 
 hi,
 i have downloaded and installed the serveri just have a doubt
 regarding the usebasically i have a program which talk to the server
 and download the java archive files from therefor that i have to
 create a directory structure in the server and put this java archive files
 and .class filesclass file is a servletbefore running my
 application i have to set the path till this class file that will be
 exeecuted and pick up the files from the dirctory i created..my  program
 is based on a protocol.i just wanto knwo will this server can be
 used for my application.
 
 this is the procedure iam supposed to do...
 1]bundle should be present on a Web Server. The directory structure should
 be as follows :- --drivers/hp.usb.printer.laserjet.5.7/hpprinterdriver.jar
 
 2]load the FindDriverServlet.class under the servlets directory on your
 Web Server. The package structure for the servlet should be :-
 deviceaccess.servlet.FindDriverServlet 
  Loading FindDriverServlet --This servlet itself should be loaded under
 servlets directory under deviceaccess/servlet 
 this is the propert i have to set..URL to the .class file
 set jes.driverlocator.servletURL=http://localhost:portnum/servlet/
 FindDriverServlet 
 in this case portno:80
 
 can you please help me out with this.where should i load the class files
 to execute?..if this can't be done with the server can you suggest some
 other
 thanking you
 yours faithfully
 arav
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


session variables in web.xml

2003-11-14 Thread Edson Alves Pereira
Hello folks, is possible to create session variables in web.xml? I´d
like to create some default values to all servlets.

Regards,
Edson


RE: Servlets -- help needed

2003-11-14 Thread Edson Alves Pereira
Try,

http://127.0.0.1:8080/examples/servlet/HelloWWW

 --
 De:   Navanee[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 14 de novembro de 2003 4:11
 Para: Tomcat Users List
 Assunto:  Re: Servlets -- help needed
 
 Schalk,
 
 I wrote a java program (HelloWWW.java) and placed the file in this path: 
 C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes
 I also compiled that java code. Compilation was successful.
 
 I tried to execute that servlet in the browser using this link :
 http://localhost:8080/examples/WEB-INF/classes/HelloWWW
 
 But it is giving 404 (file not found) error. Why is it so?
 
 How can i access these files in the browser ..?
 Means, what link should i give in the browser ?
 
 -- Navanee
 
 Schalk wrote:
 
 Navanee
 
 The file structure, for webapps are as follows:
 Tomcat/webapps/yourapp/
 - In this folder you can place all of your image files, html files, .js,
 .css, and your JSP's.
 Tomcat/webapps/yourapp/WEB-INF/classes/
 - In here you should place all compiled servlet code
 Tomcat/webapps/yourapp/WEB-INF/lib/
 - In here you can place all .jar files that your web application will
 need
 to have access to.
 Tomcat/webapps/yourapp/WEB-INF/
 - Here goes your .tld and .xml files, for example the web.xml
 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.CEO
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za
  
 This message contains information that is considered to be sensitive or
 confidential and may not be forwarded or diclosed to any other party
 without
 the permission of the sender. If you received this message in error,
 please
 notify me immediately so that I can correct and delete the original
 email.
 Thank you. 
 
 :: -Original Message-
 :: From: Navanee [mailto:[EMAIL PROTECTED]
 :: Sent: Friday, November 14, 2003 7:20 AM
 :: To: [EMAIL PROTECTED]
 :: Subject: Servlets -- help needed
 :: 
 :: Friends,
 :: 
 :: I want to write a HTML form that will accept some values from the user
 :: and i want to print the values using a servlet program.
 :: 
 :: I have installed Tomcat 4.1 in my win2k m/c.
 :: 
 :: This is the folder where i have installed the Tomcat: C:\Program
 :: Files\jakarta-tomcat-4.1.27\webapps
 :: 
 :: Please tell where (in which folder) i should place the HTML file and
 :: where i should place the Servlet code that will read the values from
 the
 :: form?
 :: Similarly where should i place the JSP code?
 :: 
 :: Since there are many folders i often get confused where to place the
 :: code. Any other pointers would be more helpful.
 :: 
 :: -- Navanee
 :: 
 :: 
 :: -
 :: To unsubscribe, e-mail: [EMAIL PROTECTED]
 :: For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Severity less - DBCP not closing connection.

2003-11-21 Thread Edson Alves Pereira
You must ensure that your connection manager is closing all
ResultSets, Statements, PreparedStatement and finally all connection. With
that you DBCP will work. Store a copy of all those objets in Vectors and
when you close the connectionm manager, it will close all objetcts stored
also.

 --
 De:   Antony Paul[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 21 de novembro de 2003 8:34
 Para: Tomcat Users List
 Assunto:  Severity less - DBCP not closing connection.
 
 I hope it is not posted twice. I wrote this mail in forenoon and when
 tried
 to send internet connection lost. I am retyping everything.
 
 I have seen DBCP not closing a connection if the request is forwarded
 to
 same page in the try block before the request is forwarded. With
 sendRedirect no problem. This occurs when the connection is obtained
 through
 JNDI look up datasource. I tested the same code in stand alone java
 application using manual pooling which works fine. I am using Tomcat
 4.1.27
 and DBCP 1.1 (I upgraded it today), JDK 1.3.1 and Oracle 8i.
   My configuration and code is given below.
 --
 --
 ---
 Context path=/test docBase=test
 debug=0 reloadable=true crossContext=true
 
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=test_log. suffix=.txt
  timestamp=true/
 
   Resource name=jdbc/Test
auth=Container
type=javax.sql.DataSource/
 
   ResourceParams name=jdbc/Test
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
  parameter
   namemaxActive/name
   value1/value
 /parameter
 
 parameter
   namemaxIdle/name
   value1/value
 /parameter
 
 parameter
   namemaxWait/name
   value10/value
 /parameter
 
 parameter
  nameusername/name
  valuescott/value
 /parameter
 parameter
  namepassword/name
  valuetiger/value
 /parameter
 
 parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 
  parameter
   nameurl/name
   valuejdbc:oracle:thin:@localhost:1521:DB/value
 /parameter
 
  parameter
   nameremoveAbandoned/name
   valuetrue/value
  /parameter
  parameter
   nameremoveAbandonedTimeout /name
   value30/value
  /parameter
   /ResourceParams
 /Context
 
 --
 --
 --
 html
 body
 %@ page import=java.sql.*%
 %@ page import=javax.sql.*%
 %@ page import=javax.naming.*%
 %@ page
 import=org.apache.commons.dbcp.datasources.SharedPoolDataSource%
 %@ page import=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS%
 %
 /*DriverAdapterCPDS cpds = new DriverAdapterCPDS();
 cpds.setDriver(oracle.jdbc.driver.OracleDriver);
 cpds.setUrl(jdbc:oracle:thin:@localhost:1521:DB);
 cpds.setUser(scott);
 cpds.setPassword(tiger);
 
 SharedPoolDataSource tds = new SharedPoolDataSource();
 tds.setConnectionPoolDataSource(cpds);
 tds.setMaxActive(1);
 tds.setMaxIdle(1);
 tds.setMaxWait(3000); */
 
 Context initContext = new InitialContext();
 Context envContext  = (Context)initContext.lookup(java:/comp/env);
 DataSource ds =
 (DataSource)initContext.lookup(java:/comp/env/jdbc/Test);
 
 PreparedStatement pstmt = null;
 ResultSet rs = null;
 Connection conn = null;
 
 String action = request.getParameter(action);
 if(1.equals(action)){
  long time = 0;
 
  try{
   conn = tds.getConnection();
   conn = ds.getConnection();
   pstmt = conn.prepareStatement(select empno,ename from scott.emp where
 empno=?);
   pstmt.setString(1,7369);
   rs = pstmt.executeQuery();
   while(rs.next()){
System.out.println(Ename - +rs.getString(1)+ - +rs.getString(2));
   }
   time = System.currentTimeMillis();
   System.out.println(Before forward -
 0);time=System.currentTimeMillis();
  
 application.getRequestDispatcher(/TestDB.jsp?action=2).forward(request,r
 esponse);
   System.out.println(After forward -
 +(System.currentTimeMillis()-time));
 
  }catch(SQLException sqle){
 
   System.out.println(1  +sqle);
  }finally{
   if(rs!=null)rs.close();
   if(pstmt!=null) pstmt.close();
   if(conn!=null)conn.close();
  }
 }else if(2.equals(action)){
  long time = 0;
  System.out.println(In Two start - time =
 0);time=System.currentTimeMillis();
  try{
   conn = tds.getConnection();
   conn = ds.getConnection();
   pstmt = conn.prepareStatement(select empno,ename from scott.emp where
 empno=?);
   pstmt.setString(1,7499);
   rs = pstmt.executeQuery();
   while(rs.next()){
System.out.println(Ename - +rs.getString(1)+ - +rs.getString(2));
   }
  }catch(SQLException sqle){
 
   System.out.println(2 +sqle);
  }finally{
   if(rs!=null)rs.close();
   if(pstmt!=null) pstmt.close();
   if(conn!=null)conn.close();
  }
  

How to redirect to another servlet as POST?

2003-11-21 Thread Edson Alves Pereira
Hello folks, i´m trying to redirect my request to another servlet,
but this cannot be interpreted as GET, i need POST request. How can i do
that? This because there are some important values in this QUERYSTRING, and
nobody can see them.

Regards,
Edson


problems with Jasper in Tomcat-4.1.24

2003-12-03 Thread Edson Alves Pereira
 Hello folks, i trying to compile some JSP pages from command line, but i
getting these messages from it:

D:\desenv\osctrl\buildjava org.apache.jasper.JspC -d . -p org.apache
-uriroot /desenv -webapp ../osctrl
error:org.apache.jasper.JasperException: The -uriroot option must specify a
pre-
existing directory
at org.apache.jasper.JspC.execute(JspC.java:769)
at org.apache.jasper.JspC.main(JspC.java:823)


I already replaced my uriroot for a real path in my filesystem and a
completely non-existing
directory, what must i do?

Regards,
Edson


RE: Help needed !!!!

2003-12-03 Thread Edson Alves Pereira
Why must someone from Israel?

 --
 De:   yuval[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 3 de dezembro de 2003 14:32
 Para: Tomcat Users List
 Assunto:  Help needed 
 
 Is there anybody from Israel in this list,
 I wish to find someone to consult us with pay in order to
 configure the tomcat to work better with no errors and with load balance.
 
 
 Please contact me directly at:
 [EMAIL PROTECTED]
 
 Regards,
 
 Yuval
 


jasper offline produces NullPointerException in tomcat-4.1.24?

2003-12-04 Thread Edson Alves Pereira
Hello folks, i wonder if is really possible to compile JSP pages
offline, because all that i doing is going wrong, take a look at this
output:

$java org.apache.jasper.JspC -d blah -uribase http://osctrl -webapp
/usr/local/ApacheGroup/tomcat-4.1.24/webapps/osctrl-app -uriroot
/usr/local/ApacheGroup/tomcat-4.1.24/webapps/osctrl-app

2003-12-04 03:28:32 - ERROR-the file
'\jsp\cadastroPerfil\cadastroPerfilFrm.jsp'
 generated the following general exception: java.lang.NullPointerException
error:org.apache.jasper.JasperException: Error compiling
\jsp\cadastroPerfil\cadastroPerfilFrm.jsp
at org.apache.jasper.JspC.processFile(JspC.java:596)
at org.apache.jasper.JspC.execute(JspC.java:801)
at org.apache.jasper.JspC.main(JspC.java:823)

Now i´m taking a look at org.apache.jasper.JspC´s source and ( i´m
not sure, because i cannot debug JspC and don´t have its source for
tomcat-4.1.24 ) as far as i can see, JspC cannot compile without objects and
instances that should came from Tomcat. If this is my mistake in the command
line, could someone shows me a correct example of JspC offline command line?

Regards,
Edson


RE: Monitoring Apache Traffic

2003-12-04 Thread Edson Alves Pereira
If you make tomcat use SSL everything will use this protocol, then
your requests and responses will be encrypted. If you plainly see what
client browser is passing to tomcat or tomcat is passing to user, sure its
not a safe request.

 --
 De:   Asif Chowdhary[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 4 de dezembro de 2003 14:30
 Para: [EMAIL PROTECTED]
 Assunto:  Monitoring Apache Traffic
 
 Hi,
 
 Is there any way to determine if the contents sent from the client to the
 server is encrypted or not? I am not using a browser as a client. I am
 using a windows application.
 If I can see the contents then I will know if SSL is working. 
 Any tools that will sniff the line to display the contents.
 
 Thanks
 Asif
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


JspC and taglibs

2003-12-05 Thread Edson Alves Pereira
Hello folks, i´m trying to compile my JSP pages offline, using an
ant´s build script. But it seems that JspC cannot find my taglibs, how can
put a classpath to it or make JspC see my taglibs?

Regards,
Edson


RE: Database pool problem

2003-12-05 Thread Edson Alves Pereira
Maybe M$ Access isn´t a good database to test. Could you use some
real database? Like MySQL, PostgreeSQL, HypersonicSQL, Oracle and so on.

 --
 De:   Chaikin, Yaakov Y (US SSA)[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 5 de dezembro de 2003 13:07
 Para: [EMAIL PROTECTED]
 Assunto:  Database pool problem
 
 Hi,
 
 I am having the following problem and how someone can point out to me
 what I am doing wrong.
 
 I am trying to configure Tomcat to have a database connection pool for
 my database, but when I try to access the database through a jsp, it
 gives me wrong password for the database... BUT it IS the right
 password.
 
 I am using MS Access as the database (not much choice right now) and
 have set up a System DNS.
 
 The weird part is that I am using the same values for a Realm I defined
 and I know that it DOES create a connection to the database and
 authentication works.
 The Realm that I have is this:
 Realm 
   className=org.apache.catalina.realm.JDBCRealm
   connectionName=default 
   connectionPassword=afecrelease2003
   connectionURL=jdbc:odbc:afec debug=0
   driverName=sun.jdbc.odbc.JdbcOdbcDriver 
   roleNameCol=UserRole
   userCredCol=UserPassword 
   userNameCol=UserName
   userRoleTable=TestUsers 
   userTable=TestUsers 
   validate=true/ 
 
 
 My server.xml file has this context:
 
 !--*** BEGIN AFECWEB Context ***--
 Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 cookies=true 
 crossContext=true 
 debug=0
 displayName=AFECWEB 
 docBase=c:/corej2ee/stage/wls/afecWebApp/afecWEB.war
 mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/afecWEB
 privileged=false 
 reloadable=true
 swallowOutput=false 
 useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
   Logger className=org.apache.catalina.logger.FileLogger
   debug=0 directory=logs
   prefix=localhost_afecWEB_log. 
   suffix=.txt
   timestamp=true 
   verbosity=99/
   Resource 
   name=jdbc/afecWEBDB 
   auth=Container
   description=AFEC database; stores info about documents, login
   type=javax.sql.DataSource 
   scope=Shareable /
   ResourceParams name=jdbc/afecWEBDB
   parameter
   namefactory/name
   
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value1/value
   /parameter
   parameter
   namemaxIdle/name
   value1/value
   /parameter
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
   namedriverClassName/name
   valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:afec/value
   /parameter
   parameter
   nameuser/name
   valuedefault/value
   /parameter
   parameter
   namepassword/name
   valueafecrelease2003/value
   /parameter
   parameter
   nameconnectionName/name
   valuedefault/value
   /parameter
   parameter
   nameconnectionPassword/name
   valueafecrelease2003/value
   /parameter
   parameter
   nameconnectionURL/name
   valuejdbc:odbc:afec/value
   /parameter
   parameter
   namedriverName/name
   valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   /ResourceParams
 /Context
 !--*** END AFECWEB Context ***--
 
 Any help would be greatly appreciated.
 
 Thanks.
 
 Yaakov Chaikin
 Software Engineer
 BAE SYSTEMS
 301-838-6899 (phone)
 301-838-6802 (fax)
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Database pool problem

2003-12-05 Thread Edson Alves Pereira
Could you show us how you make a simple connection to that M$ Acess
database to compare?

 --
 De:   Edson Alves Pereira[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 5 de dezembro de 2003 14:46
 Para: 'Tomcat Users List'
 Assunto:  RE: Database pool problem
 
   Maybe M$ Access isn´t a good database to test. Could you use some
 real database? Like MySQL, PostgreeSQL, HypersonicSQL, Oracle and so on.
 
  --
  De: Chaikin, Yaakov Y (US
 SSA)[SMTP:[EMAIL PROTECTED]
  Responder:  Tomcat Users List
  Enviada:sexta-feira, 5 de dezembro de 2003 13:07
  Para:   [EMAIL PROTECTED]
  Assunto:Database pool problem
  
  Hi,
  
  I am having the following problem and how someone can point out to me
  what I am doing wrong.
  
  I am trying to configure Tomcat to have a database connection pool for
  my database, but when I try to access the database through a jsp, it
  gives me wrong password for the database... BUT it IS the right
  password.
  
  I am using MS Access as the database (not much choice right now) and
  have set up a System DNS.
  
  The weird part is that I am using the same values for a Realm I defined
  and I know that it DOES create a connection to the database and
  authentication works.
  The Realm that I have is this:
  Realm 
  className=org.apache.catalina.realm.JDBCRealm
  connectionName=default 
  connectionPassword=afecrelease2003
  connectionURL=jdbc:odbc:afec debug=0
  driverName=sun.jdbc.odbc.JdbcOdbcDriver 
  roleNameCol=UserRole
  userCredCol=UserPassword 
  userNameCol=UserName
  userRoleTable=TestUsers 
  userTable=TestUsers 
  validate=true/ 
  
  
  My server.xml file has this context:
  
  !--*** BEGIN AFECWEB Context ***--
  Context className=org.apache.catalina.core.StandardContext
  cachingAllowed=true
  charsetMapperClass=org.apache.catalina.util.CharsetMapper
  cookies=true 
  crossContext=true 
  debug=0
  displayName=AFECWEB 
  docBase=c:/corej2ee/stage/wls/afecWebApp/afecWEB.war
  mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/afecWEB
  privileged=false 
  reloadable=true
  swallowOutput=false 
  useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper
  Logger className=org.apache.catalina.logger.FileLogger
  debug=0 directory=logs
  prefix=localhost_afecWEB_log. 
  suffix=.txt
  timestamp=true 
  verbosity=99/
  Resource 
  name=jdbc/afecWEBDB 
  auth=Container
  description=AFEC database; stores info about documents, login
  type=javax.sql.DataSource 
  scope=Shareable /
  ResourceParams name=jdbc/afecWEBDB
  parameter
  namefactory/name
  
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
  namemaxActive/name
  value1/value
  /parameter
  parameter
  namemaxIdle/name
  value1/value
  /parameter
  parameter
  namemaxWait/name
  value1/value
  /parameter
  parameter
  namedriverClassName/name
  valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  parameter
  nameurl/name
  valuejdbc:odbc:afec/value
  /parameter
  parameter
  nameuser/name
  valuedefault/value
  /parameter
  parameter
  namepassword/name
  valueafecrelease2003/value
  /parameter
  parameter
  nameconnectionName/name
  valuedefault/value
  /parameter
  parameter
  nameconnectionPassword/name
  valueafecrelease2003/value
  /parameter
  parameter
  nameconnectionURL/name
  valuejdbc:odbc:afec/value
  /parameter
  parameter
  namedriverName/name
  valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  /ResourceParams
  /Context
  !--*** END AFECWEB Context ***--
  
  Any help would be greatly appreciated.
  
  Thanks.
  
  Yaakov Chaikin
  Software Engineer
  BAE SYSTEMS
  301-838-6899 (phone)
  301-838-6802 (fax)
  [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 


  1   2   >