cancel
Showing results for 
Search instead for 
Did you mean: 

Problems deploying ear application

Former Member
0 Kudos

Hi experts,

I am facing a problem when I am deploying my product in the NW server.

This product contains a EJB component whose classes are published as WS.

I have to deploy this application in 2 different servers, in one of them it works fine but in the other one I get an error.

I created a much simpler project in order to find the cause of the error. This project contains a single Session Bean with only one simple method. It deployed successfully but when I tried to publish this class as a WS I got the same error as before.

Below is the error log and if you wanted I could send the simpler product.

Please help me to fix this issue.

Thanks and Regards.

Lucas Arnaud


  S U M M A R Y

~~~~~~~~~~~~~~~~~~~

Successfully deployed:      4

Deployed with warnings:      1

Failed deployments:      0

~~~~~~~~~~~~~~~~~~~

1. File:C:\workspace.jdi\LocalDevelopment\DEPLOYTEST_SC\example.org\deploytest\_comp\gen\default\deploy\example.org~deploytest.sda

  Name:deploytest

  Vendor:example.org

  Location:localDevelopment

  Version:20140102154751

  Deploy status:Success

  Version:SAME

2. File:C:\workspace.jdi\LocalDevelopment\DEPLOYTEST_SC\example.org\deploytest_sc\_comp\gen\default\deploy\example.org~deploytest_sc.sda

  Name:deploytest_sc

  Vendor:example.org

  Location:localDevelopment

  Version:20140102154740

  Deploy status:Success

  Version:SAME

3. File:C:\workspace.jdi\LocalDevelopment\DPL_TST\example.org\deploytest\infra\sgc\_comp\gen\default\deploy\example.org~deploytest~infra~sgc.ear

  Name:deploytest~infra~sgc

  Vendor:example.org

  Location:localDevelopment

  Version:20140102154742

  Deploy status:Success

  Version:SAME

4. File:C:\workspace.jdi\LocalDevelopment\DPL_TST\example.org\dpl_tst\_comp\gen\default\deploy\example.org~dpl_tst.sda

  Name:dpl_tst

  Vendor:example.org

  Location:localDevelopment

  Version:20140102154745

  Deploy status:Success

  Version:SAME

5. File:C:\workspace.jdi\LocalDevelopment\DPL_TST\example.org\deploytest\bl\ear\_comp\gen\default\deploy\example.org~deploytest~bl~ear.ear

  Name:deploytest~bl~ear

  Vendor:example.org

  Location:localDevelopment

  Version:20140102155101

  Deploy status:Warning

  Version:HIGHER

  Description:

  1. Exception has been returned while the [example.org/deploytest~bl~ear] was starting. Warning/Exception :[

][ASJ.dpl_ds.006153 Error occurred while starting application [example.org/deploytest~bl~ear]: It is not started successfully on server nodes [7059250]. In order to bring the server in consistent state stop operation will be performed.

Error occurred on server 7059250 during startApp of example.org/deploytest~bl~ear : com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occurred during web services deployment. Unable to generate serialization framework for web service DeployTestService, application example.org/deploytest~bl~ear.

  at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:386)

  at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:224)

  at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.execute(WSInitialStartProcess.java:145)

  at com.sap.engine.services.webservices.server.deploy.WSBaseAbstractDProcess.makeProcess(WSBaseAbstractDProcess.java:330)

  at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.makeStartInitially(WebServicesDeployManager.java:744)

  at com.sap.engine.services.deploy.server.utils.container.ContainerWrapper.makeStartInitially(ContainerWrapper.java:1045)

  at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.makeStartInitially(StartInitiallyTransaction.java:220)

  at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:178)

  at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:430)

  at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)

  at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeNestedTransaction(ApplicationTransaction.java:749)

  at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:606)

  at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:340)

  at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:323)

  at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:430)

  at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)

  at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesSequentially(ParallelAdapter.java:324)

  at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhases(StartTransaction.java:624)

  at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1836)

  at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2489)

  at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationOnInstanceWait(DeployServiceImpl.java:2741)

  at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationOnInstanceAndWaitAuth(DeployServiceImpl.java:2891)

  at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2441)

  at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:109)

  at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:80)

  at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:48)

  at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)

  at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:108)

  at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:72)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:1135)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:1024)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:819)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deployInternal(DeployerImpl.java:454)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:228)

  at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:910)

  at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:462)

  at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)

  at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72)

  at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43)

  at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:999)

  at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:59)

  at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

  at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Caused by: org.w3c.dom.DOMException: Importing nodes from a different implementation is not allowed

  at com.sap.engine.lib.xml.dom.DocumentImpl.importNode(DocumentImpl.java:282)

  at com.sap.engine.services.webservices.espbase.wsdl.wsdl11.WSDL11Serializer.serializeInterface(WSDL11Serializer.java:385)

  at com.sap.engine.services.webservices.espbase.wsdl.wsdl11.WSDL11Serializer.serialize(WSDL11Serializer.java:129)

  at com.sap.engine.services.webservices.espbase.wsdl.WSDLSerializer.serialize(WSDLSerializer.java:51)

  at com.sap.engine.services.webservices.espbase.wsdl.WSDLSerializer.serialize(WSDLSerializer.java:40)

  at com.sap.engine.services.webservices.espbase.wsdl.WSDLSerializer.saveWsdl(WSDLSerializer.java:80)

  at com.sap.engine.services.webservices.server.deploy.ws.WSInitialStartProcess.generateJAXWSFramework(WSInitialStartProcess.java:364)

  ... 44 more

]

Result

Status:Warning

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lucas,

I recommend you to restart the server.

Then, try to deploy the product again.

Regards,

Thales Pires

Former Member
0 Kudos

Hi Thales,

I tried your suggestion and it worked.

Thanks for your  help.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Lucas,

The method signature in interface is wrong -


package com.example;

import javax.ejb.Local;

import javax.jws.WebService;

import javax.jws.WebMethod;

@WebService(name = "DeployTestLocal", targetNamespace = "http://example.com/")

@Local

public interface DeployTestLocal {

  @WebMethod(operationName = "test") // This is not applicable here and should be in class file which implements this interface

  public String test();

}

The above interface declaration has to be as per below -


package com.example;

import javax.ejb.Local;

import javax.jws.WebService;

@WebService(name = "DeployTestLocal", targetNamespace = "http://example.com/")

@Local

public interface DeployTestLocal {

  public String test();

}

and the class file which is -


package com.example;

import javax.ejb.Stateless;

import javax.jws.WebService;

/**

* Session Bean implementation class DeployTest

*/

@WebService(endpointInterface = "com.example.DeployTestLocal", portName = "DeployTestPort", serviceName = "DeployTestService", targetNamespace = "http://example.com/") // please change this line as per "should be" section

@Stateless

public class DeployTest implements DeployTestLocal {

    /**

     * Default constructor.

     */

    public DeployTest() {

    }

  @Override

  public String test() {

  return "Testing deploy";

  }

}

Should be -


package com.example;

import javax.ejb.Stateless;

import javax.jws.WebService;

import javax.jws.WebMethod;

/**

* Session Bean implementation class DeployTest

*/

@WebService(name = "DeployTest", portName = "DeployTestPort", serviceName = "DeployTestService", targetNamespace = "http://example.com/")

@Stateless

public class DeployTest implements DeployTestLocal {

    /**

     * Default constructor.

     */

    public DeployTest() {

    }

  @WebMethod(operationName = "test", exclude = false)

  @Override

  public String test() {

  return "Testing deploy";

  }

}

Please deploy after correction and lets know if it works or you face any issue regarding same.

Regards

Jeetendra

Former Member
0 Kudos

> Below is the error log and if you wanted I could send the simpler product.

Please upload it.

Former Member
0 Kudos

Hi Roman,

You can download the product through this link http://untach.it/eQ44B2.

Regards,

Lucas

Former Member
0 Kudos

Hi Lucas,

Can you please check the method signature of EJB which are exposed as web method contains any interface or objects which can not be serialized? If yes then please remove those parameters from method signature and try to alter, if not possible then the objects used in the method signature please make them serializable.

Please post the method signature for detailed investigation.

Regards

Jeetendra

Former Member
0 Kudos

Hi jeetedndra,

This is the method I created to test:


public String test()  {

     return "Testing deploy";

}

Regards,

Lucas

junwu
Active Contributor
0 Kudos

are the two servers the same version?

Former Member
0 Kudos

Yes, they are both version 7.31.3710.224995.20121005081654.

Former Member
0 Kudos

Please provide full list of components and versions from both servers.