on 12-27-2006 5:12 AM
Hi All,
Following are the steps I undertook in creating a Web Service DC project:
1. Created a Java DC project and declared all the packages as public part. Build went successful.
2. Created a EJB DC project with a stateless session bean to implement the method of the java project.The java DC project was added as Used DC.
Build went successful.
3. Created a EAR DC project and added the EJB project to it. While building the project, I got the following warning
....
General options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
Reading BuildInfrastructure extension from DC tc/bi/bp/enterpriseApplication (sap.com)
Reading BuildInfrastructure extension from DC tc/bi/util (sap.com)
Added technology 'sap.com/tc/bi/bp/enterpriseApplication'
Added technology 'sap.com/tc/bi/core'
Plugin initialized in 0.032 seconds
Warning: Could not validate DC meta data, no information available for type 'J2EE/Enterprise Application'
Preparing data context..
Data context prepared in 0 seconds
Executing macro file..
Using macro file: C:\Documents and Settings\Administrator\.dtc\0\DCs\sap.com\tc\bi\bp\enterpriseApplication\_comp\gen\default\public\enterpriseApplication\macros\build.vm
Creating output file: C:\Documents and Settings\Administrator\.dtc\0\DCs\phobos\phobos\dclocear\_comp\gen\default\logs\build.xml
Macro file executed in 0.016 seconds
Starting Ant..
Using build file: C:\Documents and Settings\Administrator\.dtc\0\DCs\phobos\phobos\dclocear\_comp\gen\default\logs\build.xml
Using build target: build
Generation folder: C:\Documents and Settings\Administrator\.dtc\0\t\6739AD625E51D655929F46A1AC085A78
Ant build started at 2006-12-27 10:26:20 GMT+05:30
Using Ant version 1.5.4
clean:
prepare:
[mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\0\t\6739AD625E51D655929F46A1AC085A78\jars
build:
[copy] Copying 16 files to C:\Documents and Settings\Administrator\.dtc\0\t\6739AD625E51D655929F46A1AC085A78\jars
[mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\0\DCs\phobos\phobos\dclocear\_comp\gen\default\src\java
[zip] Building zip: C:\Documents and Settings\Administrator\.dtc\0\DCs\phobos\phobos\dclocear\_comp\gen\default\src\java\src.zip
[timer] Source archive creation finished in 0.047 seconds
[echo] Create deploy file phobosphobosdclocear.ear
[jarsap] Info: JarSAP version 20041217.1600
[jarsap] Info: JarSAPProcessing version 20050624.1234 / JarSL version 20050901.1731
[jarsap] Property jarsap.info.dir is not set.
[jarsap] Building: C:\Documents and Settings\Administrator\.dtc\0\DCs\phobos\phobos\dclocear\_comp\gen\default\deploy\phobosphobosdclocear.ear with compression
[timer] JarSAP finished in 1.109 seconds
Ant build finished OK
Ant build finished at 2006-12-27 10:26:22 GMT+05:30, Duration: 1.687 seconds
Build finished with WARNING
Cleaning up.
Total build plug-in runtime: 2 seconds
..
Can any one suggest a solution to overcome the said warning
Kind Regards
Mukesh
Hi Mukesh,
You can ignore the warning messages during the build.
Just deploy the EAR file and test the webservice.It should work.
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ANilkumar,
while deploying the ear file I got following error
...
Result
=> deployment aborted : file:/C:/DOCUME1/ADMINI1/LOCALS1/Temp/temp20812phobosphobos~dclocear.ear
Aborted: development component 'phobos/dclocear'/'phobos'/'ZPN_ZPNTRK_D'/'20061227102836':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application phobos/phobosdclocear.. Reason: Exception during generation of components of application phobos/phobosdclocear in container EJBContainer.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item aborted
[006]Additional log information about the deployment
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7186 - 630]/>
<!NAME[Y:\usr\sap\EPD\JC03\SDM\program\log\sdmcl20061227053302.log]/>
<!PATTERN[sdmcl20061227053302.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
<!ENCODING[Cp1252]/>
<!LOGHEADER[END]/>
Dec 27, 2006 6:34:58 AM Info: -
Starting deployment -
Dec 27, 2006 6:34:58 AM Info: Error handling strategy: OnErrorStop
Dec 27, 2006 6:34:58 AM Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
Dec 27, 2006 6:34:58 AM Info: Update strategy: UpdateAllVersions
Dec 27, 2006 6:34:58 AM Info: Starting deployment prerequisites:
Dec 27, 2006 6:34:58 AM Info: Loading selected archives...
Dec 27, 2006 6:34:58 AM Info: Loading archive 'Y:\usr\sap\EPD\JC03\SDM\program\temp\temp20812phobosphobosdclocear.ear'
Dec 27, 2006 6:34:59 AM Info: Selected archives successfully loaded.
Dec 27, 2006 6:34:59 AM Info: Actions per selected component:
Dec 27, 2006 6:34:59 AM Info: Initial deployment: Selected development component 'phobos/dclocear'/'phobos'/'ZPN_ZPNTRK_D'/'20061227102836' will be deployed.
Dec 27, 2006 6:34:59 AM Info: Ending deployment prerequisites. All items are correct.
Dec 27, 2006 6:35:01 AM Error: Unable to compare host[populier] and host[KAAR-SERVER2] Throwable: java.net.UnknownHostException Throwable message: KAAR-SERVER2: KAAR-SERVER2
Dec 27, 2006 6:35:01 AM Info: Saved current Engine state.
Dec 27, 2006 6:35:01 AM Info: Starting: Initial deployment: Selected development component 'phobos/dclocear'/'phobos'/'ZPN_ZPNTRK_D'/'20061227102836' will be deployed.
Dec 27, 2006 6:35:01 AM Info: SDA to be deployed: Y:\usr\sap\EPD\JC03\SDM\root\origin\phobos\phobos\dclocear\ZPN_ZPNTRK_D\20061227102836\temp20812phobosphobosdclocear.ear
Dec 27, 2006 6:35:01 AM Info: Software type of SDA: J2EE
Dec 27, 2006 6:35:01 AM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
Dec 27, 2006 6:35:04 AM Error: Unable to compare host[populier] and host[KAAR-SERVER2] Throwable: java.net.UnknownHostException Throwable message: KAAR-SERVER2: KAAR-SERVER2
Dec 27, 2006 6:35:06 AM Info: Begin of log messages of the target system:
06/12/27 06:35:01 - ***********************************************************
06/12/27 06:35:04 - Start updating EAR file...
06/12/27 06:35:04 - start-up mode is lazy
06/12/27 06:35:04 - EAR file updated successfully for 360ms.
06/12/27 06:35:04 - Start deploying ...
06/12/27 06:35:05 - EAR file uploaded to server for 578ms.
06/12/27 06:35:06 - ERROR: Not deployed. Deploy Service returned ERROR:
java.rmi.RemoteException: Cannot deploy application phobos/phobos~dclocear..
Reason: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.
at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:537)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:621)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:318)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3119)
at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:522)
... 10 more
Caused by: java.lang.NoClassDefFoundError: [Lphobos/cv/db/bean/LocationAdvanceSearchBean;
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.lang.Class.privateGetPublicMethods(Class.java:1778)
at java.lang.Class.getMethods(Class.java:832)
at com.sap.engine.services.ejb.deploy.verifier.RmiIiopUtils.isValidRmiIIOPInterface(RmiIiopUtils.java:52)
at com.sap.engine.services.ejb.deploy.verifier.RemoteInterfaceCheck.check(RemoteInterfaceCheck.java:40)
at com.sap.engine.services.ejb.deploy.verifier.session.SessionBeanCheck.check(SessionBeanCheck.java:76)
at com.sap.engine.services.ejb.deploy.verifier.Verifier.checkBean(Verifier.java:82)
at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:46)
at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2142)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
... 16 more
For detailed information see the log file of the Deploy Service.
06/12/27 06:35:06 - ***********************************************************
Dec 27, 2006 6:35:06 AM Info: End of log messages of the target system.
Dec 27, 2006 6:35:06 AM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Dec 27, 2006 6:35:06 AM Error: Aborted: development component 'phobos/dclocear'/'phobos'/'ZPN_ZPNTRK_D'/'20061227102836':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application phobos/phobos~dclocear..
Reason: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application phobos/phobos~dclocear in container EJBContainer.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Dec 27, 2006 6:35:07 AM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Dec 27, 2006 6:35:07 AM Error: -
At least one of the Deployments failed -
Kind Regards
Mukesh
HI Anilkumar,
I already created the webservice with the bean which is currently working fine.
Now I want to covert it to DC project.
I followed the same steps to make the webservice.
The LocationAdvanceSearchBean is inside the ejb project that contains the methods. Is it necessary to declare the ejb packages as public part?.
Kind Regards
Mukesh
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.