WELD-001408:带有限定符@Default

时间:2019-06-05 10:28:53

标签: java-ee primefaces wildfly jsf-2.3

我正在使用JSF 2.3,PrimeFaces 6.2,WildFly 10和JEE7。部署我的应用程序后,根据

,我得到了上面的异常

https://arjan-tijms.omnifaces.org/p/jsf-23.html

这不应引起异常。下面是我的源代码:

@Named ("allAssignmentsBean")
@javax.faces.view.ViewScoped
public class AllAssignmentsBean {


@Inject
private ExternalContext extCtx;

我的pom.xml:

    <dependency>
        <groupId>org.jboss.spec.javax.servlet</groupId>
        <artifactId>jboss-servlet-api_3.1_spec</artifactId>
        <version>1.0.0.Final</version>
        <scope>compile</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.jboss.logging</groupId>
        <artifactId>jboss-logging</artifactId>
        <version>3.0.1.GA</version>
        <scope>compile</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.jboss.as</groupId>
        <artifactId>jboss-as-web</artifactId>
        <version>7.1.1.Final</version>
        <scope>compile</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
        <version>7.0</version>
    </dependency>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-web-api</artifactId>
        <version>7.0</version>
    </dependency>
    <dependency>
        <groupId>javax.faces</groupId>
        <artifactId>javax.faces-api</artifactId>
        <version>2.3</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.primefaces</groupId>
        <artifactId>primefaces</artifactId>
        <version>6.2</version>
    </dependency>

可能是什么问题?谢谢!

0 个答案:

没有答案