cancel
Showing results for 
Search instead for 
Did you mean: 

Problems after import a project

Former Member
0 Kudos

Hi experts,

I copied a project file from workspace ,then import to another PC with NWDS.

I can build the project, and no errors. But there is a error "Could not get name for DC project" when I deploy the project.

And the deploy is failed .

Please give some advice to cover the problem.

BR,

Jianguo Chen

Accepted Solutions (0)

Answers (3)

Answers (3)

arun_srinivasan
Contributor
0 Kudos

HI

1) Unzip the DC And go the dcdef file in component name\_comp\.dcdef

In the .dcdef file You can see the component name and component type in the corresponding tab

For EX

<?xml version="1.0" encoding="UTF-8"?>

<development-component

xmlns="http://xml.sap.com/2002/11/DevelopmentComponent"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://xml.sap.com/2002/11/DevelopmentComponent dcdef.xsd"

version="1.0.2"

xmlns:IDX="urn:sap.com:DevelopmentComponent:1.0">

<name><b>component1</b></name>

<vendor>sap.com</vendor>

<caption>Result_component</caption>

<component-type>

<vendor>sap.com</vendor>

<type><b>Web Dynpro</b></type>

</component-type>

Create a component with same name and type

Go to the Root folder where the DC is stored

Root folder is rootfolder \.dtc\LocalDevelopment\DCs\sap.com\componentname\_comp

In NWDS Go towindows> perference >Java Development Infrastructure>Development Configuration pool , there you can see the root folder path

2) Open the comp folder of the newly created dc in the rootfolder \.dtc\LocalDevelopment\DCs\sap.com\componentname\comp and replace it by _comp folder of the extracted file

3) Rebulid the DC and Deploy

hope this helps,

Regards,

Arun

former_member751941
Active Contributor
0 Kudos

Hi Louis,

Problem is due not importing the project properly.

Try the steps.

1> First unzip your DC project in to..\..\..\.dtc\LocalDevelopment\DCs\<packagename>\

2> After unzipping you will see project name is coming twice

Like ..\..\.dtc\LocalDevelopment\DCs\<package name>\<project name>\<project name>\_comp\....

3> Cut the <project name> that is coming as a subfolder and pastes it under <package name> so that 1st project name is replaced by subfolder project name.

Like...\..\.dtc\LocalDevelopment\DCs\<package name>\<project name>\_comp\....

Then import

File=>import=>Multiple Existing Project in to Workspace=>Browse the project name from ..\..\DCs\packagename\project name and check the options.

After importing close the project 1st then close NWDS. Then open NWDS and Project your DC Meta Data part will come then Build and deploy the project.

Regards,

Mithu

former_member186016
Active Contributor
0 Kudos

You shouldn't import the dc project using eclipse project import.

Create a new dc project and copy the src folder from there to new dc.

Other way is to:

Copy the dc in the workspace in

<workspace>.jdi/LocalDevelopment/DCs ... in relevant folder. Then go to the DTR perspective and refresh the dc's node. The dc should be visible here. Now right click on the project and create project.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi Ashwani Kr Sharma ,

I created a new DC project and copy the src folder from there to new dc.

Then I build the project , and I got the error as follow :

Web Dynpro Generation: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: did not find target for

com.sap.ide.metamodel.webdynpro.component.Component(com.keyuanmed.portal.Salesflow1), C:/Documents and

Settings/chenjianguo/.dtc/LocalDevelopment/DCs/portal.keyuanmed.com/salesflow/_comp/gen_wdp/configuration/Applications/com.ke

yuanmed.portal.salesflow1.Salesflow1/Salesflow1.xml

Could you please give any advice ?

Thanks in advance !

Jianguo Chen

former_member186016
Active Contributor
0 Kudos

Before executing the build can you check in the Problems/Erros view that you dont have any problems.

It seems that there is some usage relation in component which is not resolved.

Can you check in Problems/Erros View that there is no errors.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi Ashwani Kr Sharma,

I created a new dc project and copy the src folder from there to new dc, then reload and refresh the dc project.

I rebuilded and deployed the project with no errors.

But when I run the project , it occured errors.

Detailed Exception Chain :

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.keyuanmed.portal.Salesflow1. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)

......

Caused by: java.lang.ClassNotFoundException: com.keyuanmed.portal.wdp.InternalSalesflow1

Could please give me any advice ? Thanks in advance!

BR,

Jianguo Chen

former_member186016
Active Contributor
0 Kudos

Hi,

The dc which contains the component Salesflow1 is not deployed.

Is this compoent Salesflow1 in your present dc or some other dc. If it is from some other dc, you need to deploy that dc as well.

Regards,

Ashwani Kr Sharma