HIi All.
I have problem about creating custom service. I have built ear file, but it have not deployed on jboss server.
I have did these steps.
1. Create new Documentum Project
2. Create java file : Web Services\src\com\emc\sinam\SinamTestService.java
package com.emc.sinam;import com.emc.documentum.fs.rt.annotations.DfsPojoService;@DfsPojoService(targetNamespace = "http://sinam.emc.com", requiresAuthentication = true)public class SinamTestService { public String sayHello(String name) { return "Hello, " + name; }}3. Set dfc.properties : ...\ DocumentumCoreProject\dfs6.7\emc-dfs-sdk-6.7\etc\dfc.properties
dfc.docbroker.host[0]=200.200.210.235dfc.docbroker.port[0]=1489dfc.globalregistry.password=iJUP2biVHHlWrGCvwSzq8Q==dfc.globalregistry.repository=ESDdfc.globalregistry.username=dm_bof_registry# below two properties are used for SchemaService performancedfc.cache.type.currency_check_interval=86400dfc.cache.ddinfo.size=10000
4. Set dfs-client.xml : …\ DocumentumCoreProject\dfs6.7\emc-dfs-sdk-6.7\etc\config\dfs-client.xml
<DfsClientConfig defaultModuleName="core" registryProviderModuleName="core"> ….. <ModuleInfo name="sinam" protocol="http" host="localhost" port="9080" contextRoot="sinamservices"> </ModuleInfo></DfsClientConfig>
5. Copy dfc.properties to Web Services\src
6. Set DFS module and dfs-build.properties:
Context-Root: sinamservices
DFS Module Name: sinam
DocumentumCoreProject\dfs6.7\ dfs-build.properties
# EMC DFS SDK 6.0 build properties template#dfs.sdk.home=../..#dfs.sdk.home=C:/Temp/dfs/sdk#projectdir=C:/Temp/DocumentumProject# Compiler optionscompiler.debug=oncompiler.generate.no.warnings=offcompiler.args=compiler.max.memory=128mfork = truenonjava.pattern = **/*.java,**/.svn,**/_svn# Establish the production and tests build folders#build.folder = buildmodule.name=sinamcontext.root=sinamservices#Debug informationdebug=truekeep=trueverbose=falseextension=true
7. Build Project : It have built successfully, but there are some warnings.
8. Export project: Export->Documentum->Export Service Archive
Archive Name: sinam
Context Root: sinamservices
Export Destination: C:\Users\dmadmin\Desktop\training
Services for Export: SinamTestService
Runtime Libraries: (empty)
Runtime Resources: dfc.properties (/DocumentumProject/Web Services/src)
Organization Name: sinam
->Finish
I have created sinam.ear file, sinam-publish-manifest.xml, sinam-remote.jar
9. Copy sinam.ear to C:\Documentum\jboss5.1.0\server\DctmServer_MethodServer\deploy and start Method Server.
But sinam.ear file was not deployed.
ERROR:
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/Documentum/jboss5.1.0/server/DctmServer_MethodServer/de
ploy/sinam.ear/" is in error due to the following reason(s): org.jboss.deployers
.spi.DeploymentException: URL file:/C:/Documentum/jboss5.1.0/server/DctmServer_M
ethodServer/tmp/5k5k5u6j-y0x84b-h9qr6rac-1-h9qr8hd5-97/sinamservices-sinam.war/
deployment failed
How can I solve this problem?
There is attachment: Documentum Project (trainingsinam.rar) I have deleted metadata and
DocumentumCoreProject\dfs6.7\emc-dfs-sdk-6.7\lib.
Thanks in advance.