revision 4642 does not work?

134 views
Skip to first unread message

fransgnl

unread,
May 17, 2013, 5:52:22 AM5/17/13
to red5in...@googlegroups.com
I did not manage to get red5 running from trunc, checked out revision 4642:

svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5-read-only
cd red5-read-only
mvn -Dmaven.test.skip=true -Dclassifier=bootstrap install

I am copying and extracting target/red5-server-1.0.2-SNAPSHOT-server.tar.gz to /usr/local/red7 and try to run it from there:

./red5-debug.sh
Running on  Linux
Starting Red5
Listening for transport dt_socket at address: 8787
Red5 root: /usr/local/red7
Configuation root: /usr/local/red7/conf
Red5 server jar was found
URL list: [file:/usr/local/red7/red5-server.jar]
Exception in thread "main" java.lang.NullPointerException
        at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:172)
        at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:96)
        at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:111)
        at org.red5.server.Bootstrap.main(Bootstrap.java:48)

What I am doing wrong?

pejot

unread,
May 17, 2013, 8:41:57 AM5/17/13
to red5in...@googlegroups.com
Hi,

you sure the path should be ../red7.. ? Clearly the startup script (*.sh) cannot see red5-server.jar so there is probably something with a different name. Had the problem too.

Cheers,
Piotr

Frans Gouverne

unread,
May 17, 2013, 5:15:43 PM5/17/13
to red5in...@googlegroups.com
it is just a name of a directory, you can name it anything you like. I have several installations of red5, in /usr/local/red6, etc. and they are all runnning well. Besides, it clearly stated: "Red5 server jar was found" so there is no problem it cannot find red5-server.jar...


2013/5/17 pejot <pjasiu...@gmail.com>

--
 
---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mondain

unread,
May 17, 2013, 5:30:01 PM5/17/13
to red5in...@googlegroups.com
Looks to me like you're missing the bootstrap jar, make sure you have both jars in the red5 directory; unzip them from the tarball or zip after you've built the app.

Frans Gouverne

unread,
May 19, 2013, 4:17:52 AM5/19/13
to red5in...@googlegroups.com
Finally I discovered what went wrong: the direcory "lib" is not included when building from trunc. I copied it from the original red5 installation and now it is working.

Is this intented or should I extend the maven invocation with something to build the lib as well?


2013/5/17 Mondain <mon...@gmail.com>

Frans Gouverne

unread,
May 19, 2013, 4:22:05 AM5/19/13
to red5in...@googlegroups.com
started celebrating too early, do I need an updated lib?

[INFO] [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'Red5_Scheduler' initialized from an externally provided properties instance.
[INFO] [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 1.8.5
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_video.testabc.nl1368951516213 started.
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Creating new RMI registry
[INFO] [main] org.springframework.jmx.support.ConnectorServerFactoryBean - JMX connector server started: javax.management.remote.rmi.RMIConnectorServer@66da9ea4
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'org.springframework.jmx.support.ConnectorServerFactoryBean#0' has been autodetected for JMX exposure
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'schedulingService' has been autodetected for JMX exposure
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'clientBroadcastStream' has been autodetected for JMX exposure
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'org.springframework.jmx.support.ConnectorServerFactoryBean#0': registering with JMX server as MBean [org.red5.server:name=org.springframework.jmx.support.ConnectorServerFactoryBean#0,type=RMIConnectorServer]
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'schedulingService': registering with JMX server as MBean [org.red5.server:name=schedulingService,type=QuartzSchedulingService]
[INFO] [main] org.red5.server.service.WarDeployer - War deployer service created
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6446d228: defining beans [placeholderConfig,red5.server,rmiRegistry,mbeanServer,org.springframework.jmx.support.ConnectorServerFactoryBean#0,mbeanExporter,minaEncoder,minaDecoder,statusObjectService,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown
[INFO] [main] org.springframework.jmx.support.ConnectorServerFactoryBean - Stopping JMX connector server: javax.management.remote.rmi.RMIConnectorServer@66da9ea4
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Unexporting RMI registry
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_video.testabc.nl1368951516213 shutting down.
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_video.testabc.nl1368951516213 paused.
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_video.testabc.nl1368951516213 shutdown complete.
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@460c5e9c: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
Exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'red5.common' defined in class path resource [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 'warDeployService' defined in class path resource [red5-common.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.quartz.JobDataMap.put(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;





2013/5/19 Frans Gouverne <fran...@gmail.com>

Bhikkhu Mettavihari

unread,
May 19, 2013, 7:32:49 AM5/19/13
to red5in...@googlegroups.com
Greetings

We just compiled 4644 yesterday and it is up and running
It of course barked at us saying that it did not pass the tests
but if you ignore that then it is OK for my kind of work.
I am streaming 11 channels with Red5
We build it on an Ubuntu 12.04 server.

with metta
Mettavihari
Streaming video from http://dharmavahini.tv

Mondain

unread,
May 19, 2013, 11:26:37 AM5/19/13
to red5in...@googlegroups.com
This wiki entry explains how to get the deps / lib https://code.google.com/p/red5/wiki/Help and yes, for now not all the tests pass so skip them.

Frans Gouverne

unread,
May 20, 2013, 5:32:46 AM5/20/13
to red5in...@googlegroups.com
I didn't follow the instructions on this wiki page in detail.
Now I did and red5 is running as expected.
Thanks for your help and sorry for waisting your time...


2013/5/19 Mondain <mon...@gmail.com>
Reply all
Reply to author
Forward
0 new messages