We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Cold Fusion and JSP -  jsp:include produces  ERROR 500

pietrzak asked
Medium Priority
Last Modified: 2013-12-24

This piece of code works
<jsp:include page="somepage.cfm" flush="true">

This piece of code returns a 500 error

<jsp:include page="somepage.jsp" flush="true">

In tomcat this works fine. I'd expect in Cold fusion 7 MX that it should work as well. Any idea what the problem is and how to fix it?.

Watch Question


I believe you need enterprise version to deal with .jsp pages, are you using this version.



I believe we are...but I will check, if not I will reward you the points. The thing is I  can interpret JSP pages just not jsp:include when including a ".jsp" page.


We are using enterprise edition


So can you just run the jsp by it'self does it work, ie browse to it.


Your JSP is most likely erroring.

Don't quote me on this, but I think :  <jsp:include page="somepage.cfm" flush="true"> is how you include a cfm page into a JSP page.

To include a JSP page in a CF page you need to use GetPageContext().include("somepage.jsp") within a cfscript block (<cfset GetPageContext().include("somepage.jsp")> might work too)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

heh heh - ditto.... I was literally just reading that page :)


I can run JSP pages within the cold fusion app server, meaning http://myserver.com/somepage.jsp works just fine, however when I try to include a jsp page within a jsp page I get an error.  

I do not want to include a cfm page from a jsp page, that works fine,

I also do not want to include a jsp from a cfm.  

I am trying something a little different in that I am using a hybrid site of jsp and cfm  combined together and I wanted to avoid making any conversion in the jsp pages that I currently run through tomcat (different server).  I was hoping that since coldfusion mx is on based on the J2EE I would be able to port my jsp over using cold fusion as the application server.  Everything else seems to work except for the jsp:include

any more thoughts?

CFMX has a cut down version of JRun under the hood, not a full version.  It may be that you need to be running a full java server with the J2EE version of CFMX on top of that in order to get full JSP functionality as well as CFML.


Mr. Nil
Not sure what to do, I guess I can give you partial points for that comment as I believe it to be true . Do you know how to set up the J2EE with CFMX on top of it. I tried changing the path to the JRE but that didn't work.

I'm not sure how to swap out  JRun. Any thoughts?

This is not correct, enterprise is full JRUN.

Plucka thats not entirely true.

If you do a standalone install of CFMX Ent.  you get a feature restricted version of JRun. (Although apparently JSP pages should still run under standalone install)
Something I hadn't realised, however, if you do a multi-server installation of CFMX 7 then you get the full version of JRun.  Previously with CFMX6 you had to purchase JRun and the J2EE version of CFMX, but I'm reliably informed that that changed with 6.1 (this is what I wasn't aware of)

pietrzak - A mate of mine with a full enterprise install of CFMX 7 did some tests for me.
He managed to get a jsp page to include another jsp page with no problems.  

He did say that he gets a 500 Translator.CompilationFailedExceptionCompiler error if he doesn't have a closing include tag </jsp:include>, but he also said that he would expect tomcat to throw the same error if you'd missed this closing tag.

Whats the full error that you get?  Can you show us a bit more code?


I'm away from all source code for about two weeks..I will post some as soon as I get back.. if it's as simple as not closing my include tag..I'm going to turn blue and run..but will award you all of the points prior to running

Thanks for looking into this.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.