在ManageEngine服务台中自动部署war文件

时间:2014-04-12 15:31:35

标签: java jsp tomcat servlets jboss

我正处于渗透测试的中间,我创建了一个war文件,我正在尝试在manageengine的服务台上自动部署它。我的问题是

  1. 当我把战争档案放入
  2.   

    C:\ ManageEngine的\的ServiceDesk \服务器\默认\部署\

    它会自动部署到

      

    C:\ ManageEngine的\的ServiceDesk \服务器\默认\ TMP \部署\ tmp2724browser.war \

    1. 有什么方法可以让我在提取manageengine的应用程序的文件夹中进行部署,以便我可以通过url访问它,或者有什么办法可以通过更改context.xml来访问这个文件
    2. 服务器文件夹中也有server.xml文件,如下所示:

      <Server>
      
         <!-- Use a custom version of StandardService that allows the
         connectors to be started independent of the normal lifecycle
         start to allow web apps to be deployed before starting the
         connectors.
         -->
         <Service name="jboss.web"
            className="org.jboss.web.tomcat.tc5.StandardService">
      
            <!-- A HTTP/1.1 Connector on port 8080 -->
            <!-- The compression parameters are taken from the default Tomcat server.xml-->
            <Connector port="8080" address="${jboss.bind.address}"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               compression="on"
               compressionMinSize="2048"
               URIEncoding="UTF-8"
               noCompressionUserAgents="gozilla, traviata"
               compressableMimeType="text/css,text/javascript,application/javascript,text/plain,text/html"/>
      
               <!-- setBodyEncodingForURI="true" -->
      
       <!-- A AJP 1.3 Connector on port 8009 -->
      <!--
            <Connector port="8009" address="${jboss.bind.address}"
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3"/>
       -->
      
            <!-- SSL/TLS Connector configuration using the admin devl guide keystore
            <Connector port="8443" address="${jboss.bind.address}"
                 maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
                 scheme="https" secure="true" clientAuth="false"
                 keystoreFile="${jboss.server.home.dir}/conf/sdp.keystore"
                 keystorePass="sdpsecured" sslProtocol = "TLS" />
            -->
      
            <Engine name="jboss.web" defaultHost="localhost">
      
               <!-- The JAAS based authentication and authorization realm implementation
                  - certificatePrincipal : the class name of the
                  org.jboss.security.auth.certs.CertificatePrincipal impl
                  used for mapping X509[] cert chains to a Princpal.
               -->
               <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
                  certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
                  />
      
               <Logger className="org.jboss.web.tomcat.Log4jLogger"
                  verbosityLevel="INFORMATION"
                  category="org.jboss.web.localhost.Engine"/>
      
               <Host name="localhost"
                  autoDeploy="false" deployOnStartup="false" deployXML="false">
      
                  <!-- Uncomment to enable request dumper. This Valve "logs interesting
                       contents from the specified Request (before processing) and the
                       corresponding Response (after processing). It is especially useful
                       in debugging problems related to headers and cookies."
                  -->
                  <!--
                  <Valve className="org.apache.catalina.valves.RequestDumperValve" />
                  -->
      
                  <!-- Access logger -->
                  <!--
                  <Valve className="org.apache.catalina.valves.AccessLogValve"
                     prefix="localhost_access_log." suffix=".log"
                     pattern="common" directory="${jboss.server.home.dir}/log"
                     resolveHosts="false" />
                  -->
      
      
                  <!-- Uncomment to check for unclosed connections in servlets/jsps
                  <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
                      cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" />
                  -->
                <!--
                * Various Patterns and its meaning
                               %u - Remote user that was authenticated (if any), else '-'
                               %U - Requested URL path
                               %S - User session ID
                               %{Referer}i  - Referer for the web resource
                               %a - Remote IP address
                               %A - Local IP address
                               %m - Request method (GET, POST, etc.)
                               %t - Date and time, in Common Log Format
                               %D - Time taken to process the request, in millis
                               %b - Bytes sent, excluding HTTP headers, or '-' if zero
                               %s - HTTP status code of the response
                               %{User-Agent}i - Browser , platform , robot info ...
                     -->
                 <!--
                 <Valve className="org.apache.catalina.valves.AccessLogValve"
                     prefix="localhost_access_log." suffix=".log"
                     pattern="%u %U %{JSESSIONIDSSO}c &quot;%{Referer}i&quot; %a %A %m %t %D %b %s &quot;%{User-Agent}i&quot;"
                     directory="${jboss.server.home.dir}/log"/>
              -->
              <!-- Access logger -->
              <!--
                  * The default logger as packaged with the Tomcat version. If you do not want all the
                  * information that is being logged (as defined in the previous valve), comment out the
                  * earlier one and uncomment the following definition
              -->
              <!--
              <Valve className="org.apache.catalina.valves.AccessLogValve"
                  prefix="localhost_access_log." suffix=".log"
                  pattern="common" directory="${jboss.server.home.dir}/log"
                  resolveHosts="false" />
              -->
                  <!-- Uncomment to enable single sign-on across web apps
                     deployed to this host. Does not provide SSO across a cluster.
                  -->
              <Valve className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/>
              <Valve className="com.adventnet.servicedesk.tools.AuthenticateNtlm" debug="0"/>
                   <Valve className="com.adventnet.client.util.LoginParameters" />
      
                           <!-- This interceptor is added by 'AAA' team, in order to associate
                   the caller principal in to the thread that is wroking for the request. -->
                           <Valve className="com.adventnet.authentication.CredentialAssociation"/>
      
                  <!-- Default context parameters -->
              <DefaultContext cookies="true" crossContext="true" override="true"/>
      
              <!--
              static context 'help' added. The general product document can be placed in this folder
              for easy access
              -->
                 <Context path="/help" appBase=""
                 docBase="${jboss.home.dir}/help/"
                         debug="99" reloadable="true">
             </Context>
             <Context path="/custom" appBase=""
                 docBase="${jboss.home.dir}/custom/"
                         debug="9" reloadable="true">
                 </Context>
             <Context path="/inlineimages" appBase=""
                 docBase="${jboss.home.dir}/inlineimages/"
                         debug="9" reloadable="true">
             </Context>
             <Context path="/archive" appBase=""
                 docBase="${jboss.home.dir}/archive/"
                         debug="9" reloadable="true">
             </Context>
             <!--
             <Context path="/log" appBase=""
                 docBase="${jboss.home.dir}/server/default/log/"
                         debug="9" reloadable="true">
             </Context>
             -->
      
               </Host>
      
            </Engine>
      
         </Service>
      

      限制是我只能上传文件。

1 个答案:

答案 0 :(得分:0)

将战争内容解压缩到[SDP Home]目录中的“test”文件夹。

将以下内容添加到[SDP Home] /server/default/deploy/jbossweb-tomcat50.sar目录中的server.xml。

<Context path="/test" appBase="" docBase="${jboss.home.dir}/test/" debug="9" reloadable="true"></Context>

重新启动SDP服务器并连接到[http:// hostname:portno / test]以访问您的测试应用程序。