« Return to Thread: Could not create importer. DataImporter config invalid at... MAC OSX

Re: Could not create importer. DataImporter config invalid at... MAC OSX

by gateway0 :: Rate this Message:

Reply to Author | View in Thread

Here is my data-config.xml:
"
<?xml version="1.0"?>
<dataConfig>
  <dataSource type="JdbcDataSource" name="mydatabase" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/mydatabase?zeroDateTimeBehavior=convertToNull" user="root" password=""/>
  <document>
    <entity name="mydatabase_new_project" dataSource="mydatabase" transformer="TemplateTransformer" query="select *, 'mydatabase new_project' from new_project">
      <!-- mydatabase_new_project , start -->
      <field column="int_id" template="${mydatabase_new_project.mydatabase new_project},id:${mydatabase_new_project.id}"/>
      <field column="id" name="db_id"/>
      <field column="def" template="${mydatabase_new_project.mydatabase new_project}"/>
      <entity name="sys_types" dataSource="mydatabase" query="select ftext from sys_types where ftype=1 and fid='${mydatabase_new_project.type}' ">
        <field column="ftext" name="type"/>
      </entity>
      <field column="name" name="name"/>
      <entity name="new_comment" dataSource="mydatabase" query="select cm_text from new_comment where ftype=1 and fid='${mydatabase_new_project.id}' ">
        <field column="cm_text" name="comment"/>
      </entity>
      <field column="deadline" name="deadline" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss"/>
      <field column="completion" name="completion" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss"/>
      <entity name="user" dataSource="mydatabase" query="select username from ci_user where userid='${mydatabase_new_project.created_by}' ">
        <field column="username" name="created_by"/>
      </entity>
      <entity name="sys_stati" dataSource="mydatabase" query="select ftext from sys_stati where fid='${mydatabase_new_project.state}' ">
        <field column="ftext" name="state"/>
      </entity>
      <!-- 'phrase'-entity not found in table mydatabase_new_project -->
      <!-- mydatabase_new_project , end -->
    </entity>
  </document>
</dataConfig>
"


Noble Paul നോബിള്‍ नोब्ळ्-2 wrote:
there is something wrong w/ your data-config.xml you can paste it here

On Thu, Jul 9, 2009 at 3:14 PM, gateway0<reiterworld@yahoo.de> wrote:
>
> Hi,
>
> I wanted to port my windows installation of solr to mac os. But the
> following error occured:
>
> "Could not create importer. DataImporter config invalid at
> org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:114)
> at
> org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:311)
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:480) at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:119)
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
> at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> at ... "
>
> That are the changes to my solrconfig.xml:
>
> First hange (from the Windows Version):
> "
> <requestHandler name="/dataimport"
> class="org.apache.solr.handler.dataimport.DataImportHandler">
>    <lst name="defaults">
>      <str name="config">/Applications/XAMPP/solr/conf/data-config.xml</str>
>    </lst>
>  </requestHandler>
> "
>
> Second change:
> "
> <dataDir>${solr.data.dir:/Applications/XAMPP/solr/data}</dataDir>
> "
>
> When I leave the Dataimporthandler out of the config file it works! But how
> do I get the Dataimporthandler to work on mac os?
>
> kind regards, Sebastian
> --
> View this message in context: http://www.nabble.com/Could-not-create-importer.-DataImporter-config-invalid-at...-MAC-OSX-tp24407175p24407175.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

 « Return to Thread: Could not create importer. DataImporter config invalid at... MAC OSX