Deploy problem in Portal Server 6.2

I'm new to the portal realm, and have just started using the Sun Java System Portal Server 6.2.

My problem is that every time I deploy a portlet, using pdeploy, and create a channel for inside the Access Manager, the portlet always displays:

ERROR: Content is not available

I have made a small test portlet (called PrefPortlet), following the documentation in the Portal Server 6 Developers Guide page 187. I have deployd it according to the docs (Technical Reference guide page 91 and after). And I have created a channel for it called TestPrefportlet (see Administration Guide page 172 and after). I've added this channel to the default Sun portal that comes with the Portal server inside the MyFrontPageTabPanelContainer. I get no errormessages either at anny time.

Even tough I've done everything according to the docs, I won't work :( I've spent quite a lot of time trying to solve this problem, so I really hope you can help me.

The debug.debug file displays this error message:

06/27/2005 10:43:52:528 AM CEST: Thread[Thread-162,5,main]

ERROR: ProviderCaller.run(): exception thrown from TestPrefPortlet

tcom.sun.portal.providers.ProviderException: PortletWindowProvider.getContent():container

exceptioncom.sun.portal.container.ContainerException: PortletContainer.getMarkup():getting content com.sun.portal.container.ContentException: PortletContainer.getMarkup(): Cannot get content

at com.sun.portal.providers.portletwindow.PortletWindowProvider.getContent(Portlet WindowProvider.java:284)

at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:158)

[1680 byte] By [pompiuses] at [2007-11-25 19:33:18]
# 1

Could you use samples portlet from Portal installation to test first? If you can check sample portlet source and make your own deployment descriptor packaging to war file, then follow through manual to test.

After you have a working baseline, then you can make any change you want one at a time. Below are some useful files for debugging portlet.

/var/opt/SUNWam/debug/portletname.log Includes any kind of exception from the portlet code or JSPs and/or taglibraries

/var/opt/SUNWam/debug/portletcontainer.log

Includes problems with portlet and window states

/var/opt/SUNWam/debug/desktop.debug Includes channel configuration issues

WebServer-base/Instance/logs/errors Includes PortalContext.log() messages

HTH, Jerry

jh23093 at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

Now I've tried to undeploy and then redeploy the portletsamples.war that's supplied by Sun.

When I use pdeploy from the command line, I get no error messages when deplying. It only says "Done updating display profile". But when I create a channel from one of the portletles the content stil just says: ERROR: Content is not available.

I have also discovered that I can deploy using the Application Server interface. When I try to deploy portletsamples.war from there I get this errormessage:

Application was not deployed. See the administrative server's log file for the location of the verifier report files:

C:/Sun/jstudio_04Q4/AppServer7/domains/jstudio-domain/admin-server/logs/server. log

Deployment Error -- com.iplanet.ias.config.ConfigException: Failed to load deployment descriptor for: portletsamples cause: Error creating sun-specific web xml graph

So something is obviously wrong, but what? Is it perhaps some settings in my portal or app server?

pompiuses at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

Could you check sun-web.xml content so that it points to

"file:///opt/SUNWappserver7/lib/dtds/sun-web-app_2_3-0.dtd" instead pointing to www.sun.com. and validate version number? Also verify network access or load balance, firewall port maybe involve.

Do you have reverse proxy plugin or reverse proxy before your target resource? If yes, try to change as http://revproxyserver:80/resource/ instead.

Check agent fqdnMap match AM side? If everything you try failure, set debug flag=message in AM side, set the com.sun.am.log.logLevel in AMAgent.properties to all:5, restart the server where agent is running and examine amAuthApplication debug information. HTH, Jerry

jh23093 at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4
Solved it :)I had to create a new organization, and voila, the portlet was displayed correct.It seems like the default origanization don't like it when you deploy new portlets to it. God knows why....
pompiuses at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5

Hi,

Can u tell me how did you deploy the war file.

i am using the following syntax.

pdeploy deploy -u "uid=amAdmin,ou=People,o=Current-Drugs.Com" -w password -p password -g C:\Project_CDL\Customization\wsrp-samples\wsrp-samples.war

