Hello, first the JAVA install well on Fedora_8.
An using Centos_5 and i install Java
]# ./startup.sh
Error parsing VHosts.xml (file:///usr/local/WowzaMediaServerPro/conf/VHosts.xml):
java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.w3c.dom.NodeList
java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.w3c.dom.NodeList
at com.wowza.wms.bootstrap.Bootstrap.getServerInfo(Bootstrap.java:496)
at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:238)
at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)
Exception in thread “main” java.lang.NoClassDefFoundError: com.wowza.wms.server.Server
at java.lang.Class.initializeClass(libgcj.so.7rh)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:246)
at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.Executor not found in java.net.URLClassLoader{urls=[file:/usr/local/WowzaMediaServerPro/lib/wms-core.jar,file:/usr/local/WowzaMediaServerPro/lib/log4j-1.2.14.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-bootstrap.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediareader-flv.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-ant.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediareader-mp3.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-server.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-jlayer.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-record.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediawriter-flv.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-live.jar,file:/usr/local/WowzaMediaServerPro/lib/jid3lib-0.5.4.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-commons-modeler.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-shoutcast.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-file.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/WowzaMediaServerPro/bin/wms-bootstrap.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
…3 more
When I do this
]# /usr/sbin/alternatives --config java
There are 2 programs which provide ‘java’.
Selection Command
- 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
- 2 /usr/java/jre1.6.0_02/bin/java
Enter to keep the current selection[+], or type selection number: 2
[root@ns6 bin]# java -version
-bash: /usr/bin/java: No such file or directory
[root@ns6 bin]# ./startup.sh
./startup.sh: line 24: java: command not found
But if I used 1 this got the old version
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2 /usr/java/jre1.6.0_02/bin/java
Enter to keep the current selection[+], or type selection number: 1
[root@ns6 bin]# java -version
java version “1.4.2”
Any idea.