You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Zajkowski, Radoslaw" <Ra...@proximity.ca> on 2012/03/15 16:37:19 UTC

Starting solr + jetty using absolute paths

Hi all,

#1. I'm on windows

When I run solr+jetty from where the start.jar lives using this as provided by README:

java.exe -Dsolr.solr.home=multicore -jar start.jar

All works fine.

However if I try this:

c:\HP\solr\example>"C:\Program Files\Java\jre6\bin\java.exe" -Dsolr.solr.home=C:/HP/solr/example/multicore -Djetty.home=C:/HP/solr/example -Djetty.logs=C:/logs/
Jetty -cp C:/HP/solr/dist/*.jar;C:/HP/solr/example/multicore/global_libs/*.jar;C:/HP/solr/example/start.jar -jar C:/HP/solr/example/start.jar

Data import handler no longer executes script transformers reporting:

SEVERE: Exception while processing: f document : null:org.apache.solr.handler.dataimport.DataImportHandlerException: Could not invoke method :CreateBusinessField

Etc.etc.

Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function trim.

I need the second option in order to install Solr+Jetty using the NSSM (http://nssm.cc/)

Thank you.

Radek.






Radoslaw Zajkowski
Senior Developer
O°
proximity
CANADA
t: 416-972-1505 ext.7306
c: 647-281-2567
f: 416-944-7886

2011 ADCC Interactive Agency of the Year
2011 Strategy Magazine Digital Agency of the Year

http://www.proximityworld.com/

Join us on:
Facebook - http://www.facebook.com/ProximityCanada
Twitter - http://twitter.com/ProximityWW
YouTube - http://www.youtube.com/proximitycanada





Please consider the environment before printing this e-mail.

This message and any attachments contain information, which may be confidential or privileged. If you are not the intended recipient, please refrain from any disclosure, copying, distribution or use of this information. Please be aware that such actions are prohibited. If you have received this transmission in error, kindly notify us by e-mail to mailto:helpdesk@bbdo.com. We appreciate your cooperation.



RE: Starting solr + jetty using absolute paths

Posted by "Zajkowski, Radoslaw" <Ra...@proximity.ca>.
Upgrading to jre7 made it go away!

Radek.



Radoslaw Zajkowski
Senior Developer
O°
proximity
CANADA
t: 416-972-1505 ext.7306
c: 647-281-2567
f: 416-944-7886

2011 ADCC Interactive Agency of the Year
2011 Strategy Magazine Digital Agency of the Year

http://www.proximityworld.com/

Join us on:
Facebook - http://www.facebook.com/ProximityCanada
Twitter - http://twitter.com/ProximityWW
YouTube - http://www.youtube.com/proximitycanada

-----Original Message-----

From: Zajkowski, Radoslaw [mailto:Radoslaw.Zajkowski@proximity.ca]
Sent: Thursday, March 15, 2012 11:37 AM
To: solr-user@lucene.apache.org
Subject: Starting solr + jetty using absolute paths

Hi all,

#1. I'm on windows

When I run solr+jetty from where the start.jar lives using this as provided by README:

java.exe -Dsolr.solr.home=multicore -jar start.jar

All works fine.

However if I try this:

c:\HP\solr\example>"C:\Program Files\Java\jre6\bin\java.exe" -Dsolr.solr.home=C:/HP/solr/example/multicore -Djetty.home=C:/HP/solr/example -Djetty.logs=C:/logs/ Jetty -cp C:/HP/solr/dist/*.jar;C:/HP/solr/example/multicore/global_libs/*.jar;C:/HP/solr/example/start.jar -jar C:/HP/solr/example/start.jar

Data import handler no longer executes script transformers reporting:

SEVERE: Exception while processing: f document : null:org.apache.solr.handler.dataimport.DataImportHandlerException: Could not invoke method :CreateBusinessField

Etc.etc.

Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function trim.

I need the second option in order to install Solr+Jetty using the NSSM (http://nssm.cc/)

Thank you.

Radek.






Radoslaw Zajkowski
Senior Developer
O°
proximity
CANADA
t: 416-972-1505 ext.7306
c: 647-281-2567
f: 416-944-7886

2011 ADCC Interactive Agency of the Year
2011 Strategy Magazine Digital Agency of the Year

http://www.proximityworld.com/

Join us on:
Facebook - http://www.facebook.com/ProximityCanada
Twitter - http://twitter.com/ProximityWW YouTube - http://www.youtube.com/proximitycanada





Please consider the environment before printing this e-mail.

This message and any attachments contain information, which may be confidential or privileged. If you are not the intended recipient, please refrain from any disclosure, copying, distribution or use of this information. Please be aware that such actions are prohibited. If you have received this transmission in error, kindly notify us by e-mail to mailto:helpdesk@bbdo.com. We appreciate your cooperation.



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2114/4872 - Release Date: 03/15/12

 -----Original Message-----

Please consider the environment before printing this e-mail.

This message and any attachments contain information, which may be confidential or privileged. If you are not the intended recipient, please refrain from any disclosure, copying, distribution or use of this information. Please be aware that such actions are prohibited. If you have received this transmission in error, kindly notify us by e-mail to mailto:helpdesk@bbdo.com. We appreciate your cooperation.