# Gem::LoadError activated jar-dependencies

**URL:** <https://discuss.elastic.co/t/gem-loaderror-activated-jar-dependencies/114873>\
**Category:** Logstash\
**Created:** [January 10, 2018, 1:00pm UTC](https://discuss.elastic.co/t/gem-loaderror-activated-jar-dependencies/114873 "2018-01-10T13:00:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milad\_Hamid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milad_hamid/32/24327_2.png) [@Milad\_Hamid](https://discuss.elastic.co/u/Milad_Hamid)\
**Post date:** [January 10, 2018, 1:00pm UTC](https://discuss.elastic.co/t/gem-loaderror-activated-jar-dependencies/114873/1 "2018-01-10T13:00:47Z")

</div>

Hi,

I installed logstash 6.1 and when running logstash and pipeline, getting following error message:

```
Gem::LoadError: You have already activated jar-dependencies 0.3.12, but your Gemfile
requires jar-dependencies 0.3.11. Prepending `bundle exec` to your command may solve this.

block in setup at /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/bundler-1.9.10/lib/bundler/runtime.rb:34 

```

My logstash pipeline:

```
input {
  file {
    path => "/var/log/apache2/access.log"
    start_position => "beginning"
  }
}

filter {
  if [path] =~ "access" {
    mutate { replace => { "type" => "apache_access" } }
    grok {
      match => { "message" => "%{COMBINEDAPACHELOG}" }
    }
  }
  date {
    match => ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
  }
}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
  }
  stdout { codec => rubydebug }
}

```

Please help with this issue.

---

<div class="post-metadata">

**Author:** ![Milad\_Hamid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milad_hamid/32/24327_2.png) [@Milad\_Hamid](https://discuss.elastic.co/u/Milad_Hamid)\
**Post date:** [January 11, 2018, 8:03am UTC](https://discuss.elastic.co/t/gem-loaderror-activated-jar-dependencies/114873/2 "2018-01-11T08:03:04Z")

</div>

Please if anyone can help with this!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 8, 2018, 8:03am UTC](https://discuss.elastic.co/t/gem-loaderror-activated-jar-dependencies/114873/3 "2018-02-08T08:03:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
