This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic