on 02-03-2016 6:11 PM
Hi Experts,
I am following the the document in SDN.SAP.COM to create and deploy the java module. I have followed the each step which was provided in document. But when deploying the module i am getting the error. This is the total URL which i have followed .
I am getting the below warning:
1. File:D:\SAP NWDS 7.31\nwds-extsoa-7.3-EHP1-SP13-PAT0001-win32\eclipse\workspace\UserModule_EAR\UserModule_EAR.ear
Name:UserModule_EAR
Vendor:sap.com
Location:localhost
Version:2016.02.03.21.53.27
Deploy status:Warning
Version:NEW
Description:
1. Warning occurred on server 1460950 during deploy of sap.com/UserModule_EAR : EJB Model Builder: ASJ.ejb.004096 The session bean class "com.sap.adaptermodule.GetHostNameBean" cannot be found in the search path. (Location:META-INF/ejb-jar.xml)[message resource bundle missing], file: UserModule_EJB.jar#UserModule_EJB.jar, severity: warning
Warning occurred on server 1460950 during deploy of sap.com/UserModule_EAR : EJB Model Builder: Bean class com.sap.adaptermodule.GetHostNameBean is not available in the ejb module archive file.[message resource bundle missing], file: UserModule_EJB.jar#UserModule_EJB.jar, severity: warning
CSN component of deployment item is not available
2. Exception has been returned while the [sap.com/UserModule_EAR] was starting. Warning/Exception :[
][ASJ.dpl_ds.006153 Error occurred while starting application [sap.com/UserModule_EAR]: It is not started successfully on server nodes [1460950]. In order to bring the server in consistent state stop operation will be performed.
Error occurred on server 1460950 during startApp of sap.com/UserModule_EAR : com.sap.engine.services.deploy.container.DeploymentException: Cannot load bean class com.sap.adaptermodule.GetHostNameBean for component sap.com/UserModule_EAR*xml|UserModule_EJB.jar*xml|GetHostName
at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:918)
at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl.prepareStart(ContainerInterfaceImpl.java:438)
at com.sap.engine.services.deploy.server.utils.container.ContainerWrapper.prepareStart(ContainerWrapper.java:508)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:345)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:310)
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:311)
at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhases(StartTransaction.java:598)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1828)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2480)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationOnInstanceWait(DeployServiceImpl.java:2732)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationOnInstanceAndWaitAuth(DeployServiceImpl.java:2882)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2432)
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:1138)
at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:1027)
at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:815)
at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deployInternal(DeployerImpl.java:450)
at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:224)
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:983)
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: com.sap.engine.services.ejb3.container.ActionException: Cannot load bean class com.sap.adaptermodule.GetHostNameBean for component sap.com/UserModule_EAR*xml|UserModule_EJB.jar*xml|GetHostName
at com.sap.engine.services.ejb3.runtime.impl.Actions_BeanClassesInitialization.loadApplicationClass(Actions_BeanClassesInitialization.java:56)
at com.sap.engine.services.ejb3.runtime.impl.Actions_BeanClassesInitialization.loadApplicationClasses(Actions_BeanClassesInitialization.java:41)
at com.sap.engine.services.ejb3.runtime.impl.Actions_ComponentInterfacesProviderClassesInitialization.loadApplicationClasses(Actions_ComponentInterfacesProviderClassesInitialization.java:20)
at com.sap.engine.services.ejb3.runtime.impl.Actions_SessionBeanClassesInitialization.loadApplicationClasses(Actions_SessionBeanClassesInitialization.java:20)
at com.sap.engine.services.ejb3.runtime.impl.Actions_StatelessBeanClassesInitialization.loadApplicationClasses(Actions_StatelessBeanClassesInitialization.java:18)
at com.sap.engine.services.ejb3.runtime.impl.Actions_BeanClassesInitialization.perform(Actions_BeanClassesInitialization.java:27)
at com.sap.engine.services.ejb3.container.CompositeAction.perform(CompositeAction.java:84)
at com.sap.engine.services.ejb3.container.ApplicationStarter.perform(ApplicationStarter.java:206)
at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:912)
... 35 more
Caused by: java.lang.ClassNotFoundException: com.sap.adaptermodule.GetHostNameBean
------------------------- Loader Info -------------------------
ClassLoader name: [sap.com/UserModule_EAR]
Loader hash code: 5fd12b1f
Living status: alive
Direct parent loaders:
[system:Frame]
[interface:webservices]
[interface:cross]
[interface:security]
[interface:transactionext]
[library:webservices_lib]
[library:opensql]
[library:jms]
[library:ejb20]
[service:p4]
[service:ejb]
[service:servlet_jsp]
[service:com.sap.aii.af.svc.facade]
[library:com.sap.aii.af.lib.facade]
Resources:
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\app_libraries_container\com.sap.aii.af.lib.mod.jar
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\app_libraries_container\com.sap.aii.af.ms.ifc_api.jar
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\app_libraries_container\com.sap.aii.af.cpa.svc.api.jar
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\app_libraries_container\sap.com~tc~logging~java~impl.jar
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\app_libraries_container\com.sap.aii.af.svc_api.jar
D:\usr\sap\PI7\DVEBMGS00\j2ee\cluster\apps\sap.com\UserModule_EAR\EJBContainer\applicationjars\UserModule_EJB.jar
---------------------------------------------------------------
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:247)
at com.sap.engine.services.ejb3.runtime.impl.Actions_BeanClassesInitialization.loadApplicationClass(Actions_BeanClassesInitialization.java:54)
... 43 more
]
Result
Status:Warning.
Please find the error and kindly provide the solution. If you need any extra information please let me know.
Regards,
Anji Reddy
Hi Anji,
In the document appendix section the code contain the class name like GetHostnameXXBean.
But when creating the ejb-jar.xml in 4.4 section of the document EJB class name as GetHostNameBean.
In the ejb-jar.xml you must mention the EJB class name same as your class name which you created.
Change the your class name from GetHostnameXXBean to GetHostNameBean then the deployment will be successful.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thanks for prompt response. I have deployed the module successfully. After that i have used the same module in our PI sender communication channel (In file to file pass through scenario). But when the channel is trying to pick the file it is throwing the below error.
Error: java.lang.ClassCastException: class $Proxy3356:sap.com/XMLEncryptionEAR@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@7e2586f1@alive incompatible with interface
Please help on this.
Regards,
Anji Reddy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anji
Getting the correct setup for module development can sometimes be a bit tricky. A lot of things need to be correctly configured/defined for it to work well.
Based on my blog , I'd suggest one of the below options for you:-
i) Compare the files (deployment descriptors and source code) between the template project with your current project and adjust accordingly
ii) Follow the steps in the blog to immediately set up the project correctly and make your changes in the template project. Although doing this will be quite fast and easy, you might miss the chance to figure out how to resolve the issues you are facing.
Rgds
Eng Swee
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.