I get LDAP Authentication error.

Tx

Mukta

Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 6

How to deploy a portlet on domain no.org.something.com:

1: Make your portlet into a .war file and copy it to i.e. c:\examples.war

2: Open a command line shell and goto the folder: C:\Sun\jstudio_04Q4\PortalServer6.2\bin

3: Enter the following:pdeploy deploy -u "uid=amAdmin,ou=people,dc=no,dc=org,dc=something,dc=com" -w your_password -p your_password -v -g C:\examples.war

In this case, you gave it the fully qualified distinguished name of the amadmin user.

ou and dc are simply labels of the nodes in the LDAP tree. ou means "orginizational Unit" and dc means "domain component"

4: Use the Access Manager to create a new portlet channel based on you're new portlet, and put the channel inside one of your containers to view it.

OBS:

When I tried to display a channel with a self made portlet in the default Sun portal, it would fail.

All the portlet would display was: ERROR: Content is not available

When I tried it in a portal I've made myself it would work.

I don't know why this is, but perhaps there's some constraints showing new portlets in the default Sun portal...

pompiuses at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 7

Tx,

I have deployed the application, and created a Custom Container and A channel by following sections:

To Create a Channel from a Portlet and

To Add the Portlet Channel to a Container

Now how do i go about viewing this Portlets?

Is there documentation that I could refer to?

Also I am interested in WSRP Producer and WSRP Consumer? Do u have any clue about that?

Tx

Mukta

Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 8
Deploy a portlet:Portal Server 6 Developers Guide, page 187 Create a channel based on the portlet: Administration Guide page 172 and after
pompiuses at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 9
I have followed these sections, however what i am looking at is, to actually view the Portlet, with the markup that is written.Can the portlets be viewed from The Portal Desktop?
Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 10
4: Use the Access Manager to create a new portlet channel based on you're new portlet, and put the channel inside one of your containers to view it.
pompiuses at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 11

Hi,

I created the channel for my portlet and added this channel to the default MyFrontPageTabPanelContainer , however I cannot see my portlet when I view the Portal desktop.

Is there a need to change any more attributes in the Access Manager console.

I have deployed the portlet application using amAdmin user id.

Regards,

Mukta

Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 12

How did you create a new organization and deploy the portlet application into that organization.

I created a new organization from the Access manager console, and created a new user for that organization.

Then i used the following command to deploy the war file.

pdeploy deploy -u "uid=tpuser,ou=People,o=ThomsonPharma,dc=Current-Drugs,dc=Com" -w password -p password -v -g C:\Project_CDL\Customization\wsrp-samples\wsrp-samples.war

i get the following error:

errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURED)

in the pdeploy.debug log file it shows an exception message as:

The lower level exception message

sms-INSUFFICIENT_ACCESS_RIGHTS

How is it that you got the portlets to display using the new organization.

Tx

Mukta

Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 13
Hi,I m also getting the same error ERROR: Content is not available .How did u able to resolve this issue ?thanks in advance.~Neeraj.
try_catch_finally at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 14

Hi,

Also deploy the portlet application to the Webserver, along with the Portal server.

Use the following command, to deploy the war file in the oraganization that you have created(domain.ABC.Com).

C:/Sun/WebServer/bin/https/httpadmin/bin/wdeploy.bat deploy -u /wsrp-samples -i domain.ABC.Com -v https-domain.ABC.Com -d C:/Sun//PortalServer/https-domain.ABC.Com wsrp-samples/web-apps C:/Sun//PortalServer/tmp/portlet//wsrp-samples.war

Use the Sample Portal_config log file which will be created in your Sun Installation, this file includes a section where by looking at the steps you can see how the portlets accessible in Sun Portal are deployed. Use this as reference.

Search the text :

Calling pdeploy for portletsamples.war in this log file.

Regards,

Mukta

Mux at 2007-7-4 12:17:38 > top of Java-index,Web & Directory Servers,Portal Servers...
# 15

Hi Mukta,

Thanks for the reply.

We are following the steps that you have mentioned.

we have successfully deployed the portlet application to WebServer.

We will again ping u for further queries....if u don't mind.. :-)

Regards

~Neeraj

try_catch_finally@yahoo.com

try_catch_finally at 2007-7-4 12:17:40 > top of Java-index,Web & Directory Servers,Portal Servers...
# 16

Hi pompiuses,

I m also getting the same error even after trying a lot.

but i will do it that is sure.

Could u pls tell me how did u create an organization and also elaborate the relation of this

error with the organization.

could u refer me some doc or steps by which u got success.

Waiting for ur Productive response.

hope u will help me to solve this issue.

Thanks in advance.

~Neeraj

try_catch_finally@yahoo.com

try_catch_finally at 2007-7-4 12:17:41 > top of Java-index,Web & Directory Servers,Portal Servers...
# 17

Hi,

I had installed Sun Java System Portal Server 6 2005Q4 under window xp environment.

I got error message when deploy war file by the following command =>

pdeploy deploy -u amadmin -w amAdminPassword -g -p

amAdminPassword -v portletsamples.war

errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)

in pdeploy.debug , I got the following error message =>

Message:The user does not have permission to perform the operation.

netscape.ldap.LDAPException: error result (50); Insufficient 'write' privilege to the 'sunserviceschema'

Actually, this pdeploy command is work before, I don't know why it's

not working right now.

Do I need to setup something under window environment ?

How can we setup the 'write' privilege under window environment ?

Can you help me ?

Thanks!

ili1259cheng at 2007-7-4 12:17:41 > top of Java-index,Web & Directory Servers,Portal Servers...
# 18
How did you create ur own portal?
rt1980 at 2007-7-4 12:17:41 > top of Java-index,Web & Directory Servers,Portal Servers...
# 19

i m currently working on sun portal server 6 and facing some problem. here is the details of the problems i m facing.

i deployed a portlet using pdeploy command, it deployed successfully.then i created a channel using access manager administration console, then i added it to MyFrontPageTabPanelContainer. but when i logged in to the sampleportal as amadmin. i got ERROR:content is not available error.

i tried to add my channel in JSPTabContainer i got the same error. then i saw ur post in the forum where u mentioned that portlet has to be deployed in a new organisation. so i created a new organisation and its user then deployed the different portlet under that org. but no luck.

i checked the log files.in desktop.debug i got following error

Thread[Thread-114,5,main] ERROR: ProviderCaller.run(): exception thrown from <portletchannel>

com.sun.portal.desktop.context.ContextError: couldn't fetch content

at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:180)

please help me out.i am working on this for past 2 weeks and getting nothing..so please tell me if i have missed out any step or do i need to do any aditional configuration after sun java enterprise 2005Q1 using automatic configure option.

do i need to create a custom provider for each and every application i m deploying or it is OK if i am using available provider(like JSPTabContainer).

i read in sun portal server developers guide that all the JSPs that portal server is using must be included or defined in portlet.xml.so i did that too. but again hard luck.

then i changed my debugger log in desktopconfig.properties from error to message and restarted my web-container server, then i checked my desktop.debug file which was showing the following error and warning:

Thread[Thread-59,5,main] WARNING: WindowProvider.getContent():content from cres is null for channel:bhanu

Thread[Thread-59,5,main] ERROR: ProviderCaller.run(): exception thrown from bhanu

com.sun.portal.desktop.context.ContextError: couldn't fetch content

at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:180)

*where bhanu is my channel name. i dont know what this error means.if u have any idea about it please let me know.any help will be highly appriciated

please do relpy...this problem is killing me now.

thanks in advance

sumeet

sumeet_agr at 2007-7-4 12:17:41 > top of Java-index,Web & Directory Servers,Portal Servers...
# 20

i m answering to my question. might help someone.

here r the steps i took.

1)set debug level to ALL in PDconfig.properties file.

2)Put all the request dispatcher command in portlet class file inside try catch block.

3)Delete every thing from web.xml file except <web-app> , <display-name> </web-app>.

After these changes my portlets are running fine..

cheers......

sumeet_agr at 2007-7-4 12:17:41 > top of Java-index,Web & Directory Servers,Portal Servers...