Skip to Content
author's profile photo Former Member
Former Member

CE: Using EJB-Model of a WebDynpro-DC in another WebDynpro-DC

Hi experts,

In CE I have two WebDynpro-DCs. The first one defines an EJB-Model and publishes this in a public part. The second DC should use the model. In order to do so it uses the public part of the first DC. The public parts contains the following entities:

- the model iteself

- the component

- the folder containing the files ".wdmodelclass" and ".wdmodel"

- the Java-package containing the model-classes

Unfortunately I get several errors when building the second DC. The file ".log" delivers this error message:

Caused by: java.lang.RuntimeException: failed to invoke naming service method

at com.sap.ide.webdynpro.generation.runtime.ComponentTemplateHelper$GenericNamingService.getJavaNaming(ComponentTemplateHelper.java:218)

at com.sap.ide.webdynpro.generation.runtime.ComponentTemplateHelper.getElementClassName(ComponentTemplateHelper.java:787)

at com.sap.ide.webdynpro.generation.runtime._Context.vm_generateNodeInfo(_Context.java:189)

at com.sap.ide.webdynpro.generation.runtime._Context.vm_generateNodeInfos(_Context.java:288)

at com.sap.ide.webdynpro.generation.runtime._Context.v_main(_Context.java:90)

at com.sap.ide.webdynpro.generation.runtime.InternalController.v_main(InternalController.java:227)

at com.sap.ide.webdynpro.generation.runtime.InternalController.doGenerate(InternalController.java:72)

at com.sap.ide.generationfwk.velocity.runtime.CompiledTemplateBase.generate0(CompiledTemplateBase.java:232)

at com.sap.ide.generationfwk.velocity.runtime.CompiledTemplateBase.generate(CompiledTemplateBase.java:164)

... 44 more

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sap.ide.webdynpro.generation.runtime.ComponentTemplateHelper$GenericNamingService.getJavaNaming(ComponentTemplateHelper.java:214)

... 52 more

Caused by: java.lang.RuntimeException: Could not get ModelType com.sap.tc.cm.ejb.modeltype.EJBModel for model com.karmann.prod.ssrv.r57.wd.model.model.R57SchraubModel(hint: check whether content archive is in classpath)

at com.sap.ide.cmi.generation.service.GenerationService.getModelType(GenerationService.java:98)

at com.sap.ide.cmi.generation.naming.GenericNamingService.getModelClassNaming(GenericNamingService.java:56)

... 57 more

!ENTRY com.tssap.util.ui 4 0 2008-01-29 12:22:09.099

!MESSAGE Jan 29, 2008 12:22:09... com.sap.ide.cmi.generation.service.GenerationService [Thread[Worker-62,5,main]] Error: Could not get ModelType com.sap.tc.cm.ejb.modeltype.EJBModel for model com.karmann.prod.ssrv.r57.wd.model.model.R57SchraubModel(hint: check whether content archive is in classpath)

Can anybody give me some hint please?

Regards,

Christoph

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 12:36 PM

    Solution is:

    Add following dependencies in second DC, which uses the model defined in first DC (contained in FRAMEWORK ):

    - tc/cm/ejb/api

    - tc/ejblib/api

    Regards,

    Christoph

    Edited by: Christoph Schäfer on Jan 29, 2008 1:37 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.