Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9149383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:28:10+00:00 2026-06-17T11:28:10+00:00

I downloaded New Relic 2.12.0 and configured it according to the Heroku java configuration

  • 0

I downloaded New Relic 2.12.0 and configured it according to the Heroku java configuration documentation.

I unzipped the package contents to the root of my spring mvc application directory as indicated in the following image

enter image description here

Next, I pushed the new files to Heroku:

$ git add newrelic
$ git commit -m 'add newrelic'
$ git push heroku master

Finally, I bootstrapped the new relic agent:

$ heroku config:add JAVA_OPTS='-Xmx384m -Xss512k -XX:+UseCompressedOops -javaagent:newrelic/newrelic.jar'

Afterwards, my application failed with the following error and appears to not be able to locate the newrelic.jar file.

The new relic documentation says the JVM args (e.g. -javaagent:newrelic/newrelic.jar) should include the full path to the newrelic.jar file, but according the the Heroku documentation, -javaagent:newrelic/newrelic.jar is all that’s needed.

2013-01-15T19:41:11+00:00 heroku[web.1]: Starting process with command `java -Xmx384m -Xss512k -XX:+UseCompressedOops -javaagent:newrelic/newrelic.jar -Dspring.profiles.active=prod -jar target/dependency/webapp-runner.jar --port 47412 target/*.war`
2013-01-15T19:41:11+00:00 app[web.1]: agent library failed to init: instrument
2013-01-15T19:41:11+00:00 app[web.1]: Error occurred during initialization of VM
2013-01-15T19:41:11+00:00 app[web.1]: Error opening zip file or JAR manifest missing : newrelic/newrelic.jar
2013-01-15T19:41:12+00:00 heroku[web.1]: Process exited with status 1
2013-01-15T19:41:12+00:00 heroku[web.1]: State changed from starting to crashed

UPDATE

After checking the newrelic directory on my web dyno, I noticed the jar file was missing. Now I am looking into the cause of the missing jar file.

enter image description here

Update

The .gitignore file in the root of my application directory excludes jar files which prevents the newrelic.jar file from being deployed.

<<<<<<< HEAD
/target
/.classpath
/.project
/.settings
/tomcat.*
/.idea
/*.iml
=======
*.class

# Package Files #
*.jar
*.war
*.ear
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:28:11+00:00Added an answer on June 17, 2026 at 11:28 am

    Is it possible you’ve left something in your .gitignore file that ignores jars? If you heroku run bash and then ls newrelic do you see the jars in there?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the fairly new Ninject 2.0 and Ninject.Web.Mvc (targeting mvc2) sources today, and
I just downloaded the new unstable release of RavenDB #2127 according to Ayende's announcement
I downloaded some new Java component, and now I want to add them to
Yesterday I downloaded the new Spring 3.1RC to test the just introduced support for
I just downloaded new release of Hibernate 4.0.1 final release. It is very strange
I have downloaded several new plugins which come with a help file. None of
i am new to the databases and i recently downloaded mysql 5.1 and learning
I just downloaded and installed the brand new Entity Framework 5.0 beta 2 which
I am new to iphone development.I want to add RegexKitLite framework.I have downloaded the
I am new to Struts . I downloaded Struts2 from its website. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.