SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP Portal

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make changes to the Pagetoolbar.par to ge customized Links Mirna SAP Portal 2 10-29-2010 12:13 AM
Add image and css from a different PAR File Pepa SAP Portal 2 10-22-2010 08:01 PM
Issue with PAR file deployment SAPMM SAP Portal 2 10-17-2010 03:00 PM
Need to call a method from par file A to par file B Ramma SAP Portal 0 10-05-2010 02:37 PM
Par file for HTML page Ramma SAP Portal 2 09-22-2010 05:51 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2010, 11:04 PM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 287
Default Access methods of one par file in another par file

Hi All,

I want to access methods a PAR file in another PAR file.

-> I create a JSPdynpage application withname Aapp with "A_Dynpage and A_Jsppage". This is working fine.

-> Created another Dynpage Bapp... opened Bapp application's portalapp.xml in sharingreference added Aapp.
right click on Bapp -> properites -> Java Buildpath -> Projects and selected Aapp application form the list.

-> In Bapp application's java file... I am trying to access Aapp application's methods. Aapp application, Aapp Dynpage are autofilling (ctrl+space) in Bapp java/jsp file. but when I deployed and executed Bapp application its giving me
java.lang.NoClassDefFoundError: Aapp
but while writing the code, Aapp methods are coming by auto fill.

Do I need to do anything more other than changing portalapp.xml and slecting 1st application in projects tab of java build path???

Thanks,
Ramma
Reply With Quote
Sponsors
  #2  
Old 10-31-2010, 11:05 PM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: Access methods of one par file in another par file

Hi Ramma,

Check the following\

1) see whetehr any jars are missing (i.e you would have used some jars in appa but not add in appb).
2) Pleast go to the error trace file and paste the exception that you are getting. The error log file will say for what class this error is thrown.

Regards,
Golfi
Reply With Quote
  #3  
Old 10-31-2010, 11:08 PM
Micro Micro is offline
Senior Member
 
Join Date: May 2010
Location: Boston
Posts: 306
Default Re: Access methods of one par file in another par file

Hi Ramma,

In order to be able to access the methods during runtime, the class must be located in the src.api area of the project. If located in src.core, another application cannot call the method even with a Sharing Reference.

Regards,
Micro
Reply With Quote
  #4  
Old 10-31-2010, 11:13 PM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 287
Default Re: Access methods of one par file in another par file

Hi,

Golfi: I am not using any jar files in any of the components except the standard and htmlb jars.

Micro : I did as you said, I created another JSPDynpage where class is in src.api folder. but still I am getting the exception.
both applications working fine individually, but when I access Aapp from Bapp then Bapp is giving below exception. exception log

Code:
#1.5#001F29E22F9800780001EF6700001B08000493C5F88612E4#1288378394203#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#bondlap#17766##n/a##d64a664fe37c11df9d6f001f29e22f98#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Java###*01:53_29/10/10_0336_9409950* [EXCEPTION] {0}#1#java.lang.NoClassDefFoundError: com/sapportals/portal/htmlb/page/JSPDynPage------------------------- Loader Info -------------------------ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@46c7c27e]Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@64e25340]References:not registered!Resources:E:\\usr\\sap\\DEP\\JC00\\j2ee\\cluster\\server0\\apps\\sap.com\\irj\\servlet_jsp\\irj\\root\\WEB-INF\\portal\\portalapps\\Bapp\\private\\lib\\Bapp.jar---------------------------------------------------------------The error occurred while trying to load "Aapp$AappDynPage".at com.sap.engine.fr ame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:303)at BappDynPage$BappDynPageDynPage.doProcessBeforeOutput(BappDynPage.java:37)at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:127)at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)at com.sapportals.portal.prt.component.AbstractPortalComponent.doPreview(AbstractPortalComponent.java:240)at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:168)at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:235)at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:541)at java.security.AccessController.doPrivileged(Native Method)at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)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:401)at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)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:104)at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Thanks and regards,
Ramma
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno