[ http://jira.codehaus.org/browse/XFIRE-721?page=comments#action_80235 ] Kevan Dunsmore commented on XFIRE-721: --------------------------------------
I did find the solution to this on my own system: as Tomasz says, there was more than one jar with the TransformerFactory implementation in the classpath. The application server was using one version and the application using another in some cases. It was all rather strange. To fix it I removed some xerces jars from my system. It looks like there's no fix-all solution to this. I can see how there will be incompatibility issues with XFire and any other system that uses jars that contain different versions of the same classes. > ClassCastException caused by 1.2.2 SchemaSerializer > --------------------------------------------------- > > Key: XFIRE-721 > URL: http://jira.codehaus.org/browse/XFIRE-721 > Project: XFire > Issue Type: Bug > Affects Versions: 1.2.2 > Reporter: Kevan Dunsmore > Assigned To: Tomasz Sztelak > > The SchemaSerializer class was introduced in the post RC candidate build: > > 1950 new annotated / raw | Lines: 53 ( +53, -0 ) > > Created: 2006-10-01 22:42:13 -0500 (18 days ago) | Author: dandiep | > > Changeset: 1950 > > Copied to: > > branches/xfire-1.2.2/xfire-core/src/main/org/codehaus/xfire/wsdl11/builder/SchemaSerializer.java > > 1961 > > Add our own SchemaSerializer because the WSDL4J one sucks. > This serializer causes the ClassCastException shown below: > java.lang.ClassCastException at > javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at > org.codehaus.xfire.wsdl11.builder.SchemaSerializer.writeXml(SchemaSerializer.java:46) > at > org.codehaus.xfire.wsdl11.builder.SchemaSerializer.marshall(SchemaSerializer.java:35) > at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown > Source) at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source) at > com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source) at > com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) at > com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) at > org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:172) > at > org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40) > at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104) > at > org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:377) > at > org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:126) > at > org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at > com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810) > at com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) > at com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) > at com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) > at com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) > at com.evermind[Oracle Application Server Containers for J2EE 10g > (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) > at java.lang.Thread.run(Thread.java:534) > When I replace the 1.2.2 XFire jar with the RC2 version my WSDL is generated. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
