DesktopServlet Problem
Hi all,
I am created a new desktop, and created a simple portlet using JSPProvider as template. And I try to access the relate page, it always show "You are trying to access a channel which is not defined in the system". What address shd be I type to access the page. Now I am try to use this one
"http://sunportal.<domain>:8080/portal/dt?provider=MISTab"
where MISTab is the name of containter.
Thx
[436 byte] By [
Suedejefa] at [2007-11-26 20:44:44]

# 1
that's the right address, assuming everything else is in check.
is MISTab defined within another container? in that case, the provider name would be <parent>/MISTab.
does the user have access to that provider? for example, is it defined in a different organization than the user?
# 2
The Struction of the page is like that
Container: MISTab(JSPTableContainerProvider)
Channel: MISPage(JSPProvider)
And I put the MISPage to the folder "/var/opt/sun/portal/portals/(portalName)/desktop/(desktop name)/MISTab/"
I had try to many URL to access to the page, but still show such error. If relate to access right, how can i grant the right to the spcific user, becuase I just knew how to set the page as anonymous user
# 3
forget the structure of the page. in the console, when you look at those channels, is one nested inside the other? for example, you might have done this ...
1. defined MISTab inside of JSPTabContainer
2. defined MISPage inside of MISTab
in this case, the names of the channels would be:
1. JSPTabContainer/MISTab
2. JSPTabContainer/MISTab/MISPage
i am just using this as an example, as i do not know the real state of things.
it is important to remember that the nesting of the channel configuration, inside the portal's display profile, does not necessarily reflect the page structure. for example, if the page structure was like channel C inside tab T inside tab container TC, i can still define all of those channels in the display profile at the same level.
or, i could nest them in the display profile as TC/T/C. in that case, the channel names are TC, TC/T and TC/T/C.
# 4
Hi farble1670,
Thx for your help. I had try to config the URL like your suggest, and it still cant connect to the targe page.
My project is like that, i created a login page for default user to login, and the form action point to "http://sunportal.<domain>:80/amserver/UI/Login?org=<desktopName> 38;goto=http://sunportal.<domain>:8080/portal/dt?action=content&channe l=JSPTabContainer/MISTab/MISPage&last=false"
After I type the correct username/password, the page still remain at the login page.
I saw those doc from Sun, the URL that I type shd be correct, any solution to solve it?
# 5
earlier you said you were seeing "channel not found". are you having a different problem now? did you get around the first problem? you should be able to access your tab and page without logging in, just so you can troubleshoot one problem at a time.
i don't think the login page failure has to do w/ how you've defined the channel. i don't know what to say on that one. it sounds like the login is failing, or may be getting an exception when it executes and just ends up returning the same page. have you checked the access manager logs under /var/opt/SUNWam/debug and ../logs?
i am still confused about how exactly you've defined the pages, and how they are nested. in the URL below, it sounds like you've nested the page inside the tab, and the tab inside the tab container in the portal's display profile. is this correct?
# 6
Hi farble1670,
Sorry to make you confusing. Actually I am facing the problem that I cant reach my portlet.
I try to directly type the address "http://sunportal.<domain>:8080/portal/dt?action=content&channe l=JSPTabContainer/MISTab/MISPage&last=false",
but it will redirect to portal default page (http://sunportal.<domain>:8080/portal/welcome/index.jsp)
I checked those error logs, but i got nthing from it.
The structure of my desktop now are like that:
DP_root
|
|
|MISTab (Provider: JSPTableContainerProvider)
||
||
|--MISPage (Provider: JSPProvider)
|
|Login (Provider: JSPTableContainerProvider)
|
|
--IntranetLogin (Provider: JSPProvider)
# 7
first, the URL parameter is "provider" not "channel". don't ask why, it's there fore legacy reasons.
from the structure you drew below, the channel name appear to be:
MISTab
MISTab/MISPage
Login
IntranetLogin
visually, do you expect JSPTabContainer channel to have a tab named MISTab, which contains a channel named MISTab/MISPage?
if so, the correct thing to do is to have "provider=JSPTabContainer" in the URL, and then in the configuration of JSPTabContainer, configure one of it's tabs to be MISTab. and further, configure the table container MISTab to container MISTab/MISPage.
# 8
Sorry that, i know it is quite stupid, but until now, I still cant access the page. I am now try to use the url "http://sunportal.<domain>:8080/portal/dt?action=content&provider=JSP TabContainer/MISTab/MISPage&last=false"
But the result still show
( A serious error has occured in the Desktop. This may have been caused by a mis-configuration on the server.
Please report this problem to your administrator.
Possible cause:
* You are trying to access a channel which is not defined in the system
Return to front page )
I have try if set the page can access by Anonymous user, then it can use that link, is it really need to set some access right for the page?
Many thx for yr help
# 9
visually, do you expect JSPTabContainer channel to have a tab named MISTab, which contains a channel named MISTab/MISPage?
if so, the correct thing to do is to have "provider=JSPTabContainer" in the URL, and then in the configuration of JSPTabContainer, configure one of it's tabs to be MISTab. and further, configure the table container MISTab to container MISTab/MISPage.
you are are expecting "provider=JSPTabContainer/MISTab/MISPage" to switch to the MISTab tab in the JSPTabContainer tab container, that is not how it works. in the provider= URL argument, you just name the top level container.
as far as i can tell, the error is correct you do not have a channel named JSPTabContainer/MISTab/MISPage.