Announcement

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

    DataSourceLoader. NoClassDefFoundError: com.isomorphic.base.Base

    Hi guys,

    I spent few days trying to load the most basic datasource into my application without success. Any help would be much appreciated.

    using smartgwtee 6.0
    and gwt 2.8.0

    First : The error :

    http://127.0.0.1:8888/MySampleApplic...aSource=testds HTTP ERROR 500

    Problem accessing /MySampleApplication/sc/DataSourceLoader. Reason:

    Server Error
    Caused by:


    java.lang.NoClassDefFoundError: com.isomorphic.base.Base at com.isomorphic.servlet.BaseServlet.handleError(BaseServlet.java:203) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    and during the compilation : (it doesn't stop the deployment though)

    Isomorphic Init: Exception in Init.go()
    java.lang.NoClassDefFoundError: Could not initialize class com.isomorphic.util.DataTools


    The config :

    gwt.xml

    Code:
    <!-- Inherit the core Web Toolkit stuff. -->
    <inherits name='com.google.gwt.user.User'/>
    <inherits name="com.smartgwt.tools.SmartGwtTools"/>
    <inherits name="com.smartgwtpower.tools.Tools"/>
    <inherits name="com.smartgwtee.SmartGwtEE"/>
    html entry page :


    Code:
    <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the SmartGWT resource are correctly resolved -->
    <script> var isomorphicDir = "MySampleApplication/sc/";</script>
    <script src="MySampleApplication/sc/modules/ISC_Tools.js"></script>
    <script src="MySampleApplication/sc/initsc.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Core.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Foundation.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Containers.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Grids.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Forms.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_RichTextEditor.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_Calendar.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_DataBinding.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_FileLoader.js"></script>
    <script src="MySampleApplication/sc/modules/ISC_AdminConsole.js"></script>
    <script src="MySampleApplication/sc/skins/Enterprise/load_skin.js"></script>
    
    <!-- -->
    <!-- This script is required bootstrap stuff. -->
    <!-- -->
    <script type="text/javascript" language="javascript"
    src="MySampleApplication/MySampleApplication.nocache.js"></script>

    Librairies (not maven) :
    - gwt-user
    - isomorphic_assembly
    - isomorphic_core_rpc
    - smartgwtee

    IDE : IntelliJ
    App server : embedded Jetty

    I would be very happy to provide any missing info.

    Thank you !
    Last edited by Amben; 19 Dec 2016, 09:31.

    #2
    Take a look at the list of .jars in the Java Dependencies overview - you've skipped a lot.

    Comment


      #3
      As simple as that, can't believe it ! Thank you ! I should have read more carefully. I tried to add the minimum of librairies... bad idea. Now I added all of them :) thanks again

      Comment


        #4
        hi again,

        I think I still have a config issue. This error happens when I use a checkBoxItem:

        GET http://127.0.0.1:8888/images/blank 404 (Not Found)
        isc_Canvas__browserDoneDrawing @ ISC_Core.js:2798
        isc_Canvas_adjustOverflow @ ISC_Core.js:2804
        isc_FormItem_adjustOverflow @ ISC_Forms.js:939
        isc_FormItem_setElementValue @ ISC_Forms.js:1079
        isc_CycleItem_advanceValue @ ISC_Forms.js:2153
        isc_CycleItem_handleClick @ ISC_Forms.js:2147
        isc_DynamicForm_bubbleItemHandler @ ISC_Forms.js:554
        isc_DynamicForm_handleItemClick @ ISC_Forms.js:560
        isc_DynamicForm_handleClick @ ISC_Forms.js:555
        isc_c_EventHandler_bubbleEvent @ ISC_Core.js:1732
        isc_c_EventHandler_handleClick @ ISC_Core.js:1590
        isc_c_EventHandler__handleMouseUp @ ISC_Core.js:1575
        isc_c_EventHandler_handleMouseUp @ ISC_Core.js:1566
        isc_c_EventHandler_dispatch @ ISC_Core.js:1810
        (anonymous) @ VM35:3

        it is probably due to the theme config. here is mine :

        gwt.xml :

        Code:
         [I]<!-- Inherit the core Web Toolkit stuff.                  --> [/I]
        <[B]inherits [/B][B]name[/B][B]='com.google.gwt.user.User'[/B]/>
        <[B]inherits [/B][B]name[/B][B]="com.smartgwt.tools.SmartGwtTools"[/B]/>
         <[B]inherits [/B][B]name[/B][B]="com.smartgwtpower.tools.Tools"[/B]/>
        <[B]inherits [/B][B]name[/B][B]="com.smartgwtee.SmartGwtEE"[/B]/>
        
         <inherits name="com.smartgwt.SmartGwtNoScript"/>
        <inherits name="com.smartclient.theme.enterprise.Enterprise"/>
        main html : same than the one in my initial post.

        java :

        Code:
        [B]checkBox [/B]= [B]new [/B]CheckboxItem([B]"checkBox "[/B], [B]"Title"[/B]);
        [B]checkBox [/B].setLabelAsTitle([B]true[/B]);
        [B]checkBox [/B].setHoverWidth(150);
        Do you have any clue about this error ?

        Other information : When I first laod the application, the check box is not visible, only the title is, and the error is in the browser logs.

        Thank you !

        Comment


          #5
          Hi Amben,

          please see this post and download a new version if you are on anything older than 2016-12-07.
          Also always include your build date in your posts (not just smartgwtee 6.0).

          Best regards
          Blama

          Comment


            #6
            Solved by updating librairies to last version of smartgwt - it was a bug

            Same than here

            Comment

            Working...
            X