Announcement

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

    Uncaught ReferenceError: isc is not defined

    I'm gonna crazy %_%

    I created a new project in Netbeans.
    Installed plugin for gwt 2.4
    Downloaded smartgwtee 3.0 stable
    Added all jars in project
    Added in smart gwt module xml
    Code:
     
    <module>
        <inherits name="com.google.gwt.user.User"/>
        <inherits name="com.smartgwtee.SmartGwtEE"/>
        <inherits name="com.smartgwtee.tools.Tools"/>
        
        <entry-point class="org.smart.client.webEntryPoint"/>
    
        <set-property name="user.agent" value="safari" />
    </module>
    Added in WEB-INF -> iscTaglib.xml
    Added in WEB-INF/classes -> log4j.isc.config.xml server.properties
    Created folder ds in webroot
    In server.properties i changed gwtmodulename on mine org.smart.web
    in html i added <script src="smart/sc/DataSourceLoaderdataSource=contacts"></script> and isomorphic folder.
    Created simple example from quick guide (Contacts datasource)
    Compiled w/o errors. Enter on page , opening java console and see this
    Uncaught ReferenceError: isc is not defined
    But response from datasource is ok. I see json but in :8084/smart/smart/sc/DataSourceLoader?dataSource=contacts:1 Uncaught ReferenceError: isc is not defined
    Other stuff working fine also VisualBuilder.
    What i did wrong help please :/

    #2
    Any idea ? :/

    Comment


      #3
      Run a GWT compile. If that doesn't fix it, use Firebug and see what's happening to requests for the SmartClient runtime (ISC_Core.js et al) - these files aren't loading, causing this error.

      Comment


        #4
        I give up. I don't understand what i doing wrong :/...
        I made screenshots. Can u check?
        It's very important for me. In monday i need to give an answer on my work about using smartGWT in our project. I need to do photo grid for axample, but i spend around 2 days for understanding, why i getting this error.
        Screenshots - https://picasaweb.google.com/103603587435884126014/SmartGWT (simple example from quick guide)

        Comment


          #5
          You've skipped something in the installation steps, we can't tell what from just screenshots, and if you ignore recommended troubleshooting steps, then there's no way to help you.

          Comment


            #6
            Ok. I did all step-by-step...
            1. Added all jars into libs
            2. Added in web.xml smartGwtEE and Tools
            3. Copied from example server.propirties an log4j xml
            4. Copied in WEB-INF iscTaglib
            5. In Html Added script var = var isomorphicDir
            6. Added in web.xml Taglib and two servlet IDACall and DataSourceLoader
            ________________________________________________________________

            Entered URL of Developer Console.... No errors , Cool... All works

            7. Created ds.xml from Quick guide dataSource example
            8. Created form and grid form Quick guide dataSource example
            7. Added script <script src="sc/DataSourceLoader?dataSource=contacts"></script> in Html
            9. Clean and Build then Deploy
            10. Entered URl of my page and again ERROR in fire bug.... In tomcat console no errors , lo4j no errors!

            Then i entered url of Developer Console and got Same Error.

            ________________________________________________________________

            as u see i did all like in instruction :/ But still have this error.
            All JS scripts apears. All buttons grid and other stuff working fine....
            But when i trying use Datasource - DataLoader i get ISC error...

            Comment


              #7
              Use the Firebug "Net" panel to find out why ISC_Core.js et al are not loading. Most likely, your isomorphicDir setting is wrong (and you can probably just delete it since its automatic).

              Comment


                #8
                I delted option isomorphicDir
                _____________________________
                In net console
                isc is not defined
                DataSourceLoader?dataSource=contacts()
                function Je(a){var b,c,d,e,f;if(c=a.p(),d=$wnd.isc.DataSource.getDataSource(c),c!=null&&d!=null&&d!==undefined){return lf(a)}else{b=(e=a.o(),f=a.d,$wnd.isc[f].create(e));b[Rt]=a;mf(a);return b}}
                ______________________________
                in JS console all JS files Status Ok

                _______________________________
                gwtOnLoad()26CFF3...he.html (line 275)
                b = undefined
                c = "org.smart.web"
                d = "http://localhost:8084/smart/org.smart.web/"
                e = 0

                _______________________________

                I understandig that I first with this error. But i did like everyone and get not the same result :D
                Last edited by Bellski; 1 Apr 2012, 04:30.

                Comment


                  #9
                  One last try: again, use Firebug's "Net" panel, not the console that shows JS errors. You are trying to determine why the files are not loading at all, probably because they are misplaced or not in the war/ directory at all.

                  Comment


                    #10
                    Omg files are on right place... All works fine till using Dataloader...
                    ok screen from FireBug Net... all responses is OK
                    http://img854.imageshack.us/img854/7862/66693467.jpg

                    Comment


                      #11
                      This shows loading the Developer Console, not the main page. The main page uses different .js files.

                      Comment


                        #12
                        http://img689.imageshack.us/img689/1442/66117928.png
                        Same results are responses is OK

                        Comment


                          #13
                          At last. This output shows that you've placed your DataSourceLoader tag before the nocache.js include.

                          Comment


                            #14
                            I'm crying :D Thanks alot for ur time ))
                            my mistake, in next time i'll be more attentive.

                            Comment

                            Working...
                            X