Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2007



Tip: Looking for answers? Try searching our database.

GetPageContext fails on CF 7

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aqlong - 23 Aug 2007 21:55 GMT
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
Adam Cameron - 23 Aug 2007 22:35 GMT
> 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()?

Signature

Adam

aqlong - 24 Aug 2007 13:28 GMT
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
aqlong - 28 Aug 2007 19:32 GMT
:beer;

i moved the jar files to C:\CFusionMX7\wwwroot\WEB-INF\cfform\jars and it works
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.