[SPAM ?]Re: [SPAM ?][SPAM ?]Re: [SPAM ?]Error in dependencyCheck when using Connection pooling
Well I found this message on Google too. Fact is, that nobody really knows what the problem is. And it seems to appear with many different containers, not only Tomcat. Fact is, that I use this same JDBC driver (it is a Sybase / iAnywhere driver) without any problems on an other machine with exactly the same Tomcat Version. The only difference is that there I use Eclipse 3.1 while the machine causing the problems has 3.2. It looks like there are some problems with the new WTP project in Eclipse. Lots of new versions of J2EE plugins base now on WTP. I currently experience only problems with this. Deployment does not work correctly, some of the XML Files (web.xml etc) are corrupted with funny tags and file terminators etc. On the eclipse.webtools newgroup nobody seems to answer the questions. So better stay with the 'old' environment which (at least for me) works fine. Tom Mark Eggers wrote: From looking for this error message with Google, it appears that there is a problem with the manifest information in your jar file. Use the following two search items in Google: java.io.IOException invalid header field error in dependencycheck What JDBC driver (DB and version), Tomcat version, and JDK version are you using? HTH /mde/ just my two cents . . . . --- Tom Bednarz [EMAIL PROTECTED] wrote: I get a very strange error when starting my web-app: --- 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error in dependencyCheck java.io.IOException: invalid header field at java.util.jar.Attributes.read(Attributes.java:393) at java.util.jar.Manifest.read(Manifest.java:167) at java.util.jar.Manifest.init(Manifest.java:52) at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:152) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3998) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:680) at org.apache.catalina.startup.Catalina.start(Catalina.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error getConfigured 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/mytrixpert] startup failed due to previous errors 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext stop - This happens since I copied my JDBC driver to %CATALINA_HOME%/common/lib. If the JDBC driver is deployed with my web-app in WEB-INF\lib I get an error that the JDBC driver cannot be loaded. It seems that the driver needs to be in the common/lib directory of the container to make connection pooling work. Unfortunately I get now the above error. Any help with this would be greatly apreciated, since I am stuck with this problem. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SPAM ?]Error in dependencyCheck when using Connection pooling
I get a very strange error when starting my web-app: --- 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error in dependencyCheck java.io.IOException: invalid header field at java.util.jar.Attributes.read(Attributes.java:393) at java.util.jar.Manifest.read(Manifest.java:167) at java.util.jar.Manifest.init(Manifest.java:52) at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:152) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3998) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:680) at org.apache.catalina.startup.Catalina.start(Catalina.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error getConfigured 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/mytrixpert] startup failed due to previous errors 14.08.2006 18:38:25 org.apache.catalina.core.StandardContext stop - This happens since I copied my JDBC driver to %CATALINA_HOME%/common/lib. If the JDBC driver is deployed with my web-app in WEB-INF\lib I get an error that the JDBC driver cannot be loaded. It seems that the driver needs to be in the common/lib directory of the container to make connection pooling work. Unfortunately I get now the above error. Any help with this would be greatly apreciated, since I am stuck with this problem. Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 configuration problem
I like to define a HOST which is bound to one of my webapplications. I have the following directory structure: $CATALINA_HOME/webapps/app1 $CATALINA_HOME/webapps/app2 $CATALINA_HOME/webapps/app3 server.xml: Engine defaultHost=localhost name=Catalina Realm className=org.apache.catalina.realm.UserDatabaseRealm/ Host appBase=webapps name=localhost /Host Host appBase=webapps name=my.mycompany.com /Host Now I like that users can type: http://my.mycompany.com and get directly to app2 With my current configuation the tomcat startup page appears. If I look in the manager application, I see the two hosts 'localhost' and 'my.mycompany.com'. Under both hosts I see the SAME list of webapplications. Could anybody explain what additional configuration is required on Tomcat 5.5. Many thanks in advance Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC DataSources with SYBASE Adaptive Server Anywhere
= dataSource.getConnection(); final PreparedStatement stmt = conn.prepareStatement( INSERT INTO access_log (acsl_account, acsl_object) + VALUES (NULL, ?)); final HttpServletRequest request = getContentManager().getRequest(); final String log = request.getRequestURL().toString() + -- + request.getRemoteHost() + : + request.getRemotePort() + -- + parseRequestHeaders(request); stmt.setString(1, log); stmt.execute(); stmt.close(); conn.close(); // final DataSource ds = (DataSource) envCtx.lookup(jdbc/project/sybase); final Connection cn = ds.getConnection(); Statement st2 = cn.createStatement(); st2.execute(USE test); st2.close(); cn.close(); On 3/3/06, Tom Bednarz [EMAIL PROTECTED] wrote: Hi, Thanks for your help. It brought me one step further but did not yet solve the problem! It looks like the context.xml is mandatory. I moved the configuration from the server.xml to the context.xml. The error message changed as follows: org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'ianywhere.ml.jdbcodbc.IDriver' org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) This means it does not find the driver jar file. I put it in all possible directories (lib directories of the webapp, tomcats common/lib and shared/lib) but all without success. Do I have to set a CLASSPATH somewhere?? Tom Hadraba Petr wrote: Hi, I'm not using Sybase under Tomcat; I have PostgreSQL... Eclipse? My configuration is, Eclipse does not modify Tomcat configuration (this is the default) In your WebContent under META-INF create context.xml with the Resource ... / definition. The Context / element does not require any attributes: Context Resource ... your=attributes ... / /Context And finaly, place the JDBC driver JAR into your WEB-INF lib. Catalina will automaticaly load your driver. My configuration is working properly. This configuration is working for me fine! JNDI names? Look at the JNDI section in the J2EE Tutorial in the Sun's web site. The examples are very helpful. There is also another question: It's good solution to place JDBC driver into the webapp's lib directory? Hope it helps PETR PS.: My Adaptive Server Enterprise 15 is working good, but not under Tomcat; it's standalone application... The initialization, driver URL was taken from the Sybase's JDBC documentation on their web sites. On 3/3/06, Tom Bednarz [EMAIL PROTECTED] wrote: I try to configure a JDBC DataSource for my Adaptive Server Anywhere 9 database. Unfortunately without any success so far! I use Tomcat 5.5.18. The error is well known and looks as follows: org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I use the JDBCODBC driver to connect. Here is the configuration: server.xml Resource name=jdbc/MyService type=javax.sql.DataSource password=sql driverClassName=ianywhere.ml.jdbcodbc.IDriver maxIdle=2 maxWait=5000 validationQuery=select * from CodeTable username=dba url=jdbc:odbc:dsn=MyService maxActive=50 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true/ Web.xml resource-ref descriptionDatabase connection/description res-ref-namejdbc/MyService/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Note: I currently do NOT deplay using a WAR file since I use Eclipse as develpment environment to debug etc. So I do NOT have an application specific context.xml file at the moment. Could anybody please explain what needs to be put into the name
Re: JDBC DataSources with SYBASE Adaptive Server Anywhere
Hi, Thanks for your help. It brought me one step further but did not yet solve the problem! It looks like the context.xml is mandatory. I moved the configuration from the server.xml to the context.xml. The error message changed as follows: org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'ianywhere.ml.jdbcodbc.IDriver' org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) This means it does not find the driver jar file. I put it in all possible directories (lib directories of the webapp, tomcats common/lib and shared/lib) but all without success. Do I have to set a CLASSPATH somewhere?? Tom Hadraba Petr wrote: Hi, I'm not using Sybase under Tomcat; I have PostgreSQL... Eclipse? My configuration is, Eclipse does not modify Tomcat configuration (this is the default) In your WebContent under META-INF create context.xml with the Resource ... / definition. The Context / element does not require any attributes: Context Resource ... your=attributes ... / /Context And finaly, place the JDBC driver JAR into your WEB-INF lib. Catalina will automaticaly load your driver. My configuration is working properly. This configuration is working for me fine! JNDI names? Look at the JNDI section in the J2EE Tutorial in the Sun's web site. The examples are very helpful. There is also another question: It's good solution to place JDBC driver into the webapp's lib directory? Hope it helps PETR PS.: My Adaptive Server Enterprise 15 is working good, but not under Tomcat; it's standalone application... The initialization, driver URL was taken from the Sybase's JDBC documentation on their web sites. On 3/3/06, Tom Bednarz [EMAIL PROTECTED] wrote: I try to configure a JDBC DataSource for my Adaptive Server Anywhere 9 database. Unfortunately without any success so far! I use Tomcat 5.5.18. The error is well known and looks as follows: org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I use the JDBCODBC driver to connect. Here is the configuration: server.xml Resource name=jdbc/MyService type=javax.sql.DataSource password=sql driverClassName=ianywhere.ml.jdbcodbc.IDriver maxIdle=2 maxWait=5000 validationQuery=select * from CodeTable username=dba url=jdbc:odbc:dsn=MyService maxActive=50 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true/ Web.xml resource-ref descriptionDatabase connection/description res-ref-namejdbc/MyService/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Note: I currently do NOT deplay using a WAR file since I use Eclipse as develpment environment to debug etc. So I do NOT have an application specific context.xml file at the moment. Could anybody please explain what needs to be put into the name property? It seems that jdbc/ is mandatory but what needs to follow the slash is not clear to me! Is it the ODBC datasource name, the database name or any choosen name?? Many thanks for your help. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and client certificates
Is it possible to run on the same container (instance of Tomcat) web application that DO require certificates and other applications that do NOT require certificates? To define required client certificate authorization one needs to define in SERVER.XML Connector className= port=8443... scheme=https.. Factory className =org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=true protocol=TLS keystoreFile=MyPath/MyKeystoreFile ./ /Connector The thing is, I have at a customer site a web-application that serves a mixed PKI environment. This means, that some users use chip-cards and a Single Sign On solution to authenticate. But there is also a quite big population of users who still use a standard username/password authentication over an SSL connection. So for both cases I need SSL. Is there any way of defining this on an application level, which would mean the definition should go into web.xml instead of server.xml. I then could make two web applications, one defined for users with a Certificate and one for users without. If that is not possible, I need two servers, each running an instance of Tomcat with different server.xml settings. Any suggestions would be greatly apreciated. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]