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

Prasann Grampurohit commented on WW-4820:
-----------------------------------------

[~lukaszlenart] - Thanks, I think it might help others too.

> Parent package is not defined: json-default
> -------------------------------------------
>
>                 Key: WW-4820
>                 URL: https://issues.apache.org/jira/browse/WW-4820
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.5.10.1
>            Reporter: Prasann Grampurohit
>
> We are upgrading one of our project to Struts 2.5.10 and while doing this, I 
> see the below error when trying to launch the application. The jars added on 
> project are:
> ognl-3.1.12.jar
> struts2-core-2.5.10.1.jar
> struts2-json-plugin-2.5.10.1.jar
> struts2-spring-plugin-2.5.10.1.jar
> struts2-tiles-plugin-2.5.10.1.jar
> xwork-core-2.3.32.jar
> Could you please help identify the issue? Thank you.
> Exception trace:
> {color:#707070}2017-07-14 16:53:54,746 ERROR [io.undertow.request] (default 
> task-1) UT005023: Exception handling request to /member/: Unable to load 
> configuration. - [unknown location]
>     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:499)
>     at 
> org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75)
>     at 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63)
>     at 
> io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)
>     at 
> org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:84)
>     at 
> io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:97)
>     at 
> io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)
>     at io.undertow.servlet.core.ManagedFilter.getFilter(ManagedFilter.java:66)
>     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
>     at 
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
>     at 
> com.my.company.member.web.security.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:39)
>     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
>     at 
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
>     at 
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
>     at 
> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
>     at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
>     at 
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
>     at 
> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>     at 
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>     at 
> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>     at 
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>     at 
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>     at 
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
>     at 
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
>     at 
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
>     at 
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>     at 
> io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
>     at 
> io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
>     at 
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>     at 
> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>     at 
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>     at 
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>     at 
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)
>     at 
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)
>     at 
> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
>     at 
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)
>     at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
>     at 
> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:792)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: Unable to load configuration. - [unknown location]
>     at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
>     at 
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:906)
>     at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
>     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:486)
>     ... 40 more
> Caused by: Parent package is not defined: json-default - [unknown location]
>     at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:686)
>     at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:536)
>     at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:323)
>     at 
> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)
>     at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:189)
>     at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
>     ... 43 more{color}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to