Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Red5 StartUp Error #14

Open
GoogleCodeExporter opened this issue Mar 21, 2015 · 6 comments
Open

Red5 StartUp Error #14

GoogleCodeExporter opened this issue Mar 21, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

im using red5 0.7.0 i replaced the red5.jar.

Exception in thread "main" java.lang.ClassNotFoundException:
org.mortbay.jetty.Server
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:229)
        at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClas
s(AbstractBeanDefinition.java:327)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(A
bstractBeanFactory.java:1073)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:283)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassP
athXmlApplicationContext.java:122)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassP
athXmlApplicationContext.java:66)
        at org.red5.server.net.rtmpt.RTMPTLoader.init(RTMPTLoader.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
okeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1242)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
okeInitMethods(AbstractAutowireCapableBeanFactory.java:1208)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
tializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:427)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:249)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:155)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:246)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:291)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileS
ystemXmlApplicationContext.java:124)
        at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileS
ystemXmlApplicationContext.java:90)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiat
e(SimpleInstantiationStrategy.java:87)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructo
r(ConstructorResolver.java:187)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.aut
owireConstructor(AbstractAutowireCapableBeanFactory.java:800)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBeanInstance(AbstractAutowireCapableBeanFactory.java:718)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:386)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:249)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:155)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:246)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:291)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.access.ContextSingletonBeanFactoryLocator.initialize
Definition(ContextSingletonBeanFactoryLocator.java:141)
        at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFact
ory(SingletonBeanFactoryLocator.java:382)
        at org.red5.server.Standalone.main(Standalone.java:152)
Exception in thread "main" java.lang.ClassNotFoundException:
org.mortbay.jetty.Server

any idea?

Original issue reported on code.google.com by pablogr...@gmail.com on 25 Nov 2008 at 6:45

@GoogleCodeExporter
Copy link
Author

I solve my problem
here is my red5.sh file

#!/bin/bash

for JAVA in "$JAVA_HOME/bin/java" "/usr/bin/java" "/usr/local/bin/java"
do
  if [ -x $JAVA ]
  then
    break
  fi
done

if [ ! -x $JAVA ]
then
  echo "Unable to locate Java. Please set JAVA_HOME environment variable."
  exit
fi

# start Red5
echo "Starting Red5..."
exec $JAVA -Djava.security.manager -Djava.security.policy=conf/red5.policy -cp
red5.jar:conf:$CLASSPATH:lib/jetty-6.1.7.jar:lib/jetty-util-6.1.7.jar:lib/jetty-
xbean-6.1.7.jar
org.red5.server.Standalone 

Original comment by pablogr...@gmail.com on 25 Nov 2008 at 7:13

@GoogleCodeExporter
Copy link
Author

Hi!
Unfortunately I'm not familar with bash. Do you can to create red5.bat or 
describe 
sence of exec

exec $JAVA -Djava.security.manager -Djava.security.policy=conf/red5.policy -cp
red5.jar:conf:$CLASSPATH:lib/jetty-6.1.7.jar:lib/jetty-util-6.1.7.jar:lib/jetty-
xbean-6.1.7.jar

Truly yours,
Vladimir

Original comment by vkozhaev@gmail.com on 8 Dec 2008 at 5:35

@GoogleCodeExporter
Copy link
Author

When I run following bush file I have IO exception.
@echo off

if not "%JAVA_HOME%" == "" goto launchRed5

:launchRed5
"%JAVA_HOME%/bin/java" -Djava.security.manager -Djava.security.policy=conf/
red5.policy -cp red5.jar;conf:$CLASSPATH:lib/jetty-6.1.7.jar:lib/jetty-
util-6.1.7.jar:lib/jetty-xbean-6.1.7.jar;bin org.red5.server.Standalone
goto finaly

:err
echo JAVA_HOME environment variable not set! Take a look at the readme.
pause

:finaly
pause


And here stacktrace of my exception
2008-12-08 19:54:10,890 [main] INFO  org.red5.server.Standalone - Red5 Server 0.
7.0 $Revision: 2657 $ (http://www.osflash.org/red5)
2008-12-08 19:54:10,906 [main] INFO  org.red5.server.Standalone - Loading Red5 g
lobal context from: red5.xml
Exception in thread "main" java.io.IOException: ╤шэЄръёшўхёър  
ю°шсър т шьхэш Їр
щыр, шьхэш яряъш шыш ьхЄъх Єюьр
        at java.io.WinNTFileSystem.canonicalize0(Native Method)
        at java.io.Win32FileSystem.canonicalize(Unknown Source)
        at java.io.File.getCanonicalPath(Unknown Source)
        at java.io.File.getCanonicalFile(Unknown Source)
        at org.red5.server.Standalone.main(Standalone.java:104)



Original comment by vkozhaev@gmail.com on 8 Dec 2008 at 5:55

@GoogleCodeExporter
Copy link
Author

Dear pablogrois,

It's work ! Thank you

Best regards,
Raymond

Original comment by magicfut...@gmail.com on 16 Dec 2008 at 8:04

@GoogleCodeExporter
Copy link
Author

Hi All,

I was also getting the same issue when I replace the latest red5.jar.

Exception in thread "main" java.lang.ClassNotFoundException: 
org.mortbay.jetty.Server
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:229)
        at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClas
s(AbstractBeanDefinition.java:327)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(A
bstractBeanFactory.java:1073)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:283)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassP
athXmlApplicationContext.java:122)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassP
athXmlApplicationContext.java:66)
        at org.red5.server.net.rtmpt.RTMPTLoader.init(RTMPTLoader.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
okeCustomInitMethod(AbstractAutowireCapableBeanFactory.java
:1242)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
okeInitMethods(AbstractAutowireCapableBeanFactory.java:1208
)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
tializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:427)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:249)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:155)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:246)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:291)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileS
ystemXmlApplicationContext.java:124)
        at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileS
ystemXmlApplicationContext.java:90)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiat
e(SimpleInstantiationStrategy.java:87)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructo
r(ConstructorResolver.java:187)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.aut
owireConstructor(AbstractAutowireCapableBeanFactory.java:80
0)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBeanInstance(AbstractAutowireCapableBeanFactory.java:718
)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:386)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:249)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:155)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:246)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:291)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:352)
        at
org.springframework.context.access.ContextSingletonBeanFactoryLocator.initialize
Definition(ContextSingletonBeanFactoryLocator.java:141)
        at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFact
ory(SingletonBeanFactoryLocator.java:382)
        at org.red5.server.Standalone.main(Standalone.java:152)

This error I got in windows when I run the red5.bat file.

I would be thankful if somebody can help me out in sorting out the issue.

Thanks,
Gouri Prasad.

Original comment by gouri79....@gmail.com on 18 Dec 2008 at 4:12

@GoogleCodeExporter
Copy link
Author

HI All,

I installed the red5 server in the windows xp and is working fine .when i 
install the
red5 server in the windows 2003(static ip)when try to start the server by 
replacing
the new red5.jar it is throwing the below error.

Exception in thread "main" java.lang.ClassNotFoundException: org.mortbay.jetty.S
erver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:229)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.reso
lveBeanClass(AbstractBeanDefinition.java:327)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolve
BeanClass(AbstractBeanFactory.java:1073)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:283)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:122)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:66)
        at org.red5.server.net.rtmpt.RTMPTLoader.init(RTMPTLoader.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Please help to solve the issue.

Thanks
Chenchu.

Original comment by errach...@gmail.com on 25 Mar 2009 at 7:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant