on 07-20-2007 9:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.....
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.
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......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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..........
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........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.