Skip to main content
June 21, 2013
Question

CompilationFailedException consuming web services on CF10

  • June 21, 2013
  • 2 replies
  • 2763 views

I am trying to consume webservices on my CF 10 environment.  I keep getting a CompilationFailedException error looking for java/utils.  I have uninstalled CF, uninstalled the jdk, used the bundled jdk, reinstalled jdk 17.0_25 but to no avail.  I tried replacing C:\coldfusion10\cfusion\lib\tools.jar with the same file in the latest JDK as recommended on this forum on earlier releases encountering this error.

I have pasted the text from coldfusion-out.log but changed the name of the server with the wsdl.

Any direction is very appreciated.

Thanks

Jun 21, 2013 11:29:09 AM Information [ajp-bio-8012-exec-1] - Starting Web service request.

Jun 21, 2013 11:29:09 AM Information [ajp-bio-8012-exec-1] - Creating Web service proxy {url='https://serverdomain/rpc/soap-axis/confluenceservice-v2?wsdl'}

Jun 21, 2013 11:29:15 AM Information [ajp-bio-8012-exec-1] - Using Axis 1 for consuming the service https://serverdomain/rpc/soap-axis/confluenceservice-v2?wsdl.

Jun 21, 2013 11:29:16 AM Information [ajp-bio-8012-exec-1] - logAdmin Error: Application|coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler:  Found 2 system errors:  *** Error: Could not find package ""java/util"" in:                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\classes                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\cf-bootstrap-for-flex.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\cfmx_bootstrap.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\cfx.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\commons-beanutils-1.8.0.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\commons-collections-2.1.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\cryptojce.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\cryptojcommon.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\jcm.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\jcmFIPS.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\js.jar                 C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib\portlet-proxy.jar                 C:\ColdFusion10\cfusion....|

This topic has been closed for replies.

2 replies

Participant
August 20, 2014

It must have been something specific to the Dev server and some patch or setting.  I got a new box, installed CF10 and was able to consume web services.  I unfortunately have no idea what it was.

BKBK
Community Expert
Community Expert
June 22, 2013

It remains unclear why you chose to use the external JDK/JVM. Since you are in a position to reinstall, I would suggest that you do so. After that, let ColdFusion use its own built-in JVM.

However, let's assume you wish to use the external JDK. You mentioned copying the file, tools.jar, from the external JDK to ColdFusion's lib directory. However, it is unclear whether you had reconfigured ColdFusion beforehand to use the external JDK. You can either do that in the ColdFusion Administrator or, equivalently, by modifying the java.home option in the jvm.config file to something like

java.home=C:\\Program Files\\Java\\jdk1.7.0_25\\jre

June 25, 2013

Thank you.  I was hoping to resolve this without reinstalling.  I have done so several times since first encountering this issue.  updating the tools.jar was following resolution from a thread elsewhere where CompilationFailedException occurred with Error: Could not find package ""java/util"".

I upgraded to a newer JDK because of the recent hotfixes involved going to JDK 1.7 as JDK 1.6 was no longer supported by Oracle.

Here is my java.config.

#

# VM configuration

#

# Where to find JVM, if {java.home}/jre exists then that JVM is used

# if not then it must be the path to the JRE itself

#java.home=C:/ColdFusion10/jre

java.home=C:/ColdFusion10/jdk1.7.0_25/jre

application.home=C:\\ColdFusion10\\cfusion

#

# If no java.home is specified a VM is located by looking in these places in this

# order:

#

#  1) ../runtime/jre

#  2) registry (windows only)

#  3) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)

#  4) java.exe in path

#

# Arguments to VM

java.args=-server  -Xms512m -Xmx1024m -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dcoldfusion.classPath={application.home}/lib/updates,{application.home}/lib,{application.home}/lib/axis2,{application.home}/gateway/lib/,{application.home}/wwwroot/WEB-INF/flex/jars,{application.home}/wwwroot/WEB-INF/cfform/jars

# Comma separated list of shared library path

java.library.path={application.home}/lib,{application.home}/jintegra/bin,{application.home}/jintegra/bin/international,{application.home}/lib/oosdk/classes/win

java.class.path={application.home}/lib/oosdk/lib,{application.home}/lib/oosdk/classes

BKBK
Community Expert
Community Expert
June 26, 2013

Your JVM configuration file looks fine. The error message might be quite literal. If so, then it is telling you that compilation of a source file, very likely one of yours, failed. It tells you more. The source may be referring to "java/util" as a package, rather than to "java.util".