I am trying to call a complex web service from ColdFusion so
I built a wrapper class using the stubs i created with wsdl2java.
This works just fine when I run it from within Eclipse and I get a
response from the web service.
I then exported the whole thing as a jar and put it into
C:\CFusionMX7\wwwroot\WEB-INF\lib. Now when I call the .cfm to
instantiate the wrapper class with CreateObject, I get the
To build the wrapper class, I used the axis libraries that
came with ColdFusion 7 including the commons-logging-1.0.2.jar.
By googling I found out that I am not the only one having
this problem, but all the solutions posted online didn't help.
I played around with the classpath settings in web.xml and
jvm.config, but no luck. Even removing the commons-logging.jar in
C:\CFusionMX7\wwwroot\WEB-INF\cfform\jars didn't help. The technote
on this issue from Adobe doesn't help either.
When I remove all instances of commons-logging*.jar I see a
different reaction. But that also doesn't help me solve the puzzle.
I mean I compiled the wrapper class with the
commons-logging-1.0.2.jar and even ran it in Eclipse with this jar
just fine. Why doesn't it work within CF?
I'm sure someone solved this problem or has a workaround.
I'm not even sure this is a classpath problem anymore.
I looked at the commons-logging framework a little bit and it
seems that it wants to instantiate a LogFactory of some kind but it
gets the "wrong" one and fails.
Anyone with some more experience with the framework and
Well I "fixed" this by putting my jars into the main lib
directory (C:\CFusionMX7\lib). It works now and I can access the
web service from within CF. I will investigate some more on this
unless someone can shed some light on this issue.