You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erik Weber <er...@mindspring.com> on 2004/08/03 22:15:16 UTC

More brain flatulence

I have a colleage who is getting the old AbstractMethodError when trying 
to deploy his first Struts app -- an app that is running in other 
environments successfully. Apparently our plugin won't load.

Here is a snip from the stack trace during deployment:

16:06:44,238 ERROR [Engine] ----- Root Cause -----
java.lang.AbstractMethodError:
BestAssetsPlugIn.init(Lorg/apache/struts/action/A
ctionServlet;Lorg/apache/struts/config/ApplicationConfig;)V
        at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionS
ervlet.java:963)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:447)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1019)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
2)


I had him check to make sure there are no old struts jars lying around 
on the system. I can't figure out why the app will deploy in all 
environments but his; we have the same versions of everything . . .

What am I forgetting?

Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More brain flatulence

Posted by Erik Weber <er...@mindspring.com>.
You are right on. It turned out he had an older struts jar file lying 
around. The scary thing is, it was lying around inside another web app 
archive. I thought there would be a sandbox between the two -- but, my 
head hurts from thinking about it anymore. Problem solved.

Thanks,
Erik


Niall Pemberton wrote:

>The init() method signature for the PlugIn interface was changed from:
>
>  init(ActionServlet, ApplicationConfig)
>to
>  init(ActionServlet, ModuleConfig)
>
>in Nov 2002 in between the Strust 1.1 beta 2 and Strust 1.1 beta 3 versions.
>
>Also the stuff in initApplicationPlugIns() method in ActionServlet was
>factored out into the initModulePlugIns() between Beta 2 and 3 but it looks
>from the stack trace its using the old version.
>
>I think its picking up a struts jar which is pre Struts 1.1 Beta 3 - but
>your app was developed with the  Struts 1.1 release version. If thats true
>he's either deployed the wrong struts.jar or has an old version hanging
>around.
>
>Niall
>
>
>----- Original Message ----- 
>From: "Erik Weber" <er...@mindspring.com>
>To: "Struts Users Mailing List" <us...@struts.apache.org>
>Sent: Tuesday, August 03, 2004 9:15 PM
>Subject: More brain flatulence
>
>
>  
>
>>I have a colleage who is getting the old AbstractMethodError when trying
>>to deploy his first Struts app -- an app that is running in other
>>environments successfully. Apparently our plugin won't load.
>>
>>Here is a snip from the stack trace during deployment:
>>
>>16:06:44,238 ERROR [Engine] ----- Root Cause -----
>>java.lang.AbstractMethodError:
>>BestAssetsPlugIn.init(Lorg/apache/struts/action/A
>>ctionServlet;Lorg/apache/struts/config/ApplicationConfig;)V
>>        at
>>org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionS
>>ervlet.java:963)
>>        at
>>org.apache.struts.action.ActionServlet.init(ActionServlet.java:447)
>>        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>>        at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
>>java:1019)
>>        at
>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
>>2)
>>
>>
>>I had him check to make sure there are no old struts jars lying around
>>on the system. I can't figure out why the app will deploy in all
>>environments but his; we have the same versions of everything . . .
>>
>>What am I forgetting?
>>
>>Erik
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More brain flatulence

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
The init() method signature for the PlugIn interface was changed from:

  init(ActionServlet, ApplicationConfig)
to
  init(ActionServlet, ModuleConfig)

in Nov 2002 in between the Strust 1.1 beta 2 and Strust 1.1 beta 3 versions.

Also the stuff in initApplicationPlugIns() method in ActionServlet was
factored out into the initModulePlugIns() between Beta 2 and 3 but it looks
from the stack trace its using the old version.

I think its picking up a struts jar which is pre Struts 1.1 Beta 3 - but
your app was developed with the  Struts 1.1 release version. If thats true
he's either deployed the wrong struts.jar or has an old version hanging
around.

Niall


----- Original Message ----- 
From: "Erik Weber" <er...@mindspring.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, August 03, 2004 9:15 PM
Subject: More brain flatulence


> I have a colleage who is getting the old AbstractMethodError when trying
> to deploy his first Struts app -- an app that is running in other
> environments successfully. Apparently our plugin won't load.
>
> Here is a snip from the stack trace during deployment:
>
> 16:06:44,238 ERROR [Engine] ----- Root Cause -----
> java.lang.AbstractMethodError:
> BestAssetsPlugIn.init(Lorg/apache/struts/action/A
> ctionServlet;Lorg/apache/struts/config/ApplicationConfig;)V
>         at
> org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionS
> ervlet.java:963)
>         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:447)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
> java:1019)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
> 2)
>
>
> I had him check to make sure there are no old struts jars lying around
> on the system. I can't figure out why the app will deploy in all
> environments but his; we have the same versions of everything . . .
>
> What am I forgetting?
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org