[ 
http://issues.apache.org/jira/browse/GERONIMO-1942?page=comments#action_12426197
 ] 
            
Manu T George commented on GERONIMO-1942:
-----------------------------------------

This problem occurs due to the following 

When you are deploying an exploded module in the createModule method of 
OpenEjbModuleBuilder shown below is used

createModule(File plan, JarFile moduleFile, Naming naming, ModuleIDBuilder 
idBuilder){
    return createModule(plan, moduleFile, "ejb", null, null, null, naming, 
idBuilder);
}

Here ejb is hardcoded as the targetPath. This is not correct in the case of 
exploded deployment as the ejb file is not created. Instead we are going to 
used the exploded directory itself and so the target path should be "."

For this reason we can change the existing method to 

createModule(File plan, JarFile moduleFile, Naming naming, ModuleIDBuilder 
idBuilder,String targetPath){
    return createModule(plan, moduleFile, targetPath, null, null, null, naming, 
idBuilder);
}

or you can straightaway use createModule(plan, moduleFile, targetPath, null, 
null, null, naming, idBuilder) in the EARConfigBuilder Class.

To determine the target path we need to add a boolean parameter to the 
getDeploymentPlan()  method of EARConfigBuilder.

If this approach is alright then I will post the patch. 



> InPlace deployment does not work with EjbModules
> ------------------------------------------------
>
>                 Key: GERONIMO-1942
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-1942
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 1.1
>            Reporter: Sachin Patel
>            Priority: Critical
>             Fix For: 1.1.x
>
>
> In place deployment fails with EJBModules.  When pointing to the exploded 
> ejbjar using the --inPlace option the classes to not resolve...
>  Error: Unable to distribute temp: Remote interface class not found:
>     org.apache.test.My

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to