cancel
Showing results for 
Search instead for 
Did you mean: 

issue in NWDS while deploying EAR

Former Member
0 Kudos

Hi Experts,

I am deploying a simple hook EAR to NW using NWDS.

my scenario is as follows, I have a ME server , done NWDI and SLD configuration in NW and I have configured NWDS on my local machine, imported SLD. I have written simple hook and when I try to deploy its giving deployment failed message.

Is there anyting I am missing in this scenario?

I have followed a workaround in first item from below link.

NWDS Troubleshooting - Java Development - SCN Wiki

Please refer attached file for error.

Thanks, Eswar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

You should check that Deployment perspective in NWDS shows Local/DMI as server. If it is Local/null than you provided wrong user name and password to authenticate ADM user.

Regards,

Oksana

Former Member
0 Kudos

Hi Oksana,

Thanks for reply.

when I open deployment perspective in NWDS I am getting below exception.

java.lang.NullPointerException

  at com.sap.deployment.ui.nodes.SystemRootNode.addSystem(SystemRootNode.java:67)

  at com.sap.deployment.ui.nodes.SystemRootNode.refresh(SystemRootNode.java:53)

  at com.sap.deployment.ui.view.ExplorerView.refreshTree(ExplorerView.java:333)

  at com.sap.deployment.ui.view.ExplorerView.createPartControl(ExplorerView.java:199)

  at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)

  at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)

  at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

  at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)

  at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:529)

  at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)

  at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)

  at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)

  at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)

  at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)

  at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:668)

  at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)

  at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)

  at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)

  at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:982)

  at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3608)

  at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:1037)

  at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:1021)

  at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3709)

  at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

  at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3707)

  at org.eclipse.ui.internal.PerspectiveBarContributionItem.select(PerspectiveBarContributionItem.java:124)

  at org.eclipse.ui.internal.PerspectiveBarContributionItem$1.widgetSelected(PerspectiveBarContributionItem.java:93)

  at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)

  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)

  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)

  at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

  at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

  at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)

  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

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

  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

  at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

When you go to Window --> Preferences --> SAP AS Java can you see Netweaver System Instance configured as Default ?

Regards,

Oksana

Former Member
0 Kudos

Hi Oksana,

yes, I can see server.

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

Can you please try to delete security NWDS settings :

1. Close NWDS

2. Delete .eclipse folder at C:User/<your user>

3. Open NWDS again and it should ask you to provide OS ADM user , you should use DMIadm and password. It can ask to re-type the same settings few times.

Regards,

Oksana

Former Member
0 Kudos

Hi Oksana,

I have done the same. all my NWDS settings have gone and now I need to do from beggining.

is it correct?

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar,

Nope , I think you deleted wrong folder.

.eclipse folder in C:User/<your user> contains only single folder org.eclipse.equinox.security and it is not needed to make settings again in NWDS after you deleted just security settings folder.

Regards,

Oksana

Former Member
0 Kudos

Hi Oksana,

when I reopened the NWDS, it asked me to change workspace and i have created new workspace and opened NWDS so all my NWDS config gone.

Now I corrected it and still I am facing same issue.

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

Sorry , then I don't know how to help you! it is definitely something with NWDS and not related to SAP ME.

Regards,

Oksana

0 Kudos

Hi, Eswar!

Please try submitting a ticket to BC-DWB-JAV-COR component.

Regards,

Sergiy

Former Member
0 Kudos

Hi Okasan/ Sergiy,

Thanks for the reply.

Now I am able to deploy ear without errors and in deployement perspective its green.

I have logged into ME application and did reload intial data. However I have not seen activity hook Z_OPER_HK_XX in my system.

please suggest.

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

Can be many reasons :

1. What SAPBUILDT.SCA version you imported to NWDI ?

2. Did you included all required packages and service-config.xml file to ASSEMBLY PP ?

3. Did you check that jars packed inside ear deployed to NW folder and that hook class exist inside jar ?

Regards,

Oksana

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

Also please share what you did to fix problem with Deployment perspective.

Thanks,

Oksana

Former Member
0 Kudos

Hi Oksana,

sorry for late reply. I have followed same steps of yours.

1. Close NWDS

2. Delete .eclipse folder at C:User/<your user>

3. Open NWDS again and it should ask you to provide OS ADM user , you should use DMIadm and password. It can ask to re-type the same settings few times.

former_member185234
Active Participant
0 Kudos

Hi Eswar,

Then please mark this question as Answered, so other developers will know correct solution.

Thanks,

Oksana

Former Member
0 Kudos

Hi Oksana,

Though I could deploy without errors. I did not get activity hook created in my ME system.

Thanks, Eswar

former_member185234
Active Participant
0 Kudos

Hi Eswar ,

Successfully SCA deployment doesn't mean that hook will appear.

As I wrote before can be many reasons :

1. What SAPBUILDT.SCA version you imported to NWDI ?

2. Did you included all required packages and service-config.xml file to ASSEMBLY PP ?

3. Did you check that jars packed inside ear deployed to NW folder and that hook class exist inside jar ?

Regards,

Oksana