Announcement

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

    Attempt to use Messaging APIs without the optional Realtime Messaging module

    We recently purchased RealTimeMessaging.

    Invoice: 32185

    I replaced the two jars (isomorphic_js_parser.jar and isomorphic_realtime_messaging.jar) I downloaded from licensed package.

    Inlcuded below code:

    <inherits name="com.smartgwt.RealtimeMessaging"/>

    -----------------------------------
    In -- web.xml

    <!-- //>RealtimeMessaging -->

    <!-- The MessagingServlet is used by realtime messaging -->

    <servlet>

    <servlet-name>MessagingServlet</servlet-name>

    <servlet-class>com.isomorphic.messaging.MessagingServlet</servlet-class>

    </servlet>

    <!-- //<RealtimeMessaging -->
    -----------------------

    I am still getting below error. Not sure, if I am missing anything.

    20:50:41.368:MUP0:WARN:Log:java.lang.RuntimeException: Attempt to use Messaging APIs without the optional Realtime Messaging module. Verify that your license includes this optional module and that you have included the necessary client and server-side components in your project.


    #2
    Hi revanbhapri,

    can you see your browser loading the additional js file for messaging? Depending on how you are loading your JS files you might need to add this as well in your main html file.

    I'm not using messaging, but I know that in order to use messaging you'll need to load the respective js file. I can see the server showcase load ISC_RealtimeMessaging.js, which does not happen in my project without messaging.

    Best regards
    Blama

    Comment


      #3
      Yes, it is loading I can see

      <script src="harmony/sc/modules/ISC_RealtimeMessaging.js?isc_version=13.0p_2023-10-25.js"></script>

      Comment


        #4
        Hi revanbhapri,

        OK, that's good. And the server also delivers the file, so it is a HTTP 200, correct?

        Best regards
        Blama

        Comment


          #5
          Note that this error message specifically means that the GWT Java Messaging code is present, but the JS file has not been loaded.

          You may simply need to manually run a GWT compile. GWT should have handled this automatically based on the module inherit, but often doesn't.

          Comment


            #6
            Looks like it ws referring to my old jar files. After fresh build loading correctly.

            Comment

            Working...
            X