Primepush weblogic 10.3.6

UI Components for JSF
Post Reply
andyfinch
Posts: 44
Joined: 18 Jan 2011, 10:58

07 Nov 2014, 15:55

I am having serious issues getting this working as per the showcase examples/documentation. I am using weblogic 10.3.6 which uses servlet 2.5.

The error I get is:

Code: Select all

java.lang.NoSuchMethodError: javax/servlet/ServletContext.getServletRegistration(Ljava/lang/String;)Ljavax/servlet/ServletRegistration;


That method is since servlet 3.0. So what am I missing?

According to this post (Which helpfully redirects the poster to Atmosphere github):

http://forum.primefaces.org/viewtopic.php?f=10&t=38277

Atmosphere is servlet 2.5 compatable.

Any help will be much appreciated.

Sample of web.xml

Code: Select all

<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>Push Servlet</servlet-name>
        <servlet-class>org.primefaces.push.PushServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Push Servlet</servlet-name>
        <url-pattern>/primepush/*</url-pattern>
    </servlet-mapping>
Sample of pom.xml

Code: Select all

<dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>5.0.4</version>
        </dependency>
        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-runtime</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
Primefaces 5.1.9, Mojarra 2.0.9, Weblogic 10.3.6

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

08 Nov 2014, 09:02

Search this forum for

weblogic

and see if you find anyone that have success with weblogic 10.3.6.

If you can upgrade to weblogic 12.x, then see this forum topic below.

PF5 Push on Weglogic 12C: No AtmosphereHandler found
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

andyfinch
Posts: 44
Joined: 18 Jan 2011, 10:58

10 Nov 2014, 16:25

Indeed I have searched. As you can see I have included a link to a post referencing the very problem I am having. If any of the search results did fix my issue then this post wouldn't exist. So I am none the wiser. Do you know if my configuration is supported? Unfortunately Weblogic 12c is not possible at the moment but is in the plan at some point.
Primefaces 5.1.9, Mojarra 2.0.9, Weblogic 10.3.6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests