Hi,
for first, excuse me for my bad english. Then we start.
In my project i have to use some simple entity beans and i would make
them "transportable" till the client-side, realized with GWT.
Basically I need support in GWT for javax.persistence. When I
discovered GWTx I said: "Wow, it's done".
I'm trying to compile this entity beans but I'm having some boring
compile errors.
So I tried to compile only a simple client-side class (the entry
point) annotated with javax.persistence.Entity.
First, in the gwtx page it's said that for using gwtx it's sufficient
to inherit "com.googlecode.gwtx.Java", but I get this error:
[exec] Removing units with errors
[exec] [ERROR] Errors in 'file:/Users/andrea/Documents/
workspace/Plus/src/it/unibo/plus/web/client/Plus.java'
[exec] [ERROR] Line 8: The import javax.persistence cannot
be resolved
[exec] [ERROR] Line 13: Entity cannot be resolved to a type
[exec] Compiling module it.unibo.plus.web.Plus
... Other failed compile messages...
So I inherit com.googlecode.gwtx.Javax too, but I get this errors:
[exec] Removing units with errors
[exec] [ERROR] Errors in 'jar:file:/Applications/gwt-
mac-1.5.3/
gwtx-1.5-20081912.jar!/com/googlecode/gwtx/javax/persistence/emul/
javax/persistence/Query.java'
[exec] [ERROR] Line 54: No source code is available for
type java.util.Calendar; did you forget to inherit a required module?
[exec] Processing types in compilation unit: jar:file:/
Applications/gwt-mac-1.5.3/gwtx-1.5-20081912.jar!/com/googlecode/gwtx/
javax/annotation/emul/javax/annotation/Resource.java
[exec] Found type 'Resource'
[exec] [ERROR]
[exec] java.lang.ClassNotFoundException:
javax.annotation.Resource
$AuthenticationType
... Other failed compile messages...
Really, GWT doesn't support java.util.Calendar. Does GWTx provide
support fot this class?
I proceed with another experiment: I extract from GWTx library the
only annotation @Entity, to build my own module and try to complile my
test entry point annotated @Entity. This is the result:
Processing types in compilation unit: jar:file:/Users/andrea/
Documents/
workspace/Plus2.0/tmp/module/persistence/gwt-persistence.jar!/javax/
persistence/OneToOne.java
[exec] Found type 'OneToOne'
[exec] [ERROR]
[exec] java.lang.ClassNotFoundException:
javax.persistence.CascadeType
... Other failed compile messages...
But I'm sure that the CascadeType.java file is in the same module!!!!
How it's possible??
Then I tried removing CascadeType, OneToOne, and some others classes,
obtaining:
[exec] Processing types in compilation unit: file:/Users/andrea/
Documents/workspace/Plus2.0/src/it/unibo/plus/web/client/Plus.java
[exec] Found type 'Plus'
[exec] Resolving annotation '@Entity'
[exec] [ERROR]
[exec] java.lang.ClassNotFoundException: javax.persistence.Entity
Where is the problem?????
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---