You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Mixon <rn...@qwest.net> on 2005/11/29 18:04:48 UTC

Tomcat 4.1.31 error - method ()V not found

Hello,

I am moving a couple of small Java websites for a customer from one hosting
provider to another. Both are RedHat Linux machines with Tomcat 4.1.31 and
Java 1.4.2. On the new server I get the following error the first time I hit
a JSP page on the site.

...
----- Root Cause -----
java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool:
method <init>()V not found
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:765)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
        at acme.com.Connector.CreateConnection(Connector.java:66)
        at acme.com.RefererData.insert(RefererData.java:223)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) 
        ...

I have compared the class path and done diff's between the old tomcat and
the new. Other than the webapp directories are in a different location on
the new machine and I'm using a different port (9xxx versus 8xxx) all is the
same.

I have googled a bit in the list archives and in general and find the error
only mentioned once explicitly saying I've got a mismatched Commons jar
file. 

I have searched the machine for any stray instances of the DBCP jars, but
find nothing.

I've actually just copied over the Tomcat directory from the old server to
the new - but the error still occurs.

In case it really is DBCP related, I have attached a snipped from the
server.xml that defines on of the three hosts we are using.

Also, both old and new machines have Plesk hosting management software on
them and another installation of Tomcat 4.1 - but we are bypassing the use
of Plesk for these sites and are not running the Plesk version of Tomcat.

Any ideas? Help is much appreciated. 
 
Thanks - Richard

  ...
  <!-- name="209.208.107.99" -->
  <Host name="72.3.163.204" debug="0" autoDeploy="false"
    appBase="/var/www/vhosts/acme.com">
    <Alias>acme.com</Alias>
    <Alias>www.acme.com</Alias>
    <Logger className="org.apache.catalina.logger.FileLogger"
             directory="logs"  prefix="acme.com_log."
            suffix=".txt"
            timestamp="true"/>
    <Context path="" docBase="httpdocs" reloadable="true" debug="0"/>
    <DefaultContext>
            <Resource name="jdbc/acme" auth="Container"
                    type="javax.sql.DataSource"/>
            <ResourceParams name="jdbc/acme">
                    <parameter>
                            <name>url</name>
 
<value>jdbc:mysql://localhost/acme?autoReconnect=true</value>
                    </parameter>
                    <parameter>
                            <name>driverClassName</name>
                            <value>org.gjt.mm.mysql.Driver</value>
                    </parameter>
                    <parameter>
                            <name>username</name>
                            <value>acme</value>
                    </parameter>
                    <parameter>
                            <name>password</name>
                            <value>secret</value>
                    </parameter>
            </ResourceParams>
    </DefaultContext>
  </Host>
  ...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org