Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9252445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:56:47+00:00 2026-06-18T10:56:47+00:00

I have a problem, which only is an issue when my application is deployed

  • 0

I have a problem, which only is an issue when my application is deployed – there is no issue when developing.

I have 2 controlleres. One controller residing i a plugin which the second is extending. There exists a specific template in a view folder – /templates/_mytemplate.gsp in the “main” project -that is, not in the plugin.

The “common-controller” has a method for rendering various templates based on a string. And this is where the trouble starts. Using:

String summary = groovyPageRenderer.render(template: "/mycontroller/templates/_mytemplates.gsp", model: [foo: bar])

Works perfectly fine in development but when war-deployed, the string is empty. I have narrowed the problem down to be of resolveSearchPaths method in DefaultGroovyPageLocator [1] which differentiates the lookup path.

Anyone? What would be reasonable solution? Preferable the templates are not located in the plugin….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:56:48+00:00Added an answer on June 18, 2026 at 10:56 am

    Stupid stupid stupid!

    Developing on windows – deploying to Unix. So forgot a camelcase T <- which works on Windows not on Unix 🙂

    So to make it work:

    String summary = groovyPageRenderer.render(template: "/mycontroller/templates/_my**T**emplates.gsp", model: [foo: bar])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run into this problem. I have a textarea which I only want to
I'm developing an Eclipse plug-in and I have a problem which is reproduced here:
We have an application which is deployed to a WebSphere server running on UNIX,
We have an application which has been developed in PowerBuilder 9. The problem is
Issue:- I am developing a application which needs a new acceleration datum every 5
I have deployed my GWT application on a JBoss server, which is located on
I have a problem which I don't really know how to solve. I have
I have a problem which makes me crazy. I think it is very easy
I have a problem which requires a reversable 1:1 mapping of keys to values.
I have a problem which I cant seem to find answer to through searches

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.