1 Replies - 9998 Views - Last Post: 13 February 2009 - 06:50 AM Rate Topic: -----

#1 banduskank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-February 09

Coldfusion java.lang.NoClassDefFoundError: Could not initialize class

Posted 12 February 2009 - 11:06 PM

I have crated CFX for java and register in coldfusion. I put the class file in wwwrot/WEB-INF/classes folder. This java class file depends on xalen.jar file. I also put the xalen.jar file in wwwroot/WEB-INF/lib folder. I called this CFX tag in CFM and I am getting following error.

java.lang.NoClassDefFoundError: Could not initialize class Encrypter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at coldfusion.tagext.CfxTag.doStartTag(CfxTag.java:88)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2644)
at cftestGrid2ecfm863085754.runPage(D:\EASY CARE\Easy Care Sustainment Dec\CF8Practice\bandu\customGrid\testGrid.cfm:24)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
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.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Can any one help me.

Is This A Good Question/Topic? 0
  • +

Replies To: Coldfusion java.lang.NoClassDefFoundError: Could not initialize class

#2 sansclue  Icon User is offline

  • D.I.C Regular

Reputation: 29
  • View blog
  • Posts: 316
  • Joined: 21-November 07

Re: Coldfusion java.lang.NoClassDefFoundError: Could not initialize class

Posted 13 February 2009 - 06:50 AM

View Postbanduskank, on 12 Feb, 2009 - 10:06 PM, said:

I have crated CFX for java and register in coldfusion. I put the class file in wwwrot/WEB-INF/classes folder. This java class file depends on xalen.jar file. I also put the xalen.jar file in wwwroot/WEB-INF/lib folder. I called this CFX tag in CFM and I am getting following error.

java.lang.NoClassDefFoundError: Could not initialize class Encrypter


Did you restart the CF server after adding the xalen.jar? ColdFusion will not recognize the jar until you restart.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1