blob: 62faf006d400b7c42885f77c07d30e2a41f8becb [file]
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 6.5//EN"
"https://struts.apache.org/dtds/struts-6.5.dtd">
<!--
The actions intentionally use the lightweight `httpheader` result rather than a JSP view.
The entry action (case.action) makes a nested internal call (case1.action) within the same
cold request; a JSP result would trigger a cold Jasper compile on that nested thread at the
same time the agent enhances the Struts/HttpClient classes, and the two cold-start storms
contend badly under the plugin-test container's limited CPU/heap, pushing the first request
past the framework's 3s entry-service timeout. The result view is irrelevant to what this
scenario verifies (the Struts entry span, the HttpClient exit span, and cross-process
propagation), so a no-view result keeps the cold path fast without losing any coverage.
-->
<struts>
<package name="case" namespace="/case" extends="struts-default">
<action name="case" class="org.apache.skywalking.apm.testcase.struts.CaseAction">
<result name="SUCCESS" type="httpheader">
<param name="status">200</param>
</result>
</action>
<action name="case1" class="org.apache.skywalking.apm.testcase.struts.Case1Action">
<result name="SUCCESS" type="httpheader">
<param name="status">200</param>
</result>
</action>
</package>
</struts>