struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Espinosa" <pcexplo...@adinet.com.uy>
Subject Problem loading struts configuration in a shared web hosting
Date Tue, 17 Oct 2006 12:33:03 GMT
Hi to all, I have a question about struts2. Im making test with struts2 in
shared web hosting (www.futurepoint.com).
I test the blank application that is in the struts2 distribution in a local
tomcat (mine pc) and all work ok, but when i upload
the war to the webhosting i get errro copied at the end of this email.
 
access denied (java.io.FilePermission
C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied
ades.com\Nilo\WEB-INF\classes\struts.xml read) 
 
It says that i have no access to the Program  Files directory, but i dont
know why struts or the blank application is trying to access
this directory.
 
If somebody could help me i will be very grateful.
 
Pd:sorry for my poor english.
 
Regards,
 
    Juan Espinosa
    Montevideo - Uruguay
 
Struts has detected an unhandled exception: 

Messages:	 
1.	access denied (java.io.FilePermission
C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied
ades.com\Nilo\WEB-INF\classes\struts.xml read) 

2.	Caught exception while loading file struts.xml 

3.	


	Stacktraces

	Caught exception while loading file struts.xml - [unknown location] 
	
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
urationFiles(XmlConfigurationProvider.java:698)

 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo
nfigurationProvider.java:120)

 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:87)

 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:46)

 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav
a:223)

    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    java.lang.reflect.Method.invoke(Unknown Source)

    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)

    java.security.AccessController.doPrivileged(Native Method)

    javax.security.auth.Subject.doAsPrivileged(Unknown Source)

    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:271)

 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21
3)

 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:183)

 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:50)

 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:140)

    java.security.AccessController.doPrivileged(Native Method)

 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:136)

 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)

    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)

    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)

 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)

    org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)

 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

    java.lang.Thread.run(Unknown Source)

    
	java.security.AccessControlException: access denied
(java.io.FilePermission
C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied
ades.com\Nilo\WEB-INF\classes\struts.xml read) 
	    java.security.AccessControlContext.checkPermission(Unknown
Source)

    java.security.AccessController.checkPermission(Unknown Source)

    java.lang.SecurityManager.checkPermission(Unknown Source)

    java.lang.SecurityManager.checkRead(Unknown Source)

    java.io.File.exists(Unknown Source)

    com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:102)

 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
urationFiles(XmlConfigurationProvider.java:683)

 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo
nfigurationProvider.java:120)

 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:87)

 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:46)

 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav
a:223)

    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    java.lang.reflect.Method.invoke(Unknown Source)

    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)

    java.security.AccessController.doPrivileged(Native Method)

    javax.security.auth.Subject.doAsPrivileged(Unknown Source)

    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:271)

 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21
3)

 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:183)

 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:50)

 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:140)

    java.security.AccessController.doPrivileged(Native Method)

 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:136)

 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)

    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)

    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)

 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)

    org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)

 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

    java.lang.Thread.run(Unknown Source)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message