aspose file tools*
The moose likes Portals and Portlets and the fly likes HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "HTTP Status 403 - Direct access to this Portlet Application Watch "HTTP Status 403 - Direct access to this Portlet Application New topic
Author

HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized.

Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
Hi All,

I am calling servlet from jsp in Vignette portal with jboss server using following code.



whenever i click on download link from jsp it is showing ..


HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator.

type Status report

message Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator.

description Access to the specified resource (Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator.) has been forbidden.
JBossWeb/2.0.1.GA



Any body knows about this problem please help ....

Thanks in Advance
Raju.K

Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
yes i got solution...

The Portal Portlet Packaging Tool adds a security filter to a portlet application’s web.xml file. This filter allows direct requests to static files, such as images, but it blocks all requests to servlets and JSPs that are not proxied through Portal, thereby ensuring that the Portal authentication and authorization mechanisms protect all application resources. As a result, a Portal user is forbidden to access a portlet application directly. Hwoever, we need to make direct requests to the FileExplorerServlet. To enable access we will remove the Portal security filter (named PortletApplicationSecurityFilter) and the mapping. Delete or comment the following lines:

1.<filter>
2. <filter-name>PortletApplicationSecurityFilter</filter-name>
3. <filter-class>com.vignette.portal.portlet.jsrcontainer.PortletApplicationSecurityFilter</filter-class>
4.</filter>
5.<filter-mapping>
6. <filter-name>PortletApplicationSecurityFilter</filter-name>
7. <url-pattern>/*</url-pattern>
8.</filter-mapping>

Once you complete the deployment, start the VAP server. Login to the Server console (http://localhost:8080/portal/console).
Thanks & Regards
raju.k


Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
yes i got solution...

The Portal Portlet Packaging Tool adds a security filter to a portlet application’s web.xml file. This filter allows direct requests to static files, such as images, but it blocks all requests to servlets and JSPs that are not proxied through Portal, thereby ensuring that the Portal authentication and authorization mechanisms protect all application resources. As a result, a Portal user is forbidden to access a portlet application directly. Hwoever, we need to make direct requests to the FileExplorerServlet. To enable access we will remove the Portal security filter (named PortletApplicationSecurityFilter) and the mapping. Delete or comment the following lines:

1.<filter>
2. <filter-name>PortletApplicationSecurityFilter</filter-name>
3. <filter-class>com.vignette.portal.portlet.jsrcontainer.PortletApplicationSecurityFilter</filter-class>
4.</filter>
5.<filter-mapping>
6. <filter-name>PortletApplicationSecurityFilter</filter-name>
7. <url-pattern>/*</url-pattern>
8.</filter-mapping>

Once you complete the deployment, start the VAP server. Login to the Server console (http://localhost:8080/portal/console).

please refers at last lines: http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=746
Thanks & Regards
raju.k


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized.