cancel
Showing results for 
Search instead for 
Did you mean: 

Problem importing project and creating archive

Former Member
0 Kudos

Hi,

I am having troubles with the import process of a previous collegue's package.

He gave me the zip file with the contents of the project folder.

I extracted it on my PC and imported it in NWDS using "File \ Import \ Existing Project into Workspace". After adding the required libraries with "Project Properties \ Java Build Path \ Add External JARs", everything seemed fine: there were no errors listed in the Tasks window and the "Rebuild Project" command executed correctly.

My problem comes when I try the "Create Archive" command:

an "Internal Error" window pops up with the following values:

-


plugin name: web dynpro archive builder

plugin id: com.sap.ide.webdynpro.archivebuilder

class: com.sap.ide.webdynpro.archivebuilder.PARService

method: getArchiveNameFromDCProject(IDCProject)

Message: Could not get name for DC project

Exception: java.lang.Exception: Could not get name for DC project

-


I can click OK, but it appears several times.

After having confirmed this window five times, the archive creation process ends.

If I try the "Deploy" command it fails with the following message:

-


Result

=> deployment not executed : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp40710.ear

com.sap.sdm.util.sduread.IllFormattedSduFileException: The archive must be deployed with a 6.20 SDM, which has a SDM-SDA compatible version 1 or greater.

Deployment exception : Got problems during deployment

-


When I check the "Error Log" window there are a lot errors. Most of these show this message:

Error: No DC Proxy for file C:\Documents and Settings\Administrator\.dtc\1\DCs\sap.com\home\bci\pd\_comp\.dcdef found.

I also tried extracting and importing the project from different folders, but I get the same error.

I'm not interested in keeping this project in a DTR (we had other problems with that, so my collegue reverted to local development).

I'd just like to have it working as a Local Development project.

Can anyone help me in this? Is there some setting I could change or some other way to import this project?

Thank you in advance for any help.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

roberto_tagliento
Active Contributor
0 Kudos

Don´t know, maybe can help.

Try a different way to import if it is a DCs project:

from this link:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fcebe900-0801-0010-e1a2-f1c...

Your local development folder comprising all local DCs is

C:Documents and Settings.dtc. Unzip the zip file

"ProjectDCs.zip" into this folder, right?

1. Open the Development Configurations perspective ("Window"|"Open

Perspective"|..."Development Configurations").

2. Select the view "Local DCs" and open the node "Local Development"|"My

Components".

3. Refresh the perspective view "Local DCs" by pressing the button "Refresh

tree" within the title bar.

4. Select yuor project.

5. Open the context menu of the selected nodes and choose "Build …".

6. In the "Build Development Component" window mark all listed development

components, uncheck the check box "Only build if necessary" and choose

"OK".

7. Open the context menu of the selected nodes and choose "Create Project".

8. Open the Web Dynpro perspective ("Window"|"Open Perspective"|..."Web

Dynpro").

Former Member
0 Kudos

Hi Roberto,

thank you for your answer.

I tried following the steps in the tutorial, but the paths don't match.

The tutorial instructs you to go to this path:

C:\Documents and Settings\<user name>\.dtc\

and unzip the example project archive, which creates this folder structure:

.\LocalDevelopment\DCs\sap.com\cd355\comp\....<folders and files for some projects>

.\LocalDevelopment\SCs\sap.com\MyComponents\_comp\TopLevelDCs....

The zip my collegue provided has this folder structure:

.\EPD_BCIDEV_Dhomebcipdsap.com\

containing these subfolders:

.\bin

.\gen

.\gen_ddic

.\gen_wdp

.\META-INF

.\Model Folder

.\src

Can you tell me where I could place this folder structure so that NWDS can import it without the error messages I indicated above?

I was also thinking about another solution I read on another forum thread: creating a new project in NWDS and then copying and pasting the "src" folder of my collegue's project into the "src" folder of this new project.

Do you think this could work? Should I copy some other folders from the original project to the new one?

Thank you again for you answer.

Gianluca Barile

roberto_tagliento
Active Contributor
0 Kudos

Try this:

C:\Documents and Settings\<user name>\.dtc\LocalDevelopment\DCs\<YOUR_PROJECT>\_comp\

and inside it put:

.\bin

.\gen

.\gen_ddic

.\gen_wdp

.\META-INF

.\Model Folder

.\src

Strange if it is a DC project must have the structure <YOUR_PROJECT>\_comp\

Answers (2)

Answers (2)

Former Member
0 Kudos

Answered.

Former Member
0 Kudos

Hai,

I also got the same problem while deployong an Archive, I solved it ny Undeploying the Previous One using RemoteGUI (SDM) tool. try once by undeploy the previous archive with the same name

regards,

Naga Raju

Former Member
0 Kudos

Unfortunately, it's still not working:

I tried the path structure you suggest and also others, but I can't see it in "DC perspective \ Local Dcs \ Local Development" even if I click "Refresh tree".

Whenever I import the project from these different locations, I can rebuild it without any problems, but it always gives the same error I posted above during the "Create Archive" process.

Do you think that creating a new project and copying the src files could work?

Former Member
0 Kudos

Hi Naga,

my problem occurs during the "Create Archive" process.

It gives me this error "Could not get name for DC project" (details are in my first post).

If I try to deploy I get another error (also described above), but I think it is caused by the first error.

Former Member
0 Kudos

Hi

I have feced the same problem as of you. If you have solved it by now please post. I need it urgently.

Thanks

Ananda

Former Member
0 Kudos

Hi Ananda,

at this moment I have not found any solution so I have remake the overall project using cut and paste functionality for the controller, views and so on from the existing project.

Sorry.

Best Regards.

Gianluca Barile

Former Member
0 Kudos

Hi Gianlucla

I had the same issue and I solved it as followed.

<b>1</b> Delete the local DC as project in your NWDS (but do not delete the Content)

<b>2</b> Shut down NWDS

<b>3</b> copy or extract the DC to your DC folder like C:\ Documents and Settings\<i>Your Name</i>\.dtc\LocalDevelopment

Now your DC should be available in NWDS

<b>4</b> Open NWDS and navigate to the Development Configuration Perspective

<b>5</b> Navigate down your Local Developments in the Local DCs view -> MyComponents

<b>6</b> Right Click the DC and select create Project

<b>7</b> Select the Web Dynpro Perspective and Rebuild the Project in the Web Dynpro Explorer

This worked fine for me after importing a DC and running into the same Error. I am currnently running NWDS SP18

Please let me know if this could help you out and probably donate my first SDN points

cheers, Normen