[Red5] Interface discrepancy in BaseDirContext SOLUTION
RogerPf
roger at RogerPf.com
Thu Aug 20 15:43:38 PDT 2009
Interface discrepancy in BaseDirContext is stopping new Eclipse developers.
Horrible workaround - SOLUTION:
A comment in the wicki on Red5 and SQL (
http://www.red5tutorials.net/index.php/Tutorials:MySQL_and_Red5 ) made me
try deleting the offending (Red5) version of the 'naming-resources' bad
'duplicate definition?' jar.
<in home dir>
.ivy2/cache/red5/naming-resources/jars/naming-resources-.jar
(They also suggest to delete naming-factory jar )
<in home dir> .ivy2/cache/red5/naming-factory/jars/naming-factory-.jar
Deleting the first and saying YES to "load with errors" got it up and
running.
More on the true cause
==================
http://tomcat.apache.org/tomcat-4.1-doc/catalina/docs/api/org/apache/naming/resources/BaseDirContext.html
appears to be the true spec of
org.apache.naming.resources.BaseDirContext
The red5 definition is only vaguely like it (incomplete implementation?) but
(GUESS) because of a bug is being labelled as being a valid implementation
of org.apache.naming.resources.BaseDirContext hence the problem.
What should I do to get it fixed for future user (and me) cos I hate having
to say YES I want to 'run with bugs' when the app launches.
thanks
--
Roger
RogerPf wrote:
>
> Interface discrepancy in BaseDirContext is stopping new Eclipse
> developers.
>
> A number of 'new to Red5' developers (including me) are being stoped dead
> by the following runtime time error message as Tomcat attempts to start -
>
> Error creating bean with name 'tomcat.server' defined in class path
> resource [red5.xml]: Invocation of init method failed; nested exception is
> java.lang.NoSuchMethodError:
> org.apache.naming.resources.BaseDirContext.setCacheObjectMaxSize(I)V
>
>
> On inspection I noticed that the definition of
> BaseDirContext.setCacheObjectMaxSize
>
> is used by
>
> ... .ivy2\cache\red5\naming-resources\jars\naming-resources-.jar
>
> but is missing from (and is the only one missing from)
>
> ..... .ivy2\cache\tomcat\catalina\jars\catalina-6.0.20-patched.jar
>
>
> Yes the systems build it (0.9rc1 and current HEAD) just fine. Yes it
> happens on both Windows and UNIX boxes.
>
> My systema both win and linux run Eclipse galialeo Build id:
> 20090619-0625
>
> All the eclipse loaded software is 'the latest' I suspect (guessing)
> that the problem is in the 'Ivy' but it is way beyond my current
> capabilities to fix. Could some kind soul help us get it fixed and / or
> suggest a workaround.
>
> Would an older verion of Ivy help? How would I get it.?
>
> many thanks for just reading this
>
>
> --
> Roger
>
>
>
--
View this message in context: http://www.nabble.com/Interface-discrepancy-in--BaseDirContext----killing-us-tp25054216p25071386.html
Sent from the Red5 - English mailing list archive at Nabble.com.
More information about the Red5
mailing list