Gentoo Archives: gentoo-java

From: Gerry Smith <smith.gerry@×××××.com>
To: gentoo-java <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError
Date: Tue, 22 Jul 2008 10:20:05
Message-Id: 35f2ce10807220320r61dc3e2bk449a779129e0eab3@mail.gmail.com
1 found an old version of ServletContext hiding in gwt-user.jar. Fortunately I
2 don't need it on the new server. Strange though that it's not causing a
3 conflict on the old server,
4
5 Thanks
6
7 On Tue, Jul 22, 2008 at 4:17 AM, Marat Radchenko <
8 slonopotamusorama@×××××.com> wrote:
9
10 > javax.servlet.ServletContext.getContextPath() method was added in
11 > Servlet API 2.5. You should remove older Servlet APi from you
12 > classpath.
13 >
14 > 2008/7/22 Gerry Smith <smith.gerry@×××××.com>:
15 > > Hi All,
16 > >
17 > > I've been using JBoss 4.2.1 with sun-jdk-1.5.0.11 for some time.
18 > >
19 > > I just set up a new server with latest portage, I emerged
20 > sun-jdk-1.5.0.16
21 > > and installed a copy of my jboss installation.
22 > >
23 > > When I fire up jboss it looks like I'm getting a jdk mismatch:
24 > >
25 > > 2008-07-21 18:16:15,668 INFO [org.apache.catalina.core.StandardEngine]
26 > > Starting Servlet Engine: JBossWeb/2.0.0.GA
27 > > 2008-07-21 18:16:16,914 INFO [org.apache.catalina.startup.Catalina]
28 > Server
29 > > startup in 1251 ms
30 > > 2008-07-21 18:16:17,240 INFO
31 > [org.jboss.web.tomcat.service.TomcatDeployer]
32 > > deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
33 > > 2008-07-21 18:16:19,596 ERROR
34 > > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
35 > > Exception sending context initialized event to listener instance of class
36 > > org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
37 > > java.lang.NoSuchMethodError:
38 > > javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
39 > > at
40 > >
41 > com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
42 > >
43 > >
44 > > Any ideas on fixing this ?
45 > >
46 > > Many thanks,
47 > >
48 > > Gerry Smith
49 > >
50 >