File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes [Stripes] deployed application doesn't start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "[Stripes] deployed application doesn Watch "[Stripes] deployed application doesn New topic
Author

[Stripes] deployed application doesn't start

Gabriele Fabbri
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Hi,

I tried deploying my Stipes test application on the remote server (I'm the owner of the remote machine), but the application doesn't start.
Looking at the stack trace in the Tomcat log it seems to be a problem related with some privileges and permission.

This is the stack trace:

SEVERE: Exception starting filter StripesFilter
net.sourceforge.stripes.exception.StripesRuntimeException: Problem instantiating default configuration objects.

at net.sourceforge.stripes.config.DefaultConfiguration.init(DefaultConfiguration.java:220)
at net.sourceforge.stripes.config.RuntimeConfiguration.init(RuntimeConfiguration.java:272)
at net.sourceforge.stripes.controller.StripesFilter.init(StripesFilter.java:125)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:177)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
at java.lang.Class.checkMemberAccess(Class.java:2157)
at java.lang.Class.getDeclaredMethods(Class.java:1790)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.processMethods(AnnotatedClassActionResolver.java:218)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.processMethods(AnnotatedClassActionResolver.java:215)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.processMethods(AnnotatedClassActionResolver.java:215)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.processMethods(AnnotatedClassActionResolver.java:215)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.addActionBean(AnnotatedClassActionResolver.java:146)
at net.sourceforge.stripes.controller.AnnotatedClassActionResolver.init(AnnotatedClassActionResolver.java:116)
at net.sourceforge.stripes.controller.NameBasedActionResolver.init(NameBasedActionResolver.java:125)
at net.sourceforge.stripes.config.DefaultConfiguration.init(DefaultConfiguration.java:121)


Do you have any idea how to solve this?
The only difference between the local and the remote environment is the Tomcat version: 6 local, 5.5 remote.

Thanks,
Gabriele Fabbri


OverZero Software
[url]www.overzero.it[/url]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41132
    
  45
Sounds like the remote machine is running with a more restrictive SecurityManager than your local machine. Is that maybe a machine that came pre-configured at a hosting provider?


Ping & DNS - my free Android networking tools app
Gabriele Fabbri
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Ulf Dittmer wrote:Sounds like the remote machine is running with a more restrictive SecurityManager than your local machine. Is that maybe a machine that came pre-configured at a hosting provider?


Hi Ulf,
thank you for your reply.

I'm the owner of the remote server, and Tomcat has been installed and configured by my systemist, but he is not [yet] expert about Tomcat.
Could you give me some advice on how to change this too restrictive configuration?

Many thanks,
Gabriele Fabbri
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41132
    
  45
It depends on how Tomcat is started. I think the default is to run without a SecurityManager, but if the "-security" switch is used (see the TOMCAT_HOME/bin/catalina.sh script) then there will be one. Its behavior is governed by the TOMCAT_HOME/conf/catalina.policy file. Luckily, the error message says specifically which RuntimePermission is missing.
Gabriele Fabbri
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Ok.

Thank you very much Ulf, I will check this issue!

Gabriele Fabbri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Stripes] deployed application doesn't start
 
Similar Threads
struts2 error
Eclipse Tomcat plugin problem
ExceptionInInitializerError in Axis 1.1 with Tomcat 5.0.27
Server error...
Error Starting Filter Struts 2