History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1449
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Dave Casserly
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebWork

xwork configuration fails to configure when using net.sf.saxon.TransformerFactoryImpl as the javax.xml.transform.TransformerFactory

Created: 13/Apr/07 02:04 PM   Updated: 17/Nov/07 02:11 AM
Component/s: Configuration
Affects Version/s: 2.2.4
Fix Version/s: 2.2.7

Environment: Windows XP, jboss4.0.5, tried using webwork 2.2.4 and 2.2.5. Error occurs in both.


 Description  « Hide
This works fine using webwork 2.2.2, however i cant updgrade due to this error.

I set up a simple project with a 'HelloWorld' action, all works fine. Then on startup, i set this (which works fine in 2.2.2)

<code>
System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
</code>

and my action class wont run throwing this error:

<code>
13 Apr 07, 19:51:41 DEBUG [com.opensymphony.xwork.config.providers.XmlConfigurationProvider_84] Loading xwork configuration from: xwork.xml
13 Apr 07, 19:51:41 ERROR [com.opensymphony.webwork.dispatcher.DispatcherUtils_119] Could not find action
Class: net.sf.saxon.event.SerializerFactory
File: SerializerFactory.java
Method: getReceiver
Line: 154 - net/sf/saxon/event/SerializerFactory.java:154:-1
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:655)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:91)
        at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:85)
        at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:54)
        at com.opensymphony.xwork.DefaultActionProxy.<init>(DefaultActionProxy.java:60)
        at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46)
        at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:216)
        at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
        at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
Caused by: Unknown type of result: class javax.xml.transform.dom.DOMResult - Class: net.sf.saxon.event.SerializerFactory
File: SerializerFactory.java
Method: getReceiver
Line: 154 - net/sf/saxon/event/SerializerFactory.java:154:-1
        at com.opensymphony.xwork.util.DomHelper.parse(DomHelper.java:124)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:650)
        ... 27 more
Caused by: java.lang.IllegalArgumentException: Unknown type of result: class javax.xml.transform.dom.DOMResult
        at net.sf.saxon.event.SerializerFactory.getReceiver(SerializerFactory.java:154)
        at net.sf.saxon.IdentityTransformerHandler.startDocument(IdentityTransformerHandler.java:94)
        at com.opensymphony.xwork.util.DomHelper$DOMBuilder.startDocument(DomHelper.java:237)
        at com.opensymphony.xwork.util.location.LocationAttributes$Pipe.startDocument(LocationAttributes.java:306)
        at com.opensymphony.xwork.util.DomHelper$StartHandler.startDocument(DomHelper.java:296)
        at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at com.opensymphony.xwork.util.DomHelper.parse(DomHelper.java:122)
        ... 28 more
</code>


 All   Comments   Change History      Sort Order:
Claus Ibsen - [17/Apr/07 09:45 AM ]
What version of Saxon are you using?

tm_jee - [03/May/07 11:37 AM ]
Hi Claus,

Do you manage to reproduce this issue?

Hi Dave,

Can you attached a sample war file that reproduce this problem?

Cheers guys

Claus Ibsen - [05/May/07 02:40 AM ]
Toby, no I have not looked into this issue. Dave is the reported, and I think we need more information from him.

Dave Casserly - [08/May/07 04:36 PM ]
Hi,

Its saxon 8.7.

Im going to try version 2.6, and if this still doesnt work ill attach a sample .war file.

Thanks
Dave

tm_jee - [16/Oct/07 08:20 AM ]
Hi Dave,

Any new update on this? Is this still a problem?

cheers.

tm_jee - [17/Nov/07 02:11 AM ]
Hi Dave,

Closing this issue for the time being. Please feel free to reopen this if this issue persist, a sample webapp simulating the problem would be great.