on 01-05-2006 5:33 AM
I'm new to the development of EP and WAS pages. I found some easy examples. But as soon as I try to compile them I get compiler errors.
<u>the example starts like this</u>...
import com.sap.htmlb.*;
import com.sap.htmlb.enum.*;
import com.sap.htmlb.page.PageException;
import com.sap.portal.htmlb.page.JSPDynPage;
public class DynPageOne extends JSPDynPage {
....
I downloaded the netwaever libraries (netweaverlibraries.zip) from the EP itself. But the packages contained in i.e. htmlb.jar are all com.<b>sapportals</b> and not com.<b>sap</b>.
Any ideas? Am I using outdated jars or outdated examples?
Thanks for any help.
Martin
HI,
For HTMLB use
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.htmlb.table.DefaultTableViewModel;
import com.sapportals.htmlb.table.TableView;
import com.sapportals.portal.htmlb.page.JSPDynPage;
DID you add the
ECLIPSE_HOME/plugins/com.sap.ep.applicationDevelopment/com.sap.portal.htmlb_api.jar
in u r build path
Message was edited by: Kirupanand Venkatapathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
All the jars are available in the folder '<drive>:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps'
As you find build errors search for the respective classes using 'Jar Finder' /people/kirupanand.venkatapathi2/blog/2006/01/02/using-jar-class-finder and add them to your build path.
Regards,
S.Divakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Salla, thanks for the immediate reply.
I got the Java classes compiled with the jars I downloaded, but I had to change the reference to com.sapportals...
As far as the directory that you mentioned I only have subdirectoried with html pages, images and other files, but no standard jars that would contain i.e. the htmlb package.
With the changed reference I get the following entires in the log file that I cannot explain:
#1.5#0014223190E60DA10000000300000D64000409956F4F8E2C#1136437329093#com.sap.portal.ivs.semantic.iViewService#sap.com/irj#com.sap.portal.ivs.semantic.iViewService#admin#8244##MainMartin_J2E_6740250#admin#b8a4eb707da611da8afd0014223190e6#Thread[Thread-131,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Server#Java###Failed to get application IPropertyContentProvider: #1#BasicEPProject.default# #1.5#0014223190E60DA10000000500000D64000409956F4F9200#1136437329109#com.sap.portal.ivs.semantic.iViewService#sap.com/irj#com.sap.portal.ivs.semantic.iViewService#admin#8244##MainMartin_J2E_6740250#admin#b8a4eb707da611da8afd0014223190e6#Thread[Thread-131,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Server#Java###Failed to get application IPropertyContentProvider: #1#pcd:com.sap.portal.system/applications/BasicEPProject/components/default#
#1.5#0014223190E600660000000E00000D640004099572A9C6C1#1136437385343#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#admin#8244##MainMartin_J2E_6740250#admin#b8a4eb707da611da8afd0014223190e6#SAPEngine_Application_Thread[impl:3]_26##0#0#Error#1#/System/Server#Java###Exception ID:06:03_05/01/06_0002_6740250
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : BasicExample.default
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: Invalid Class cast : com.stenzig.basicexample.DynPageOne for portal component BasicExample.default .
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:164)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
... 26 more
Caused by: java.lang.ClassCastException
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
... 29 more
#
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.