public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError
@ 2008-07-22  0:35 Gerry Smith
  2008-07-22  5:56 ` [gentoo-java] " Gerry Smith
       [not found] ` <b944a51b0807220117i68560521g33b07c0fc02203a4@mail.gmail.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Gerry Smith @ 2008-07-22  0:35 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

Hi All,

I've been using JBoss 4.2.1 with sun-jdk-1.5.0.11 for some time.

I just set up a new server with latest portage, I emerged sun-jdk-1.5.0.16
and installed a copy of my jboss installation.

When I fire up jboss it looks like I'm getting a jdk mismatch:

2008-07-21 18:16:15,668 INFO  [org.apache.catalina.core.StandardEngine]
Starting Servlet Engine: JBossWeb/2.0.0.GA
2008-07-21 18:16:16,914 INFO  [org.apache.catalina.startup.Catalina] Server
startup in 1251 ms
2008-07-21 18:16:17,240 INFO  [org.jboss.web.tomcat.service.TomcatDeployer]
deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
2008-07-21 18:16:19,596 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
Exception sending context initialized event to listener instance of class
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
    at
com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)


Any ideas on fixing this ?

Many thanks,

Gerry Smith

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-java] Re: JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError
  2008-07-22  0:35 [gentoo-java] JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError Gerry Smith
@ 2008-07-22  5:56 ` Gerry Smith
       [not found] ` <b944a51b0807220117i68560521g33b07c0fc02203a4@mail.gmail.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Gerry Smith @ 2008-07-22  5:56 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

If I force jboss to use a copy of sun-jdk-1.5.0.11 from the old server, I
still get the same error.
I can't find any implementations of jsf or servlet api kicking around other
than the ones I expect under jboss.
(/opt/jboss421/server/default/deploy/jboss-web.deployer/jsf-libs/)
(server/default/lib/servlet-api.jar)

Can anyone think of recent changes to java config that could cause this ?

Thanks

On Mon, Jul 21, 2008 at 8:35 PM, Gerry Smith <smith.gerry@gmail.com> wrote:

> Hi All,
>
> I've been using JBoss 4.2.1 with sun-jdk-1.5.0.11 for some time.
>
> I just set up a new server with latest portage, I emerged sun-jdk-1.5.0.16
> and installed a copy of my jboss installation.
>
> When I fire up jboss it looks like I'm getting a jdk mismatch:
>
> 2008-07-21 18:16:15,668 INFO  [org.apache.catalina.core.StandardEngine]
> Starting Servlet Engine: JBossWeb/2.0.0.GA
> 2008-07-21 18:16:16,914 INFO  [org.apache.catalina.startup.Catalina] Server
> startup in 1251 ms
> 2008-07-21 18:16:17,240 INFO  [org.jboss.web.tomcat.service.TomcatDeployer]
> deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
> 2008-07-21 18:16:19,596 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
> Exception sending context initialized event to listener instance of class
> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
> java.lang.NoSuchMethodError:
> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>     at
> com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
>
>
> Any ideas on fixing this ?
>
> Many thanks,
>
> Gerry Smith
>

[-- Attachment #2: Type: text/html, Size: 2033 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError
       [not found] ` <b944a51b0807220117i68560521g33b07c0fc02203a4@mail.gmail.com>
@ 2008-07-22 10:20   ` Gerry Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Gerry Smith @ 2008-07-22 10:20 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]

found an old version of ServletContext hiding in gwt-user.jar. Fortunately I
don't need it on the new server. Strange though that it's not causing a
conflict on the old server,

Thanks

On Tue, Jul 22, 2008 at 4:17 AM, Marat Radchenko <
slonopotamusorama@gmail.com> wrote:

> javax.servlet.ServletContext.getContextPath() method was added in
> Servlet API 2.5. You should remove older Servlet APi from you
> classpath.
>
> 2008/7/22 Gerry Smith <smith.gerry@gmail.com>:
> > Hi All,
> >
> > I've been using JBoss 4.2.1 with sun-jdk-1.5.0.11 for some time.
> >
> > I just set up a new server with latest portage, I emerged
> sun-jdk-1.5.0.16
> > and installed a copy of my jboss installation.
> >
> > When I fire up jboss it looks like I'm getting a jdk mismatch:
> >
> > 2008-07-21 18:16:15,668 INFO  [org.apache.catalina.core.StandardEngine]
> > Starting Servlet Engine: JBossWeb/2.0.0.GA
> > 2008-07-21 18:16:16,914 INFO  [org.apache.catalina.startup.Catalina]
> Server
> > startup in 1251 ms
> > 2008-07-21 18:16:17,240 INFO
>  [org.jboss.web.tomcat.service.TomcatDeployer]
> > deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
> > 2008-07-21 18:16:19,596 ERROR
> > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
> > Exception sending context initialized event to listener instance of class
> > org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
> > java.lang.NoSuchMethodError:
> > javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
> >     at
> >
> com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:208)
> >
> >
> > Any ideas on fixing this ?
> >
> > Many thanks,
> >
> > Gerry Smith
> >
>

[-- Attachment #2: Type: text/html, Size: 2298 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-22 10:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22  0:35 [gentoo-java] JBoss 4.2.1 w sun-jdk-1.5.0.16 java.lang.NoSuchMethodError Gerry Smith
2008-07-22  5:56 ` [gentoo-java] " Gerry Smith
     [not found] ` <b944a51b0807220117i68560521g33b07c0fc02203a4@mail.gmail.com>
2008-07-22 10:20   ` [gentoo-java] " Gerry Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox