river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <j...@zeus.net.au>
Subject Re: Urgent Request for help
Date Thu, 12 Feb 2015 20:58:48 GMT
I apologise for the example.

You have made progress however.

Modify the script further, add the following line, this will add some more information for
us to see why it's still failing.

    -Djava.security.debug=access:failure

and also the output from uname -a from the command line.

I had made the assumption that you're running this on a rasberry pi, but then I remembered
that java se embedded should be a later version of java.

----- Original message -----
> javHi Peter,
> 
> Still I am getting same error message even after changing the
> java-version from to jdk1.6.0_34, and changed the jrmp-reggie.sh as you
> suggest me in past email,
> 
> Error msg: Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission createSecurityManager)
> 
> Really tired of this error again and again, seems like I will not be able
> to run apache-river in my linux system.
> 
> Please suggest me, so that i can successfully run it in my system
> 
> Thank you in advance.
> 
> Regards
> 
> On Mon, Feb 9, 2015 at 5:10 PM, Peter Firmstone <jini@zeus.net.au> wrote:
> 
> > Hi Amit,
> > 
> > At line 24:
> > 
> > # Shell script to run Reggie
> > 
> > set -x
> > 
> > java -Djava.security.policy=config/start.policy       \
> > -Djava.ext.dirs=../../lib-ext/       \
> > -jar ../../lib/start.jar       \
> > config/start-reggie.config
> > 
> > 
> > Make the following changes :
> > 
> > # Shell script to run Reggie
> > 
> > set -x
> > 
> > java -Djava.security.manager=java.rmi.RMISecurityManager     \
> > -Djava.security.policy=config/start.policy       \
> > -Djava.rmi.server.useCodebaseOnly=false       \
> > -Djava.ext.dirs=../../lib-ext/       \
> > -jar ../../lib/start.jar       \
> > config/start-reggie.config
> > 
> > 
> > I can't promise you this will work, but it's worth trying.   The only
> > build tested and known to work on ARM is qa-refactor which is an
> > experimental unreleased build.   These are old examples, since Java 6,
> > it's best to define the security manager as above.
> > 
> > let me know how you fare.
> > 
> > Regards,
> > 
> > Peter.
> > 
> > 
> > On 9/02/2015 5:00 PM, amit batajoo wrote:
> > 
> > > hi peter
> > > 
> > > I am trying apache-river-2.2.2 in linux debian. I have successfully
> > > run the httpd.sh script but while i am trying to jrmp-reggie.sh I am
> > > getting give error, please help to solve this problem.
> > > 
> > > Command and error messgae is given below, please suggest me step by
> > > step and provide me files is i am missing any, or if you have some
> > > runnable open source code than please provide for sample example.
> > > 
> > > root@raspberrypi:/opt/jyaguchi/apache-river-2.2.2/examples/hello/scripts#
> > > ./jrmp-reggie.sh
> > > + java -Djava.security.policy=config/start.policy
> > > -Djava.ext.dirs=/opt/jyaguchi/apache-river-2.2.2/lib-ext/ -jar
> > > /opt/jyaguchi/apache-river-2.2.2/lib/start.jar
> > > config/start-reggie.config Exception in thread "main"
> > > java.lang.ExceptionInInitializerError at
> > > net.jini.config.ConfigurationProvider.getInstance(
> > > ConfigurationProvider.java:192) at
> > > net.jini.config.ConfigurationProvider.getInstance(
> > > ConfigurationProvider.java:137) at
> > > com.sun.jini.start.ServiceStarter.main( ServiceStarter.java:475)
> > > Caused by: java.security.AccessControlException: access denied
> > > ("java.lang.RuntimePermission" "createSecurityManager")
> > > at java.security.AccessControlContext.checkPermission(
> > > AccessControlContext.java:457)
> > > at java.security.AccessController.checkPermission(
> > > AccessController.java:884)
> > > at java.lang.SecurityManager.checkPermission(
> > > SecurityManager.java:549)
> > > at java.lang.SecurityManager.<init>(SecurityManager.java:299)
> > > at net.jini.security.Security$ClassContextAccess.<init>(
> > > Security.java:965)
> > > at net.jini.security.Security$ClassContextAccess.<init>(
> > > Security.java:965)
> > > at net.jini.security.Security$1.run(Security.java:167)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at net.jini.security.Security.<clinit>(Security.java:165)
> > > ... 3 more
> > > 
> > > 
> > > Thank you in advance
> > > 
> > > --
> > > Er. BATAJOO, Amit
> > > Researcher
> > > Wakkanai Hokusei Gakuen University
> > > Wakkanai, Hokkaido, Japan
> > > -----------------------------------------------------------------------
> > > Skype : abatajoo7
> > > E-Mail :batajooseamusu7@gmail.com <mailto:batajooseamusu7@gmail.com>,
> > > batajooamit@gmail.com <mailto:batajooamit@gmail.com>,
> > > bataj007amit@gmail.com <mailto:bataj007amit@gmail.com>
> > > 
> > 
> > 
> 
> 
> -- 
> Er. BATAJOO, Amit
> Researcher
> Wakkanai Hokusei Gakuen University
> Wakkanai, Hokkaido, Japan
> -----------------------------------------------------------------------
> Skype : abatajoo7
> E-Mail :batajooseamusu7@gmail.com,batajooamit@gmail.com,
> bataj007amit@gmail.com


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