Java 在ManageEngine servicedesk中自动部署war文件
我正在进行渗透测试,我创建了一个war文件,并试图在manageengine的Service desk plus中自动部署它。我的问题是Java 在ManageEngine servicedesk中自动部署war文件,java,jsp,tomcat,servlets,jboss,Java,Jsp,Tomcat,Servlets,Jboss,我正在进行渗透测试,我创建了一个war文件,并试图在manageengine的Service desk plus中自动部署它。我的问题是 当我把战争档案放进去的时候 C:\ManageEngine\ServiceDesk\server\default\deploy\ 它会自动部署到 c:\ManageEngine\ServiceDesk\server\default\tmp\deploy\tmp2724browser.war\ 是否有任何方法可以将其部署到提取manageengine应用程序的文
<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 "%{Referer}i" %a %A %m %t %D %b %s "%{User-Agent}i""
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>
限制是我只能上传文件。将war的内容提取到[SDP Home]目录中的“test”文件夹中
<Context path="/test" appBase="" docBase="${jboss.home.dir}/test/" debug="9" reloadable="true"></Context>
将以下内容添加到[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]以访问测试应用程序