facebook

Will Hibernate work inside Plugin?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #229424 Reply

    I’ve a standard Plugin-Project with some views.
    Now i want to initialize a static Hibernate Session object
    by calling MySessionFactory.currentSession();
    inside the project’s xxPlugin.class.

    The result is that eclipse reports a
    Unable to create view: Plug-in de.profaudio was unable to load clas s de.profaudio.dir.AudioDirectoryView.
    Exception.

    Looking closer, i found that the static initializer in the SessionFactory
    /** The single instance of hibernate configuration */
    private static final Configuration cfg = new Configuration();
    causes this problem.
    The real reason is a
    java.lang.ClassNotFoundException: net.sf.hibernate.cfg.Configuration
    in the org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(String name, boolean resolve)
    method.

    Does Hibernate work inside Plugins?
    If so, whats wrong?

    #229426 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this isn’t realted to ME but instead Hibernate.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Will Hibernate work inside Plugin?

You must be logged in to post in the forum log in