Dear all,

I was trying my first jasperreport. But I am facing problem. I tried this both in Windows 7 and XP virtual OS. I tried with both Internet Explorer and Chrome browsers. But I could not find a solution.

As instructed in the tutorial I have given the following address in the web page. But I am getting the Internal Server Error message and no report is run.

As instructed, I created a directory c:\reports\ and placed in it the file employeesOfDepartments.jasper which was downloaded from your site.

My web.xml has the following parameter set:

<context-param> <param-name>fileDirectory</param-name> <param-value>c:\reports\</param-value> </context-param>*

My tomcat log file shows the

` Dec 23, 2013 1:00:57 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet JasperReportsServlet threw exception @c:\reports\@employeesOfDepartments.jasper (The filename, directory name, or volume label syntax is incorrect)

at Method)
at<init>(Unknown Source)
at co.gerger.bdf.view.JasperReportsServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(

Your kind solution is highly appreciated. Kindly treat this little urgent.


asked 23 Dec '13, 04:44

grajan777's gravatar image

accept rate: 10%

What version of Jasper report are you using?

(23 Dec '13, 05:00) Yalim Gerger ♦♦

version 4.6. I have downloaded the compiled file from your site only and did not even open it or re-compiled it.


(23 Dec '13, 05:05) grajan777

Hi all,

The issue is now solved. The mistake was enclosing the directory name within the delimiter @ symbol. The web.xml had this directory name enclosed within @ symbol and I used the same format. This was a mistake.

Therefore the parameter


was replace with


and everything is OK now.

Thanks and regards.



answered 23 Dec '13, 13:07

grajan777's gravatar image

accept rate: 10%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 23 Dec '13, 04:44

Seen: 2,899 times

Last updated: 23 Dec '13, 13:07

© Copyright Gerger 2017