From: Chris H. <hi...@my...> - 2008-01-23 01:42:03
|
I try to start my app (which uses jetty and a bunch of other open source libraries) and I get this exception: Exception in thread "main" java.lang.NoSuchMethodError: org.mortbay.util.DateCache.now()Ljava/lang/String; at org.mortbay.log.StdErrLog.info(StdErrLog.java:67) at org.mortbay.log.Log.<clinit>(Log.java:63) at org.mortbay.component.Container.add(Container.java:200) at org.mortbay.component.Container.update(Container.java:164) at org.mortbay.component.Container.update(Container.java:106) at org.mortbay.jetty.Server.setConnectors(Server.java:158) at org.mortbay.jetty.Server.<init>(Server.java:85) at net.commerce.zocalo.JspSupport.ServletUtil.createServerWithListener(ServletUtil.java:43) at net.commerce.zocalo.JspSupport.ServletUtil.initializeServerTopLevel(ServletUtil.java:98) at net.commerce.zocalo.gmu_experiment.ExperimentServer.<init>(ExperimentServer.java:30) at net.commerce.zocalo.gmu_experiment.ExperimentServer.main(ExperimentServer.java:35) I don't understand what could cause this. StdErrLog and DateCache are both in jetty-util-6.1.5.jar, and when I look at the source code, it seems clear that StdErrLog calls the public, no-arg version of DateCache.now() that returns a String. I've tried swapping in a new version of the jetty-util jar (6.1.7 vs. 6.1.5) and that doesn't change the behavior at all. I've run the same release of my code on other platforms, and the JVM version is close enough that that difference seems unlikely to be a source of trouble. (1.5.0_12 vs. 1.5.0_13). The problem occurs on a linux machine, hosted by rimuhosting.com. I have run my application many times on several platforms (mac, windows, and linux) with no trouble. I don't think there's anything different about the way the code is invoking error logging, and even if there were, I don't see how that could cause an error like this. I've checked all the jar files that I'm loading to ensure that there aren't any other versions of DateCache or StdErrLog being loaded. Can anyone suggest something else I should look at or try? Thanks, Chris OS release: Linux Linux 2.6.18-xenU-rimu-20061214 i686 java version "1.5.0_12" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing) -- It is easy to turn an aquarium into fish soup, but not so easy to turn fish soup back into an aquarium. -- Lech Walesa on reverting to a market economy. Chris Hibbert hi...@my... http://mydruthers.com |