没有为联合提供<context-param>或<init-param> </init-param> </context-param>

时间:2015-04-07 02:49:05

标签: java tomcat struts-1

我在tomcat运行时期间获得No或者为联合提供。我用Google搜索,并没有看到任何有关此特定错误的信息。我知道context-param和init-param应该在web.xml中,但我不确定联邦是什么意思。我正在使用tomcat7,struts和java 8,

message No <context-param> or <init-param> provided for federation

description The server encountered an internal error that prevented it from fulfilling this request.

exception 

com.peregrine.gt.clients.framework.ClientServletException: No <context-param> or <init-param> provided for federation
    com.peregrine.gt.clients.framework.struts.ClientServlet.initApplication(ClientServlet.java:92)
    com.peregrine.gt.clients.framework.struts.ClientServlet.init(ClientServlet.java:64)
    javax.servlet.GenericServlet.init(GenericServlet.java:158)

的struts-config.xml

  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
    <data-sources />
    <form-beans>
        <form-bean name="DirectoryExplorerForm"
            type="com.amex.travelbahn.dataservices.console.forms.DirectoryExplorerForm" />
        <form-bean name="FileManagerForm"
            type="com.amex.travelbahn.dataservices.console.forms.FileManagerForm" />
        <form-bean name="JobStatusForm"
            type="com.amex.travelbahn.dataservices.console.forms.JobStatusForm" />
        <form-bean name="LoginForm"
            type="com.peregrine.gt.clients.framework.forms.ClientLoginForm" />
        <form-bean name="LogoutForm"
            type="com.peregrine.gt.clients.framework.forms.ClientLogoutForm" />
        <form-bean name="MonitorForm"
            type="com.amex.travelbahn.dataservices.console.forms.MonitorForm" />
        <form-bean name="PrdsForm"
            type="com.amex.travelbahn.dataservices.console.forms.PrdsForm" />
        <form-bean name="ProfileSyncForm"
            type="com.amex.travelbahn.dataservices.console.forms.ProfileSyncForm" />
        <form-bean name="ProfileTransformerForm"
            type="com.amex.travelbahn.dataservices.console.forms.ProfileTransformerForm" />
        <form-bean name="ScheduleCorpForm"
            type="com.amex.travelbahn.dataservices.console.forms.ScheduleCorpForm" />
        <form-bean name="UserForm"
            type="com.amex.travelbahn.dataservices.console.forms.UserForm" />
        <form-bean name="JobDisplayForm"
            type="com.amex.travelbahn.dataservices.console.forms.JobDisplayForm" />  
        <form-bean name="GDSExtractForm"
            type="com.amex.travelbahn.dataservices.console.forms.GDSExtractForm" />
    </form-beans>

pom.xml,不是全部,而是大多数重要的jar文件

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.3</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.12</version>
        </dependency>
        <dependency>
            <groupId>oracle</groupId>
            <artifactId>toplink</artifactId>
            <version>9.0.4.5</version>
        </dependency>

0 个答案:

没有答案