Skip to content

Commit

Permalink
fix: jans-linux-setup render webapps.xml (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Nov 2, 2022
1 parent 1f08119 commit ed8fa84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jans-linux-setup/jans_setup/setup_app/installers/jetty.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def installJettyService(self, serviceConfiguration, supportCustomizations=False,
self.renderTemplateInOut(
web_context,
os.path.join(Config.templateFolder, NAME_STR),
out_file=os.path.join(self.jetty_base, serviceName, 'webapps/{}.xml'.format(serviceName))
out_file=os.path.join(self.jetty_base, service_name, 'webapps/{}.xml'.format(service_name))
)
except:
self.logIt("Error rendering service '%s' context xml" % service_name, True)
Expand Down
12 changes: 12 additions & 0 deletions jans-linux-setup/jans_setup/templates/jetty/default_webcontext.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/%(service_name)s</Set>
<Set name="war">
<Property name="jetty.webapps" default="." />/%(service_name)s.war
</Set>
<Set name="extractWAR">true</Set>

<!-- <Set name="extraClasspath"></Set> -->
</Configure>

0 comments on commit ed8fa84

Please sign in to comment.