· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Red5 Install/Open Meetings/Hiber Nate

Red5Install/OpenMeetings/HiberNate


* 2011.9.7
  • version 의 문제임.
  • test 상황에서는
    • hibernate-distribution-3.6.7.Final 을 사용하여 수행됨.
    • openmeeting 의 hibernate 관련 jar file 을 교체해야 하는가?
    • openmeetings 에서 사용한 것은 3.6.1 임.

    • root password 를 hibernate.cfg.xml 에서 주어야 함.
      • 이것이 문제였을 수도 있음.

* 2011.9.6 * http://www.hibernate.org/subprojects/tools.html * openmeetings

Manifest-Version: 1.0^M
Archiver-Version: Plexus Archiver^M
Created-By: Apache Maven^M
Built-By: gbadner^M
Build-Jdk: 1.5.0_16^M
Specification-Title: Hibernate Distribution^M
Specification-Version: 3.6.1.Final^M
Specification-Vendor: Hibernate.org^M
Implementation-Title: Hibernate Distribution^M
Implementation-Version: 3.6.1.Final^M
Implementation-Vendor-Id: org.hibernate^M
Implementation-Vendor: Hibernate.org^M
Implementation-URL: http://hibernate.org^M

  • find . -name hibernate
    • ./server/red5/webapps/openmeetings/streams/hibernate
    • ./src/app/org/openmeetings/app/hibernate
    • ./WebContent/streams/hibernate
    • ./WebContent/openmeetings/base/hibernate

  • find . -name hibernate_36
    • ./lib/hibernate_36

  • find . -name hibernate3.jar
    • ./WebContent/WEB-INF/lib/hibernate3.jar
    • ./lib/hibernate_36/hibernate3.jar

  • lib/hibernate_36
lib/hibernate_36:
antlr-2.7.6.jar              dom4j-1.6.1.jar          jta-1.1.jar
c3p0-0.9.1.jar               hibernate3.jar
commons-collections-3.1.jar  javassist-3.12.0.GA.jar

* src/app/org/openmeetings/app/hibernate

tcheun@enk:~/source/openmeetings$ ls -R src/app/org/openmeetings/app/hibernate
src/app/org/openmeetings/app/hibernate:
beans  utils

src/app/org/openmeetings/app/hibernate/beans:
adresses  calendar  flvrecord   lang  recording  sip
basic     domain    invitation  logs  rooms      user

src/app/org/openmeetings/app/hibernate/beans/adresses:
Adresses.hbm.xml  Adresses.java  States.hbm.xml  States.java

src/app/org/openmeetings/app/hibernate/beans/basic:
Configuration.hbm.xml  LdapConfig.java     OmTimeZone.hbm.xml
Configuration.java     Naviglobal.hbm.xml  OmTimeZone.java
ErrorType.hbm.xml      Naviglobal.java     RemoteSessionObject.java
ErrorType.java         Navimain.hbm.xml    SOAPLogin.hbm.xml
ErrorValues.hbm.xml    Navimain.java       SOAPLogin.java
ErrorValues.java       Navisub.hbm.xml     Sessiondata.hbm.xml
LdapConfig.hbm.xml     Navisub.java        Sessiondata.java

src/app/org/openmeetings/app/hibernate/beans/calendar:
Appointment.hbm.xml          AppointmentReminderTyps.hbm.xml
Appointment.java             AppointmentReminderTyps.java
AppointmentCategory.hbm.xml  MeetingMember.hbm.xml
AppointmentCategory.java     MeetingMember.java

src/app/org/openmeetings/app/hibernate/beans/domain:
Organisation.hbm.xml  Organisation_Users.hbm.xml
Organisation.java     Organisation_Users.java

src/app/org/openmeetings/app/hibernate/beans/flvrecord:
FlvRecording.hbm.xml     FlvRecordingMetaData.hbm.xml
FlvRecording.java        FlvRecordingMetaData.java
FlvRecordingLog.hbm.xml  FlvRecordingMetaDelta.hbm.xml
FlvRecordingLog.java     FlvRecordingMetaDelta.java

src/app/org/openmeetings/app/hibernate/beans/invitation:
Invitations.hbm.xml  Invitations.java

src/app/org/openmeetings/app/hibernate/beans/lang:
FieldLanguage.hbm.xml  Fieldlanguagesvalues.hbm.xml  Fieldvalues.hbm.xml
FieldLanguage.java     Fieldlanguagesvalues.java     Fieldvalues.java

src/app/org/openmeetings/app/hibernate/beans/logs:
ConferenceLog.hbm.xml  ConferenceLogType.hbm.xml
ConferenceLog.java     ConferenceLogType.java

src/app/org/openmeetings/app/hibernate/beans/recording:
ChatvaluesEvent.hbm.xml         RoomClient.hbm.xml
ChatvaluesEvent.java            RoomClient.java
Recording.hbm.xml               RoomRecording.hbm.xml
Recording.java                  RoomRecording.java
RecordingClient.hbm.xml         RoomStream.hbm.xml
RecordingClient.java            RoomStream.java
RecordingConversionJob.hbm.xml  WhiteBoardEvent.hbm.xml
RecordingConversionJob.java     WhiteBoardEvent.java

src/app/org/openmeetings/app/hibernate/beans/rooms:
RoomModerators.hbm.xml  RoomTypes.java  Rooms_Organisation.hbm.xml
RoomModerators.java     Rooms.hbm.xml   Rooms_Organisation.java
RoomTypes.hbm.xml       Rooms.java

src/app/org/openmeetings/app/hibernate/beans/sip:
OpenXGReturnObject.hbm.xml  OpenXGReturnObject.java

src/app/org/openmeetings/app/hibernate/beans/user:
PrivateMessageFolder.hbm.xml  UserContacts.java    Userlevel.hbm.xml
PrivateMessageFolder.java     UserSipData.hbm.xml  Userlevel.java
PrivateMessages.hbm.xml       UserSipData.java     Users.hbm.xml
PrivateMessages.java          Userdata.hbm.xml     Users.java
Salutations.hbm.xml           Userdata.java        Users_Usergroups.hbm.xml
Salutations.java              Usergroups.hbm.xml   Users_Usergroups.java
UserContacts.hbm.xml          Usergroups.java

src/app/org/openmeetings/app/hibernate/utils:
HibernateUtil.java  MySQL5MyISAMDialect.java

HibernateTest

<hibernate-configuration>
 <session-factory name="">
  <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  <property name="hibernate.connection.url">jdbc:mysql://localhost/HibernateTest</property>
  <property name="hibernate.connection.username">root</property>
  <property name="hibernate.connection.password">rootpasswd</property>
  <property name="hibernate.connection.pool_size">5</property>
  <property name="hibernate.current_session_context_class">thread</property>
  <property name="hibernate.c3p0.min_size">5</property>
  <property name="hibernate.c3p0.max_size">25</property>
  <mapping resource="Contact.hbm.xml"/>
 </session-factory>
</hibernate-configuration>

* eclipse 에서 hibernate3.jar 를 교체해도 같은 오류 발생
  • 이 프로그램에서 openmeetings 의 hibernate3.jar 를 사용하여 시험
  • 수행 됨
  • hibernate 의 버전 문제 아님.

ID
Password
Join
Do not clog intellect's sluices with bits of knowledge of questionable uses.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-09-07 18:36:18
Processing time 0.0078 sec