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 8939977
In Process

The Archive Base Latest Questions

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

exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, images/jasper_tmp/); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, /images/jasper_tmp/); I’m using jasper report in a GWT project. My PROD

  • 0
exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, "images/jasper_tmp/");
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "/images/jasper_tmp/");

I’m using jasper report in a GWT project.
My PROD platform is TOMCAT 5.5 on Win2003.
I’ve tried on TOMCAT 7 / Windows 7 too.

These lines are called from the server side of the application in a servlet. So I cannot use static method from com.google.gwt.core.client.GWT.

It seems that my problem is similar as jasper reports with HTML Format

In DEV mode, in Eclipse, every things is ok. All images are display when I get my jasperreport in HTML.

In my PROD environment, it is a TOMCAT server, images in the jasper report are not display in HTML. On PROD server, exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, "images/jasper_tmp/"); generate images/jasper_tmp/ in %TOMCAT_HOME%, not in the deployment directory of my app.
On filesystem, I’ve %TOMCAT_HOME%/images/jasper_tmp/, I expect %TOMCAT_HOME%/webapps/my_project/images/jasper_tmp/.

How could I pass the images as parameters ? (if it is possible)… as suggested in the answer.
Do I need to install Apache Web Server to make any rewrite rule ? My PROD server have TOMCAT only.

Thanks.

  • 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-15T10:56:16+00:00Added an answer on June 15, 2026 at 10:56 am

    Please use Firefox with Firebug Plugin or Chrome with Chrome Dev Tool or IE8 Dev Tool to investigate whether its image path or css or javascript error and update the question with more details.

    Firebug – getfirebug.com

    Chrome – https://developers.google.com/chrome-developer-tools/docs/overview

    IE8 – http://blogs.msdn.com/b/ie/archive/2008/03/07/improved-productivity-through-internet-explorer-8-developer-tools.aspx

    1) You need not go for apache proxying with rewrite rules unless its performance requirement of serving static resources.

    2) You can tweak you image paths for DevMode and Production Mode with GWT.isProdModel , GWT.getHostPageBaseURL(), GWT.getModuleName() or getModuleBaseForStaticFiles()

    if (com.google.gwt.core.shared.GWT.isProdMode()){
     //Path Used in production mode
    } else {
     //Path Used in dev mode
    }
    

    Edit
    The above information helps on client side. On server side the Jetty server context path varies from you webapp deployment in server like tomcat. You can fix it to be same as tomcat by following the instructions mentioned here https://groups.google.com/d/topic/google-web-toolkit/a8OsRmMSaMg/discussion

    <?xml version="1.0"  encoding="UTF-8"?> 
    <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" 
    "http://jetty.mortbay.org/configure.dtd"> 
    <Configure class="org.mortbay.jetty.webapp.WebAppContext"> 
    
            <Set name="contextPath">/myapp</Set> 
    
    </Configure> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

request.getSession().setAttribute(IMAGES_MAP, imagesMap); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, + request.getContextPath() + //image?image=); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outStream); After
I am using the devexpress grid view in my project and also the exporter
Is there anything similar to the Spring JMX exporter out there WITHOUT using the
I have a Multimodule project like this: parent entities jibx-exporter I have configured jibx
Using the blender exporter packaged with Three.js I exported the .blend file from this
I've been struggling with passing Java objects from Java through JSNI (gwt-exporter generated) into
I am writing an xml exporter in ruby and I am using libxml package
Using MEF, from inside the exporter, is it possible to find out who is
I am writing a CSV exporter in Java that should respect the user's custom
I've exported a database (I need the data for a report) we have a

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.