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 8663543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:00:42+00:00 2026-06-12T17:00:42+00:00

I am trying to deploy Solr on Tomcat using Puppet. When the solr.war is

  • 0

I am trying to deploy Solr on Tomcat using Puppet. When the solr.war is copied to /var/lib/tomcat6/webapps/solr.war, Tomcat takes some time to notice the newly added file and deploy it. One of the deployment steps involve expanding the .war file into /var/lib/tomcat6/webapps/solr/ directory.

Problem: I am trying to add more files (like apache-solr-dataimporthandler-3.6.1.jar) into the /var/lib/tomcat6/webapps/solr/ after tomcat has deployed solr.war and created this structure. If I created the folder /var/lib/tomcat6/webapps/solr/ before tomcat does, which is what my manifest below is doing, tomcat will not deploy Solr.

Is it possible to make Puppet wait for tomcat to deploy solr, before adding files into the newly created directory?

Manifest

class solr {

  file { '/var/lib/tomcat6/webapps/solr.war':
    ensure => present,
    owner   => root,
    group   => root,  
    mode    => 644,   
    source => 'puppet:///modules/solr/apache-solr-3.6.1.war',
    notify => Service['tomcat'],
  }

  file { '/usr/share/solr':
    ensure => present,
    source => 'puppet:///modules/solr/solr',
    recurse => true,
    require => File['/var/lib/tomcat6/webapps/solr.war'],
    notify => Service['tomcat'],
  }

  $solr_dirs = [ "/var/lib/tomcat6/webapps/solr/", "/var/lib/tomcat6/webapps/solr/WEB-INF/", 
                  "/var/lib/tomcat6/webapps/solr/WEB-INF/lib/"]
  file { $solr_dirs:
      ensure => "directory",
  }

  file { '/var/lib/tomcat6/webapps/solr/WEB-INF/web.xml':
    ensure => present,
    owner   => root,
    group   => root,  
    mode    => 644,   
    source => 'puppet:///modules/solr/web.xml',
    require => File[$solr_dirs],
  }

  file { '/var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar':
    ensure => present,
    owner   => root,
    group   => root,  
    mode    => 644,   
    source => 'puppet:///modules/solr/apache-solr-dataimporthandler-3.6.1.jar',
    require => File[$solr_dirs],
  }


}
  • 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-12T17:00:44+00:00Added an answer on June 12, 2026 at 5:00 pm

    You don’t really need to add those additional files to the solr war file. Usually it’s better to leave the war as it is. Those files can be added to your solr_home, which is somewhere else outside of the application server as well. Since you mentioned a jar file, you can configure the path to your jars in your solrconfig.xml. That way they will be loaded from Solr while starting up. Have a look at this page too.

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

Sidebar

Related Questions

while trying to deploy a Grails application into tomcat6 I ran into some problems:
I'm trying to deploy a Rails app as a WAR using Warbler. I have
I am trying to deploy a WAR on the mentioned tomcat application server. However
I'm trying to deploy a war with mvn tomcat:deploy and I get Failed to
I've got a problem when im trying deploy my WAR in tomcat. The program
I am trying to deploy my app to Heroku however I rely on using
I'm trying to deploy to a VPS following Ryan Bates screencast. I'm using thin
Trying to deploy application using ClickOnce to a webserver running sharepoint. I can publish
I'm trying to deploy a Rails app (2.3.8) on AppFog using the commands: af
I am trying to deploy a rails app on webbyapp. I am using sunspot

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.