• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

GetPageContext fails on CF 7

Explorer ,
Aug 23, 2007 Aug 23, 2007

Copy link to clipboard

Copied

I have this bit of code that looks like this:
<cfscript>
GetPageContext().include("login.jsp?OPEID=#OPEID#&Role=#Role#&APURL=#APURL#&SSN=#SSN#");
</cfscript>

this works on CFMX6 and requires 2 jar files in C:\CFusionMX\wwwroot\WEB-INF\lib. I am building this new server and all settings are exactly the same. I even put the jar files in the MX7 path and restarted services but am now getting this error over and over.

java.lang.ClassCastException null <br>The error occurred on line 27.

this is the JSP code that's failing; the second line to be exact

SecurityToken token = null;
token = new SecurityToken();

any help is appreciated. i'm thinking there is some small setting in the new server that I'm overlooking but can't figure it out. thanks
TOPICS
Advanced techniques

Views

293

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Aug 28, 2007 Aug 28, 2007


i moved the jar files to C:\CFusionMX7\wwwroot\WEB-INF\cfform\jars and it works

Votes

Translate

Translate
LEGEND ,
Aug 23, 2007 Aug 23, 2007

Copy link to clipboard

Copied

> GetPageContext().include("login.jsp?OPEID=#OPEID#&Role=#Role#&APURL=#APURL#&SSN=
> #SSN#");

It surprises me that an INCLUDE would accept a file name with *URL
arguments*. An include is not a HTTP request, so what would one expect the
URL arguments to achieve?

Are you sure you're not thinking of getPageContext().forward()?

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 24, 2007 Aug 24, 2007

Copy link to clipboard

Copied

yes, i'm not really familiar with this tag to be honest as i "inherited" this code. but i am sure that I can't even load the jsp page by itself. it's dying when it tries token = new SecurityToken();

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 28, 2007 Aug 28, 2007

Copy link to clipboard

Copied

LATEST


i moved the jar files to C:\CFusionMX7\wwwroot\WEB-INF\cfform\jars and it works

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation