cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Dynpage error.

Former Member
0 Kudos
43

Dear SDN's

i have been posted this query many times but i didn't get solved yet .

my problem is when i am deploying the sample portal application(dynpage) then i am getting the error as <b>"Build of the project failed".</b>actually i write sample code in the portal dev for dynpage for displaying the "Hello World" message on screen.

when i am deploying this application then i am getting error as "Build of the project failed".

it seems it is related to classpath.

<b>

ie. the project was not build due to classpath errors.</b>

<u>the main error message it is showing as</u>

"<b>This compilation unit indirectly references the missing type com.sapportals.htmlb.page.DynPage(typically some required class file is referencing a type outside the class path".</b>

can u any one help me what to change and where to change.if u required then i will send screenshots also to your mail id.

Thanks

Regards

Sunil

9884783549

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There are 2 jar files which your basis personnel can give you.

com.sap.portal.htmlb_api.jar

htmlb.jar

Copy them on ur machine

Right click on your project folder -> Properties -> Java Build Path -> Add external Jars

Add these 2 files.

Let me know if this solves the problem.

Message was edited by:

Prem Mascarenhas

They are at usr/sap/sid/instance/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.htmlb/lib/com.sap.portal.htmlb_api.jar

and

usr/sap/sid/instance/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.htmlb/lib/htmlb.jar

Kindly consider rewarding points of helpful

Former Member
0 Kudos

Hi Prem

Thanks for your reply.

where can i download these jar files which you are mentioned?

let me know the path where i can download then i will try the same as u told.

Regards

Sunil

Former Member
0 Kudos

Hi Sunil,

In my previous message I have mentioned them as an update to the message, I guess its there. Yes, these files are on the server. You need to get your basis person to give it to you.

Hope it helps.!

Former Member
0 Kudos

Hi Prem

as u told i got those two jar files and also added to javabuild path in the netwevaer studio.after that also i deployed still i have same problem.

please let me know ur mail id then i can send the screenshots of my problem else let me know another solution how to solve on this.

Regards

Sunil

9884783549

Former Member
0 Kudos

1. Tell me the latest error you get.

2. Hope you are re building the project before deploying.

3. My mail id is in my business card.

The only solution is to include all entries in the classpath.

Former Member
0 Kudos

Hi Prem & steelman

after adding those two files succesfully in netweaver studio then the error same.

"The project was not built due to classpath errors(imcomplete or involved cycle"<b></b>

the same error when i deployed the application as " Build of the project is failed"

Prem, check ur mail i sent screenshot also to your mail id.

Regards

Sunil

Former Member
0 Kudos

which version NWDS are you using?

7.something?

and one more thing....add these external jar files.....

then rebuild the project......

package com.sap.xxx.xxx;
 
import com.sapportals.portal.prt.component.*;

public class portal_component extends AbstractPortalComponent
{
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    {
       response.write("Hello");
    }
}

your java file would look like this........

I am mentioning abstract portal component.....

goto the project creation.....file->new etc.....then under portal components...select abstract portal component.......ok.......you got it>.......because your requiement is only to show hello world.....isn't it....don't worry about the HTMLB controls as of now......ok.

Cheers.....

Former Member
0 Kudos

Hi Prem

i sent screenshotos of my problem to ur mail id which was in ur business card.

please check ur mail and get back to me with solution.

Regards

Sunil

Former Member
0 Kudos

ok. not all the errors shown in the task area are related to your immediate project.

So first step:

Close all other projects. Except the one with your sampleapp.java

Second step:

Please switch to the resource perspective for my better analysis. You are currently in the ep perspective.

Rebuild and then send across the latest screen shot.

Former Member
0 Kudos

Hi Prem

i sent the updated screenshot to your mail id accorinding to mentioned in the sdn

Regards

Sunil

Answers (3)

Answers (3)

Former Member
0 Kudos

Sunil

at this point try to deploy the code.

the UI you can do later.

you may try the code I had given above.

it will work.

the form and group we can try later.

and in the code, since it i s Grid layout, I think you have to mention the (row, colum,textview);

the ideal format is

gridlayout.addComponent(row, clo,componentName);

and one more think, try to thank the SDN way, it will motivate replies..

Cheers......

Former Member
0 Kudos

Hi Prem & steelman

finally i got solved the problem.

the actual problem is there was no htmlb.jar file in the following location.just i added that and deployed it was working fine.

Thanks a lot to both of you

D:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java

Regards

Sunil

check ur points

Former Member
0 Kudos

Thanks Sunil......

see the path you mentioned and I gave....

\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java

since I had the NWDS 7.......the extension 2.0.0 is there....that was teh difference.

any how you solved.....that is it.....

cheers..........

Former Member
0 Kudos

and one more thing.....

hope you have acces to a portal.....

like

http://<host name>:port/irj/portal

you are able to login with some user id and pswd.......ok...

use the same while deploying PAR files.

....

and in the one above where I mentioned xxx......use your own package name...

ok

No worries......let us do it....

cheers........

Former Member
0 Kudos

Hey Sunil......

find the two JAR files you required under the following path.......

<b>1)com.sapportals.portal.htmlb </b>

<PATH>eclipse\plugins\com.sap.ep.applicationDevelopment_7.00\com.sap.portal.htmlb_api.jar and

<PATH>\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java\htmlb.jar

<b>

2)htmlb.jar</b>

\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java

that is it man.

done

problem solved

all the best

cheers

add these as external jar files

click OK

rebuild the project......

Message was edited by:

Steelman