struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurizio Cucchiara (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3741) Caught Exception while registering Interceptor class org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor - interceptor - jar:file:/tmp0/wtpwebapps/pr
Date Sun, 08 Jan 2012 09:56:39 GMT

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

Maurizio Cucchiara commented on WW-3741:
----------------------------------------

I don't think that the second doctype is a workaround, rather I would call it the right way
to define it.
Conversely, the first one mixes the OS formal public identifier with Struts URL.

                
> Caught Exception while registering Interceptor class org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor
- interceptor - jar:file:/tmp0/wtpwebapps/pr
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3741
>                 URL: https://issues.apache.org/jira/browse/WW-3741
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.1.1
>         Environment: Tomcat 5.5.33 , windows 7
>            Reporter: kesava
>
> steps to reproduce:
> ================
> 1.Enable security manager
> 2.Upgraded struts lib 2.3.1.1
> 3.Start the web app.
> Caught Exception while registering Interceptor class org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor
- interceptor - jar:file:/C:/Users/kpallaka/workspace-main-4.4/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/lib/struts2-core-2.3.1.1.jar!/struts-default.xml:148:127
> 	at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:213)
> 	at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1035)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:852)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:865)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:888)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:278)
> 	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
> 	at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:195)
> 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
> 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
> 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
> 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:485)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:521)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521)
> 	at com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(ObjectFactory.java:138)
> 	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:177)
> 	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:154)
> 	at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)
> 	at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:191)
> 	... 31 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
> 	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:462)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:477)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:34)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)
> 	... 41 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:495)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530)
> 	at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
> 	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)
> 	... 46 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:492)
> 	... 51 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
> 	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:462)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:477)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:34)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)
> 	... 53 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:495)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530)
> 	at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
> 	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)
> 	... 58 more
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:440)
> 	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:492)
> 	... 63 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:419)
> 	... 64 more
> Caused by: access denied (java.net.SocketPermission struts.apache.org:80 connect,resolve)
- Class: java.security.AccessControlContext
> File: AccessControlContext.java
> Method: checkPermission
> Line: 374 - java/security/AccessControlContext.java:374:-1
> 	at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
> 	at com.opensymphony.xwork2.validator.DefaultValidatorFileParser.parseValidatorDefinitions(DefaultValidatorFileParser.java:117)
> 	at com.opensymphony.xwork2.validator.DefaultValidatorFactory.retrieveValidatorConfiguration(DefaultValidatorFactory.java:195)
> 	at com.opensymphony.xwork2.validator.DefaultValidatorFactory.parseValidators(DefaultValidatorFactory.java:184)
> 	at com.opensymphony.xwork2.validator.DefaultValidatorFactory.<init>(DefaultValidatorFactory.java:55)
> 	... 69 more
> Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission
struts.apache.org:80 connect,resolve)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
> 	at java.security.AccessController.checkPermission(AccessController.java:546)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:528)
> 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:307)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:324)
> 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
> 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
> 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
> 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
> 	at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
> 	at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
> 	at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
> 	at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)
> 	... 73 more

--
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