PrimesFaces 5.1 on Weblogic 10.3.6

UI Components for JSF
Post Reply
absolutesantaja
Posts: 4
Joined: 19 Feb 2015, 06:00

19 Feb 2015, 06:10

Hi I'm trying some of the examples on the PrimeFaces ShowCase and I'm getting an error about the InjectionProvider. I'm running on Weblogic 10.3.6 on JDK 1.7 with PrimeFaces 5.1 using Maven and Netbeans 8.0.2.

error

Code: Select all

Feb 18, 2015 9:58:47 PM javax.faces.FactoryFinder releaseFactories
SEVERE: Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Feb 18, 2015 9:58:52 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.4 (FCS b07) for context '/ledw'
Feb 18, 2015 9:58:53 PM javax.faces.FactoryFinder$FactoryManager copyInjectionProviderFromFacesContext
SEVERE: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
Feb 18, 2015 9:58:53 PM javax.faces.FactoryFinder getImplGivenPreviousImpl
SEVERE: Unable to inject org.primefaces.context.PrimeFacesContextFactory@73cac838 because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Feb 18, 2015 9:58:53 PM javax.faces.FactoryFinder getImplGivenPreviousImpl
SEVERE: Unable to inject com.sun.faces.context.InjectionFacesContextFactory@6cb287c6 because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Feb 18, 2015 9:58:53 PM javax.faces.FactoryFinder getImplGivenPreviousImpl
SEVERE: Unable to inject org.primefaces.context.PrimePartialViewContextFactory@5f73b90 because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
Feb 18, 2015 9:58:53 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 5.1

Note I've been trying different decency so some of these probably aren't needed.

pom.xml

Code: Select all

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>mil.army.logsa</groupId>
    <artifactId>ledw</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>

    <name>ledw</name>
    <url>http://maven.apache.org</url>

    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>  
            <groupId>org.primefaces</groupId>  
            <artifactId>primefaces</artifactId>  
            <version>5.1</version>  
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
        <dependency>
            <groupId>javax.enterprise</groupId>
            <artifactId>cdi-api</artifactId>
            <version>1.2</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
weblogic.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    <jsp-descriptor>
        <keepgenerated>true</keepgenerated>
        <debug>true</debug>
    </jsp-descriptor>
    <context-root>/ledw</context-root>
    <library-ref>
        <library-name>jsf</library-name>
        <specification-version>2.0</specification-version>
        <implementation-version>1.0.0.0_2-0-2</implementation-version>
        <exact-match>false</exact-match>
    </library-ref>
    <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>
I've been testing the Drop Down Autocomplete and it seems to be functioning fine I just get those errors every couple of minutes and I'm assuming I don't have something setup right.

Thanks
Shawn

absolutesantaja
Posts: 4
Joined: 19 Feb 2015, 06:00

20 Feb 2015, 23:32

Just wanted to come back and say I figured it out. Apparently there was something broken in my NetBeans project. I recreated the project and copied all of my code back in then it went back to working correctly.

Thanks

absolutesantaja
Posts: 4
Joined: 19 Feb 2015, 06:00

24 Feb 2015, 04:04

Just wanted to add a final note, my issue was caused by not using the built in JSF 2 and Servlet 2.5 in my Maven POM File. These are the only libraries support on Weblogic 10.3.6

Code: Select all

          <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>javax.faces-api</artifactId>
            <version>2.0</version>
            <scope>provided</scope>
        </dependency>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests