Announcement Announcement Module
Collapse
No announcement yet.
Web Apps: modifying jsps/templates after deployment? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web Apps: modifying jsps/templates after deployment?

    Hi,

    To draw a parallel with Tomcat, once a war is deployed, developer can edit a jsp/freemarker/etc in unziped deployment and get a instant gratification for his efforts.

    Is this possible with dmServer 2.0? I found few locations where contents of deployed war are located:
    1. work/osgi/configuration/org.eclipse.osgi/bundles/${bundle.id}/1/bundlefile
    2. (for plan) work/com.springsource.kernel/Module/${plan.name}/${war.name}
    3. (for non-plans) work/com.springsource.kernel/Module/${war.name}-${someindex}/${war.name}
    4. /work/com.springsource.kernel/${war.name}/ (this one is without an index as #3)

    Will modifications for jsps and similar resources in any of those directories be reflects on the next refresh in the browser?

  • #2
    Poking around in implementation specific directories is not recommended. The preferred way of doing what you want is to use the SpringSource tool suite to deploy the application and then edit the files you want to change and save them. The tool suite will call the deployer interface to update or delete a static resource which will then be picked up by Tomcat.

    That's the story with the old deployer and old web container code, but it has regressed with the introduction of the RFC 66 based web container. See: https://issuetracker.springsource.com/browse/DMS-1121.

    Meanwhile, you *might* be able to get away with editing the file in the Equinox bundle file if you want to try quick temporary changes, but the caveat above still stands, especially if it doesn't work. ;-)

    Comment


    • #3
      Understood.

      I was chasing a incorrect reference to an image in freemarker template before a demo Did not have sts up. That was a reason for a question.

      Thanks!

      Comment

      Working...
      X