You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Benjamin McCann (JIRA)" <ji...@apache.org> on 2011/02/10 06:47:57 UTC

[jira] Created: (WW-3572) JSON Plugin incompatible with Guice Plugin

JSON Plugin incompatible with Guice Plugin
------------------------------------------

                 Key: WW-3572
                 URL: https://issues.apache.org/jira/browse/WW-3572
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - JSON
    Affects Versions: 2.2.1
            Reporter: Benjamin McCann


If I install the JSON plugin I get errors in my project:
Caused by: Action class [com.benmccann.test.frontend.action.Home] does not have a public no-arg constructor - action - jar:file:/home/bmccann/workspace/test/build/libs/java/com/benmccann/test/frontend-deploy-1.0.jar!/struts.xml:9:65
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:425)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	... 17 more


Apparently the JSON plugin just tries to call a zero-arg constructor instead of using the object factory.  This occurs using version 3.0-rc2 of the Guice plugin (available in Maven: com.google.inject.extensions:guice-struts2:3.0-rc2)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (WW-3572) JSON Plugin incompatible with Guice Plugin

Posted by "Benjamin McCann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin McCann closed WW-3572.
-------------------------------

    Resolution: Cannot Reproduce

Hmm, it's working now.  I can't reproduce it, so I'll close it for now and reopen if it causes me trouble again.  Thanks.

> JSON Plugin incompatible with Guice Plugin
> ------------------------------------------
>
>                 Key: WW-3572
>                 URL: https://issues.apache.org/jira/browse/WW-3572
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.2.1
>            Reporter: Benjamin McCann
>
> If I install the JSON plugin I get errors in my project:
> Caused by: Action class [com.benmccann.test.frontend.action.Home] does not have a public no-arg constructor - action - jar:file:/home/bmccann/workspace/test/build/libs/java/com/benmccann/test/frontend-deploy-1.0.jar!/struts.xml:9:65
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:425)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
> 	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> 	... 17 more
> Apparently the JSON plugin just tries to call a zero-arg constructor instead of using the object factory.  This occurs using version 3.0-rc2 of the Guice plugin (available in Maven: com.google.inject.extensions:guice-struts2:3.0-rc2)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira