cancel
Showing results for 
Search instead for 
Did you mean: 

component reuse

Former Member
0 Kudos

Hi Experts,

I have created dc ReuseDC with one public classs "Reuse_Methods" .I have defined all methods in this class as public. I have declared this class in public parts of the DC .

I have created DC B which declares ReuseDC as used DC. I have also set Webdynpro reference. I am trying to usemethods in the ReuseDC in my dc B. But the methods are not getting displayed but the package of Reuse_Methods is getting imported.

What can be the reason?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please close the thread if the problem is solved !!

Thanks & regards, Anilkumar

Former Member
0 Kudos

hi DhanaShree,

Congrates you have gotten the problem solved.

Sure Anil has made a lot effort for you ( i think u forget this).

Don't forget his reward point and close the thread.

Rgds,

Vilish

Answers (17)

Answers (17)

Former Member
0 Kudos

Hi Anilkumar,

Thanks for efforts u have taken to solve my problem.

In Properties -> Project References , that particular DC was not getting clicked .

Thanks a lot

Former Member
0 Kudos

Hi,

It is getting build and deployed .(There are no build or deployment errors).

But still it is giving same error .

Thanks in advance

Former Member
0 Kudos

Ok.My suggestion is

Go to Development Configuration Perspective and right click on the project and select "Build" and then select "Deploy"

Regards, Anilkumar

Former Member
0 Kudos

Hi,

In .ear file there is total garbage.

I have tried to open it with winzip also.

Thanks in advance

Former Member
0 Kudos

You can open .ear file in a Notepad !!!

Please use Winzip or winRar utility to extract the file.

If you extract the .ear you sould see <publicpartname>.jar file . If it is not there then there is some problem in your DC build.

Please right click on the project select DevelopmentComponents and do a DC build and then deploy .

Regards, Anilkumar

Former Member
0 Kudos

Hi,

I tried to open .ear file with notepad. But its not readable. How to check this file?

I have Dynamic_tableApp created? From where app needs to be activated?

Thanks in advance

Former Member
0 Kudos

Hi

Did you developed the DynamicTableApp (DC) in your machine if not you need to logon to the JDI goto the inactive components and deploy the applications to your machine it should work then

Theo

Former Member
0 Kudos

Hi,

I think there is some problem in your DC build.

Please check the .ear file of your project and check weather it contains your public part or not inside the .ear file.

Regards, Anilkumar

Former Member
0 Kudos

Hi,

Yes, But I am not able to find out whic reference is missing. I have already given reference of Used Dc.

Thanks in advance

Former Member
0 Kudos

Hi,

Thanks Anilkumar , Noe I can acess the methods in the used DC . But when I am running the application it is giving error as shown below

Details: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Deployable object sap.com/dynamic_table containing the requested application com.sap.examples.dynamictablecomp.DynamicTableApp could not be started on the server. There might be unresolved references. Please contact your system administrator.

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:98)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:35)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:250)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:319)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:297)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:696)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:221)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:146)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

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:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)

Former Member
0 Kudos

Seems you are missing some references

Former Member
0 Kudos

Please verify the signature once again.Check pageno 5 in the same document.

Regards, Anilkumar

Former Member
0 Kudos

Hi Anilkumar ,

I am using the same link .

TableUtility.createTable(wdContext.nodeFieldCatalog(),"TBCONTENTS",view,"RootUIElementContainer");

After TableUtility is gives only .class method .

Thanks in advance

Former Member
0 Kudos

Please check this .

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/cr... a utility dc.pdf

Re-create the pulic part.

Regards, Anilkumar

Former Member
0 Kudos

Hi ,

I have checked the Jar file in the respctive folder and it is there, but still I cannot use any method.

Thanks in advance

Former Member
0 Kudos

Please check the javaDC once again.

Please check weather your public part really contains the class or not.Verify the jar file in the following location of your java DC.

Gen/default/public/<PublicpartName>/lib/java/<Publicpart.jar>

Regards, Anilkumar

Former Member
0 Kudos

Hi ,

'ReuseDc' doesen't have any component.It consists of Java class only. Hence in DC 'B' there is no controller of 'ReuseDC' that I can add.

Thanks in advance

Former Member
0 Kudos

Hi,

You need to add the "ReuseDC" in the required Controllers of the componentController/ViewContoller of 'B' .

Make sure that you have added the complete package while creating the public parts .

Regards, Anilkumar

Message was edited by: Anilkumar Vippagunta