You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adrian Robitu <ad...@intelliware.ca> on 2001/12/06 00:01:57 UTC

Tomcat 4.0.1 and DB2 on Linux

Hello,

We are migrating one application from TC 3.2.1 to TC 4.0.1. We got it going
well on W2K, but we ran into problems on Linux (the 3.2.1 Linux setting
works just fine).

Env:
Tomcat 4.0.1
JRE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)
DB2 SDK 7.2.0

The error I got when I start Tomcat is:
    "main" (TID:0x403387e0, sys_thread_t:0x804ff98, state:R, native
ID:0x400) pr
io=5: pending=java.lang.NoSuchFieldError
        at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)
        at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.java:228)
        at COM.ibm.db2.jdbc.app.DB2Driver.<clinit>(DB2Driver.java:118)
        at java.lang.Class.forName1(Native Method)
        at java.lang.Class.forName(Class.java:134)
        at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:535)
        at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

If I take away the JDBCRealm entry form server.xml and disable security
altogether TC starts, but the first time I go to the database I got the very
same exception (slightly different stack - but still NoSuchFieldError in the
DB2 Driver).

The very same applications (including server.xml and all the web.xml) work
just fine under W2K and TC 4.0.1.

The only reference that I found on NoSuchFieldError is something related to
rebinding the db2cli after a hot-patch install. I re-did it, but I still get
the very same result.

Any pointers will be highly appreciated.

Best regards,
Adrian Robitu
e-Commerce Architect
(416) 762-0032/410
IT.IP.IQ
http://www.intelliware.ca

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>