J2SE5.0 ready?
Hello folks, are you using J2SE5? What about it? Regards, Edson
is J2SE5 ready?
Are you using J2SE5? What about it? Regards, Edson
RES: Deploying jsps
You can use Jasper to trancribe your JSP pages in java code, and then compiled it with javac. Here is my real word build.xml´s snapshoot: jspc srcdir =${webapp}/jsp destdir =${webapp}/bin verbose =9 package =${jsp.package} uriroot =/osctrl encoding=ISO-8859-1 webxml =${webapp}/WEB-INF/jsp.xml classpathref=base-path webapp basedir=${webapp}/ /jspc javac srcdir=${webapp}/bin debug=${usar.debug} classpathref=base-path destdir=${webapp}/bin/ jar destfile=${webapp}/WEB-INF/lib/libjsp.jar basedir=${webapp}/bin/ -Mensagem original- De: Abhay Hiwarkar [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 23 de dezembro de 2004 5:36 Para: 'Tomcat Users List' Assunto: RE: Deploying jsps Doesn't any body have a detailed procedure to deploy compiled jsps with Tomcat4.0 ? Abhay -Original Message- From: Abhay Hiwarkar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:33 To: 'Tomcat Users List' Subject: Deploying jsps Hi, I am week in deploying war with Tomcat4 on Windows. The war contains only the class files generated from JSPs. I am not able to access any JSP through http://localhost:8080/myProj/client.jsp The war file contains the web.xml with mapping of all servlets to jsps I will appriciate your help. Thanks, Abhay -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:25 To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: Manisha Sathe [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file strutstest.war already exists on server Inside /webapp - previous uploaded war file is still present. I can not delete just like that as it says sharing violation. So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start the Tomcat again and deploy the new file. Is there any other soln ? so that w/o restarting my tomcat can i just deploy new version ? regards Manisha __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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]
taglib-pool
Hello folks, i d´like to know if is there any taglibPool or any way to make tomcat do such thing? Regards, Edson
taglib-pool
I d´like to know if is there any taglibPool or any way to make tomcat do such thing? Regards, Edson
extending Ojc
Hello folks, i trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
extending ojc
Hay folks, i trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
ENC: extending ojc
-Mensagem original- De: Edson Alves Pereira Enviada em: quarta-feira, 27 de outubro de 2004 10:28 Para: Tomcat-User List (E-mail) Assunto: extending ojc [Edson Alves Pereira] I trying to make ojc from JDeveloper to create a xml file like Jasper does with all JSP mappings, can someone show me some hints or tell me if JDeveloper can do that for grant? Regards, Edson
taglibs
Hello dudes, is there a way to make tomcat create just one instance of each taglib in JVM? Regards, Edson
test
Just testing.
caching taglibs
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
TagLibs must be cached
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
TagLibs must be cached
Hello folks, i noticed that everytime tomcat-5.0.x needs a taglib it just create a new one, i´d like to cached all tag in my JSPs, how ca i do that? Is there any taglib container like we have with servlets? Regards, Edson
StringBuffer memory optimization
Hello folks, i have a problem with StringBuffer, profiling my web-application i noticed, StringBuffer due to its creation and use consumes too much memory. Does onyone here know a good way to solve that problem? Regards, Edson
RES: DBCP Parameters
That´s because DBCP when reach its limit it create a new connection to suplay the demand, after all connection without use are released your current connections come back to 3 connection in pool as you setted to 3 max connection alive in the pool. Regards, Edson -Mensagem original- De: Leonardo Larraquy [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 5 de outubro de 2004 16:15 Para: Tomcat Users List Assunto: DBCP Parameters Hi everyone. I've just made my application work with an SQL Server Datasource, wich is written below. It's working fine, but there's one problem (or not), so I want to ask you folks. As you can see I put at the parameter maxConnections a value of 3. Then I made a test, getting a Connection from the pool within a for loop. I was able to get over 1 connections, and I stoped the test. With dind't I get a Connection Pool exasusted error at the fourth iteration??? Thanks in advance. Resource name=jdbc/sql2000 auth=Container type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/ ResourceParams name=jdbc/sql2000 parameter namefactory/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value /parameter parameter namedriverName/name valueSQLServer/value /parameter parameter namedescription/name valueSQL Server DataSource/value /parameter parameter nameserverName/name valueJK008/value /parameter parameter nameportNumber/name value1433/value /parameter parameter nameselectMethod/name valuecursor/value /parameter parameter namedatabaseName/name valueseguridad/value /parameter parameter nameuser/name valuepuma/value /parameter parameter namepassword/name valuepuma/value /parameter parameter namemaxConnections/name value3/value /parameter parameter nameminConnections/name value1/value /parameter parameter nameloginTimeout/name value3000/value /parameter parameter namecheckEvery/name value6/value /parameter parameter nameidleTimeout/name value50/value /parameter /ResourceParams Leonardo Lopez Larraquy Jakarta Ingenieria de Software www.jakartasrl.com.ar
another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and Oracle ApplicationServer-9.0.4
Hello dudes, i´m trying to store a value to a CLOB in my databse, everything is fine with a simple Connection created with DriverManager, but when i use DBCP from one of these servlet-engines i got the same error: ava.sql.SQLException: invalid arguments in call 04/08/27 11:56:44 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) 04/08/27 11:56:44 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231) 04/08/27 11:56:44 atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294) 04/08/27 11:56:44 at oracle.sql.CLOB.createTemporary(CLOB.java:527) 04/08/27 11:56:44 at appi.util.JUtils.getClob(JUtils.java:166) Here´s my code: //create a new temporary CLOB tempClob = CLOB.createTemporary( servlet_.getDbCon( ).getCon( ), true, CLOB.DURATION_SESSION ); How can i fix it? Regards, Edson
ENC: another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and O racleApplicationServer-9.0.4
Hello again, servlet_.getDbCon( ).getCon( ) returns just a java.sql.Connection, with every DBCP i setup properly cause the connection works fine and CLOB is a oracle.sql.CLOB from oracle´s ojdbc14.jar. I tried once to store CLOBs in Oracle with jdbc standard and it didn´t workout, i just followed the Oracle´s recomendations, again this error only happens with DBCP. -Mensagem original- De: Edson Alves Pereira Enviada em: sexta-feira, 27 de agosto de 2004 14:44 Para: Tomcat-User List (E-mail) Assunto: another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and OracleApplicationServer-9.0.4 Hello dudes, i´m trying to store a value to a CLOB in my databse, everything is fine with a simple Connection created with DriverManager, but when i use DBCP from one of these servlet-engines i got the same error: ava.sql.SQLException: invalid arguments in call 04/08/27 11:56:44 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) 04/08/27 11:56:44 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231) 04/08/27 11:56:44 atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294) 04/08/27 11:56:44 at oracle.sql.CLOB.createTemporary(CLOB.java:527) 04/08/27 11:56:44 at appi.util.JUtils.getClob(JUtils.java:166) Here´s my code: //create a new temporary CLOB tempClob = CLOB.createTemporary( servlet_.getDbCon( ).getCon( ), true, CLOB.DURATION_SESSION ); How can i fix it? Regards, Edson
Another doubt about taglibs
Hey dudes, is this the correct way to mixe taglibs with JSP code? panfinance:tab-control panfinance:tab-sheet name=%= stTitle % tr th width=20%label%= stTitle %/label/th tdpanfinance:variant name=%= ed + stCtrl % type=%= ( request.getParameter( hdnTypeCTRL ) != null ) ? request.getParameter( hdnTypeCTRL ) : texto % size=%= ( request.getParameter( hdnSizeCTRL ) != null ) ? Integer.parseInt( request.getParameter( hdnSizeCTRL )) : 10 %//td tdbutton name=%= bt + stCtrl % onClick =onClick_efetuarPesquisa( this );Pesquisar/button/td td width=60%/tdtr /panfinance:tab-sheet Regards, Edson
Problems with Jasper and ojspc
Hello folks, i´ve just compiled all my jsp pages in a jar file, in tomcat-4.1.29 its fine as usual, but if i try to deploy my webappication in Oracle Application Server-10g, it doesn´t execute my pages properly. I don´t know what is going wrong, the JDK is the same ( j2sdk1.4.2-05b ), OS ( linux ), the specification Servlets 2.2, but OAS cannot run a Jasper pre-compiled page ( even a very simple Hello World ). Doe anyone here know why? Regards, Edson
RE: links encoding issue
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]
JSP suggestion
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
Parser error in web.xml
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
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?
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]
RE: JProfiler Tomcat Integration -tyrex driver error
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
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
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
RE: JProfiler... help!
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!
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]
redirect and request´s attributes doubts
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
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
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
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
redirect and request´s attributes doubts
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
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
HttpURLConnection behind a proxie
Hello dudes, do you know how can i authenticate a java programm to use HTTP proxie throught a windows network? I´ve already done JavaPlugin and built a java programm to make the job, but it didn´t workout, my HTTP proxie is WebSense. Regards, Edson
java connection throught proxies
Does anyone here knows if Java-1.4.2 can make Network connections throught web-proxies? I´m using xercer to validade a xml file and i got java.net.ConnectException: Connection timed out: connect This isn´t a tomcat matter, but maybe somebody could tell how to make my java environment understand M$ proxies. Regards, Edson
how can i get a servlet instance from ServletPool
Hello dudes, is there a way to get a servlet instance from Tomcat´s pool? Is there a replacement to getServletContext( ).getServlet( )? Regards, Edson
RE: how can i get a servlet instance from ServletPool
I have one servlet that make a SQL query and as result build a HTML table to display in user´s browser, i´d like to create a report servlet to use servlets like my query-servlet to print ( in our project report-servlets are a little different from our query-servlets ). Then i created this report-servlet and i was willing to use query-servlet´s methods to reuse its features. To solve that problem i implemented a static method in query-servlet to enable report-servlet to use query-servlet´s ResultSet, basically a build a static method to make two servlets share the same functionalities, is this right? -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 1 de março de 2004 11:08 Para: Tomcat Users List Assunto: RE: how can i get a servlet instance from ServletPool Howdy, Hello dudes, is there a way to get a servlet instance from Tomcat´s pool?Is there a replacement to getServletContext( ).getServlet( )? As always, there's a way. But is it portable/reliable/advisable? No, no, and no. Was there a reason getServlet was deprecated? Sure. Why do you want to do this? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can i get a servlet instance from ServletPool
No, i made it static `cause i couldn´t get servlet instance in another servlet, that´s solved my problem, but i´d like to know if is this the best way to solve problems like that? -- De: Mike Curwen[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 1 de março de 2004 14:34 Para: 'Tomcat Users List' Assunto: RE: how can i get a servlet instance from ServletPool That sort of coding is probably not the way to go about solving this particular problem (how to re-use all the work you've done in the other servlet). But assuming you leave everything as is, the question I come up with is: Why do you need an instance of a servlet, if the method you want to call has been made static? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:26 AM To: 'Tomcat Users List' Subject: RE: how can i get a servlet instance from ServletPool I have one servlet that make a SQL query and as result build a HTML table to display in user´s browser, i´d like to create a report servlet to use servlets like my query-servlet to print ( in our project report-servlets are a little different from our query-servlets ). Then i created this report-servlet and i was willing to use query-servlet´s methods to reuse its features. To solve that problem i implemented a static method in query-servlet to enable report-servlet to use query-servlet´s ResultSet, basically a build a static method to make two servlets share the same functionalities, is this right? -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 1 de março de 2004 11:08 Para: Tomcat Users List Assunto: RE: how can i get a servlet instance from ServletPool Howdy, Hello dudes, is there a way to get a servlet instance from Tomcat´s pool?Is there a replacement to getServletContext( ).getServlet( )? As always, there's a way. But is it portable/reliable/advisable? No, no, and no. Was there a reason getServlet was deprecated? Sure. Why do you want to do this? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can i get a servlet instance from ServletPool
Maybe i really should put those static methods in Java objects, in that way will get easyer to share with other servlets. It´s plain to see, you right. -- De: Erik Price[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 1 de março de 2004 14:54 Para: Tomcat Users List Assunto: RE: how can i get a servlet instance from ServletPool --- Edson Alves Pereira [EMAIL PROTECTED] wrote: No, i made it static `cause i couldn´t get servlet instance in another servlet, that´s solved my problem, but i´d like to know if is this the best way to solve problems like that? Doesn't it seem like you could refactor that functionality out into a non-servlet Java class and then make use of that class from both servlets? I find it helpful to think of a servlet as little more than an event handler for HTTP messages, and try to put all my real work into plain old Java objects which are then utilized by servlets (or any other place I need to use them). Erik __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Taglib parser problems
Hello dudes, i trying to set a taglib property with ( ' ) inside its text, like: my-tag sql=select * from preoducts where product_name ='CHAIR'/ But when i check the property´s value is something like: select * from preoducts where product_name = For me, seems that taglib´s parser stops to read the value when it found ( ´ ) in my text. Any idea? Regards, Edson
RE: Taglib parser problems
Then, isn´t there other way to do it as a tag´s attribute? -- De: Paul Zepernick[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 19 de fevereiro de 2004 16:32 Para: Tomcat Users List Assunto: RE: Taglib parser problems If this is your taglib then I would suggest not making the sql statement an attribute, but instead including it in teh body of the tag. my-tag SELECT * FROM MYTABLE WHERE MYCOLUMN='TEST' /my-tag -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 2:22 PM To: 'Tomcat-User List' Subject: Taglib parser problems Hello dudes, i trying to set a taglib property with ( ' ) inside its text, like: my-tag sql=select * from preoducts where product_name ='CHAIR'/ But when i check the property´s value is something like: select * from preoducts where product_name = For me, seems that taglib´s parser stops to read the value when it found ( ´ ) in my text. Any idea? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: another newbie question?
In my opnion, isn´t so necessary to set a inicial memory value to JVM, because it will take more memory as needed. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 12 de fevereiro de 2004 12:59 Para: Tomcat Users List Assunto: RE: another newbie question? Howdy, Use the -Xmx java runtime option, set via the JAVA_OPTS environment variable as defined in $CATALINA_HOME/bin/catalina.sh. Yoav Shapira Millennium ChemInformatics -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:55 AM To: [EMAIL PROTECTED] Subject: another newbie question? hello sombody could tell mee how to increase memory off the jvm? got only 7mg left after aplication deployed tanks [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding-problem with tomcat, jk2, apache
You must check your java´s file.encoding property, maybe its setted to ISO-8859-1 -- De: Stefan Burkard[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 5 de fevereiro de 2004 9:18 Para: [EMAIL PROTECTED] Assunto: Re: encoding-problem with tomcat, jk2, apache hi folks ok, i've found a tool that shows the whole http-header of my requests: if i connect directly on tomcat (port 8080) there is a content-type-attribute in the header that says just text/html. if i connect via apache/mod_jk2 the attribute has the data text/html; charset=ISO-8859-1 what is completely wrong. it should be utf-8, not iso-8859-1. cocoon automatically inserts the code meta http-equiv=Content-Type content=text/html; charset=UTF-8 into the html-page. so the resulting question: why has apache/jk2 the wrong encoding? is there a default-encoding that is used if nothing other is specified? greetings stefan Yansheng Lin wrote: Hi Stefan, you figured out this problem yet. I would like to know what was causing the problem:). Did you take a look at the header? Compare the headers generated when running tomcat standalone with running apache-tomcat to see the difference. (I used a Encoding Filter for my i18n application, so far all the development had been done on a localhost). Good luck! -Yan -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard Sent: Tuesday, February 03, 2004 10:41 AM To: [EMAIL PROTECTED] Subject: encoding-problem with tomcat, jk2, apache hello tomcat-users i've set up a cocoon-page with tomcat, apache and jk2. everything works fine as long as i just use languages with standard-encoding iso-8859-1. now i'm on the way to implement the russian version of the site and therefore i need to display russian (cyrillic) characters. if i connect on tomcat-standalone with port 8080, the russian characters are displayed correct. but if i connect via apache and jk2, alle cyrillic characters go wrong. i think apache delivers the page with iso-8859-1 instead of utf-8. does anybody know if this is a problem of apache or jk2 and how to solve it??? thanks stefan - 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]
jdbc3
Does anybody here knows where can i find jdbc3 extension to tomcat-4.1.24? Regards, Edson
RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT
You must put your jdbc driver in $TOMCAT_HOME/common/lib -- De: Kumar Abhay-CAK203C[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 2 de fevereiro de 2004 14:34 Para: 'Tomcat Users List' Assunto: RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Prioridade: Alta This is setenv file: set classpath=.;C:\j2sdk1.4.2_03\lib\tools.jar;..\web-inf\classes;..\web-inf\l ib\cos.jar;..\web-inf\lib\jnlp.jar;..\web-inf\lib\log4j.jar;..\web-inf\lib \xml4j.jar;..\web-inf\lib\ldapjdk.jar;..\web-inf\lib\ldapsearch.jar..\web- inf\lib\classes12.jar;%classpath% and Class path set in system is : .;C:\Estimation;C:\Tomcat\common\lib\servlet.jar;C:\Tomcat\common\lib\mail .jar;C:\Tomcat\common\lib\activation.jar;C:\Tomcat\common\lib\jndi.jar;C:\ Tomcat\common\lib\jdbc2_0-stdext.jar;C:\Tomcat\common\lib\ojdbc14.jar ANy Bug ?? Regards Abhay -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:25 AM To: 'Tomcat Users List' Subject: RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Just to be sure.. you tried classes12.**jar** (renamed .zip to .jar) ? -Original Message- From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:12 AM To: 'Tomcat Users List' Subject: RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Importance: High I hv tried this also .. No success Abhay -Original Message- From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 10:56 AM To: Tomcat Users List Subject: RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Trying using classes12.jar in tomcat_home/common/lib -Original Message- From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:50 AM To: 'Tomcat Users List' Subject: RE: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Importance: High Path of the dB driver is as follows: Still the same error C:\Tomcat\common\lib\ojdbc14.jar Abhay -Original Message- From: Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: Re: Error in JDBC conn / Apache Tomcat/4.1.29 URGENT Put the database driver in tomcat_home/common/lib directory and restart tomcat. [EMAIL PROTECTED] 02/02/04 09:35AM Hi , I am getting the following error in JDBC conn. Error log and other details are as follows: Please help !! Regards Abhay -- -- - I am using :== Apache Tomcat/4.1.29 SQL*Plus: Release 9.0.1.4.0 - Production on Mon Feb 2 09:39:33 2004 Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production j2sdk1.4.2_03 ojdbc14.jar -- -- -- GlobalNamingResources Environment name=simpleValue override=true type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase scope=Shareable type=org.apache.catalina.UserDatabase/ Resource name=estimation scope=Shareable type=javax.sql.DataSource/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=estimation parameter namevalidationQuery/name valueselect sysdate from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valueeppsys/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@oswego.comm.mot.com:1521:DEV/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueeppsys/value /parameter /ResourceParams /GlobalNamingResources -- Feb 2, 2004 9:38:47 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1.29 Feb 2, 2004 9:38:56 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 2, 2004 9:38:56 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Feb 2, 2004 9:39:02 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing,
test
RE: Tomcat5 RH ES mod_jk2 Apache2
Tomcat isn´t talking with Apache, you must include mod_jk.conf in Apache´s httpd.conf -- De: Rich Baldwin[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 30 de janeiro de 2004 15:27 Para: [EMAIL PROTECTED] Assunto: Tomcat5 RH ES mod_jk2 Apache2 I finally made some progress configuring Tomcat5 Apache2 and mod_jk2 running on RedHat Enterprise Server. I get html over port 80, but no jsp or servlets will run. Don't know what I may have missed. jk2.properties handler.list=channelSocket,request channelSocket.port=8009 channelSocket.address=127.0.0.1 workers2.properties [channel.socket:localhost:8009] [ajp13:localhost:8009] [status:status] [uri:/sjstatus/*] group=status:status [uri:/servlets-examples/*] worker=ajp13:localhost:8009 debug=0 Appreciate any help, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC/DBCP problems
Don´t use it in init( ) method, only doPost( ) or doGet( ). -- De: Burgess, Jay S[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 28 de janeiro de 2004 12:35 Para: [EMAIL PROTECTED] Assunto: JDBC/DBCP problems I'm obviously missing something important with regards to moving our database/JDBC connectivity to use JNDI DataSource/DBCP. I've read and re-read the docs, looked at every related message in the archive, and Google'd every set of keywords I can think of, but still no luck. Here's the issue: Tomcat version is 4.1.29 on Windows XP. I'm attempting to connect to SQL Server. The JDBC driver JARs are in CATALINA_HOME\common\lib, and since everything works fine if I manually load the driver via Class.forName(), I don't think my problem is related to my driver files location. When attempting to use getConnection(), however, I get the dreaded Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver error. The highlights of my configuration are below. - SERVER.XML - GlobalNamingResources Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource description=The database. / ResourceParams name=jdbc/mydb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB/va lue /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameusername/name valueMyUsername/value /parameter parameter namepassword/name valueMyPassword/value /parameter ... /GlobalNamingResources - WEB.XML - resource-ref descriptionSome description. /description res-ref-namejdbc/mydb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref - In my servlet's init(): - Context initialContext = new InitialContext(); Context envContext = (Context) initialContext.lookup(java:comp/env); DataSource dataSource = (DataSource) envContext.lookup(jdbc/mydb); Connection conn = dataSource.getConnection(); // throws exception - Further info: - Adding the following line after acquiring dataSource above, I get class org.apache.commons.dbcp.BasicDataSource: System.out.println(dataSource.getClass()); And if I add the following, I get [EMAIL PROTECTED]: System.out.println((org.apache.commons.dbcp.BasicDataSource) dataSource); So, since it looks like a valid BasicDataSource object, I tried the following, but get null back: System.out.println(((org.apache.commons.dbcp.BasicDataSource) dataSource).getUrl()); This seems to indicate that the object isn't initialized? Turning on debug for the relevant listeners (NamingContextListener and GlobalResourcesLifecycleListener), I see the following related info in my Tomcat console window, which looks good from what I understand: Jan 28, 2004 9:06:11 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 NamingContextListener[/]: Creating JNDI naming context NamingContextListener[/]: Resource parameters for mydb = ResourceParams[name=mydb, parameters= {url=jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB, maxIdle=4, maxActive=8, driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, maxWait=1, removeAbandoned=true, username=MyUsername, factory=org.apache.commons.dbcp.BasicDataSourceFactory, logAbandoned=true, removeAbandonedTimeout=60, password=MyPassword}] NamingContextListener[/]: Adding resource ref mydb NamingContextListener[/]: ResourceRef[ className=javax.sql.DataSource, factoryClassLocation=null, factoryClassName=org.apache.naming.factory.ResourceFactory, {type=description,content=The database.}, {type=scope,content=Shareable}, {type=auth,content=Container}, {type=url,content= jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB}, {type=maxIdle,content=4}, {type=maxActive,content=8}, {type=driverClassName,content=com.microsoft.jdbc.sqlserver.SQLServerDriv er},{type=maxWait,content=1}, {type=removeAbandoned,content=true}, {type=username,content=MyUsername}, {type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory}, {type=logAbandoned,content=true}, {type=removeAbandonedTimeout,content=60}, {type=password,content=MyPassword}] GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI Resources in Context '' [EMAIL PROTECTED] GlobalResourcesLifecycleListener: Processing resource mydb
RE: Help needed
Try this: in your applet code: { //... getAppletContext( ).showDocument( http://127.0.0.1/your-webapp/servlet/HellWorld; ); //... } -- De: niranjan inamdar[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 15:05 Para: [EMAIL PROTECTED] Assunto: Help needed hello, I am a new tomcat user and i want to know whether we can use tomcat for applet - servlet connection using java URL class and openconnection methode. I am trying to invoke a servlet from an applet using java URL class but the servlet is not being activated. do i nedd to change any config. options? I just can't see whether servlet is getting invoked. __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with javascript utf-8 with tomcat 4.1.29
Check or change your file.encoding variable to the encoding format that you want. -- De: Alain Baucant[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 21 de janeiro de 2004 12:27 Para: Tomcat Users List Assunto: Re: problems with javascript utf-8 with tomcat 4.1.29 Good question. Don't lose hope and try again in esperanto ;^) STOCKHOLM, Raymond wrote: Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript pages containing UTF-8 characters are interpreted as ISO-8859-1 in Mozilla and OPera, but not IE 5.5 My JSP pages are properly declared UTF-8 : %@ page contentType=text/html;charset=UTF-8 pageEncoding=UTF-8 % My HTML page also: meta http-equiv=Content-Type content=text/html; charset=UTF-8 So is my javascript file : script type=text/javascript src=javascript/menu.js charset=UTF-8/script The javascript files are used to contain the translations of the menus, now I have A@ instead of é in my menus... Any ideas ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *- * Alain Baucant - [EMAIL PROTECTED] *- * Aubay Luxembourg (OFFIS / Aubay-SI) * * Phone: +352 29 92 50 (40) * Fax: +352 29 92 51 * Mobile: +352 021 35 12 81 * * 51, place de Strasbourg * L-2561 LUXEMBOURG * * http://www.aubay.lu *- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
Just for curiosity, try to put a breakpoint in your IQActionServlet:init and tell us is the two callers are the same. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:44 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles no, it's one host, Cheers, ADC -Original Message- From: James Neville [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 16:31 To: Tomcat Users List Subject: Re: Please help, I have a headache .. servlet init troubles Allistair Crossley wrote: Do you know why my servlet initalises twice? That's my remaining issue.. If you are specifying multiple hosts, all running from the same appBase, then each web application will be deployed to each host. If this is the case, run each host from a different appBase so that you don't double deploy. James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto:Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name valuepass/value /parameter parameter namemaxActive/name value50/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueSELECT 1 + 1/value
RE: Please help, I have a headache .. servlet init troubles
Right, usually we get a dataSource in doGet or doPost method. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:22 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles I have solved the JNDI resource by removing the call to the Context out of the init method and into the classes that wish to connect. And yes I do use a JNDI properly as my application is working using dataSource.getConnection(). The only time my dataSource.getConnection does not work is when I try to get the JNDI resource in the servlet init method. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:07 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto:RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto: Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name
very basic question
Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson
RE: What does this mean? ajp13.service() Error sending initial p ost -1 0 0
What happens if you type ( http://127.0.0.1/index.jsp ) in your browser? -- De: Rasmus Munk[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:06 Para: 'Tomcat Users List' Assunto: What does this mean? ajp13.service() Error sending initial post -1 0 0 Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus
RE: very basic question
But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto: Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: very basic question
Thank you. -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:38 Para: Tomcat Users List Assunto: Re: very basic question Yes On Tuesday 20 January 2004 09:29 am, Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto: Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto: Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name valuepass/value /parameter parameter namemaxActive/name value50/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueSELECT 1 + 1/value /parameter parameternamelogAbandoned/namevaluetrue/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dramatic performance differences on development machines
Do the top command in your shell and tell us what is consuming more from machine´s CPU. -- De: Donie Kelly[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 13 de janeiro de 2004 8:54 Para: 'Tomcat Users List' Assunto: RE: dramatic performance differences on development machines Any chance there is something else running on the machine that's killing the performance. You should post the specs of the machine if you expect a reasonable guess as to your problem. Donie -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 09:43 To: Tomcat Users List Subject: Re: dramatic performance differences on development machines Johan Coens wrote: Hello Nikola, Machines are not identical, the fast machine has different specs (less memory, less disk space and less cpu) then the slow machine (this one has better specs). Quite ironic. One hint we've got is the carachter encoding in which the file is saved, but it seems to me this cannot be the problem... It can be a problem, but not responsible for 20x degradation. Sure, heavy artillery can be used, but i don't think that would lead us to a solution, also because the machine with lesser specs serves better, and we use the same tomcat version, same settings and same jdk version. Agreed. The only thing you're left with is profiling. There were some posts on that subject. So far, we've heard of JProfiler and something from IBM. Borland's JBuilder has OptimizeIt Suite, but it costs $$$. Nix. - 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: dramatic performance differences on development machines
Try tomcat-4.1.29 or tomcat-5.x -- De: Johan Coens[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 13 de janeiro de 2004 11:10 Para: Tomcat Users List Assunto: RE: dramatic performance differences on development machines A lot of network traffic, database lookups, rmi is going on, but i even tested that by placing code on the mediasurface server with oracle (placing all on one box), and so limiting network traffic, but same performance issues occured. I tested on websphere and everything is speedy (so, its not the code). It should be something in the system, a configuration which influences tomcat performance dramatically and not webspheres performance, but what i can't figure out what this could be. Maybe the only solution for me is running websphere... Thanks for the feedback, Johan -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 14:48 To: 'Tomcat Users List' Subject: RE: dramatic performance differences on development machines What does the servlet do during the request. Is it a database lookup or what? It's intresting that it's using 50-90% cpu time. If it were a network error or mis-configuration I'd expect to see 0% cpu used during the timeout period. Are you sure the application is working correctly when the response has come back. Maybe there is some sort of timeout running in your application that does not yield very well, ie: a tight loop waiting for something? Maybe your processing is not as correct as you think. Give us more to work with... Donie -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 13:45 To: Tomcat Users List Subject: RE: dramatic performance differences on development machines This kind of performance degration can also have some of the following causes if the load of the system doesn't indicate a problem: - long or failing DNS Lookups. - Missconfiguration that leads to round trips in the network. - locks (e.g. Database) I think you have to isolate one request that takes long and find out where the time is spent. (This doesn't mean in all cases profiling, in the first step it might be enough to find out if the time is spent before the request reaches the application, in the application, or after the application has sent the response.) -Original Message- From: Johan Coens [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 2:28 PM To: Tomcat Users List Subject: RE: dramatic performance differences on development machines Here the specs are: It's a windows XP development Client Pentium 4, 2GHz, 512Mb memory jdk 1.3.1_06 tomcat 4.0.6 Tomcat is consuming 50-90% of processing time when serving the request. Notice, i tetsted the app on websphere too, it is serving quite fast, 400ms. instead of 2ms. If anybody can point me where too look at I would be very happy. Johan -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 12:55 To: 'Tomcat Users List' Subject: RE: dramatic performance differences on development machines Any chance there is something else running on the machine that's killing the performance. You should post the specs of the machine if you expect a reasonable guess as to your problem. Donie -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 09:43 To: Tomcat Users List Subject: Re: dramatic performance differences on development machines Johan Coens wrote: Hello Nikola, Machines are not identical, the fast machine has different specs (less memory, less disk space and less cpu) then the slow machine (this one has better specs). Quite ironic. One hint we've got is the carachter encoding in which the file is saved, but it seems to me this cannot be the problem... It can be a problem, but not responsible for 20x degradation. Sure, heavy artillery can be used, but i don't think that would lead us to a solution, also because the machine with lesser specs serves better, and we use the same tomcat version, same settings and same jdk version. Agreed. The only thing you're left with is profiling. There were some posts on that subject. So far, we've heard of JProfiler and something from IBM. Borland's JBuilder has OptimizeIt Suite, but it costs $$$. Nix. - 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
RE: dramatic performance differences on development machines
The machine that has tomcat running is a developer or production machine? Are there other applications or there is just tomcat? -- De: Donie Kelly[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 13 de janeiro de 2004 13:13 Para: 'Tomcat Users List' Assunto: RE: dramatic performance differences on development machines No I meant the rrequest times for each machine. You said one took 400ms I think and the other was 20seconds. Which machine gave which response. You said you moved it to a slow dev machine but it wasn't clear which request time it gave you. If you can do what peter lin says and give us more details. It may save time in the long run... Donie -Original Message- From: Johan Coens [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 16:07 To: Tomcat Users List Subject: RE: dramatic performance differences on development machines I'll come back on this later, i'll be out of office for a day but i'll do some more testing and post results at this mailinglist. what do you mean with transaction times, for each request or can i get more detailed processing detail for a http request? thanks for all responses -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 16:59 To: 'Tomcat Users List' Subject: RE: dramatic performance differences on development machines Maybe the only solution for me is running websphere... ha. Telling this to a company that sold you Tomcat might work but making threats like this won't get the problem solved quicker ;) Just joking. Ca you view the processes cpu load on the machine during the request? I find it strange that tomcat is using so much cpu during the request. Can you send us the specs of the two machines you are using and also the transaction times for each. I'm a bit confused over which machine gave the fastest reponse. Thanks Donie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML JDBC driver
Hello folks, does anybody here know a good JDBC driver to deal with XML files? Regards, Edson
RE: Tomcat JProfiler
To make JProfiler work properly with tomcat you need to add agent.jar in tomcat´s CLASSPATH! #TOMCAT_HOME/bin/startup.sh JAVA_OPTS=-Xint -Xrunjprofiler:${PARAM_JPROFILER} -Xbootclasspath/a:/opt/jakarta-tomcat-4.1.18/bin/agent.jar export JAVA_OPTS -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 9 de janeiro de 2004 16:21 Para: Tomcat Users List Assunto: RE: Tomcat JProfiler Howdy, 1. I am passing the JProfiler parameters through my JAVA_OPTS in Catelina.sh and when I also try to set my heap size and/or garbage collection parameters tomcat doesn't seem to start. It works fine with one or the other. There are some invalid combinations of the Java VM Options. I don't think there's an exhaustive list, but the VM will give you an error (Could Not Initialize Virtual Machine or something like that). This is not a tomcat problem. 2. If I shutdown tomcat the Jprofiler process will not shutdown unless I manually kill it. Again, not a tomcat problem. Contact the JProfiler folks if you think the above is an issue. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight
In my opnion, is better instead of increasing memory of tomcat JVM try to profile your application. I´m sure if tomcat complain about memory, your servlets have something wrong. -- De: Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 8 de janeiro de 2004 7:31 Para: Tomcat Users List Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight -Original Message- The other day Tomcat threw an OutOfMemoryException. This is our development version of Tomcat. Looking at the Windows processes revealed Tomcat at 158MB. Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx parameter. So, the memory allocated to your applications is 64MB (default). 158 is a good value reflecting the size of the VM plus the size allocated to your applications. If your application needs more memory, try to path -Xmx=128m -Xms=128m to your startup scripts. Hope this helps, François (Oraculum). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight
JProfiler is the best for this job, there are examples to show you how bind JProfiler to tomcat ( www.jprofiler.com ), its pretty easy to handle this tool. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 8 de janeiro de 2004 8:58 Para: Tomcat Users List Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight Yes I would like to profile my applicationbut do you have any tips on how to do this or where to start? Thanks -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 08 January 2004 12:49 To: 'Tomcat Users List' Subject: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight In my opnion, is better instead of increasing memory of tomcat JVM try to profile your application. I´m sure if tomcat complain about memory, your servlets have something wrong. -- De: Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:quinta-feira, 8 de janeiro de 2004 7:31 Para: Tomcat Users List Assunto:RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overnight -Original Message- The other day Tomcat threw an OutOfMemoryException. This is our development version of Tomcat. Looking at the Windows processes revealed Tomcat at 158MB. Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx parameter. So, the memory allocated to your applications is 64MB (default). 158 is a good value reflecting the size of the VM plus the size allocated to your applications. If your application needs more memory, try to path -Xmx=128m -Xms=128m to your startup scripts. Hope this helps, François (Oraculum). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems running pre-compiled JSP classes when in subdirector ies
Show us the exception how it appears to you. -- De: Jay Glanville[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 7 de janeiro de 2004 10:20 Para: 'Tomcat Users List' Assunto: Problems running pre-compiled JSP classes when in subdirectories I originally posted this question back in mid-December, but without any responses. In the hopes that someone will have a hit or a solution, I'm reposting the question again. I'm having a problem when I try to use my pre-compiled JSP files: I receive a NoClassDefFoundError exception. Here's what I'm doing ... I have pre-compiled my JSP classes using the JspC plugin from ant. My files compile without complaint. However, when I try to access the files through tomcat, I receive some NoClassDefFoundError exceptions. But these exceptions only occur when I'm accessing JSPs in the subdirectories off of the web root. Here's my application's background. I have two files: WEBROOT/index.jsp WEBROOT/dir/index.jsp The contents of the two files are just simple HTML. I precompiled the JSP using the JspC ant target, then compiled using javac. Finally, I created a context pointing the work directory to the location of my java and class files. When I tried to access the first file (http://localhost/context/index.jsp) everything went fine. However, when I tried to access the second file (http://localhost/context/dir/index.jsp), I received the NoClassDefFoundError. The log file looks like this: 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [deleted ...] - Root Cause - java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) [deleted] Now, according to my research on this mailing list, the most frequent reason for a NoClassDef error is capitalization. However, this isn't the case in my situation as the two package names are completely different: org/apache/jsp/index_jsp vs. org/apache/jsp/dir/index_jsp. I'm using Tomcat 4.1.29. Any suggestions on how to alleviate this situation would be greatly appreciated. Thanks JDG PS: I should also point out that I have tried the recommended way of precompiling my JSP by converting to servlets (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%2 0Application%20Compilation). However, I have a problem with this method: it makes it that much harder to patch my application. With the non-servlet approach, I just simply deliver the modified JSP files. With the servlet approach, I need to deliver the classes, plus ensure that the web.xml is correct (add new entries, remove old ones, modify where needed), plus restart the context. -- Jay Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems running pre-compiled JSP classes when in subdirector ies
That´s the answer, you need to specify org.apache as your JSP package. Here´s a example from my build.xml how to use jspc jspc srcdir =${webapp}/jsp//Place where JSPC can find web.xml destdir =${webapp}//place where jsp files will be created verbose =9 package=org.apache//root package uriroot =jsp // alias that you would use for JSP pages webxml =${webapp}/WEB-INF/jsp.xml// file to manage JSP files classpathref=base-path webapp basedir=${webapp}/ /jspc -- De: Antony Paul[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 7 de janeiro de 2004 11:13 Para: Tomcat Users List Assunto: Re: Problems running pre-compiled JSP classes when in subdirectories I think the problem is the compiled source file is not in the org.apache.jsp package. How to set this in jspc task. Antony Paul - Original Message - From: Antony Paul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 7:41 PM Subject: Re: Problems running pre-compiled JSP classes when in subdirectories exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.lang.ClassLoader.defineClass(ClassLoader.java:431) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) Interestingly if the jsp is comiled to servlet using jspc ant task and page is requested through browser then everything goes fine. If the generated source file is compiled using javac target of it is showing this error. Antony Paul - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 8:12 PM Subject: RE: Problems running pre-compiled JSP classes when in subdirectories Show us the exception how it appears to you. -- De: Jay Glanville[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: quarta-feira, 7 de janeiro de 2004 10:20 Para: 'Tomcat Users List' Assunto: Problems running pre-compiled JSP classes when in subdirectories I originally posted this question back in mid-December, but without any responses. In the hopes that someone will have a hit or a solution, I'm reposting the question again. I'm having a problem when I try to use my pre-compiled JSP files: I receive a NoClassDefFoundError exception. Here's what I'm doing ... I have pre-compiled my JSP classes using the JspC plugin from ant. My files compile without complaint. However, when I try to access the files through tomcat, I receive some NoClassDefFoundError exceptions. But these exceptions only occur when I'm accessing JSPs in the subdirectories off of the web root. Here's my application's background. I have two files: WEBROOT/index.jsp WEBROOT/dir/index.jsp The contents of the two files are just simple HTML. I precompiled the JSP using the JspC ant target, then compiled using javac. Finally, I created a context pointing the work directory to the location of my java and class files. When I tried to access the first file (http://localhost/context/index.jsp) everything went fine. However, when I tried to access the second file (http://localhost/context/dir/index.jsp), I received the NoClassDefFoundError. The log file looks like this: 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [deleted ...] - Root Cause - java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) [deleted] Now, according to my research on this mailing list, the most frequent reason for a NoClassDef
RE: excel from java
I´d take a look at OpenOffice code ( www.openoffice.og ) -- De: Kumar, Sumit[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 7 de janeiro de 2004 13:04 Para: 'Tomcat Users List' Assunto: excel from java Hello, I want to generate some complex excel sheets (performing calculations, using pivot tables etc) from my java code. Can somebody point me to good opensource tools available to do that. I looked on apache and came across POI-HSSF project. Is this the way to go or there are any better tools.. Thnaks -sumit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling
Usually every databse has its own ConnectionPool implementation. -- De: James Neville[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 7 de janeiro de 2004 13:50 Para: Tomcat Users List Assunto: Re: Connection Pooling Justin, That would all depend on the pooling implementation you're using. Commonly, its pool.free(conn) or pool.freeConnection(conn). Remember *not* to close the connection if you're using connection pooling, as this should be handled by the pool itself. That said one of my colleagues mentioned one pooling implementation he used that returned a custom connection object when obtained from the pool (ie not a java.sql Connection object). The close() method on that connection returned it to the pool, but *didn't* actually close it. If you let us know which pooling implementation you're using, it may make things clearer ;) Cheers, James Hart, Justin wrote: Is there some manner in which a database connection should be returned to the connection pool, or is that automatic? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: suggestion for taglib process
I´m not sure this is the best change for Generator, maybe i must know tomcat´s source in deep. But is here what we need. /// //Old org.apache.tomcat.jasper.compiler.Generator:1450 String attrName = attrs[i].getName(); Method m = handlerInfo.getSetterMethod(attrName); if (m == null) { err.jspError(n, jsp.error.unable.to_find_method, attrName); } /// New: org.apache.tomcat.jasper.compiler.Generator:1450 StringBuffer sbMsg = null; String attrName = attrs[i].getName(); Method m = handlerInfo.getSetterMethod(attrName); if (m == null) { sbMsg = new StringBuffer( ); sbMsg.append( jsp.error in [ ); sbMsg.append( handlerInfo.getTagHandlerClass( ).getName( )); sbMsg.append( ], unable.to_find_method ); err.jspError( n, sbMsg.toString( ), attrName); } -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 31 de dezembro de 2003 10:46 Para: Tomcat Users List Assunto: RE: suggestion for taglib process Howdy, Great! I'm glad you have an enhancement in mind: when you contribute a patch I'll be glad to review and commit it. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:46 PM To: 'Tomcat-User List' Subject: suggestion for taglib process Hello folks, i´d like to see all error Tomcat´s messages related with taglib changed to display exactly the taglib that the error cames from, for example, take a look in this message: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required I think it could be better if this message above would be like: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required for oslib.tagext.NumberTag Regards, Edson 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: why i can't show my index.jsp
Maybe you need to define welcome-file-list/ in your WEB-INF/web.xml and try to create a new webapp, instead of edit default index.jsp from tomcat. I´m think tomcat´s default root application ( webapp ) is configured to not reload JSP pages. -- De: a a[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 5 de janeiro de 2004 6:09 Para: [EMAIL PROTECTED] Assunto: why i can't show my index.jsp after installed apache and tomcat5 on windows xp. 1. run ie type http://127.0.0.1apache index.html is ok 2. run ie type http://127.0.0.1:8080 tomcat's page also ok 3. config httpd.conf add dso suppert and jsp servelet 4. config servers.xml add tomcat path infomation 5. restart service edit test.jsp saved at tomcat/**/ROOT 6. now, run ie type http://127.0.0.1/test.jsp, ok 7. now rename test.jsp to index.jsp, but the page is not the content of test.jsp but the content of tomcat. e.g:( Administration Status Tomcat Administration Tomcat Manager Documentation Release Notes Tomcat Documentation If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations! ) Now, the question is : 1. why it can't show my test.jsp? 2. i have already removed tomcat's index.jsp, and i searched all the programs director and i can't found and index.jsp file 's content is matched the index.jsp i have see when type http://127.0.0.1/index.jsp, i wonder to know where is it located of the index.jsp i have see at http://127.0.0.1/index.jsp _ ??,??? MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: suggestion for taglib process
Hello Yoav, i think we have here more that just changing a error message. I´ll try to explain: The class that jasper says not found a method is named CurrencyLookup and its method is setRequired, that´s why jasper complains about something called required ( i telling you what is happening ). CurrencyLookup extends Lookup and Lookup extends FieldHTML ( all of them are taglibs ). setRequired is implemented in FieldHTML. After debug tomcat and check which class jasper was complaining, i really couldn´t understand why Generator can´t see this method. For me its sound like another bug, what do you think. PS. I´m using tomcat-4.1.24 -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 5 de janeiro de 2004 11:19 Para: Tomcat Users List Assunto: RE: suggestion for taglib process Howdy, Actually, this seems very reasonable. Please submit it to Bugzilla as an enhancement request and attach your code diff. Thanks ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 9:46 AM To: 'Tomcat Users List' Subject: RE: suggestion for taglib process I´m not sure this is the best change for Generator, maybe i must know tomcat´s source in deep. But is here what we need. / // //Old org.apache.tomcat.jasper.compiler.Generator:1450 String attrName = attrs[i].getName(); Method m = handlerInfo.getSetterMethod(attrName); if (m == null) { err.jspError(n, jsp.error.unable.to_find_method, attrName); } / // New: org.apache.tomcat.jasper.compiler.Generator:1450 StringBuffer sbMsg = null; String attrName = attrs[i].getName(); Method m = handlerInfo.getSetterMethod(attrName); if (m == null) { sbMsg = new StringBuffer( ); sbMsg.append( jsp.error in [ ); sbMsg.append( handlerInfo.getTagHandlerClass( ).getName( )); sbMsg.append( ], unable.to_find_method ); err.jspError( n, sbMsg.toString( ), attrName); } -- De:Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: quarta-feira, 31 de dezembro de 2003 10:46 Para: Tomcat Users List Assunto: RE: suggestion for taglib process Howdy, Great! I'm glad you have an enhancement in mind: when you contribute a patch I'll be glad to review and commit it. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:46 PM To: 'Tomcat-User List' Subject: suggestion for taglib process Hello folks, i´d like to see all error Tomcat´s messages related with taglib changed to display exactly the taglib that the error cames from, for example, take a look in this message: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required I think it could be better if this message above would be like: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required for oslib.tagext.NumberTag Regards, Edson 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
suggestion for taglib process
Hello folks, i´d like to see all error Tomcat´s messages related with taglib changed to display exactly the taglib that the error cames from, for example, take a look in this message: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required I think it could be better if this message above would be like: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required for oslib.tagext.NumberTag Regards, Edson
RE: Annoying problem when using new jar files
What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534) The problem is not so annoying so far, but I guess you all see when I say this: I have tried with another test.jar file and test.jsp and nothing fails!!! Why this test.jar works and the other one I want to work doesn't? I have tried to use this .jar file with the resin (another jsp server) and it also fails, may it be that the jar file is corrupted? I have created the jar file in two different computers and both fail. I have read the documentation about tomcat 4.1 and apache,
RE: Annoying problem when using new jar files
Where did you put this jar file with XX? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 9:23 Para: Tomcat Users List Assunto: Re: Annoying problem when using new jar files That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
RE: Problem in Connection Pooling
You must put ojdbc14.jar inside $TOMCAT_HOME/common/lib :D -- De: Kumar Abhay-CAK203C[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 22 de dezembro de 2003 22:52 Para: Tomcat Users List Assunto: Problem in Connection Pooling Prioridade: Alta Hello, I am trying to set up connection pooling with Tomcat 4.1.29 and Oracle 9i I am getting the below error: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause:java.sql.SQLException: No suitable driver Please tell me what to do to resolve this. I am able to lookup dB. But on trying to fetch data from dB I am getting this error. Please Help Regards Abhay Details: Server.xml Resource name=estimation scope=Shareable type=javax.sql.DataSource/ ResourceParams name=estimation parameter namevalidationQuery/name valueselect sysdate from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuepass/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@server_name:1521:DEV/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueeppsys/value /parameter /ResourceParams Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Estimation docBase=C:\Estimation mapperClass=org.apache.catalina.core.StandardContextMapper path=/Estimation privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=localhost_estimation_log. suffix=.txt timestamp=true verbosity=1/ /Context Web.xml resource-ref res-ref-namejdbc/estimation/res-ref-name res-typejavax.sql.DataSource/res-type res-authShareable/res-auth /resource-ref Class Path .;C:\Estimation;C:\Tomcat\common\lib\servlet.jar;C:\Tomcat\common\lib\mail .jar;C:\Tomcat\common\lib\activation.jar;C:\Tomcat\common\lib\jndi.jar;C:\ Tomcat\common\lib\jdbc2_0-stdext.jar;C:\Tomcat\common\lib\classes12.jar Tried with oracle.jar and ojdbc14.jar
RE: How do I reload a Servlet from a JSP page?
Servlets are reloaded when your servlet engine is restarted or you configure you webapp to always reaload servlets ( this is very slow ). -- De: Nathan Christiansen[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 23 de dezembro de 2003 14:46 Para: [EMAIL PROTECTED] Assunto: How do I reload a Servlet from a JSP page? I am using a JSP page to add and change properties files for my servlet in my development and testing environments. I have Tomcat (4.1.24) set up to reload the servlet on changes to the context (i.e. reloadable=true). When I change an existing properties file, Tomcat responds by reloading the servlet and therefore loading the changes. However, when I add a new properties file (in the WEB-INF/classes directory), Tomcat never reloads the servlet. Even when I change that new properties file Tomcat doesn't reload it until the servlet gets reloaded by some other means. So my question is: How do I reload a servlet from a JSP page? -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
alias and JspC
Hello folks, i´d like to know how can i define a alias for my JSP pages, for example usually we do: http://localhost/my-webapp/jsp/hello.jsp How can i make ant´s jspc tag build my JSP pages with /jsp as a default alias instead of / ( this infact isn´t a alias just a name before JSP page, but you got the idea )? Regards, Edson
RE: Broken pipe exception
Which database are you using? -- De: Markus Brigl[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 19 de dezembro de 2003 6:06 Para: [EMAIL PROTECTED] Assunto: Broken pipe exception Hi I received the following exception! We are using Tomcat 4.1.18, jre1.3.1_09 and explorer 6.0.2 The exception happens always if I'm adding elements to a table and I'm refreshing the data from server. The size of this list doesn't matter because I happens just with short lists: 2003-12-12 15:56:19 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doW rite(InternalOutputBuffer.java:668) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutp utFilter.java:160) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer .java:523) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:38 4) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java :110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java: 1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.j ava:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCon nection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j ava:530) Does anybody know the
RE: Broken pipe exception
Here we have Oracle9i and some time ago, we used to have this problem when too much connection were open with Oracle and some were too much network connection open. I don´t know this database, but maybe its a path to solve it. -- De: Markus Brigl[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 19 de dezembro de 2003 9:35 Para: Tomcat Users List Assunto: Re: Broken pipe exception We use Versant 6.0.5 patch 10! Do you think the problem is connected to the database? Thank's for help! Markus Edson Alves Pereira wrote: Which database are you using? -- De: Markus Brigl[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:sexta-feira, 19 de dezembro de 2003 6:06 Para: [EMAIL PROTECTED] Assunto:Broken pipe exception Hi I received the following exception! We are using Tomcat 4.1.18, jre1.3.1_09 and explorer 6.0.2 The exception happens always if I'm adding elements to a table and I'm refreshing the data from server. The size of this list doesn't matter because I happens just with short lists: 2003-12-12 15:56:19 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d oW rite(InternalOutputBuffer.java:668) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOu tp utFilter.java:160) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff er .java:523) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java: 38 4) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.ja va :110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.jav a: 1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:174 5) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet .j ava:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:50 6) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica ti onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt er Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e. java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lv e.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80
RE: CGI not working on Tomcat 5.0.16?
Just a question, CGI isn´t a Apache server matter? -- De: Jonathan Eric Miller[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 15 de dezembro de 2003 20:52 Para: Tomcat Users List Assunto: Re: CGI not working on Tomcat 5.0.16? Do you have the same error that I do in your log? As far as I can tell this is a bug in Tomcat. Jon - Original Message - From: Lawrence, Gabriel [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:58 PM Subject: RE: CGI not working on Tomcat 5.0.16? I've noticed that on tomcat 5 the working directory that it execs the cgi script in is different then it was on tomcat 4. I haven't solved my problem yet, but I have isolated that to be my problem. -gabe -Original Message- From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 2:42 PM To: Tomcat User List Subject: CGI not working on Tomcat 5.0.16? I've been having problems getting CGI to work with Tomcat 5.0.16. I have it working with Tomcat 4.1. Has anyone else been able to get it to work? I'm receiving the following error in my localhost_log*.txt log even though the file listed is there. Has anyone else had this problem? 2003-12-12 16:46:14 StandardContext[]cgi: runCGI (stderr):Can't open perl script /opt/jakarta-tomcat-5.0.16/webapps/ROOT/WEB-INF/cgi/awstats.pl: No such file or directory 2003-12-12 16:46:14 StandardContext[]cgi: runCGI: 1 lines received on stderr Jon - 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: precompile jsp
There are a big problem with JspC ant´s tag, its error messages. Someone must analyse JspC code and improve all messages within. But i hope that this exemple would help you: !--///-- target name=compilePaginasJSP depends=copiarArquivosEstaticos jspc srcdir =${webapp}/jsp destdir =${webapp} verbose =9 package =org.apache webxml =${webapp}/WEB-INF/jsp.xml classpathref=base-path webapp basedir=${webapp}/ /jspc javac srcdir=${webapp}/jsp debug=${use.debug} classpathref=base-path destdir=${webapp}/bin/ jar destfile=${webapp}/WEB-INF/lib/libjsp.jar basedir=${webapp}/bin/ delete dir=${webapp}/jsp/ delete dir=${webapp}/bin/ /target !--///-- -- De: Hans Steinraht[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: domingo, 14 de dezembro de 2003 14:03 Para: [EMAIL PROTECTED] Assunto: precompile jsp hi all, just a question, I'm trying to precompile my jsp with the ant build script from the apache site ( jasper-howto). I don.t now what is going wrong but when I execute it with: ant -Dtomcat.home=/opt/jakarta-tomcat-4.1.24 -Dwebapp.path=/opt/jakarta-tomcat-4.1.24/webapps/mywebapp the message I receive is: jspc: No public no-arg constructor in class org.apache.jasper.JspC BUILD FAILED file:/jspc/build.xml:11: No public no-arg constructor in class org.apache.jasper.JspC Ant idea what I'm doing wrong? Maybe interesting, I get the same error when I try to precompile with the script from: http://cvs.apache.org/~fhanik/precompile.html Any help is apreciated Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session attributes seems don´t work with Mozilla 1.4
Hello folks, i´m using Mozilla 1.4 and i just create a session atribute named Var_Blah with value here my value and made my JSP page show its value, like %= ( String )session.getAttribute( Var_Blah ) %. But it didn´t work, my browser window is modal, any idea? Regards, Edson
RE: precompile jsp
No dude, after org.apache JspC task will include jsp also, so the result is org.apache.jsp -- De: Hans Steinraht[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 15 de dezembro de 2003 11:52 Para: Tomcat Users List Assunto: Re: precompile jsp Doing it this way your using ants jspc task giving the classes a packagename org.apache I have checked tomcats work directory and see that tomcat compiles the jsp in a package org.apache.jsp. Thats why I like to use tomcats jspc task (org.apache.jasper.JspC), to avoid that there are differences in the way tomcat compiles or when I do it myself. Anyhow thanks for the answer, I try to play with it and see what happends Hans On Mon, Dec 15, 2003 at 09:35:46AM -0300, Edson Alves Pereira wrote: There are a big problem with JspC ant?s tag, its error messages. Someone must analyse JspC code and improve all messages within. But i hope that this exemple would help you: !--///-- target name=compilePaginasJSP depends=copiarArquivosEstaticos jspc srcdir =${webapp}/jsp destdir =${webapp} verbose =9 package =org.apache webxml =${webapp}/WEB-INF/jsp.xml classpathref=base-path webapp basedir=${webapp}/ /jspc javac srcdir=${webapp}/jsp debug=${use.debug} classpathref=base-path destdir=${webapp}/bin/ jar destfile=${webapp}/WEB-INF/lib/libjsp.jar basedir=${webapp}/bin/ delete dir=${webapp}/jsp/ delete dir=${webapp}/bin/ /target !--///-- -- De: Hans Steinraht[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: domingo, 14 de dezembro de 2003 14:03 Para: [EMAIL PROTECTED] Assunto: precompile jsp hi all, just a question, I'm trying to precompile my jsp with the ant build script from the apache site ( jasper-howto). I don.t now what is going wrong but when I execute it with: ant -Dtomcat.home=/opt/jakarta-tomcat-4.1.24 -Dwebapp.path=/opt/jakarta-tomcat-4.1.24/webapps/mywebapp the message I receive is: jspc: No public no-arg constructor in class org.apache.jasper.JspC BUILD FAILED file:/jspc/build.xml:11: No public no-arg constructor in class org.apache.jasper.JspC Ant idea what I'm doing wrong? Maybe interesting, I get the same error when I try to precompile with the script from: http://cvs.apache.org/~fhanik/precompile.html Any help is apreciated Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hans Steinraht Artofakt Internet Solutions Binnenkadijk 120 1018 ZH Amsterdam The Netherlands [EMAIL PROTECTED] Phone: +3120 638 4667 Mobile: +316 45 202 302 Fax: +3120 638 4667 www.artofakt.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new JVM feature, just an idea
Hello folks, as you know windows has a limit for command-line ( something like 128kb ), i´m not a windows fan, but here for a while i still using this OS. Then as we cannot change this behaviour ( in win95, win98 and winnt, others i don´t known and i hope never use them ), would be a good idea make JVM read classpath form a file named .javarc like .bash_profile and there create a entrypoint like: ### #/home/edson/.javarc classpath=d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinregion.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinlf.jar;\ d:\usr\local\ecs-1.4.1\lib\xerces-1.2.2.jar;\ d:\usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;\ d:\usr\local\ecs-1.4.1\ecs-1.4.1.jar;\ d:\usr\local\java_cup\java_cup.jar;\ d:\usr\local\hsqldb_v.1.61\lib\hsqldb.jar;\ d:\usr\local\junit3.7\junit.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar; ### Here i give up to find a solution for my winnt, because there isn´t solution. Then i´ll create a new ClassLoader for my winnt machine to find my classpath in this file also. What do you think about it? Does it could be a good implementation for JVM for windows or all JVMs? Regards, Edson
RE: new JVM feature, just an idea
The point here is that my classpath is very big and even using environment variables winnt complain about it. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 10:47 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, You can use the environment variables on windows as well. And FYI, though I'm not a big M$ fan, Windows XP and 2003 are not bad, I've been working with them a bit without stability problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 9:16 AM To: 'Tomcat-User List' Subject: new JVM feature, just an idea Hello folks, as you know windows has a limit for command-line ( something like 128kb ), i´m not a windows fan, but here for a while i still using this OS. Then as we cannot change this behaviour ( in win95, win98 and winnt, others i don´t known and i hope never use them ), would be a good idea make JVM read classpath form a file named .javarc like .bash_profile and there create a entrypoint like: ### #/home/edson/.javarc classpath=d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinregion.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinlf.jar;\ d:\usr\local\ecs-1.4.1\lib\xerces-1.2.2.jar;\ d:\usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;\ d:\usr\local\ecs-1.4.1\ecs-1.4.1.jar;\ d:\usr\local\java_cup\java_cup.jar;\ d:\usr\local\hsqldb_v.1.61\lib\hsqldb.jar;\ d:\usr\local\junit3.7\junit.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar; ### Here i give up to find a solution for my winnt, because there isn´t solution. Then i´ll create a new ClassLoader for my winnt machine to find my classpath in this file also. What do you think about it? Does it could be a good implementation for JVM for windows or all JVMs? Regards, Edson 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: new JVM feature, just an idea
Exactly, that´s it! Even using environment variable in a MSDOS shell you can reach the line limit. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 13:57 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, So you really have a classpath environment variable that's bigger than 128KB? (If that's really the limit, as you say in your original message). Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 12:51 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea The point here is that my classpath is very big and even using environment variables winnt complain about it. -- De:Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 10:47 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, You can use the environment variables on windows as well. And FYI, though I'm not a big M$ fan, Windows XP and 2003 are not bad, I've been working with them a bit without stability problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 9:16 AM To: 'Tomcat-User List' Subject: new JVM feature, just an idea Hello folks, as you know windows has a limit for command-line ( something like 128kb ), i´m not a windows fan, but here for a while i still using this OS. Then as we cannot change this behaviour ( in win95, win98 and winnt, others i don´t known and i hope never use them ), would be a good idea make JVM read classpath form a file named .javarc like .bash_profile and there create a entrypoint like: ### #/home/edson/.javarc classpath=d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinregion.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinlf.jar;\ d:\usr\local\ecs-1.4.1\lib\xerces-1.2.2.jar;\ d:\usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;\ d:\usr\local\ecs-1.4.1\ecs-1.4.1.jar;\ d:\usr\local\java_cup\java_cup.jar;\ d:\usr\local\hsqldb_v.1.61\lib\hsqldb.jar;\ d:\usr\local\junit3.7\junit.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar; ### Here i give up to find a solution for my winnt, because there isn´t solution. Then i´ll create a new ClassLoader for my winnt machine to find my classpath in this file also. What do you think about it? Does it could be a good implementation for JVM for windows or all JVMs? Regards, Edson 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]
RE: new JVM feature, just an idea
This mainly it happen with ant, here a snapshot of it: D:\home\edsonset LOCALCLASSPATH=d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant-1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar;d:\arquiv~1\ j2sd k1.4.1_01\commapi\comm.jar;d:\usr\local\skinlf-1.2.4\lib\skinregion.jar;d:\u sr\l ocal\skinlf-1.2.4\lib\skinlf.jar;d:\usr\local\ecs-1.4.1\lib\xerces-1.2.2.jar ;d:\ usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;d:\usr\local\ecs-1.4.1\ecs-1. 4.1. jar;d:\usr\local\java_cup\java_cup.jar;d:\usr\local\hsqldb_v.1.61\lib\hsqldb .jar ;d:\usr\local\junit3.7\junit.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\x mlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant-1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar;d:\desenv\os ctrl _lib\classes;d:\desenv\osctrl\classes;d:\desenv\pannet\src\servlets\ifinance \cla sses;d:\desenv\pannet\src\servlets\intranet\classes;d:\desenv\pannet\src\ser vlet s\panfinance\classes;d:\desenv\pannet\src\servlets\base\classes;d:\desenv\pa nnet \java-lib\jasper-runtime.jar;d:\desenv\pannet\java-lib\jasper-compiler.jar;d :\de senv\pannet\java-lib\jdbc2_0-stdext.jar;d:\desenv\pannet\java-lib\tinySQL.ja r;d: \desenv\pannet\java-lib\servlet.jar;d:\desenv\pannet\java-lib\ojdbc14.jar;d: \des env\pannet\java-lib\shell_term.jar;d:\desenv\pannet\java-lib\crimson.jar;d:\ dese nv\pannet\java-lib\jconcept.zip;d:\desenv\pannet\java-lib\com.zip;d:\desenv\ pann et\java-lib\acme.zip;d:\desenv\pannet\java-lib\xBaseJ.jar;d:\desenv\pannet\j ava- lib\oreilly.jar;d:\desenv\pannet\java-lib\mail.jar;d:\desenv\pannet\java-lib \jst yle.jar;d:\desenv\pannet\java-lib\jndi.jar;d:\desenv\pannet\java-lib\jcServl et.j ar;d:\desenv\pannet\java-lib\activation.jar;d:\jbuilder4\lib\jaxp.jar;d:\arq uiv~ 1\j2sdk1.4.1_01\lib\tools.jar;d:\arquiv~1\j2sdk1.4.1_01\lib\dt.jar;.;; I couldn´t take correctly ant´s command line, but i think that it gives some idea. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:07 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, It's fascinating other people in the almost decade-long history of the language haven't had this problem. Don't you find that curious? ;) Can you post one such classpath example that's giving you problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:03 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea Exactly, that´s it! Even using environment variable in a MSDOS shell you can reach the line limit. -- De:Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 13:57 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, So you really have a classpath environment variable that's bigger than 128KB? (If that's really the limit, as you say in your original message). Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 12:51 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea The point here is that my classpath is very big and even using environment variables winnt complain about it. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:sexta-feira, 12 de dezembro de 2003 10:47 Para: Tomcat Users List Assunto:RE: new JVM feature, just an idea Howdy, You can use the environment variables on windows as well. And FYI, though I'm not a big M$ fan, Windows XP and 2003 are not bad, I've been working with them a bit without stability problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 9:16 AM To: 'Tomcat-User List' Subject: new JVM feature, just an idea Hello folks, as you know windows has a limit for command-line ( something like 128kb ), i´m not a windows fan, but here for a while i still using this OS. Then as we cannot change this behaviour ( in win95, win98 and winnt, others i don´t known and i hope never use them ), would be a good idea make JVM read classpath form a file named .javarc like .bash_profile and there create a entrypoint like
RE: new JVM feature, just an idea
Because my projects really use XML-APIs and JDBC2 as well as many others, i need put them in my real class path. Ant, as a good example repeat some of course, what we have here is different applications or projects that each one use there libraries and everybody shares the same environment variable CLASSPATH. And i must keep a default CLASSPATH for my machine, by the other hand, we can tomcat lookup for libraries in an interesting way, it just use all libraries that came within and standard Java jars. To solve that problem i´ve already cut out some jars from my default CLASSPATH, but i believe in a future i will face the same problem, that´s why a going to create a new ClassLoader for my machine. And Yoav, you did say that in almost 10 years no one complains about it, but as i know there are many people facing this issue all over internet also. My neibour here has a windows 2000, he will make some tests with its command line. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:41 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, I see -- thanks for the example. You do realize Ant adds a lot of these jars for you automatically to the classpath, right? You don't need to add anything in ANT_HOME/lib, as that's automatically included. Furthermore, if you're using JDK 1.4 or later, you can remove a bunch of other jars from the path as they're included in the JDK, e.g. JAXP, Crimson, JDBC 2.0 extensions. Finally, you have a number of duplicates, e.g. the XML APIs, repeated a number of times in the path. Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:35 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea This mainly it happen with ant, here a snapshot of it: D:\home\edsonset LOCALCLASSPATH=d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml- apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant- 1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\ant.jar;d:\arquiv~1\ j2sd k1.4.1_01\commapi\comm.jar;d:\usr\local\skinlf- 1.2.4\lib\skinregion.jar;d:\u sr\l ocal\skinlf-1.2.4\lib\skinlf.jar;d:\usr\local\ecs-1.4.1\lib\xerces- 1.2.2.jar ;d:\ usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;d:\usr\local\ecs-1.4.1\ecs - 1. 4.1. jar;d:\usr\local\java_cup\java_cup.jar;d:\usr\local\hsqldb_v.1.61\lib\hsq ld b .jar ;d:\usr\local\junit3.7\junit.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\x mlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml- apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant- 1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\ant.jar;d:\desenv\os ctrl _lib\classes;d:\desenv\osctrl\classes;d:\desenv\pannet\src\servlets\ifina nc e \cla sses;d:\desenv\pannet\src\servlets\intranet\classes;d:\desenv\pannet\src\ se r vlet s\panfinance\classes;d:\desenv\pannet\src\servlets\base\classes;d:\desenv \p a nnet \java-lib\jasper-runtime.jar;d:\desenv\pannet\java-lib\jasper- compiler.jar;d :\de senv\pannet\java-lib\jdbc2_0-stdext.jar;d:\desenv\pannet\java- lib\tinySQL.ja r;d: \desenv\pannet\java-lib\servlet.jar;d:\desenv\pannet\java- lib\ojdbc14.jar;d: \des env\pannet\java-lib\shell_term.jar;d:\desenv\pannet\java- lib\crimson.jar;d:\ dese nv\pannet\java-lib\jconcept.zip;d:\desenv\pannet\java- lib\com.zip;d:\desenv\ pann et\java-lib\acme.zip;d:\desenv\pannet\java- lib\xBaseJ.jar;d:\desenv\pannet\j ava- lib\oreilly.jar;d:\desenv\pannet\java-lib\mail.jar;d:\desenv\pannet\java- lib \jst yle.jar;d:\desenv\pannet\java-lib\jndi.jar;d:\desenv\pannet\java- lib\jcServl et.j ar;d:\desenv\pannet\java- lib\activation.jar;d:\jbuilder4\lib\jaxp.jar;d:\arq uiv~ 1\j2sdk1.4.1_01\lib\tools.jar;d:\arquiv~1\j2sdk1.4.1_01\lib\dt.jar;.;; I couldn´t take correctly ant´s command line, but i think that it gives some idea. -- De:Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:07 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, It's fascinating other people in the almost decade-long history of the language haven't had this problem. Don't you find that curious? ;) Can you post one such classpath example that's giving you problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:03 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea Exactly, that´s it! Even using environment
RE: new JVM feature, just an idea
That´s right, but even using a GUI IDE like JBuilder or Netbeans this problem can occours, because in a low level these tools make a command like to compile, to build a webbapp or to create a jar file. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 15:18 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, And Yoav, you did say that in almost 10 years no one complains about it, but as i know there are many people facing this issue all over internet also. My neibour here has a windows 2000, he will make some tests with its command line. I misunderstood your problem when I said no one else has it. What you describe is a common issue. It used to be more common before people used Ant and IDEs, when they did more stuff on the command line. I just haven't compiled anything in a DOS window for ages, so I forgot ;) Yoav Shapira -- De:Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:41 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea Howdy, I see -- thanks for the example. You do realize Ant adds a lot of these jars for you automatically to the classpath, right? You don't need to add anything in ANT_HOME/lib, as that's automatically included. Furthermore, if you're using JDK 1.4 or later, you can remove a bunch of other jars from the path as they're included in the JDK, e.g. JAXP, Crimson, JDBC 2.0 extensions. Finally, you have a number of duplicates, e.g. the XML APIs, repeated a number of times in the path. Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:35 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea This mainly it happen with ant, here a snapshot of it: D:\home\edsonset LOCALCLASSPATH=d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml- apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant- 1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\ant.jar;d:\arquiv~1\ j2sd k1.4.1_01\commapi\comm.jar;d:\usr\local\skinlf- 1.2.4\lib\skinregion.jar;d:\u sr\l ocal\skinlf-1.2.4\lib\skinlf.jar;d:\usr\local\ecs-1.4.1\lib\xerces- 1.2.2.jar ;d:\ usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;d:\usr\local\ecs- 1.4.1\ecs - 1. 4.1. jar;d:\usr\local\java_cup\java_cup.jar;d:\usr\local\hsqldb_v.1.61\lib\hs q ld b .jar ;d:\usr\local\junit3.7\junit.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\x mlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml- apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant- 1.5.4 \lib \optional.jar;d:\usr\local\jakarta\apache-ant- 1.5.4\lib\ant.jar;d:\desenv\os ctrl _lib\classes;d:\desenv\osctrl\classes;d:\desenv\pannet\src\servlets\ifin a nc e \cla sses;d:\desenv\pannet\src\servlets\intranet\classes;d:\desenv\pannet\src \ se r vlet s\panfinance\classes;d:\desenv\pannet\src\servlets\base\classes;d:\desen v \p a nnet \java-lib\jasper-runtime.jar;d:\desenv\pannet\java-lib\jasper- compiler.jar;d :\de senv\pannet\java-lib\jdbc2_0-stdext.jar;d:\desenv\pannet\java- lib\tinySQL.ja r;d: \desenv\pannet\java-lib\servlet.jar;d:\desenv\pannet\java- lib\ojdbc14.jar;d: \des env\pannet\java-lib\shell_term.jar;d:\desenv\pannet\java- lib\crimson.jar;d:\ dese nv\pannet\java-lib\jconcept.zip;d:\desenv\pannet\java- lib\com.zip;d:\desenv\ pann et\java-lib\acme.zip;d:\desenv\pannet\java- lib\xBaseJ.jar;d:\desenv\pannet\j ava- lib\oreilly.jar;d:\desenv\pannet\java- lib\mail.jar;d:\desenv\pannet\java- lib \jst yle.jar;d:\desenv\pannet\java-lib\jndi.jar;d:\desenv\pannet\java- lib\jcServl et.j ar;d:\desenv\pannet\java- lib\activation.jar;d:\jbuilder4\lib\jaxp.jar;d:\arq uiv~ 1\j2sdk1.4.1_01\lib\tools.jar;d:\arquiv~1\j2sdk1.4.1_01\lib\dt.jar;.;; I couldn´t take correctly ant´s command line, but i think that it gives some idea. -- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:sexta-feira, 12 de dezembro de 2003 14:07 Para: Tomcat Users List Assunto:RE: new JVM feature, just an idea Howdy, It's fascinating other people in the almost decade-long history of the language haven't had this problem. Don't you find that curious? ;) Can you post one such classpath example that's giving you problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto
very basic winNT question
Hello folks, i know, this a list for Java and Tomcat, but i´m facing a problem that is a P.A., does anybody here know how can i change winNT command line limit? That´s ´cause my CLASSPATH grew bigger and now my Java tools are complaining about it. Regards, Edson
RE: very basic winNT question
My file system is NTFS -- De: Ostad, James[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 10 de dezembro de 2003 14:11 Para: Tomcat Users List Assunto: RE: very basic winNT question just curious, is it a FAT installation or NTFS? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:49 PM To: 'Tomcat-User List' Subject: very basic winNT question Hello folks, i know, this a list for Java and Tomcat, but i´m facing a problem that is a P.A., does anybody here know how can i change winNT command line limit? That´s ´cause my CLASSPATH grew bigger and now my Java tools are complaining about it. Regards, Edson ---In (14) Out--- (3) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP doubt
Hello folks, i made a war file and i compiled my JSP pages and create a jar file with then. My question is, do i still need to put inside my webapp ( in my case war file, but is the same ) all JSP files anyway? Because tomcat complain about them. Regards, Edson
RE: fmt setLocale
Usually Standard Taglibs we get from Sun´s servers, do you have JSTL in your local machine? -- De: Maxime Colas des Francs[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 13:14 Para: [EMAIL PROTECTED] Assunto: fmt setLocale Hi all, I have a strange pb with my tomcat 4.1.29 and jstl this jsp works : %@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; % fmt:setLocale value=en scope=session/ this one not : %@ taglib prefix=fmt uri=/tags/jstl-fmt % fmt:setLocale value=en scope=session/ (+ in web.xml taglib taglib-uri/tags/jstl-fmt/taglib-uri taglib-location/WEB-INF/tld/fmt.tld/taglib-location /taglib and tld at the right place) compilation error is : Illegal scope attribute without var in fmt:setLocale tag Someone can explain this difference ? thks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP doubt
Is there a tag to import these new xml file in my web.xml? -- De: Rodrigo Ruiz[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 14:14 Para: Tomcat Users List Assunto: Re: JSP doubt Edson Alves Pereira wrote: Hello folks, i made a war file and i compiled my JSP pages and create a jar file with then. My question is, do i still need to put inside my webapp ( in my case war file, but is the same ) all JSP files anyway? Because tomcat complain about them. Regards, Edson Hi Edson, when you compile your JSPs, you are creating a set of servlet classes. Tomcat needs a mapping between the servlet classes and the paths they will serve, so you need to explicitly tell Tomcat to use your index_jsp servlet class when it receives a request for index.jsp. If you do not include this mapping, Tomcat will search for the jsp file, and complain when it does not found it. If you do JSP precompilation through the JspC ant task, I think there is an option to tell it to create a web.xml fragment containing the extra tags you need to include in your web.xml file. Regards, Rodrigo Ruiz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fmt setLocale
Then, maybe there is some sintaxe error in your TLD. What do you have inside /WEB-INF/tld/fmt.tld? -- De: Maxime Colas des Francs[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 15:38 Para: Tomcat Users List Assunto: RE: fmt setLocale What do you get from Sun ? jar files ? Standard Taglib 1.0.4 jars are in my WEB-INF/lib Tomcat seems to have a pb when it get tld from file specified in web.xml ? At 12:14 2003-12-09, you wrote: Usually Standard Taglibs we get from Sun´s servers, do you have JSTL in your local machine? -- De: Maxime Colas des Francs[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 9 de dezembro de 2003 13:14 Para: [EMAIL PROTECTED] Assunto: fmt setLocale Hi all, I have a strange pb with my tomcat 4.1.29 and jstl this jsp works : %@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; % fmt:setLocale value=en scope=session/ this one not : %@ taglib prefix=fmt uri=/tags/jstl-fmt % fmt:setLocale value=en scope=session/ (+ in web.xml taglib taglib-uri/tags/jstl-fmt/taglib-uri taglib-location/WEB-INF/tld/fmt.tld/taglib-location /taglib and tld at the right place) compilation error is : Illegal scope attribute without var in fmt:setLocale tag Someone can explain this difference ? thks - 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: Database pool problem
Of course he has a choice, download MySQL in development machine and he will make his tests. This i´d choose. -- De: Dan Johnsson[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 5 de dezembro de 2003 20:46 Para: Tomcat Users List Assunto: Re: Database pool problem I understand that you do not have a choice, but please not that the JDBC-ODBC bridge is *not for production* [according to Sun], it is *solely* for development and evaluation. The bridge contains identified bugs that will not be addressed [i e support is EOLed]. So, you are using this at your own risk. Check out the bug parade of the bridge; you might have encountered a well-known, documented bug. It that case, there might be a published work-around. Otherwise: I am sorry to say that you are out in the wilderness alone. Dan Johnsson, System Architect and Security Consultant Chaikin, Yaakov Y (US SSA) wrote: 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: