Atg.rest.RestException: Access to the requested resource is not allowed
Hi,
While testing REST services, I have created a file in my localconfig directory at atg/rest/security named restSecurityConfiguration.xml and added the following lines to the file,replacing #username# with admin ( for testing purpose).
<programlisting>
<rest-security>
<default-acl value="Profile$login$#admin#:read,write,execute"/>
</rest-security>
</programlisting>
Still while accessing the REST service through code, I am getting "atg.rest.RestException: Access to the requested resource is not allowed".
Can anyone please throw some light if I have missed anything here?
Thanks in advance!
Hi,
I am facing an InvalidPersonaException , when I try to use the following in my restSecurityConfiguration.xml, any idea of the error? Still, I am able to login through admin credentials in BCC, and it is a valid Internal user.
<resource component="/heb/store/service/RestContactUsManager">
<method name="restContactUsStatus" secure="false">
<acl value="Profile$login$admin:read,write,execute" />
</method>
</resource>
Similar Messages
-
Hi All,
I’m having a hard time figuring out how to make Rest WebService calls.
I tried executing this directly through browser and I get an error.
http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password
13:18:20,613 ERROR [RestSecurityServlet] Error code: 401
Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
atg.rest.RestException: Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)
at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)
at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)
at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)
at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)
at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)
From the documentation I understand that I need to create a session, is the session only necessary to access secured components since this
particular method “ProfileServices.loginUser “ has been declared as not secure in restSecurityConfiguration.xml
Also, are there two different ways in which I can log in
1. Using RestSession.createSession providing the username and password.
2. Or using ProfileServices.loginUser or ProfileFormHandler
Can someone please clarifyIf you are invoking the REST web-service from a Java client then you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with a HTTP request which by default would be treated as a GET request by ATG's REST implementation. Therefore being a GET, it would try to fetch a property "loginUser" from /atg/userprofiling/ProfileServices component (based on your URL) which would always fail.
To invoke loginUser() method of ProfileServices with your passed argument you need to tell ATG's REST system to treat your incoming request not as GET but as a POST request which you can do using atg-rest-http-method control parameter in your request like this
http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password&atg-rest-http-method=POST
It should work this way provided your restSecurityConfiguration.xml is proper. -
The requested resource does not exist - EAR - Jsp
Hy!
Following a tutorial I'm trying to create a small application in the Developer Studio.
I created a Table, an EJB-Project with an Entity Bean and a Stateless Session Bean, a Web-Project with a JSP-File and an EAR which I deployed. Now the JSP form should be available at http://[server-name]:50000/employee/view.
But I get:
404 Not Found - SAP J2EE Engine/6.40
The requested resource does not exist.
Details: Go to main page of this application!
"main page" is a link which refers to http://localhost:50000/index.html which is the SAP Engine Start Page.
This is my first experience with sap netweaver. So I don't know where I should start to search for the problem or how to solve it.
In the web.xml of the WebProject there is the following code for the servlet mapping:
<servlet>
<servlet-name>NewEmployee.jsp</servlet-name>
<jsp-file>/NewEmployee.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>NewEmployee.jsp</servlet-name>
<url-pattern>/view</url-pattern>
</servlet-mapping>
This is the code in the application.xml of the ear which should make it possible to access the webproject under .../employee.
<module>
<web>
<web-uri>EmployeeWeb.war</web-uri>
<context-root>employee</context-root>
</web>
</module>
Best Regards,
CarinaHy!
I tried several changes and found out, I just had to remove the ' / ' bevor NewEmployee.jsp in the jsp-file - tag.
<servlet>
<servlet-name>NewEmployee.jsp</servlet-name>
<jsp-file>NewEmployee.jsp</jsp-file>
</servlet>
Now it works and I'm able to test the jsp. There's a form and after a submit a jndi-lookup is performed.
Object ref=jndiContext.lookup("java:comp/ev/ejb/EmployeeService");
It seems the EJB reference in the web.xml:
<ejb-ref>
<ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.sap.bsp.EmployeeServicesHome</home>
<remote>com.sap.bsp.EmployeeServices</remote>
<ejb-link>EmployeeEjb.jar#EmployeeServicesBean</ejb-link>
</ejb-ref>
doesn't work, because I get:
com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/ev/ejb/EmployeeService.
Looking forward to a hint
Best regards,
Carina -
Error :-The requested resource does not exist while opening the adobe form
hello Experts,
We are in Portal implementation face with ECC6 EHP4 and Portal EHP1
We have developed adobe form using HCM forms and processes and done the required configuration in SPRO
When we are trying to open the form from ESS we are getting below error
404 not found
The requested resource does not exist.
Please look into this issue and let us know any thing we are missing
Sincerely
Pareshis ADS working correctly?
1. Use transaction SA38 to execute the program FP_TEST_00.
Detailed information about this test program and about how you
should then proceed is given in the Adobe Document Services
Configuration Guide in the Help Portal under:
http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a4
94facfdc09a359b1/frameset.htm -> Adobe Document Services
Configuration Guide -> Configuring the Web Service -> Securing
Access to the Web Service ->Configuration Check -> Configuration
Check for PDF-Based Forms in ABAP
- If the FP_TEST_00 form is displayed in the print preview, the
ADS configuration is correct.
-> If you use scenarios with an interactive PDF, proceed with
point 5. Otherwise, proceed with the test under point 6.
- If the system displays an error message instead of a form, the
configuration of ADS is incorrect.
-> Carry out the additional tests from point 2 onwards.
2. Use transaction SA38 to execute the program FP_PDF_TEST_00.
This enables you to check the RFC connection to ADS (see the
reference to the documentation given above).
- If the system displays the version number of ADS, the
configuration of the RFC connection is correct.
read the note 944221
Please paste the whole error? Is any dump in ST22 -
GCWebservice not found (The requested resource does not exist)
Dear expert,
According to the following link, there is a standard web service allowing the update of xml file into portal :
http://help.sap.com/saphelp_banking60/helpdata/de/45/485c1a5b875b3ee10000000a1553f6/frameset.htm
The problem is that I get the message " The requested resource does not exist." when I launch the URL http://<server>:<port>/GCWebservice/Config1?wsdl (where <server> and <port> are the server and port number for my portal).
Please do you know how to assist on this topic ? do you know how we can access to the GCWebservice and eventually download it to the portal ?
Thanks and regardsHi all ,
Thanks for the replies .
Shravan ,
I pinged my XI and is working . we have already added
the IP Address and the host name , but the same error
is coming .
Anirban,
Checked all the necessary services again as suggested
by you .
Andreas ,
> is to set the abap profile parameter
LOCALHOSTFULL to the fqhn.
Can you please let me know where to set the abap
profile parameter "LOCALHOSTFULL" as suggested by you .
Thanks
Shikha -
Web Dynpro image not found: The requested resource does not exist
Hi everybody,
I'm experiencing a strange Poltergeist, so I would like to cry out the issue and hope any kind sould could help me
In my WebDynpro application, I show a JPG picture which is located in the own project, that means in "src/mimes/Components/metromadrid.net.formacion.Cursos". The image appears correctly in my Development environment, but when the activity is moved to the Consolidation System (I'm using JDI), the image doesn't appear. If I try to access it directly, via URL, the messagen shown is "404 Not found: The requested resource does not exist.." (the URL accessed is http://hostname:port/webdynpro/resources/metromadrid.es/formacionapp/Components/metromadrid.net.formacion.Cursos/foto_vacia.jpg)
The point is that in the same Consolidation environment I have already some applications with images, which are found and loaded without any problem.
I have checked if the image appears in the corresponding active repository and everything seems alright (I mean I can see the file there).
Any idea? It would be really appreciated, since my time to solve the problem expires in few days...
Thank you very much in advance!!
Isidro LopezHi Isidro,
your mime files were most probably not added to your NWDI activities when developing your Web Dynpro DC. This means when adding these mime files to the src/mimes/<comp package>.<Comp name> folder the Web Dynpro Tools have most probably not detected the new mime files. When testing your application on in your local development environment all images appear as they exist on your local file system. As missing mimes do not cause a CBS build failure you won't encounter a designtime error.
Please check whether the corresponding mimes are listed as 'local only' (house symbol) in your DTR perspective. In case they are listed as 'local only' you must explicitly add them to an activity.
I have also encountered this missing mime problem before but I have not started any investigation to really determine the reason for it.
Best regards, Bertram -
Need urgent help :'The requested resource does not exist error'
Hi All,
I am getting 'The requested resource does not exist error' when trying to acess http://machinename:50000/irj
Even when i access http://machinename:50000, i get the same 'The root directory does not exist' error. I checked in visual admin, there is no other application deployed except my application.
Any clues? Pls help
thanks
bhawnaHI ,
Did succeed to solve your problem. I am running into same problem.
Any help is welcome.
Thank u very much. -
404 Not Found, Error: The requested resource does not exist.
Hi all,
When I try to access VC with the http://localhost:50400/vc where 04 is the CE1 instance, it returns the following error:
404 Not Found
Error: The requested resource does not exist.
Any clues. Just to add that the CE1 servers are running green and nwa is accessible on same url.
Regards.Hi
Try with following link (VC should be in Caps) -
http://localhost:50400/VC/default.jsp
Also check whether you have proper admin roles assigned to your user id.
Regards
Sandeep
Edited by: Sandeep Patki on Sep 16, 2009 8:47 AM -
404 'the requested resource is not available'
Hi All,
We created a KM iview and accessing Flash file. Some users are able to see the iview without error. Some users are getting 404 'the requested resource is not available' Error. They are not able to see the flash file in portal.
Can anyone advise me what the problem is and resolution steps for this?
Thanks,
Srinivasu.YHi Srinivasu,
Well you already have lots of valid suggestions above but this problem might be causing for various reasons. As you have already checked the permissions for the set of the users having this problem, it might be worth checking if there are many nodes of the server instance and if any of these are not working properly. It can happen that when those set of users are trying to access the resource, the request is hitting specific server nodes which is unable to find the resource for some reasons. You can try asking the users to clear their browser cache and try again so that when the users try to access the same resource again it might go to different node this time.
But probably this is a temporary solution that might work as has worked in my case but there might be problem with some server nodes which is worth looking at.
Hope it helps.
Regards,
Gourav -
''dupe of https://support.mozilla.org/en-US/questions/928117''
all website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not helping in any waysA possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
*http://kb.mozillazine.org/Error_loading_websites
You can try to reset (power off/on) the router. -
All website went "HTTP Error 404. The requested resource is not found."
''dupe of https://support.mozilla.org/en-US/questions/928117''
all website went "HTTP Error 404. The requested resource is not found."
this only happen in firefox (i'm using IE to post this question)A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
*http://kb.mozillazine.org/Error_loading_websites
You can try to reset (power off/on) the router. -
CRM Upgrade from 7.0 to EhP1 Error - The requested resource does not exist
Hello All,
We have recently upgrade our pilot system in CRM from CRM 7.0 to Ehp1. The upgrade was successful.
However, when I login into the WebUI, I get an error message as follows:
404 Not Found
The requested resource does not exist
Details: Go to main page of this application
I got in touch with the Basis team and tried to activate some services through SICF that were deactivated because of the upgrade. But we still encounter the above error everytime I tried logging into WebUI.
I kindly request to provide some pointers towards the resolution of the same.
Thanks and regards,
VSK.Hi,
please try to activate all SICF services under sap->bc->bsp.
If needed deactivate them and activate afterwards again to be sure all services are active.
Good luck
Kind regards
Manfred -
404 Not Found, the requested resource does not exist
Hi gurus,
We're faciing an issue where when we submit data back to the SRM shopping cart from the MDM catalog UI, we intermittently get a "404 Not Found, the request resource does not exist" error page.
Below is the HTTP trace upon item checkout:
POST 200 text/html; charset=UTF-8 https://server/webdynpro/dispatcher/sap.com/tcmdmsrmcat~uisearch/MDM_SRM_UI_App?sap-wd-cltwndid=0cf753a3797111dfa7c662676002500a&sap-wd-appwndid=0cf753a4797111df966b62676002500a&sap-wd-norefresh=X
GET (Cache) application/x-javascript https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js?7.0103.20091012142306
GET 404 text/html https://server/webdynpro/resources/sap.com/tcmdmsrmcat~uisearch/Components/com.sap.mdm.srmcat.uisearch.master.Master/ProductForm30703.html
GET (Cache) text/html https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/blank.html?7.0103.20091012142306
GET (Cache) application/x-javascript https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js
GET (Cache) text/html https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/backprevention.html
GET (Cache) text/html https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/backdummy.html
GET (Cache) application/x-javascript https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js
The page https://server/webdynpro/resources/sap.com/tcmdmsrmcat~uisearch/Components/com.sap.mdm.srmcat.uisearch.master.Master/ProductForm30703.html is where the 404 error is being generated. And this error is also intermittent, so some time, the page will load with GET 200, but other times, it will show GET 404.
Does anyone know what this ProductForm#####.html does? The ##### is a numerical value that seems to be incrementing on every catalog submission back to SRM shopping cart.
MDM build 03.69
Thanks.Sudhanshu appreciate your quick responses and the intermittent error is what's troubling me as well.
Let me run through the SRM SC scenario for example:
1. In shopping cart professional > Add Item > SRMMDM Catalog
2. In the SRM-MDM catalog > Add an item to cart > Checkout
3. After checkout, is where the intermittent error comes. Sometimes, the ProductForm.html is generated without a problem, and the product data is returned to the SRM SC in line 1.
4. When we're back in the SRM SC professional > Add Item > SRMMDM Catalog to punchout to the catalog again.
5. Again, in the SRM-MDM catalog > Add an item to cart > Checkout
6. Boom...the ProductForm.html page generates a 404 error.
The scenario is similar from SUS to MDM, where for example, the first (or second or third) MDM punch out works, then all of a sudden, the 404 error is generated and it's always at the ProductForm.html where the 404 code is given. I have yet to find a pattern to see what triggers this 404 error. Sometimes the first MDM punchout will generate this 404 error. Sometimes it will work up to 4 or 5 punchouts before the 404 error is generated.
I'm have our BASIS team do a thorough analysis at the portal level to look for errors and still waiting for SAP's response.
Another interesting thing is that this ONLY happens in our dev box. In our QA box, we don't see such a behavior.
Thanks for your time! -
Alert Configuration : 404 Not Found The requested resource does not exist
Hi all ,
We are facing problem in Alert configuration and
Alert Inbox . We are on SP14 service patch
We are getting error as " 404 Not Found The requested
resource does not exist "
We have activated all the necessary services in
Tcode : SICF as mentioned in the config. guide
We have executed the program :
SXMB_ACTIVATE_ICF_SERVICES
We have referred the SAP note : 750287 and tried to
set the httpport as per the note but again we are
getting error as "The page cannot be displayed" .
We have checked the parameters in Exchange profile
for httpport as well as for host also .
Can someone please guide us on this .
Thanks
ShikhaHi all ,
Thanks for the replies .
Shravan ,
I pinged my XI and is working . we have already added
the IP Address and the host name , but the same error
is coming .
Anirban,
Checked all the necessary services again as suggested
by you .
Andreas ,
> is to set the abap profile parameter
LOCALHOSTFULL to the fqhn.
Can you please let me know where to set the abap
profile parameter "LOCALHOSTFULL" as suggested by you .
Thanks
Shikha -
Http-XI-File: "The requested resource does not exist"
i have a http-XI-File scenario, where i m sending a request from the HTTpClient application(i obtained that HTTPClientApplication from SDN itself), when i send the request, i receive a response in the internet explorer as
"The requested resource does not exist"...
help meHi,
Have You Entered Correct Input Parameters in the Client Test Tool ???
Please Mention the Correct Server Port
Regards
Khanna
Maybe you are looking for
-
Create a new dimension in business layer from Data source: text file on the web
Hi, I have a text data source which is published every few hours that is accessible from a certain URL. I follow the instruction given in this http://scn.sap.com/docs/DOC-43144 - where it shows in great detail how to create the connection, data found
-
How to create a PDF form with multiple approvals?
Hello , I am trying to add approvals to a pdf I created . I am trying to add approvals such that once the form is filled up by the user and emailed to the concerned person (admin) , they approve the form , this action inturn sends the pdf to the next
-
Touchscreen unresponsive in safari
My touch screen is not responsive on my daughters iPad Air only when she is using her search engine. She tried bing, google and yahoo, but none are working. All other apps are fine. I am guessing some kind of bug?
-
Financial Report - planning user security
Hi, We created FR reports that have Entity Dimension as a prompt on report page. Datasource is planning application and users have been provisioned to be able to read only their own entities in planning. Hoever, when they run reports and select the e
-
Désinstaller In Design CC sur Mac Os
Comment désinstaller cette application ? Merci d'avance