Well, just a shot in dark, did you try restarting CF after adding the jar file? Or just do a restart and see if that helps.
Thanks, <Ajas Mohammed /> iUseDropbox(http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Thu, Oct 31, 2013 at 11:19 AM, <[email protected]> wrote: > I do not think it is a typo. > > Looking at Path Via CFAdmin it shows: > > " > :opt/coldfusion10/cfusion/lib/updates/chf10000011.jar: > :opt/coldfusion10/cfusion/lib/pdflib.jar: > :opt/coldfusion10/cfusion/lib/dpHibernate.jar: > > " > > In this way. The file is in the directory > /opt/coldfusion10/cfusion/lib/(myjavacode).jar > > Thanks for asking, I know how these little details can mean the whole > thing not to be working. This is the outside in looking that I am hoping > to get this little issue corrected. > > > On Thursday, October 31, 2013 11:07:45 AM UTC-4, Billy Cravens wrote: > >> You list the path as :opt/coldfusion10/cfusion/lib/ >> >> Is the lack of leading slash a typo? >> >> >> >> Billy Cravens >> [email protected] >> >> >> >> On Oct 31, 2013, at 8:57 AM, [email protected] wrote: >> >> Group. >> >> New to Group but CF coder for years. (who cares) >> >> Situation is we have code that works on all our clients that it is >> installed on. We installed new server for one client on Red Hat 6 >> ColdFusion 10. >> >> All site has been working BUT this one older company_pdf.jar issue. >> >> Code goes like this.... >> >> l_pdf = CreateCFC("forms","inq_app_**pdf"); >> l_pdf.render_pdf( l_dflt_id, PDFPATH, WEB_ERROR_EMAILS, ADMIN_EMAIL, ""); >> >> >> <! --- CreateCFC ---> >> <cffunction name="CreateCFC" access="public" returntype="any" >> output="false" hint="Creates a CFC Creation proxy. Does NOT initialize the >> component, only creates it."> >> <!--- Define arguments. ---> >> <cfargument name="Path" type="string" required="true" /> >> <cfargument name="cfcname" type="string" required="true" /> >> <!--- Return the created component. ---> >> <cfreturn CreateObject("component",(**ARGUMENTS.Path & "." & >> ARGUMENTS.cfcname))/> >> </cffunction> >> >> that all works....assuming >> >> <! --- inq_app_pdf.cfc ---> >> <CFCOMPONENT displayname = "Application PDF Object" extends="co_lib"> >> <CFFUNCTION name="render_pdf" output="true" returntype="string" >> displayname="A Test Function"> >> ... >> set lpath = (location on server) >> this.PDF_Initialize (l_path,""); >> >> </cffunction> >> ... >> </CFCOMPONENT> >> >> <!--- co_lib.cfc ---> >> <CFCOMPONENT displayname = "Test Component"> >> ... >> <CFFUNCTION name="PDF_Initialize" output="false" returntype="void" >> displayname="PDFLib Initialize Method"> >> <CFARGUMENT name="p_file_name" required="true"> >> <CFARGUMENT name="p_pdflibserial" required="false"> >> <CFSCRIPT> >> this.oPDF = createObject("java", "com.co.itext.pdf_writer.** >> pdfLibReplace").init(); >> this.show_box = false; >> this.oPDF.open_file(p_file_**name); >> </CFSCRIPT> >> </CFFUNCTION> >> >> ... >> </CFCOMPONENT> >> >> >> ERROR IS: >> >> Object Instantiation Exception. >> Class not found: com.co.itext.pdf_writer.**pdfLibReplace >> >> The JAR file is located in :opt/coldfusion10/cfusion/lib/ path and is in >> the "CF Server Java Class Path " when I look at it via the CF Admin. >> >> All of this exact same code works on Windows and Linux (older) sites. >> >> I keep going back to permissions on JAR or perhaps a references Class >> within JAR ? Not sure. Source code for JAR does not exists working on >> decompiling to see if that helps. >> >> Any Suggestions PLEASE. I have nothing else to go with here. Don't want >> to re-write it since it works on other servers and locations...... >> >> Please, Please. >> >> Let me know what else may be helpful...... >> >> Stack Trace >> at cfco_lib2ecfc963610666$**funcPDF_INITIALIZE.** >> runFunction(/var/www/html/**prod/cfcs/forms/co_lib.cfc:40)** >> at cfinq_app_pdf2ecfc740122486$**funcRENDER_PDF.runFunction(/** >> var/www/html/prod/cfcs/forms/**inq_app_pdf.cfc:200) >> at cfinq_app_screen_**finished22ecfm913491559._** >> factor11(/var/www/html/prod/**forms/gen_cf/inq_app_screen_** >> finished2.cfm:37) >> at cfinq_app_screen_**finished22ecfm913491559.** >> runPage(/var/www/html/prod/**forms/gen_cf/inq_app_screen_** >> finished2.cfm:1) >> >> >> java.lang.**ClassNotFoundException: com.co.itext.pdf_writer.** >> pdfLibReplace >> at coldfusion.bootstrap.**BootstrapClassLoader.**loadClass(** >> BootstrapClassLoader.java:235) >> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**247) >> at coldfusion.runtime.java.**JavaProxyFactory.getProxy(** >> JavaProxyFactory.java:121) >> at coldfusion.runtime.**ProxyFactory.getProxy(**ProxyFactory.java:65) >> at coldfusion.runtime.CFPage.**createObjectProxy(CFPage.java:**5757) >> at coldfusion.tagext.lang.**ObjectTag.doStartTag(**ObjectTag.java:441) >> at coldfusion.runtime.CfJspPage._**emptyTcfTag(CfJspPage.java:**2799) >> at cfcspec_lib2ecfc963610666$**funcPDF_INITIALIZE.** >> runFunction(/var/www/html/**prod/cfcs/forms/cspec_lib.cfc:**40) >> at coldfusion.runtime.UDFMethod.**invoke(UDFMethod.java:472) >> at coldfusion.filter.**SilentFilter.invoke(**SilentFilter.java:47) >> at coldfusion.runtime.UDFMethod$**ReturnTypeFilter.invoke(** >> UDFMethod.java:405) >> at coldfusion.runtime.UDFMethod$**ArgumentCollectionFilter.** >> invoke(UDFMethod.java:368) >> at coldfusion.filter.**FunctionAccessFilter.invoke(** >> FunctionAccessFilter.java:55) >> at coldfusion.runtime.UDFMethod.**runFilterChain(UDFMethod.java:**321) >> at coldfusion.runtime.UDFMethod.**invoke(UDFMethod.java:220) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:655) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:444) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:414) >> at coldfusion.runtime.CfJspPage._**invoke(CfJspPage.java:2432) >> at cfinq_app_pdf2ecfc740122486$**funcRENDER_PDF.runFunction(/** >> var/www/html/prod/cfcs/forms/**inq_app_pdf.cfc:200) >> at coldfusion.runtime.UDFMethod.**invoke(UDFMethod.java:472) >> at coldfusion.runtime.UDFMethod$**ReturnTypeFilter.invoke(** >> UDFMethod.java:405) >> at coldfusion.runtime.UDFMethod$**ArgumentCollectionFilter.** >> invoke(UDFMethod.java:368) >> at coldfusion.filter.**FunctionAccessFilter.invoke(** >> FunctionAccessFilter.java:55) >> at coldfusion.runtime.UDFMethod.**runFilterChain(UDFMethod.java:**321) >> at coldfusion.runtime.UDFMethod.**invoke(UDFMethod.java:220) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:655) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:444) >> at coldfusion.runtime.**TemplateProxy.invoke(**TemplateProxy.java:414) >> at coldfusion.runtime.CfJspPage._**invoke(CfJspPage.java:2432) >> at cfinq_app_screen_**finished22ecfm913491559._** >> factor11(/var/www/html/prod/**forms/gen_cf/inq_app_screen_** >> finished2.cfm:37) >> at cfinq_app_screen_**finished22ecfm913491559.** >> runPage(/var/www/html/prod/**forms/gen_cf/inq_app_screen_** >> finished2.cfm:1) >> at coldfusion.runtime.CfJspPage.**invoke(CfJspPage.java:244) >> at coldfusion.tagext.lang.**IncludeTag.doStartTag(**IncludeTag.java:444) >> at coldfusion.filter.**CfincludeFilter.invoke(**CfincludeFilter.java:65) >> at coldfusion.filter.IpFilter.**invoke(IpFilter.java:64) >> at coldfusion.filter.**ApplicationFilter.invoke(** >> ApplicationFilter.java:449) >> at coldfusion.filter.**RequestMonitorFilter.invoke(** >> RequestMonitorFilter.java:48) >> at coldfusion.filter.**MonitoringFilter.invoke(** >> MonitoringFilter.java:40) >> at coldfusion.filter.PathFilter.**invoke(PathFilter.java:112) >> at coldfusion.filter.**ExceptionFilter.invoke(**ExceptionFilter.java:94) >> at coldfusion.filter.**BrowserDebugFilter.invoke(** >> BrowserDebugFilter.java:79) >> at coldfusion.filter.**ClientScopePersistenceFilter.**invoke(** >> ClientScopePersistenceFilter.**java:28) >> at coldfusion.filter.**BrowserFilter.invoke(**BrowserFilter.java:38) >> at coldfusion.filter.**NoCacheFilter.invoke(**NoCacheFilter.java:46) >> at coldfusion.filter.**GlobalsFilter.invoke(**GlobalsFilter.java:38) >> at coldfusion.filter.**DatasourceFilter.invoke(** >> DatasourceFilter.java:22) >> at coldfusion.filter.**CachingFilter.invoke(**CachingFilter.java:62) >> at coldfusion.CfmServlet.service(**CfmServlet.java:219) >> at coldfusion.bootstrap.**BootstrapServlet.service(** >> BootstrapServlet.java:89) >> at org.apache.catalina.core.**ApplicationFilterChain.**internalDoFilter( >> **ApplicationFilterChain.java:**305) >> at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(** >> ApplicationFilterChain.java:**210) >> at coldfusion.monitor.event.**MonitoringServletFilter.**doFilter(** >> MonitoringServletFilter.java:**42) >> at coldfusion.bootstrap.**BootstrapFilter.doFilter(** >> BootstrapFilter.java:46) >> at org.apache.catalina.core.**ApplicationFilterChain.**internalDoFilter( >> **ApplicationFilterChain.java:**243) >> at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(** >> ApplicationFilterChain.java:**210) >> at org.apache.catalina.core.**StandardWrapperValve.invoke(** >> StandardWrapperValve.java:224) >> at org.apache.catalina.core.**StandardContextValve.invoke(** >> StandardContextValve.java:169) >> at org.apache.catalina.**authenticator.**AuthenticatorBase.invoke(** >> AuthenticatorBase.java:472) >> at org.apache.catalina.core.**StandardHostValve.invoke(** >> StandardHostValve.java:168) >> at org.apache.catalina.valves.**ErrorReportValve.invoke(** >> ErrorReportValve.java:98) >> at org.apache.catalina.valves.**AccessLogValve.invoke(** >> AccessLogValve.java:928) >> at org.apache.catalina.core.**StandardEngineValve.invoke(** >> StandardEngineValve.java:118) >> at org.apache.catalina.connector.**CoyoteAdapter.service(** >> CoyoteAdapter.java:414) >> at org.apache.coyote.ajp.**AjpProcessor.process(**AjpProcessor.java:204) >> at org.apache.coyote.**AbstractProtocol$**AbstractConnectionHandler.** >> process(AbstractProtocol.java:**539) >> at org.apache.tomcat.util.net.**JIoEndpoint$SocketProcessor.** >> run(JIoEndpoint.java:298) >> at java.util.concurrent.**ThreadPoolExecutor$Worker.** >> runTask(ThreadPoolExecutor.**java:886) >> at java.util.concurrent.**ThreadPoolExecutor$Worker.run(** >> ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.**java:662) >> >> >> >> -- >> -- >> You received this message because you are subscribed to the "Houston >> ColdFusion Users' Group" discussion list. >> To unsubscribe, send email to houcfug-u...@**googlegroups.com >> >> For more options, visit >> http://groups.google.com/**group/houcfug?hl=en<http://groups.google.com/group/houcfug?hl=en> >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Houston ColdFusion Users' Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to houcfug+u...@**googlegroups.com. >> >> For more options, visit >> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >> . >> >> >> -- > -- > You received this message because you are subscribed to the "Houston > ColdFusion Users' Group" discussion list. > To unsubscribe, send email to [email protected] > For more options, visit http://groups.google.com/group/houcfug?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Houston ColdFusion Users' Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en --- You received this message because you are subscribed to the Google Groups "Houston ColdFusion Users' Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
