Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Cannot compile GWT project when using classes from different source folder

    My project contains 2 source folder, one is generic J2EE application another is smartCleintGWT,

    I want to use some already existing DTO classes from first source folder (src)

    When I do that I getting error

    [ERROR] Errors in 'file:/C:/..Projects/Admin/DMX/src_console/com/ho/nod/client/AdminRPC.java'
    [ERROR] Line 7: No source code is available for type com.dmx.synch.server.descriptors.DMXLicense; did you forget to inherit a required module?

    Source is available obviously; is there any way to import all that into GWT?

    PS In the future 2 source folder will be separated into 2 projects...I hope it wont be that complicated as well.

    #2
    Hi guys... any ideas or I didn't explain myself properly?

    Comment


      #3
      you need to inherit the required source paths in your root *.gwt.xml

      Ekki

      * GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT PRO 2.1,
      GWT 2.0, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16 *
      For Evaluation only: MySQL 5.1.41, Connector/J 5.1.10

      *** www.EasternGraphics.com/X-4GPL ***

      Comment


        #4
        [QUOTE=CI-CUBE]you need to inherit the required source paths in your root *.gwt.xml

        I've read something the Net, performed changes but it still doesn't work:

        So here is my stuff:

        I have 2 source folders:

        src - with all j2ee classes
        src_console - for my smartGWT application

        I want to use DMXLicense class for client and server.
        This class should come over RPCrequest to client and should use it to extract required data.

        DMXLicense is under com.nod.dmx.synch.server.data

        I've created file com.nod.dmx.synch.server.data.gwt.xml in com.nod.dmx.synch.server:

        <module>
        <inherits name='com.google.gwt.user.User'/>
        <source path='data'></source>
        </module>


        then I've added <inherits> into my GWT NoAdmin applciation xml file

        <module rename-to="noAdmin">
        <inherits name='com.google.gwt.user.User'/>
        <inherits name="com.smartgwtee.SmartGwtEE"/>
        <inherits name='com.nod.dmx.synch.server.data'/>
        <entry-point class='com.ho.no.client.Admin'/>
        <servlet path="/AdminService" class=" com.ho.no.server.AdminRPCImpl"/>
        </module>


        But when I try to compile it - I'm getting:

        [ERROR] Unable to find 'com/nod/dmx/synch/server/data.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

        PS When I open GWT compilers I have entries - one of newly created gwt.xml anotjher one of NoAdmin.gwt.xml, I order to start compiling I have to delete new one, otehrvise I immidiately getting error - "[ERROR] Unable to find 'com/horizant/dmx/synch/server/com.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?" Which is a bit stupid for me - if GWT has it in that applications list?!?

        Comment


          #5
          Ok, I think my problems are because looks like there is no way you can keep J2EE and GWT codes under one roof (one project separate source folders)

          When I have J2EE project with GWT stuff, GWT cannot find classes in server package.


          If I create clean GWT project and move both source folders under, GWT complains that File IO operation is not supported.... darn! it is so convoluted!!!

          Comment

          Working...
          X