[ 
https://issues.apache.org/jira/browse/TUSCANY-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oscar Castaneda updated TUSCANY-2440:
-------------------------------------

    Description: 
The current Android SDK does not support Annotations, as a result 
calculator-android runs with Annotation related errors. A suggested workaround 
[1] for issues related to Annotations is to translate source code with 
Retrotranslator [1]. After succesfully translating the SCA modules and modified 
Android modules with Retrotranslator the Annotation related errors cease. 
However, running calculator-android results in ClassNotFound errors for 
java.rmi.Remote in the first test (Patch from 25Jun2008) and 
java.beans.Introspector in a more recent test (Patch from 27Jun2008). The 
difference between both tests being uncommented/commented code, respectively, 
in JavaRuntimeModuleActivator.java 
(org.apache.tuscany.sca.implementation.java.module). 

Three workarounds have been suggested:

1) Comment out all the code that uses the RMI API
2) Follow suggestions in [3] to either replace java.rmi.Remote with 
java.lang.Cloneable (as the result of using a retrotranslator option) or taking 
the RMI source from Apache Harmony and putting it in a retrotranslated JAR.
3) Removing RMI should be as simple as removing the tuscany-binding-rmi
dependency from host-android.

Upon failure of these workarounds the alternative is to minimize the number of 
component types supported (java) and bindings (default sca binding) and then 
try to run the calculator sample application. When calculator-android runs 
successfully further steps will be discussed on dev-list.

A blocking-issues [4] and a porting limitations page [5] have been setup 
tracking these efforts.

[1] http://code.google.com/p/android/issues/detail?id=29
[2] http://retrotranslator.sourceforge.net/#android
[3] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/18Jun2008-2
[4] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Blocking+issues
[5] 
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Limitation+on+porting+SCA+to+Android+platform

  was:
The current Android SDK does not support Annotations, as a result 
calculator-android runs with Annotation related errors. A suggested workaround 
[1] for issues related to Annotations is to translate source code with 
Retrotranslator [1]. After succesfully translating the SCA modules and modified 
Android modules with Retrotranslator the Annotation related errors cease. 
However, running calculator-android results in ClassNotFound errors for 
java.rmi.Remote in the first test and java.beans.Introspector in a more recent 
test.

Three workarounds have been suggested:

1) Comment out all the code that uses the RMI API
2) Follow suggestions in [3] to either replace java.rmi.Remote with 
java.lang.Cloneable (as the result of using a retrotranslator option) or taking 
the RMI source from Apache Harmony and putting it in a retrotranslated JAR.
3) Removing RMI should be as simple as removing the tuscany-binding-rmi
dependency from host-android.

Upon failure of these workarounds the alternative is to minimize the number of 
component types supported (java) and bindings (default sca binding) and then 
try to run the calculator sample application. When calculator-android runs 
successfully further steps will be discussed on dev-list.

[1] http://code.google.com/p/android/issues/detail?id=29
[2] http://retrotranslator.sourceforge.net/#android
[3] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/18Jun2008-2

        Summary: ClassNotFoundException on calculator-android after translating 
SCA and mobile-android code with Retrotranslator  (was: ClassNotFoundErrors on 
calculator-android after translating SCA and mobile-android code with 
Retrotranslator)

Added Patch from 27Jun2008 with uncommented code in 
JavaRuntimeModuleActivator.java 
(org.apache.tuscany.sca.implementation.java.module). 

> ClassNotFoundException on calculator-android after translating SCA and 
> mobile-android code with Retrotranslator
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2440
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2440
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Mac OS X 10.5, Maven version: 2.0.6, java version 
> "1.5.0_13", Apache Ant version 1.7.0
>            Reporter: Oscar Castaneda
>            Priority: Minor
>         Attachments: patchfile25Jun2008, retrotranslator_readme
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> The current Android SDK does not support Annotations, as a result 
> calculator-android runs with Annotation related errors. A suggested 
> workaround [1] for issues related to Annotations is to translate source code 
> with Retrotranslator [1]. After succesfully translating the SCA modules and 
> modified Android modules with Retrotranslator the Annotation related errors 
> cease. However, running calculator-android results in ClassNotFound errors 
> for java.rmi.Remote in the first test (Patch from 25Jun2008) and 
> java.beans.Introspector in a more recent test (Patch from 27Jun2008). The 
> difference between both tests being uncommented/commented code, respectively, 
> in JavaRuntimeModuleActivator.java 
> (org.apache.tuscany.sca.implementation.java.module). 
> Three workarounds have been suggested:
> 1) Comment out all the code that uses the RMI API
> 2) Follow suggestions in [3] to either replace java.rmi.Remote with 
> java.lang.Cloneable (as the result of using a retrotranslator option) or 
> taking the RMI source from Apache Harmony and putting it in a retrotranslated 
> JAR.
> 3) Removing RMI should be as simple as removing the tuscany-binding-rmi
> dependency from host-android.
> Upon failure of these workarounds the alternative is to minimize the number 
> of component types supported (java) and bindings (default sca binding) and 
> then try to run the calculator sample application. When calculator-android 
> runs successfully further steps will be discussed on dev-list.
> A blocking-issues [4] and a porting limitations page [5] have been setup 
> tracking these efforts.
> [1] http://code.google.com/p/android/issues/detail?id=29
> [2] http://retrotranslator.sourceforge.net/#android
> [3] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/18Jun2008-2
> [4] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Blocking+issues
> [5] 
> http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Limitation+on+porting+SCA+to+Android+platform

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to