Uploaded image for project: 'Enterprise Social Messaging Environment (ESME)'
  1. Enterprise Social Messaging Environment (ESME)
  2. ESME-322

Some Scripts aren't loaded on tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.2
    • UI
    • None

    Description

      From the dev mailing list

      I checked out the latest ESME and built a package (I love the sbt integration!).
      Deployed on tomcat to discover that display_single_message.js and pretty.js
      did not load. I have a context path of /esme and both files were
      being looked for
      in /scripts instead of /esme/scripts. I found that index.html had this:

      <script src="scripts/display_single_message.js" type="text/javascript"/>
      <script src="scripts/pretty.js" type="text/javascript"/>

      but every other occurrence had this:

      <script src="../scripts/display_single_message.js" type="text/javascript"/>
      <script src="../scripts/pretty.js" type="text/javascript"/>

      The error didn't occur when running under jetty from sbt since the context root
      is /

      The fix was to change to this:

      <script src="/scripts/display_single_message.js" type="text/javascript"/>
      <script src="/scripts/pretty.js" type="text/javascript"/>

      everywhere (except index.html) since they are loaded in the user page which
      is one level down.

      Attachments

        1. esme.patch
          6 kB
          Eric J. Christeson

        Activity

          People

            Unassigned Unassigned
            rhirsch Richard Hirsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: