Comment #9 on issue 94 by
williams...@gmail.com: Allow to execute SolrMeter
without UI
http://code.google.com/p/solrmeter/issues/detail?id=94
I had the same errors at first too. I was able to apply the patch using:
patch --ignore-whitespace -Np1 -d sources/ < solrmeter-R318-headless.patch
Once the patch was applied, it didn't seem like
solrmeter -Dsolrmeter.configurationFile=solrmeter-config.smc.xml
-DrunMode=headless
worked to run in headless mode. I would just get the regular gui.
java -jar target/solrmeter-0.3.1-SNAPSHOT-jar-with-dependencies.jar
-Dsolrmeter.configurationFile=solrmeter-config.smc.xml -DrunMode=headless
[main]| INFO|[boot]|09:34:02,109 | Adding plugins from ./plugins
[main]| WARN|[boot]|09:34:02,110 | No plugins directory found. No pluggin
added
[main]| INFO|[boot]|09:34:02,220 | Loading Default configuration
[main]| INFO|[boot]|09:34:02,220 | Loading Configuration with file
solrmeter.properties
[main]| INFO|[com.plugtree.solrmeter.SolrMeterMain]|09:34:02,224 | Using
module: com.plugtree.solrmeter.StatisticsModule
[main]| INFO|[org.exolab.castor.mapping.Mapping]|09:34:02,367 | Loading
mapping descriptors from
jar:file:/C:/Development/workspace/solrmeter/sources/solrmeter/target/solrmeter-0.3.1-SNAPSHOT-jar-with-dependencies.jar!/StatisticDescriptorMapping.xml
[main]| INFO|[com.plugtree.solrmeter.SolrMeterMain]|09:34:02,832 | Using
module: com.plugtree.solrmeter.ModelModule
[main]| INFO|[com.plugtree.solrmeter.SolrMeterMain]|09:34:02,833 | Using
module: com.plugtree.solrmeter.StandalonePresentationModule
[main]| INFO|[com.plugtree.solrmeter.SolrMeterMain]|09:34:02,833 | Using
module: com.plugtree.solrmeter.SolrMeterRunModeModule
[main]|ERROR|[com.plugtree.solrmeter.model.FileUtils]|09:34:03,494 |
java.io.FileNotFoundException: File could not be found on standard locations
[main]| INFO|[com.plugtree.solrmeter.view.I18n]|09:34:03,530 | Using Locale
en_US
[main]| INFO|[com.plugtree.solrmeter.model.SolrServerRegistry]|09:34:03,668
| Connecting to Solr:
http://localhost:8983/solr
[main]| INFO|[boot]|09:34:03,915 | Adding Statistic histogram
[main]| INFO|[boot]|09:34:04,241 | Adding Statistic timeRange
[main]| INFO|[boot]|09:34:04,276 | Adding Statistic queryHistory
[main]| INFO|[boot]|09:34:04,280 | Adding Statistic operationHistory
[main]| INFO|[boot]|09:34:04,287 | Adding Statistic fullQueryStatistic
[main]| INFO|[boot]|09:34:04,629 | Adding Statistic errorLog
[main]| INFO|[boot]|09:34:04,631 | Adding Statistic CacheStatistic
[main]| INFO|[boot]|09:34:04,639 | Adding Statistic QueryLogStatistic
[main]| INFO|[boot]|09:34:04,639 | Adding Statistic CommitHistoryStatistic
[main]| INFO|[boot]|09:34:04,639 | Adding Statistic SimpleOptimizeStatistic
[main]| INFO|[boot]|09:34:04,639 | Adding Statistic SimpleQueryStatistic
[main]| INFO|[boot]|09:34:04,639 | Adding Statistic OperationRateStatistic
<at this point the gui is available>