[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [henshin-dev] Create GenModel problem: PUT failed with HTTP response code 403?
|
Hi Jerry,
actually you are not alone with that problem. In the past I solved
this the following way: Despite of the error, usually the genmodel
has been created anyhow. If you then trigger the code generation,
further errors in the generated classes occur, which, however, can
be resolved easily.
If you do not need a mapping model tailored to your certain case,
you may want to try out our self-contained "trace model"
(org.eclipse.emf.henshin.trace)! It consists of a class "Trace" with
references "source" and "target" running to EObject, i.e., an object
:Trace may refer to *any* EMF object. Trace is additionally equipped
with an attribute "name:EString" which may contain further
mapping-related information. In the case, that you plan to persist
the mapping between source and target model, Traces may contain
other Traces by reference "subTraces[0..*]: Trace" which allows to
build an EMF conform containment hierarchy.
Best regards,
Stefan
Am 14.09.2011 16:41, schrieb Jerry Hong:
Hi,
I came across a strange problem with HTTP code
403 while creating a genmodel from a ecore file. I know this
isn't a Henshin problem but after solving this problem I'll go
ahead to an exogenous transformation. So I'm
really appreciated if someone here can help me with this.
Below are the steps I followed. I have
also attached the needed files so you might like to
regenerate the environment.
- I created two simplest ecore projects: exSource and
exTarget.
- I created the corresponding genmodels within these
projects and generated all the codes.
- I exported exSource and exTarget as jar files and put
them into Eclipse plugin folder. Then I restarted
Eclipse to load them.
- In order to make a "mapping model" as the
ecore2genmodel example suggests, I created another ecore
project: pivot.
- I opened pivot.ecore and "Loaded Resources"
exSourceModel and exTargetModel (according to their
URLs) from "Regestered Packages". Then I filled it with
structure like below.

6. Everything works fine until now.
Then I tried to create a genmodel from this pivot.ecore like
below. At the final step right after clicking "Finish"
I received this error.
It's really strange for EMF to try
PUTing. I mean even if it was trying to verify the URL
mentioned in the ecore file, that URL (http://jerryhong.net/exSource)
is reachable and doesn't deserve a 403 code.
I'm wondering if anyone has come across
this problem before. Thank you.
Best regards,
洪嘉瑞 / Jiarui (Jerry) Hong
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev
|
Attachment:
signature.asc
Description: OpenPGP digital signature