wiki:MolgenisFaq

Version 17 (modified by Morris Swertz, 15 years ago) (diff)

--

MOLGENIS FAQ

Here you can find answers to some of the most frequently asked questions about MOLGENIS. If you have a question not answered on this page, you can ask it on the MailingList. See the MolgenisSupport? page for more options on getting support and services for MOLGENIS.

Statement.GeneratedKeysNotRequested?

This is known to happen if you update to the newest mysql driver (5.1.10) 5.1.2-beta work fine. See #51

It doesn't work after checkout!

It can happen that MOLGENIS doesn't compile in Eclipse and that you get a lot of red crosses. Check then if you have JDK 1.6 as runtime. In Eclipse go to:

  1. In the main menu select 'Windows'
  2. Select Preferences
  3. Select Java
  4. Select Installed JRE's
  5. If there is no 1.6 they you need to add it.

Also see MolgenisWorkspaceBasics

I want to automatically select my plugin

Solution:

  1. Use the '_target' parameter in the form containing the selecting action
    <input type="hidden" name="_target" value="name of the plugin"/>
    
  1. In the handleRequest of the targetted plugin change selection of menu
    ((MenuScreen)getParent()).setSelected(this.name);
    

Create new MOLGENIS project

  • creeer een nieuw 'dynamic web project'
  • vervolgens moet je 'handwritten/java' 'generated/java' en 'generated/sql' aanmaken
  • onder project -> properties -> build path set the Source to match these folders (and not 'src')
  • kopieer WebContent/WEB-INF/web.xml
  • kopieer WebContent/index.html
  • kopieer/creeer je _db.xml en _ui.xml
  • kopieer molgenis.properties en pas aan aan je xmls en database_name
  • daarna kopieer je MolgenisGenerate?.java etc naar je handwritten/java
  • project -> Java EE dependecies naar 'molgenis'
  • run