[Red5] Ibatis
lionel breduillieard
lionel.breduillieard at gmail.com
Wed Oct 1 00:24:35 PDT 2008
I make other test
In my application handler, I use org.springframework.core.io.Resource class
for that I had the spring-core.jar and all is ok
But now, if I use the complete spring.jar, I have this weird error
2008-10-01 09:23:39,441 [main] ERROR o.r.s.p.FilePersistenceThread -
Instance was not null, this is not a good sign
2008-10-01 09:23:39,640 [main] ERROR o.s.web.context.ContextLoader - Context
initialization failed
org.springframework.beans.factory.access.BootstrapException: Unable to
initialize group definition. Group resource name [classpath*:red5.xml],
factory key [default.context]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'red5.core' defined in URL
[file:/devtools/red5-0.7.0/conf/red5.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.springframework.context.support.FileSystemXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'rtmpTransport' defined in class path resource [red5-core.xml]:
Invocation of init method failed; nested exception is
java.net.BindException: Address already in use
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389)
at
org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.red5.server.jetty.JettyLoader.init(JettyLoader.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
....
2008/10/1 lionel breduillieard <lionel.breduillieard at gmail.com>
> Hello Paul,
> thanks to take time to reply me.
>
> I use the eclipse plugin to start / restart the red5 server. why in this
> case (when I add spring and ibatis jar) the port is already in use Because
> I only use red5
>
> Lionel
>
>
> 2008/9/30 Mondain <mondain at gmail.com>
>
> This may not be an ibatis issue, the exception (BindException) indicates
>> that the port or ip is already in use by another application. In the case
>> shown it would appear to be port 1935, so I assume you have Red5 already
>> running or another Flash media server.
>>
>> Paul
>>
>> On Tue, Sep 30, 2008 at 7:44 AM, lionel breduillieard <
>> lionel.breduillieard at gmail.com> wrote:
>>
>>> Hello
>>> I try to use IBatis with red5 but after many test... I have some errors
>>> :(
>>>
>>> 2008-09-30 16:34:56,417 [main] ERROR o.r.s.p.FilePersistenceThread -
>>> Instance was not null, this is not a good sign
>>> 2008-09-30 16:34:56,585 [main] ERROR o.s.web.context.ContextLoader -
>>> Context initialization failed
>>> org.springframework.beans.factory.access.BootstrapException: Unable to
>>> initialize group definition. Group resource name [classpath*:red5.xml],
>>> factory key [default.context]; nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>>> with name 'red5.core' defined in URL
>>> [file:/devtools/red5-0.7.0/conf/red5.xml]: Instantiation of bean failed;
>>> nested exception is org.springframework.beans.BeanInstantiationException:
>>> Could not instantiate bean class
>>> [org.springframework.context.support.FileSystemXmlApplicationContext]:
>>> Constructor threw exception; nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>>> with name 'rtmpTransport' defined in class path resource [red5-core.xml]:
>>> Invocation of init method failed; nested exception is
>>> java.net.BindException: Address already in use
>>>
>>> I add some jar in my lib directory
>>> - commons-dbcp.jar (1.2)
>>> - spring.jar (2.5.5)
>>> - ibatis.jar (2.3)
>>>
>>> If i use separate jar of spring I had another errors
>>>
>>> spring-core
>>> spring-context
>>> spring-beans
>>> spring-jdbc
>>> spring-orm
>>> spring-tx
>>>
>>> I have this issue
>>>
>>> 2008-09-30 16:42:44,604 [main] ERROR o.s.web.context.ContextLoader -
>>> Context initialization failed
>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Unexpected exception parsing XML document from ServletContext resource
>>> [/WEB-INF/red5-web.xml]; nested exception is
>>> java.lang.IllegalArgumentException: Class
>>> [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does
>>> not implement the NamespaceHandler interface
>>>
>>> Is anyone try to use iBatis (or have any clue)
>>>
>>>
>>> thanks
>>>
>>> Lionel
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>
>>
>> --
>> http://gregoire.org/
>> http://osflash.org/red5
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20081001/5f910f0d/attachment.html
More information about the Red5
mailing list