struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3834) struts.oval.validateJPAAnnotations is never set after the constant is set to true in struts.xml
Date Fri, 01 Jun 2012 15:54:23 GMT

    [ https://issues.apache.org/jira/browse/WW-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287490#comment-13287490
] 

Lukman commented on WW-3834:
----------------------------

Hi i am having problems loading struts-default.xml

#|2012-06-01T16:52:23.409+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=39;_ThreadName=Thread-2;|WebModule[/struts2cdi]PWC1270:
Exception starting filter struts2
java.lang.InstantiationException
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4685)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5377)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2018)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
	at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
	at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
	at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
	at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
	at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:722)
Caused by: Unable to load configuration. - bean - jar:file:/home/codemaus/glassfish-3.1.2/glassfish/domains/domain1/applications/struts2cdi/WEB-INF/lib/struts2-core-2.3.5-SNAPSHOT.jar!/struts-default.xml:29:72
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
	... 41 more
Caused by: Unable to load configuration. - bean - jar:file:/home/codemaus/glassfish-3.1.2/glassfish/domains/domain1/applications/struts2cdi/WEB-INF/lib/struts2-core-2.3.5-SNAPSHOT.jar!/struts-default.xml:29:72
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
	... 45 more
Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean -
jar:file:/home/codemaus/glassfish-3.1.2/glassfish/domains/domain1/applications/struts2cdi/WEB-INF/lib/struts2-core-2.3.5-SNAPSHOT.jar!/struts-default.xml:29:72
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:244)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:210)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
	... 47 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already
been loaded by bean - jar:file:/home/codemaus/glassfish-3.1.2/glassfish/domains/domain1/applications/struts2cdi/WEB-INF/lib/struts2-core-2.3.5-20120601.123210-14.jar!/struts-default.xml:29:72
- bean - jar:file:/home/codemaus/glassfish-3.1.2/glassfish/domains/domain1/applications/struts2cdi/WEB-INF/lib/struts2-core-2.3.5-SNAPSHOT.jar!/struts-default.xml:29:72
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:228)
	... 50 more
|#]

[#|2012-06-01T16:52:23.420+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=39;_ThreadName=Thread-2;|WEB0671:
Loading application [struts2cdi] at [/struts2cdi]|#]

[#|2012-06-01T16:52:23.857+0100|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=39;_ThreadName=Thread-2;|struts2cdi
was successfully deployed in 20,085 milliseconds.|#]
                
> struts.oval.validateJPAAnnotations is never set after the constant is set to true in
struts.xml
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-3834
>                 URL: https://issues.apache.org/jira/browse/WW-3834
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - CDI, Plugin - OVal
>    Affects Versions: 2.3.4
>         Environment: Ubuntu 12.0, Glassfish, mysql 5.0
>            Reporter: Lukman
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.5
>
>         Attachments: strutscdi.zip
>
>
> I have my struts.xml as follows 
> {code:xml}
> <struts>
>     <constant name="struts.devMode" value="true"/>
>     <constant name="struts.oval.validateJPAAnnotations" value="true" />
>     
>     <package name="xxx" namespace="/xxx" extends="oval-default" >
>         
>         <default-action-ref name="allModels" />
>         <action name="allModels" class="com.bfs.action.ModelAction" method="findAll">
>             <result name="success">/model/models.jsp</result>
>         </action>
>         <action name="SetUpModel" method="setUpModel"  class="com.bfs.action.ModelAction">
>             <result name="success">/model/newmodel.jsp</result>
>         </action>
>         <action name="viewModel" method="findByModelid" class="com.bfs.action.ModelAction"
>
>             <result name="success" >/model/viewmodel.jsp</result>
>         </action>
>         <action name="*Model" class="com.bfs.action.ModelAction" method="{1}">
>             <interceptor-ref name="ovalValidationStack"/>
>             <result name="input">/model/newmodel.jsp</result>
>             <result type="redirectAction" name="success">allModels</result>
>         </action>
>     </package>
> </struts>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message