HTTP method GET is not supported ?!

UI Components for JSF
Post Reply
eduardops
Posts: 1
Joined: 14 Jun 2011, 17:52

14 Jun 2011, 18:06

Hello guys,

i´m trying to make primefaces work, but I have a problem.

while acessing the .jsp page at:
http://localhost/Supervisorio_usuario/jsf/teste.jsp

i get the following error:
HTTP Status 405 - HTTP method GET is not supported by this URL
This is my web.xml

Code: Select all

	<!-- configuração para o jsf/primefaces -->
	<servlet>
		<servlet-name>Resource Servlet</servlet-name>
		<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>Resource Servlet</servlet-name>
		<url-pattern>/jsf/*</url-pattern>
	</servlet-mapping>

	<context-param>
		<param-name>com.sun.faces.allowTextChildren</param-name>
		<param-value>true</param-value>
	</context-param>
this is my jsp;

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
        ... put your header info here
</h:head>
<h:body>
        .. put your content here

		<f:view>
			
			<f:editor />
		
		</f:view>
		
</h:body>
</html>

those jars are on my web-inf/lib:
primefaces-2.2.1.jar
jsf-api-2.1.0.jar
jsf-impl-2.1.0.jar

using tomcat 6

thanks in advance

User avatar
leventgny
Posts: 238
Joined: 24 May 2011, 16:49
Contact:

14 Jun 2011, 21:31

You probably tried old versioned guide.
Resource Servlet deprecated and jsp is not supported on PF builds.
You can look at latest documentations and samples on primefaces.org

Thanks
PrimeFaces Team Member

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests