|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Not instantiating object
I've inherited a project and am not familiar with the code.daniel kessler 02/09/11 09:48 A > I've inherited a project and am not familiar with the code.Dave Watts 02/09/11 09:54 A Dan,Mark A. Kruger 02/09/11 09:57 A okay, I found a directory of java files and GenerateKey.class is one of them.daniel kessler 02/09/11 10:15 A Dan,Mark A. Kruger 02/09/11 10:24 A >Dan,daniel kessler 02/09/11 01:33 P hi, same person here.daniel kessler 05/16/12 11:05 A it is probably easier if you justr put then in one of the existing pathsRuss Michaels 05/16/12 11:13 A >it is probably easier if you justr put then in one of the existing pathsdaniel kessler 05/16/12 11:24 A > 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 ColdfusionDave Watts 05/16/12 01:51 P ah that worked! Thank you.daniel kessler 05/17/12 08:29 A 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 ----- 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 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 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 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 >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. 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 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 ----- >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? > 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 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.
|
May 24, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||