on 08-01-2007 9:19 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.