You may try this,

Change the package name in Project1 as

com->mypack->client-> Customer.java
com->mypack-> Customer.gwt.xml

and

Customer.gwt.xml
<module>
         <inherits name='com.google.gwt.user.User'/>
</module>

This may work....


..Prabu




On Dec 5, 12:08 am, Jason Kreigg <[EMAIL PROTECTED]> wrote:
> Hi experts,
>
> GWT Version: 1.4.
> I’m facing a problem trying to use transfer objects classes. I
> understand that any reference in client package is rendered into
> javascript files. For this reason, classes should be serializable.
> I’ve created a new java project where are some transfer objects
> classes to exchange data between server and client packages.
>
> Java Project A
> com->mypack->classes-> Customer.java
> com->mypack-> Customer.gwt.xml
>
> GWT Project
> source->com->mypack2->RequestForm.gwt.xml
> source->com->mypack2->client->IRequestFormService.java
> source->com->mypack2->client->IRequestFormServiceAsync.java
> source->com->mypack2->client->RequestForm.java
> source->com->mypack2->public->RequestForm.jsp
> source->com->mypack2->server->RequestFormService.java
>
> RequestForm.gwt.xml:
> <module>
>         <inherits name='com.google.gwt.user.User'/>
>         <inherits name='com.mypack.Customer' />
>         <entry-point class='com.mypack2.client.RequestForm'/>
> </module>
>
> Customer.gwt.xml
> <module>
>         <source path='classes' />
> </module>
>
> I’ve exported Java Project A with java source into JAR file and add
> the JAR path into RequestForm-compile.cmd (@java –cp). Customer class
> implements Serializable (java.io.Serializable).
>
> When I run RequestForm-compile.cmd, I’m getting this error:
> C:\XP\Java\workplace\projectweb>RequestForm-compile.cmd
> Analyzing source in module 'br.com.neoenergia.coelba.RequestForm'
> [ERROR] Errors in 'C:\XP\Java\workplace\projectweb\source\com
> \mypack2\client\IRequestFormService.java'
> [ERROR] Line 11:  The import com.mypack cannot be resolved
> [ERROR] Line 23:  Customer cannot be resolved to a type
> [ERROR] Errors in 'C:\XP\Java\workplace\projectweb\source\com
> \mypack2\client\RequestForm.java'
> [ERROR] Line 91:  IRequestFormService cannot be resolved
> [ERROR] Line 92:  IRequestFormService cannot be resolved
> [ERROR] Cannot proceed due to previous errors
> [ERROR] Build failed
>
> IRequestFormService.java
> Line 11: import com.mypack.classes.*;
> Line 23: public Customer getCustomer();
>
> RequestForm.java
> Line 91: requestFormService = IRequestFormService.Util.getInstance();
> Line 92: urlBase = IRequestFormService.Util.getURL();
>
> Someone have an idea what may be wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to