Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Struts2注释在jboss EAP 7上不起作用_Java_Ajax_Jsp_Struts2_Jboss7.x - Fatal编程技术网

Java Struts2注释在jboss EAP 7上不起作用

Java Struts2注释在jboss EAP 7上不起作用,java,ajax,jsp,struts2,jboss7.x,Java,Ajax,Jsp,Struts2,Jboss7.x,最近,我们计划将我们的web应用程序从JBoss4.3迁移到JBoss7。经过多次努力,我们已经成功地部署了该应用程序 但问题始于Struts2注释和Json调用。Struts 2网格标记和Struts自动完成器数据未加载到JSP中 仅供参考,我们在Spring3.0中使用Java8和Struts2 下面是我们在Struts.xml文件中的配置 <constant name="struts.convention.result.path" value="/" /> <con

最近,我们计划将我们的web应用程序从JBoss4.3迁移到JBoss7。经过多次努力,我们已经成功地部署了该应用程序

但问题始于Struts2注释和Json调用。Struts 2网格标记和Struts自动完成器数据未加载到JSP中

仅供参考,我们在Spring3.0中使用Java8和Struts2

下面是我们在
Struts.xml
文件中的配置

<constant name="struts.convention.result.path" value="/" />

  <constant name="struts.convention.exclude.parentClassLoader" value="true" />
<constant name="struts.convention.action.fileProtocols"  value="jar,vfsfile,vfszip" /> 
<constant name="struts.convention.action.includeJars" value=".*?/hope.*?jar(!/)" /> 

<constant name="struts.convention.action.packages" value="com.hope" />
<constant name="struts.ui.theme" value="simple" />  
<package name="showcase" extends="struts-default,json-default" namespace="/"></package>

到底是什么不起作用?没有错误,但是Struts自动完成程序没有加载@Aleksandrm到底是什么不起作用?没有错误,但是Struts自动完成程序没有加载@亚历山大
@ParentPackage(value = "showcase")
public class NameTypeJson extends RegistrationAction {
    private static final long serialVersionUID = 2L;

    private List<SelectItem>   regnameType          = null;
    @Actions({ 
        @Action(
        value="/regnametype",
            results={ @Result(name="success",type="json")
        })
        })
        public String loadnametype() throws Exception {

        //here logic                
                     return SUCCESS;
        }