It's all about the answers!

Ask a question

Unable to load proxy problem


Pongtip Aroonvatanaporn (46137) | asked Jan 24 '11, 12:23 p.m.
Hi,

I am developing a fronting application with JFS3.0 that communicates with the JFS server. I have been receiving errors that the server is unable to load some calls using the JFS proxy. I am running the fronting application using Jetty on Eclipse on port 9444 and the JTS is running on the default port of 9443. I have already added the fronting application to the whitelist in the JTS configuration.

First problem is that the HomeMenu button would not load. When I click on the menu button, it says "You are not authorized to view this application. Try again." In firebug, I see this error


Discovery service error: {"status":403,"responseText":"!ProxyHandler.processDeniedResponse.invalidFrontingAppFrinds!","stack":"Error(\"Unable to load /mcif/proxy?uri=https%3A%2F%2Fself-check%3A9444%2Fmcif%2Frootservices%3Ftype%3Dhttp%253A%252F%252Fjazz.net%252Fns%252Fui%2523HomeMenu status:403\")@:0\n()@https://self-check:9444/mcif/web/_js/A:?etag=BHsDkg_en_US:17\n()@https://self-check:9444/mcif/web/_js/A:?etag=BHsDkg_en_US:17\n(7)@https://self-check:9444/mcif/web/_js/A:?etag=BHsDkg_en_US:17\n","fileName":"https://self-check:9444/mcif/web/_js/A:?etag=BHsDkg_en_US","lineNumber":17,"message":"Unable to load /mcif/proxy?uri=https%3A%2F%2Fself-check%3A9444%2Fmcif%2Frootservices%3Ftype%3Dhttp%253A%252F%252Fjazz.net%252Fns%252Fui%2523HomeMenu status:403","name":"Error"}


Second problem is when trying to access other applications in the JTS server. I have CCM registered as another application with the JTS server. When requests are forwarded to the CCM application, I also see the proxy error in Firebug.

This is the request:

https://self-check:9444/mcif/proxy?uri=https%3A%2F%2Fself-check%3A9443%2Fccm%2Fauthenticated%2Fidentity&dojo.preventCache=1295888413510

The server responds with a 401 Unauthorized status. The specific error is:


Error: Unable to load /mcif/proxy?uri=https%3A%2F%2Fself-check%3A9443%2Fccm%2Fauthenticated%2Fidentity&dojo.preventCache=1295888413510 status:401


Do I need to configure anything specific on the JTS and on our fronting application to get the proxy to work?

Thanks very much in advance for the help.

3 answers



permanent link
John Vasta (2.6k15) | answered Jan 25 '11, 8:30 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I am not sure why your web UI would be trying to proxy requests to other applications through your application, but if it needs to, then those other applications must be friends of your application. Your application would need to implement a friends configuration mechanism, and ensure that the static instance of com.ibm.team.jfs.app.friendsconfig.FriendsConfig is initialized before the proxy is called on to forward any requests. You could use that class to implement a friends configuration mechanism by persisting friends data in a file. But not really understanding your topology, I'm not sure if that's an appropriate thing to do. You might want to think about why requests to other applications are being triggered from your web UI; perhaps there's an alternative to what you're trying to accomplish. (Are you embedding UI elements from other applications in your application?)

permanent link
Pongtip Aroonvatanaporn (46137) | answered Jan 25 '11, 3:33 p.m.
Thank you for your response. With respect to the second problem that I am having. I am trying to embed the Work Item picker into my application. The scenario is that we want to link our application to CCM to link work items and I have added CCM to the friendsconfig.rdf.

Through using the discovery services, the CCM application should return the URI for the Work Item Picker. This used to work fine in JFS3.0M6, but stopped working in the release version.

Am I on the right approach here?

permanent link
John Vasta (2.6k15) | answered Jan 26 '11, 4:18 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Having looked a bit closer at your error message, I believe that you have a problem with the configuration of the JTS discovery service. The error message is

Unable to load /mcif/proxy?uri=https%3A%2F%2Fself-check%3A9444%2Fmcif%2Frootservices%3Ftype%3Dhttp%253A%252F%252Fjazz.net%252Fns%252Fui%2523HomeMenu

which is easier to read if the decode it,

Unable to load /mcif/proxy?uri=https://self-check:9444/mcif/rootservices?type=http%3A%2F%2Fjazz.net%2Fns%2Fui%23HomeMenu

and "/mcif/rootservices" is not the JTS discovery service - its a service in your own application, that would not accept the ?type parameter. You'll need to investigate how you're coming up with the discovery service URL; I would expect it to be "/jts/discovery?type=..."

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.