server can't compile some jsp.
! I have no problems with application working on my computer. But, on the customers computer I am facing the problems with the same application. Some pages are compiled, and some not. Configuration ... Wintel, Tomcat5.12, j2sdk1.4.1_02. Tomcat log below. Would you mind looking throw it. 2004-10-14 17:43:05 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms] 2004-10-14 17:43:05 preRegister with Catalina:type=Logger,path=/cms,host=localhost 2004-10-14 17:43:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.io.FileNotFoundException: C:\Apache\jakarta-tomcat-5.0.12\work\Catalina\localhost\cms\org\apache\jsp\menu_jsp.java (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:176) at java.io.FileOutputStream.init(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) Thank you in advance. Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Elliptic Curve Cryptography
Hi Yoav, Can I find some examples ? SY Hi, SY Yes, but you have to write code for it, it's not supported out of the SY box. SY Yoav Shapira SY Millennium Research Informatics -Original Message- From: Andrey Rogov [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 5:20 PM To: [EMAIL PROTECTED] Subject: Elliptic Curve Cryptography Can I use ECC libraries to produce certificates provide authentication using certificate methods with Tomcat OpenSSL ? Thank you a lot for answer, -- Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] SY 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 SY 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 SY e-mail from your computer system and notify the sender. Thank you. SY - SY To unsubscribe, e-mail: [EMAIL PROTECTED] SY For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Elliptic Curve Cryptography
Can I use ECC libraries to produce certificates provide authentication using certificate methods with Tomcat OpenSSL ? Thank you a lot for answer, -- Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SQL Injection and Tomcat
Hi, U can configure the Valve param in your server.xml file Context path= docBase=Root debug=0 Valve className=path.to.your.app.BadInputFilterValve deny=\x00,\x04,\x08,\xoa,\x0d/ /Context U Can Also buy wonderfull book TOMCAT The definitive Guide by Ian E.Darwin Jason Brittain CT Hi, CT I have an app using MySql and TC4 on linux o JSP app CT Does Tomcat have any inbuild features to filter out certain characters like ', ;, etc from request URI's. Would a filters or values impl help with this or is it necessary to parse all input (may CT affect performance) CT any experience CT thanks CT Thomas CT * CT This email and any attachments are confidential and intended for the sole use of the intended recipient(s).If you receive this email in error please notify [EMAIL PROTECTED] and delete it CT from your system. Any unauthorized dissemination, retransmission, or copying of this email and any attachments is prohibited. Euroconex does not accept any responsibility for any breach of CT confidence, which may arise from the use of email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the CT Company. This message has been scanned for known computer viruses. CT * CT - CT To unsubscribe, e-mail: [EMAIL PROTECTED] CT For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SQL Injection and Tomcat
Hi, U can configure the Valve param in your server.xml file Context path= docBase=Root debug=0 Valve className=path.to.your.app.BadInputFilterValve deny=\x00,\x04,\x08,\xoa,\x0d/ /Context U Can Also buy wonderfull book TOMCAT The definitive Guide by Ian E.Darwin Jason Brittain CT Hi, CT I have an app using MySql and TC4 on linux o JSP app CT Does Tomcat have any inbuild features to filter out certain characters like ', ;, etc from request URI's. Would a filters or values impl help with this or is it necessary to parse all input (may CT affect performance) CT any experience CT thanks CT Thomas CT * CT This email and any attachments are confidential and intended for the sole use of the intended recipient(s).If you receive this email in error please notify [EMAIL PROTECTED] and delete it CT from your system. Any unauthorized dissemination, retransmission, or copying of this email and any attachments is prohibited. Euroconex does not accept any responsibility for any breach of CT confidence, which may arise from the use of email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the CT Company. This message has been scanned for known computer viruses. CT * CT - CT To unsubscribe, e-mail: [EMAIL PROTECTED] CT For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: SQL Injection and Tomcat
TC4 U Can Also buy wonderfull book TOMCAT The definitive Guide by Ian E.Darwin Jason Brittain GR Which version(s) of Tomcat does it cover? Amazon synopsis doesn't say which GR version. I'm currently locked into TC3.2.3 so a book that covers 4.x might GR not be a wise purchase. GR G. GR - GR To unsubscribe, e-mail: [EMAIL PROTECTED] GR For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Tomcat oracle 9 question ( cant load jdbc class 'null' )
Hi, My Error - Cannot Load JDBC class 'null' . Any suggestions would be great ! 1. I downloaded Tomcat 5.0.12, 2. Read 2 articles about this problem ( King Daniel Alessandra Nanni ) 3. JARS ( classes12 commons-*, in common/lib 4. In server.xml put lines !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource auth=Container description=Oracle 9i database name=myDataSource scope=Shareable type=javax.sql.DataSource / ResourceParams name=myDataSource parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:mydb/value /parameter E.t.c. /ResourceParams /GlobalNamingResources And Context lines Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Apache-Axis docBase=\Mywebapp mapperClass=org.apache.catalina.core.StandardContextMapper path=$CATALINA_HOME/webapps/Mywebapp privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ ResourceLink global=myDataSource name=jdbc/myoracle/ /Context And it does not WORKS . :( Thank you very very much!!! Andrey ! ANei The servlet.jar and classes12.jar should be under $CATALINA_HOME/common/lib ANei I configured my server.xml to Oracle 9 using the jndi through the ANei GlobalNamingResources and it works ANei GlobalNamingResources ANei !-- Test entry for demonstration purposes -- ANei Environment name=simpleValue type=java.lang.Integer value=30/ ANei !-- Editable user database that can also be used by ANei UserDatabaseRealm to authenticate users -- ANei Resource auth=Container description=Oracle 9i database ANei name=jdbc/myoracle type=javax.sql.DataSource/ ANei ResourceParams name=jdbc/myoracle ANei parameter ANei namefactory/name ANei valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ANei /parameter ANei parameter ANei namedriverClassName/name ANei valueoracle.jdbc.driver.OracleDriver/value ANei /parameter ANei parameter ANei nameurl/name ANei valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value ANei /parameter ANei parameter ANei nameusername/name ANei valuexyz/value ANei /parameter ANei parameter ANei namepassword/name ANei valuexyz/value ANei /parameter ANei parameter ANei namemaxActive/name ANei value80/value ANei /parameter ANei parameter ANei namemaxIdle/name ANei value40/value ANei /parameter ANei parameter ANei namemaxWait/name ANei value1/value ANei /parameter ANei /ResourceParams ANei /GlobalNamingResources ANei Context className=org.apache.catalina.core.StandardContext ANei cachingAllowed=true ANei charsetMapperClass=org.apache.catalina.util.CharsetMapper ANei cookies=true crossContext=false debug=1 displayName=Apache-Axis ANei docBase=our_application ANei mapperClass=org.apache.catalina.core.StandardContextMapper ANei path=/our_application privileged=false ANei reloadable=false swallowOutput=false useNaming=true ANei wrapperClass=org.apache.catalina.core.StandardWrapper ANei Logger className=org.apache.catalina.logger.FileLogger ANei prefix=localhost_our_application_log. suffix=.txt ANei timestamp=true/ ANei ResourceLink global=jdbc/myoracle name=database/ ANei /Context ANei In your Context you have to put ResourceLink global tag. ANei The global attribute of the tag refers to the ResourceParam defined up in the ANei GlobalNamingResources ANei The name attribute of the tag refers to the
SOLVED, THANKS A LOT King Daniel Alessandra !!!
Hello Andrey, Wednesday, November 5, 2003, 12:39:17 AM, you wrote: Hi, My Error - Cannot Load JDBC class 'null' . ARun Any suggestions would be great ! ARun 1. I downloaded Tomcat 5.0.12, ARun 2. Read 2 articles about this problem ARun ( King Daniel Alessandra Nanni ) ARun 3. JARS ( classes12 commons-*, in common/lib ARun 4. In server.xml put lines ARun !-- Global JNDI resources -- ARun GlobalNamingResources ARun !-- Test entry for demonstration purposes -- ARun Environment name=simpleValue type=java.lang.Integer value=30/ ARun !-- Editable user database that can also be used by ARun UserDatabaseRealm to authenticate users -- ARun Resource auth=Container ARundescription=Oracle 9i database ARunname=myDataSource ARunscope=Shareable ARuntype=javax.sql.DataSource / ARun ResourceParams name=myDataSource ARun parameter ARun namefactory/name ARun valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ARun /parameter ARun parameter ARun namedriverClassName/name ARun valueoracle.jdbc.driver.OracleDriver/value ARun /parameter ARun parameter ARun nameurl/name ARun valuejdbc:oracle:thin:@localhost:1521:mydb/value ARun /parameter ARun E.t.c. ARun /ResourceParams ARun /GlobalNamingResources ARun And Context lines ARun Context className=org.apache.catalina.core.StandardContext ARun cachingAllowed=true ARun charsetMapperClass=org.apache.catalina.util.CharsetMapper ARun cookies=true ARun crossContext=false ARun debug=0 ARun displayName=Apache-Axis ARun docBase=\Mywebapp ARun mapperClass=org.apache.catalina.core.StandardContextMapper ARun path=$CATALINA_HOME/webapps/Mywebapp ARun privileged=false ARun reloadable=false ARun swallowOutput=false ARun useNaming=true ARun wrapperClass=org.apache.catalina.core.StandardWrapper ARun Logger className=org.apache.catalina.logger.FileLogger ARun prefix=localhost_our_application_log. ARun suffix=.txt ARun timestamp=true/ ARun ResourceLink global=myDataSource name=jdbc/myoracle/ ARun /Context ARun And it does not WORKS . :( ARun Thank you very very much!!! ARun Andrey ! ANei The servlet.jar and classes12.jar should be under $CATALINA_HOME/common/lib ANei I configured my server.xml to Oracle 9 using the jndi through the ANei GlobalNamingResources and it works ANei GlobalNamingResources ANei !-- Test entry for demonstration purposes -- ANei Environment name=simpleValue type=java.lang.Integer value=30/ ANei !-- Editable user database that can also be used by ANei UserDatabaseRealm to authenticate users -- ANei Resource auth=Container description=Oracle 9i database ANei name=jdbc/myoracle type=javax.sql.DataSource/ ANei ResourceParams name=jdbc/myoracle ANei parameter ANei namefactory/name ANei valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ANei /parameter ANei parameter ANei namedriverClassName/name ANei valueoracle.jdbc.driver.OracleDriver/value ANei /parameter ANei parameter ANei nameurl/name ANei valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value ANei /parameter ANei parameter ANei nameusername/name ANei valuexyz/value ANei /parameter ANei parameter ANei namepassword/name ANei valuexyz/value ANei /parameter ANei parameter ANei namemaxActive/name ANei value80/value ANei /parameter ANei parameter ANei namemaxIdle/name ANei value40/value ANei /parameter ANei parameter ANei namemaxWait/name ANei value1/value ANei /parameter ANei /ResourceParams ANei /GlobalNamingResources ANei Context className=org.apache.catalina.core.StandardContext ANei cachingAllowed=true ANei charsetMapperClass=org.apache.catalina.util.CharsetMapper ANei cookies=true crossContext=false debug=1 displayName=Apache-Axis ANei docBase=our_application ANei mapperClass=org.apache.catalina.core.StandardContextMapper ANei path=/our_application privileged=false ANei reloadable=false swallowOutput=false useNaming=true ANei wrapperClass=org.apache.catalina.core.StandardWrapper ANei Logger className=org.apache.catalina.logger.FileLogger ANei
DBCP error
Help me, please, to set Tomcat DBCP ! Configuration: Tomcat 4.1.27, Oracle 9i. 1. Struts DBCP works well. 2. Files classes12.jar, commons-collections, -pool, -dbcp has been removed from WEB-INF/lib into commons\lib . 3. web.xml resource-ref descriptionDatabase Reference/description res-ref-namejdbc/BANK/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref env-entry env-entry-namejndi-datasource-name/env-entry-name env-entry-valuejdbc/BANK/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry 4. GetConnection: Error in line conn=ds.getConnection() . printStackTrace() - cannot load JDBC driver class 'null' . Context ic = new InitialContext() ; Context env = (Context) ic.lookup(java:/comp/env) ; DataSource ds = (DataSource) env.lookup(jdbc/BANK) ; try { conn=ds.getConnection() ; ERROR . System.out.println( Connection ) ; } catch ( java.sql.SQLException sqle ) { System.out.println( ds.Connection exception ) ; sqle.printStackTrace() ; } 5. Server.xml Resource name=jdbc/BANK auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/BANK parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:XXX/value /parameter parameter nameusername/name valueuname/value /parameter parameter namepassword/name valuepwd/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams Thank in advance ! Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: DBCP error
THank you for answer ! Error message is : java.sql.SQLException cannot load JDBC driver class 'null' . org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource java:529 ) org.apache.commons.dbcp.BasicDataSource.getConnection( BasicDataSource java:312 ) Andrey . EAP And what about the exception? Which is the message? -- De: [EMAIL PROTECTED]:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 3 de novembro de 2003 10:11 Para: Tomcat Users List Assunto: DBCP error Help me, please, to set Tomcat DBCP ! Configuration: Tomcat 4.1.27, Oracle 9i. 1. Struts DBCP works well. 2. Files classes12.jar, commons-collections, -pool, -dbcp has been removed from WEB-INF/lib into commons\lib . 3. web.xml resource-ref descriptionDatabase Reference/description res-ref-namejdbc/BANK/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref env-entry env-entry-namejndi-datasource-name/env-entry-name env-entry-valuejdbc/BANK/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry 4. GetConnection: Error in line conn=ds.getConnection() . printStackTrace() - cannot load JDBC driver class 'null' . Context ic = new InitialContext() ; Context env = (Context) ic.lookup(java:/comp/env) ; DataSource ds = (DataSource) env.lookup(jdbc/BANK) ; try { conn=ds.getConnection() ; ERROR . System.out.println( Connection ) ; } catch ( java.sql.SQLException sqle ) { System.out.println( ds.Connection exception ) ; sqle.printStackTrace() ; } 5. Server.xml Resource name=jdbc/BANK auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/BANK parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:XXX/value /parameter parameter nameusername/name valueuname/value /parameter parameter namepassword/name valuepwd/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams Thank in advance ! Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Andreymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Many projects
How should I configure tomcat to keep a few deployed projects (virtual hosts) and load the requested one project (host) according to request (http://www.site1 or http://www.site2 )?? Thank you, -- Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]