Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
September 21, 2017, 05:45:22 PM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: testing the framework  (Read 6620 times)
abosetti
Newbie
*
Posts: 3


View Profile Email
« on: February 15, 2010, 10:18:05 AM »

Hi

I am new to puremvc and gwt (coming from java/cairngorm/flex) so forgive me if the question is a bit silly or if I am doing something really dumb.

I am having issues with the folder structure.
 I cannot get the EmployeeAdmin test to work in any other folder rather then the org.puremvc.java.multicore folder.

If I even slightly change the path (for instance to org.puremvc.java2.multicore), it stops working and gwt 2.02 comes back with the following message:

Compiling module org.puremvc.Demo_Java_MultiCore_GWT_EmployeeAdmin
   Finding entry point classes
      [ERROR] Unable to find type 'org.puremvc.java2.multicore.employeeadmin.EmployeeAdmin'
         [ERROR] Hint: Previous compiler errors may have made this type unavailable

I have a few small gwt modules that interact in a very large spring EE application, and I need (if possible) to keep things organized under my company standard folder structure.

I have tried to use the <source path='java2.multicore' > gwt module modified, but to no avail.

Am I missing something very obvious?
I use Eclipse ganimede to refactor (move) things around, and, just to clarify, the gwt module file does indeed point to the right module as shown below
........
  <!-- Inherit PureMVC -->
  <inherits name="org.puremvc.PureMVC_Java_MultiCore" />
 
  <!-- Specify the app entry point class.                         -->
  <entry-point class="org.puremvc.java2.multicore.employeeadmin.EmployeeAdmin" />
   
    <!-- Specify the paths for translatable code                    -->
  <!-- source path='java.multicore'/--> 
</module>


Thank you in advance  for any help
Alessandro
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW
« Reply #1 on: February 15, 2010, 10:27:27 AM »

Just a shot in the dark here, but here:

Code:
 <!-- Inherit PureMVC -->
  <inherits name="org.puremvc.PureMVC_Java_MultiCore" />
 
  <!-- Specify the app entry point class.  -->
  <entry-point class="org.puremvc.java2.multicore.employeeadmin.EmployeeAdmin" />
  
    <!-- Specify the paths for translatable code  -->
  <!-- source path='java.multicore'/-->  

Maybe you need:

Code:
 <!-- Inherit PureMVC -->
  <inherits name="org.puremvc.PureMVC_Java_MultiCore" />
 
  <!-- Specify the app entry point class.  -->
  <entry-point class="org.puremvc.java2.multicore.employeeadmin.EmployeeAdmin" />
  
    <!-- Specify the paths for translatable code  -->
  <!-- source path='org.puremvc.java2.multicore'/-->  

Anthony?

-=Cliff>
Logged
abosetti
Newbie
*
Posts: 3


View Profile Email
« Reply #2 on: February 15, 2010, 12:26:19 PM »

Anthony, thanks for tip, but I am afraid it doesn't change anything.

I am still having the same problem. I have tried most combinations. I am obviously missing something.  any other ideas?

Alex
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW
« Reply #3 on: February 16, 2010, 09:20:43 AM »

I was actually querying Anthony for input there. He's the port owner. I'll PM him.

-=Cliff>
Logged
aquinault
Moderator
Jr. Member
*****
Posts: 10


View Profile Email
« Reply #4 on: February 16, 2010, 10:07:24 AM »

Hi,
if you change the structure of the folders by
org/puremvc/java by org/puremvc/java2

then you must change
<entry-point class="org.puremvc.java2.multicore.demos.gwt.EmployeeAdmin" />

and in each java source code you must modify the package and the import
package org.puremvc.java.multicore.demos.gwt;
import org.puremvc.java.multicore.demos.gwt.employeeadmin.ApplicationFacade;
by
package org.puremvc.java2.multicore.demos.gwt;
import org.puremvc.java2.multicore.demos.gwt.employeeadmin.ApplicationFacade;

Anthony.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW
« Reply #5 on: February 16, 2010, 11:38:41 AM »

BTW, why would you want to do this? The framework has a fixed packaging that probably shouldn't be changed so as to remain compatible with future versions.

-=Cliff>
Logged
aquinault
Moderator
Jr. Member
*****
Posts: 10


View Profile Email
« Reply #6 on: February 17, 2010, 01:17:23 AM »

You do not change the structure of the framework (PureMVC Multicore) if you want to compile it.
But you can change the structure of the client code (for exemple: EmployeeAdmin) of your project.

Anthony.
Logged
abosetti
Newbie
*
Posts: 3


View Profile Email
« Reply #7 on: February 17, 2010, 03:18:53 AM »

Thanks

I have now recreated a project from scratch, and it works as expected.
I probably have some settings hidden in eclipse or some path issues lurking around.

Thanks for your help.

Alex
Logged
Pages: [1]
Print
Jump to: