VPS Java/red5 help

AsianX

New Member
Messages
10
Reaction score
0
Points
0
Ive read many pages ( google search ) most of which, confuses me more.
Can and if.. Java/red5 be uninstalled and reinstalled?
Reading down there is another option to install java/red5, but was unsure if it would conflict with whats already been done.

Also noticed other errors,warnings,info..
Code:
BUILD FAILED
/usr/local/red5/build.xml:235: The following error occurred while executing this line:
/usr/local/red5/build.xml:257: Error running /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/javac compiler

Total time: 56 seconds
root@server1 [/usr/local/red5]# cd /usr/src                                         
root@server1 [/usr/src]# export _JAVA_OPTIONS="-Xms32m -Xmx128m"
root@server1 [/usr/src]# cd /usr/local/red5
root@server1 [/usr/local/red5]# ant prepare
Picked up _JAVA_OPTIONS: -Xms32m -Xmx128m
Buildfile: /usr/local/red5/build.xml

prepare:

BUILD SUCCESSFUL
Total time: 0 seconds
root@server1 [/usr/local/red5]# ant dist
Picked up _JAVA_OPTIONS: -Xms32m -Xmx128m
Buildfile: /usr/local/red5/build.xml

-library.check:
     [echo] Java: java.home is /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre and the target version is 1.6
     [echo] Ant: ant.home is /usr/local/ant and the target version is Apache Ant version 1.8.1 compiled on April 30 2010

-java6.check:
     [echo] Using Java 1.6

prepare:

compile:
     [echo] javac version: 1.6
     [echo] Not using the Eclipse IDE
     [echo] Compiler adapter name: modern

compile-core:

retrieve:
     [echo] Ivy conf name: java6
[ivy:resolve] :: Ivy 2.1.0-rc1 - 20090319213629 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /usr/local/red5/ivysettings.xml
[ivy:resolve] :: resolving dependencies :: red5#server;working@server1.mysite.com
Code:
[ivy:retrieve] :: retrieving :: red5#server
[ivy:retrieve]     confs: [java6]
[ivy:retrieve]     0 artifacts copied, 56 already retrieved (0kB/7ms)
    [javac] /usr/local/red5/build.xml:257: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 501 source files to /usr/local/red5/bin
    [javac] Picked up _JAVA_OPTIONS: -Xms32m -Xmx128m
    [javac] Note: /usr/local/red5/src/org/red5/io/FileKeyFrameMetaCache.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /usr/local/red5/src/org/red5/io/object/Serializer.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

compile-core-compatibility:

compile-demos:
     [echo] Webapps dir: webapps
     [echo] Webapps build dir: dist/webapps
     [copy] Copying 22 files to /usr/local/red5/dist/webapps/root
     [copy] Copying 23 files to /usr/local/red5/dist/webapps/root
     [copy] Copying 8 files to /usr/local/red5/dist/webapps/installer
     [copy] Copying 2 files to /usr/local/red5/dist/webapps/installer

prepare:

compile-script:
    [javac] /usr/local/red5/build.xml:349: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 4 source files to /usr/local/red5/bin
    [javac] Picked up _JAVA_OPTIONS: -Xms32m -Xmx128m
    [javac] Note: /usr/local/red5/src/org/red5/server/script/rhino/RhinoScriptUtils.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [echo] Scripting compatibility is available.

jar-determine-classpath:

jar:
      [jar] Building jar: /usr/local/red5/red5.jar
      [jar] Building jar: /usr/local/red5/boot.jar

dist:
     [copy] Copying 56 files to /usr/local/red5/dist/lib
     [copy] Copying 31 files to /usr/local/red5/dist/conf
     [copy] Copying 1 file to /usr/local/red5/dist/webapps
     [copy] Copying 11 files to /usr/local/red5/dist

BUILD SUCCESSFUL
Total time: 9 seconds
Code:
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:1935
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - IO Threads: 4
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Event Threads - core: 16, max: 64, queue: 0, keepalive: 60
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - TCP No Delay: true
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@180a8b7: display name [org.springframework.context.support.FileSystemXmlApplicationContext@180a8b7]; startup date [Mon May 24 21:59:17 PDT 2010]; parent: red5.common
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@180a8b7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d8f162
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d8f162: defining beans [global.clientRegistry,global.serviceInvoker,global.mappingStrategy,global.context,global.handler,global.scope,red5.scopeResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1989b5
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat context
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: /usr/local/red5/dist
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: /usr/local/red5/dist/conf
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: /usr/local/red5/dist/webapps
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
[INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0.18
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-5080
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-5080
[INFO] [main] org.red5.server.tomcat.TomcatLoader - RTMPT server bean was not found
[INFO] [main] org.red5.server.tomcat.TomcatLoader - RTMPS server bean was not found
Bootstrap complete
Code:
root of factory hierarchy
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'red5.core' 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 '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.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
etc etc etc
Caused by: 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
Any pointers, options, help .. would be appreciated..
Cha~
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
The root cause of the exceptions is that a server is already bound to port 1935 (the "Address already in use" message). Stop any previous instances of Red5 before starting a new one.

Generally speaking, rebuilding and re-installing an application will overwrite old installs that are the same version as long as the files aren't in use and you install to the same location. Whether different versions are overwritten depends on the package. I don't see why Red5 should be any different.
 
Last edited:
Top