Wrapper serive do some pit of Java play app

Source: Internet
Author: User
Tags app service locale

Wrapper:https://wrapper.tanukisoftware.com/doc/english/download.jsp#downloadnote1

There are some pits, are wrapper.conf configuration problems, put wrapper out

#encoding =utf-8# Configuration files mustbegin  withA Linespecifying the encoding# ofThefile.#********************************************************************# Wrapper License Properties (ignored by Community Edition) #********************************************************************# Professional andStandard Editions ofThe Wrapper require a valid# License Key toStart. Licenses can purchasedora trial license# requested onThe following pages:# http://Wrapper.tanukisoftware.com/purchase# http://wrapper.tanukisoftware.com/trial# IncludefileProblems can debugged by removing the first'#'# from the following Line: # #include. debug# the Wrapper would look forEither ofThe following optional files fora# valid License Key. License Key Properties can optionally be included# directlyinchThisConfiguration file. #include../conf/wrapper-license.conf#include ./conf/wrapper-license-%wrapper_host_name%. conf# the following property wouldOutputinformation about which License Key (s) # is being found, andCan aidinchresolving any licensing problems. #wrapper. License.debug=TRUE#********************************************************************# Wrapper localization#********************************************************************# Specify the locale which the Wrapper should Use. By default the system# locale isused. #wrapper. Lang=en_us # en_USorja_jp# Specify the location ofThe Wrapper's language resources. If these is# Missing, the Wrapper would default toThe en_US locale.wrapper.lang.folder=.. /lang#********************************************************************# Wrapper Java properties#********************************************************************# java application# Locate the Java binary onThe system PATH:wrapper.java.command=java# Specify a specific Java binary: #set. Java_home=/java/Path#wrapper.java.command=%java_home%/bin/java# Tell the Wrapper toLog the full generated Java command Line. #wrapper. Java.command.loglevel=info# Java Main class. This class must implement the Wrapperlistener interface#orGuarantee that the Wrappermanager class isinitialized. helper# classes is provided toDo this forYou . See the integration section# ofThe documentation forDetails.wrapper.java.mainclass=org.tanukisoftware.wrapper.wrappersimpleapp# Java Classpath (include Wrapper.jar) Add class path elements as# needed Starting from1Wrapper.java.classpath.1=.. /lib/Wrapper.jarwrapper.java.classpath.2=.. /lib/*. jar# Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=.  /lib# Java Bits.  On applicable platforms, tells the JVM to run in or 64-bit mode.wrapper.java.additional.auto_bits=true# Java additional parameterswrapper.java.additional.1=# Initial Java Heap size (in MB) #wrapper. java.initmemory=3# Maximum java Heap Size (i  n MB) #wrapper. java.maxmemory=64# application parameters. ADD parameters as needed starting from 1wrapper.app.parameter.1=play.core.server.prodserverstart#******************* # Wrapper Logging properties#*********************************** # enables Debug output from the wrapper.# wrapper.debug=true# Format of output for the CO  Nsole.  (see Docs for formats) wrapper.console.format=pm# LOG level for console output. (See docs for Log levels) wrapper.console.loglevel=info# log file to the use for wrapper output logging.wrapper.logfile=: /logs/wrapper.log# Format of Output for the log file.  (see Docs for formats) wrapper.logfile.format=lptm# log level for log file output.  (See docs for log levels) wrapper.logfile.loglevel=info# Maximum size, the log file would be allowed to grow The log is rolled.  Size is specified in bytes.  The default value# of 0, disables log rolling.  May abbreviate with the ' K ' (KB) or# ' m ' (MB) suffix.  For example:10m = megabytes.wrapper.logfile.maxsize=0# Maximum number of rolled log files which would be allowed before  old# files are deleted.  The default value of 0 implies no limit.wrapper.logfile.maxfiles=0# log level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=none#************************************************************ # Wrapper General properties#********************************************************************# allow For the use of non-contiguous numbered propertieswrapper.ignore_sequence_gaps=true# does not start if the PID file already E Xists.wrapper.pidfile.strict=true# Title to use when running as a consolewrapper.console.title=app-demo#************************* # Wrapper JVM checks#************************************************* # Detect deadlocked Threads in the JVM. (Requires standard Edition) wrapper.check.deadlock=truewrapper.check.deadlock.interval= 60wrapper.check.deadlock.action=restartwrapper.check.deadlock.output=full# out of Memory detection.# (simple match) wrapper.filter.trigger.1000=java.lang.outofmemoryerror# (only match text on stack traces If-xx:+printclasshistogram is being used.) #wrapper. Filter.trigger.1000=exception in Thread "*" Java.lang.outofmemoryerror#wrapper.filter.allow_ Wildcards.1000=truewrapper.filter.action.1000=restartwrapper.filter.message.1000=the JVM has run out of memory.#**** # Wrapper Email notifications. (Requires Professional Edition) #*********************************# Common Event Email settings. #wrapper. event.default.email.debug=true# Wrapper.event.default.email.smtp.host=<smtp_host> #wrapper. event.default.email.smtp.port=25# Wrapper.event.default.email.subject=[%wrapper_hostname%:%wrapper_name%:%wrapper_event_name%] Event Notification# Wrapper.event.default.email.sender=<sender email>#[email protected]# Configure The log attached to event Emails. #wrapper. event.default.email.attach_log=true#wrapper.event.default.email.maillog.lines=50# wrapper.event.default.email.maillog.format=lptm#wrapper.event.default.email.maillog.loglevel=info# Enable Specific event emails. #wrapper. event.wrapper_start.email=true#wrapper.event.jvm_prelaunch.email=true# wrapper.event.jvm_start.email=true#wrapper.event.jvm_started.email=true#wrapper.event.jvm_deadlock.email=true# wrapper.event.jvm_stop.email=true#wrapper.event.jvm_stopped.email=true#wrapper.event.jvm_restart.email=true# Wrapper.event.jvm_failed_invocation.email=true#wRapper.event.jvm_max_failed_invocations.email=true#wrapper.event.jvm_kill.email=true#wrapper.event.jvm_ killed.email=true#wrapper.event.jvm_unexpected_exit.email=true#wrapper.event.wrapper_stop.email=true# Specify Custom Mail contentwrapper.event.jvm_restart.email.body=the JVM was restarted.\n\nplease check in its status.\n#******* # Wrapper Windows nt/2000/xp Service properties#****** # warning-do not modify any of these properties when an AP  plication# using this configuration file have been installed as a service.# please uninstall the service before modifying  This section. the# service can then be reinstalled.# name of the servicewrapper.name=app-demo# Display name of the SERVICEWRAPPER.DISPL  ayname=app-demo# Description of the servicewrapper.description=app-demo# Service dependencies. ADD dependencies as needed starting from 1wrapper.ntservice.dependency.1=#Mode in which the service is installed. Auto_start, Delay_start or demand_startwrapper.ntservice.starttype=auto_start# allow the service to interact with the DES Ktop.wrapper.ntservice.interactive=false

which

1.paly mainclass: ' Play.core.server.ProdServerStart '

2. To configure all program jar packages and dependent packages, Conf/*.jar

3. Some of the last few lines of app service to be modified

Configuration process:

1: Download the compressed package, unzip

2: Create a new Bin,conf,logs,libs folder. Put our packaged jar into the Libs

3. Unzip the Wapper, put the contents of the wrapper in the corresponding folder, as follows

{Wrapper}\bin\wrapper.exe-----> {app}\bin\wrapper.exe{wrapper}\src\bin\app.bat.in  ----->  {App}\bin\myapp.bat{wrapper}\src\bin\installapp-nt.bat.in  -----> {app}\bin\installmyapp-NT.bat{ Wrapper}\src\bin\uninstallapp-nt.bat.in  -----> {app}\bin\uninstallmyapp------>  ----->{app}\lib\wrapper.jar
{wrapper}\conf\wrapper.conf----->{app}\conf\wrapper.conf

4. Configure wrapper.conf

Configure the required configuration items in the wrapper.conf, including all jar packages under LIB, Mianclass, service name, description, etc...

   

Wrapper serive do some pit of Java play app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.