House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Not instantiating object

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
02/09/2011 09:48 AM

I've inherited a project and am not familiar with the code.   When this line appears, I receive an error: <cfobject type="java" name="encryptObj" class="GenerateKey" action="create"> The error using cfcatch is: cfcatch.message: Object Instantiation Exception. cfcatch.detail: Class not found: GenerateKey I've set up a local server on my machine (IIS, CF7, Oracle) and the problem is occuring there.  On the development server, it's working fine.  Same files, so I assume it's a configuration problem.  Is it?  If so, is there something in CFAdministrator that I should be doing?  Am I maybe missing files? Thanks for any assistance. daniel

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
02/09/2011 09:54 AM

----- Excess quoted text cut - see Original Post for more ----- Yes, you're missing the Java class (or JAR file containing that class). Look in your Java classpaths (listed in CF Administrator) for something that you don't have on your local machine. If it's a single class, it would be named GenerateKey.class. If it's in a JAR file (more likely, I think) it could be named anything. I'm not in front of a CF server, so I can't list the usual suspects offhand, but you should be able to find it. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or on

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark A. Kruger
02/09/2011 09:57 AM

Dan, Look carefully at the jvm.config file on the dev server.... see what the classpath looks like. It is likely you are missing something there on your new set up - and hopefully its obvious :) Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com I've inherited a project and am not familiar with the code.   When this line appears, I receive an error: <cfobject type="java" name="encryptObj" class="GenerateKey" action="create"> The error using cfcatch is: cfcatch.message: Object Instantiation Exception. cfcatch.detail: Class not found: GenerateKey I've set up a local server on my machine (IIS, CF7, Oracle) and the problem is occuring there.  On the development server, it's working fine.  Same files, so I assume it's a configuration problem.  Is it?  If so, is there something in CFAdministrator that I should be doing?  Am I maybe missing files? Thanks for any assistance. daniel

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
02/09/2011 10:15 AM

okay, I found a directory of java files and GenerateKey.class is one of them. My local host is:C:/localServer/PERM and my java files are on the directory above, just like on the dev server.  So I just want to be sure, I reference them like this? C:/localServer/java Then I restart the Coldfusion services, right?  This is all a bit new to me. and thank y'all very much. daniel

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark A. Kruger
02/09/2011 10:24 AM

Dan, Post the whole class path of the dev (one that's working) and local... might be easier if we saw it. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com okay, I found a directory of java files and GenerateKey.class is one of them. My local host is:C:/localServer/PERM and my java files are on the directory above, just like on the dev server. So I just want to be sure, I reference them like this? C:/localServer/java Then I restart the Coldfusion services, right?  This is all a bit new to me. and thank y'all very much. daniel

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
02/09/2011 01:33 PM

>Dan, > >Post the whole class path of the dev (one that's working) and local... might >be easier if we saw it. I'm not sure how to post the path of the dev because it's mounted as a drive.  I have it as "F:\java" and the one on my local server is "C:/localServer/java". It's working, so I suppose it's fine.  I was just asking because I'd not done this before. I was wondering though, would enabling the java classes and setting a class path slow down the server at all?  Since I did it, page refreshes seem slower, but it may just be my imagination or some other variable. Thank y'all for your help.  It's been great.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
05/16/2012 11:05 AM

hi, same person here. I am trying to migrate this to another server.  However, I cannot read my old CF7 settings. I have a java folder with classes in it that are used by the project.  The java folder is at c:/java.  I recall that I need to update the Coldfusion Administrator so that these classes can be used.  However, I can not determine where I should update these.  I did this in the "mappings" section. My logical path is set to "/java" and my directory path is set to "c:/java".   I've been banging my head against this for at least two days.  Can someone please tell me how to get these classes working? thank you. daniel

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
05/16/2012 11:13 AM

it is probably easier if you justr put then in one of the existing paths rather than add a new one c:\coldfusion9\runtime\lib ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
05/16/2012 11:24 AM

>it is probably easier if you justr put then in one of the existing paths >rather than add a new one >c:\coldfusion9\runtime\lib I'll try that to get by, but I need to duplicate the production environment.   It's difficult to update these settings?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
05/16/2012 01:51 PM

> I have a java folder with classes in it that are used by the project.  The java folder is at c:/java.  I recall that I need to update the Coldfusion > Administrator so that these classes can be used.  However, I can not determine where I should update these.  I did this in the "mappings" > section. > My logical path is set to "/java" and my directory path is set to "c:/java". Java classes don't use or require mappings. They need to be specified in your JVM's CLASSPATH. If you're using CF Standard, you can add directories to the classpath in the "Java and JVM" menu of your CF Administrator. If you're using CF Enterprise, you may have to edit the jvm.config directly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ons

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
daniel kessler
05/17/2012 08:29 AM

ah that worked!  Thank you. And thanks everyone for your assistance. > Java classes don't use or require mappings. They need to be specified > in your JVM's CLASSPATH. If you're using CF Standard, you can add > directories to the classpath in the "Java and JVM" menu of your CF > Administrator. If you're using CF Enterprise, you may have to edit > the > jvm.config directly.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference