Problem with red5 startup script with OM1.7

344 views
Skip to first unread message

Jommy

unread,
Aug 10, 2011, 7:42:42 AM8/10/11
to openmeet...@googlegroups.com
Hi

I have successfully installed OM version 1.7 on my RedHat EL5 server and red5 can run properly with the "red5.sh" script. But when I call it with the startup script which was working fine with OM1.6, OM die at the login page with the error "Error Missing [556]". And I have noticed some error about the "SessionFactory" as below.

ERROR 08-10 04:15:56.106 HibernateUtil.java 2684 84 org.openmeetings.app.hibernate.utils.HibernateUtil [Launcher:/openmeetings] - getSessionFactory
org.hibernate.HibernateException: Could not parse configuration: /home/admin/OpenMeetings/OM1.7/red5/webapps/openmeetings/conf/hibernate.cfg.xml
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2216) [hibernate3.jar:3.6.1.Final]
        at org.hibernate.cfg.Configuration.configure(Configuration.java:2186) [hibernate3.jar:3.6.1.Final]
        at org.openmeetings.app.hibernate.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:77) [openmeetings.jar:na]
        at org.openmeetings.app.hibernate.utils.HibernateUtil.createSession(HibernateUtil.java:35) [openmeetings.jar:na]
        at org.openmeetings.app.data.basic.Configurationmanagement.getConfKey(Configurationmanagement.java:50) [openmeetings.jar:na]
        at org.openmeetings.app.remote.red5.ScopeApplicationAdapter.appStart(ScopeApplicationAdapter.java:139) [openmeetings.jar:na]
        at org.red5.server.adapter.MultiThreadedApplicationAdapter.start(MultiThreadedApplicationAdapter.java:414) [red5.jar:na]
        at org.red5.server.adapter.ApplicationAdapter.start(ApplicationAdapter.java:55) [red5.jar:na]
        at org.red5.server.Scope.start(Scope.java:1163) [red5.jar:na]
        at org.red5.server.Scope.init(Scope.java:898) [red5.jar:na]
        at org.red5.server.WebScope.register(WebScope.java:198) [red5.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_21]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_21]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_21]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_21]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557) [spring-beans-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) [spring-context-3.0.0.jar:3.0.0.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416) [spring-context-3.0.0.jar:3.0.0.RELEASE]
        at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:594) [red5.jar:na]
Caused by: org.dom4j.DocumentException: /hibernate-configuration-3.0.dtd (No such file or directory) Nested exception: /hibernate-configuration-3.0.dtd (No such file or directory)
        at org.dom4j.io.SAXReader.read(SAXReader.java:484) [dom4j-1.6.1.jar:1.6.1]
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2208) [hibernate3.jar:3.6.1.Final]
        ... 27 common frames omitted

Here is my red5 startup script:

#
#!/bin/sh -e
#
# red5    Starts, Stops and Reloads Red5.
#
# chkconfig: 2345 90 60
# description: Red5 - OpenMeeting Web Conference daemon.
# processname: red5
# Startup script for Red5

export JAVA_HOME=/home/admin/jdk1.6.0_21
# export RED5_HOME=/home/admin/OpenMeetings/OM1.6/red5
export RED5_HOME=/home/admin/OpenMeetings/OM1.7/red5

start_red5="${RED5_HOME}/red5.sh start"
stop_red5="${RED5_HOME}/red5-shutdown.sh stop"

start() {
        echo -n "Starting Red5: "
        ${start_red5} & > /dev/null 2>&1
        echo "done."
}
stop() {
        echo -n "Shutting down Red5: "
        ${stop_red5} & > /dev/null 2>&1
        echo "done."
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        sleep 10
        start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
esac

exit 0

Can anybody give some advise on how to solve the error?

Thank you very much

Jom

seba....@gmail.com

unread,
Aug 10, 2011, 7:46:29 AM8/10/11
to openmeet...@googlegroups.com
Could not parse configuration: /home/admin/OpenMeetings/OM1.
7/red5/webapps/openmeetings/conf/hibernate.cfg.xml

=> You've written sth. in the hibernate.cfg.xml by yourself that makes the XML invalid.


Sebastian


2011/8/10 Jommy <mej...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/QOfMHM8lpD4J.
To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba....@gmail.com

Jommy

unread,
Aug 10, 2011, 8:47:35 AM8/10/11
to openmeet...@googlegroups.com
Hi Sebastian,

Thank you very much for your very quick response. I have followed every steps in the installation procedure. I have copied "mysql_hibernate.cfg.xml" to replace "hibernate.cfg.xml" and changed only MySQL username, password and DB name. And if there's something wrong with the file, I shouldn't have been able to run it by calling "red5.sh" directly should I?

Here is my hibernate config. for just in case you wanna audit it.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "hibernate-configuration-3.0.dtd">

<!-- Generated file - Do not edit! -->

<hibernate-configuration>

<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!-- User  / Password -->
<property name="connection.username">root</property>
<property name="connection.password">password</property>
<!-- Database Settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!--  for performance reasons changed to MyISAM from org.hibernate.dialect.MySQLInnoDBDialect -->
<property name="dialect">org.openmeetings.app.hibernate.utils.MySQL5MyISAMDialect</property>
<property name="connection.url">jdbc:mysql://localhost/om1_7?autoReconnect=true&amp;useUnicode=true&amp;createDatabaseIfNotExist=true&amp;characterEncoding=utf-8</property>
<property name="hibernate.connection.CharSet">utf8</property>
<property name="hibernate.connection.characterEncoding">utf8</property>
<property name="hibernate.connection.useUnicode">true</property>

<!-- Database Scheme Auto Update -->
<property name="hbm2ddl.auto">update</property>

<!-- properties -->
<property name="show_sql">false</property>
<property name="use_outer_join">false</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
        <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
        <!--
        <property name="connection.provider_class ">org.hibernate.connection.C3P0ConnectionProvider</property>
         -->
        <property name="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
        <property name="hibernate.cache.use_query_cache">false</property>
        <property name="hibernate.cache.use_second_level_cache">false</property>
        <property name="hibernate.generate_statistics">false</property>
        <property name="hibernate.cache.use_structured_entries">false</property>


<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.min_size">2</property>
        <property name="hibernate.c3p0.idle_test_period">100</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.timeout">100</property>

<!-- mapping files -->
    <mapping resource="org/openmeetings/app/hibernate/beans/adresses/Adresses.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/adresses/States.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/Configuration.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/ErrorType.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/ErrorValues.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/LdapConfig.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/Naviglobal.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/Navimain.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/Navisub.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/OmTimeZone.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/SOAPLogin.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/basic/Sessiondata.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/calendar/Appointment.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/calendar/AppointmentCategory.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/calendar/AppointmentReminderTyps.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/calendar/MeetingMember.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/domain/Organisation.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/domain/Organisation_Users.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/flvrecord/FlvRecording.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/flvrecord/FlvRecordingLog.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/flvrecord/FlvRecordingMetaData.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/flvrecord/FlvRecordingMetaDelta.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/invitation/Invitations.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/lang/FieldLanguage.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/lang/Fieldlanguagesvalues.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/lang/Fieldvalues.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/logs/ConferenceLog.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/logs/ConferenceLogType.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/ChatvaluesEvent.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/Recording.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/RecordingClient.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/RecordingConversionJob.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/RoomClient.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/RoomRecording.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/RoomStream.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/recording/WhiteBoardEvent.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/rooms/RoomModerators.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/rooms/RoomTypes.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/rooms/Rooms.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/rooms/Rooms_Organisation.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/sip/OpenXGReturnObject.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/PrivateMessages.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/PrivateMessageFolder.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Salutations.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/UserContacts.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/UserSipData.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Userdata.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Usergroups.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Userlevel.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Users.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/user/Users_Usergroups.hbm.xml"/>
    <mapping resource="org/openmeetings/app/hibernate/beans/files/FileExplorerItem.hbm.xml"/>
    
</session-factory>

</hibernate-configuration>

Sorry for posting this very long message.  Just because I got an error on my browser when I tried to attach a file.

seba....@gmail.com

unread,
Aug 10, 2011, 9:27:41 AM8/10/11
to openmeet...@googlegroups.com
I cannot see an error right now but I am quite sure there is one. The parser just tells you all ...
Maybe some whitespace or you deleted some "<" or ">" accidentally.

Sebastian

2011/8/10 Jommy <mej...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/HlofF6s1rtUJ.

To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.

Jommy

unread,
Aug 11, 2011, 7:01:03 AM8/11/11
to openmeet...@googlegroups.com
Hi Sebastian,

I just tried to re-install OM1.7 again and the problem was still shown up. This leave me no choice, I couldn't start red5 as a service so I have to run the "red5.sh" script manually whenever the server is reboot. However everything else in version 1.7 is working fine, lots of cool features. I like the new whiteboard feature that allow user to save the whiteboard screen. Anyway my OM1.7 is still running on my test server not launch as production yet. So there's still time for me to find the solution.

seba....@gmail.com

unread,
Aug 11, 2011, 7:19:21 AM8/11/11
to openmeet...@googlegroups.com
you mean you are not able to run it as service, well the red5.sh is the only startscript (besides red5-highperf.sh) that we include.

If you have problems with paths I guess it has something todo with the startup script or modifications that you do on your system.

There are attempts to make OpenMeetings a package in the official Debian Repository, you might back / support that one: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617904

Sebastian



2011/8/11 Jommy <mej...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/zLVWiST_VUoJ.

To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.
Reply all
Reply to author
Forward
0 new messages