Hello John,

        I had given the right to the file, but it then show the warning
please initializes the log4j system properly and after that connection
refused error. After that I had given all right in java.policy by this code.

grant {
        permission java.security.AllPermission;
        
};

Then application runs properly but the restriction given in the application
on stores remains not applicable. 

>From all this can I assume that application is not setting the system
property correctly which I set with -D in the command line parameter because
I am not giving correct format or correct values in the command line
parameter

"  Java -Dapp=engine -Dopenwfe.xml.encoding=ISO-8859-1
-Dlog4j.configuration=etc/engine/logging.xml -Djava.security.manager
-Djava.security.policy=etc/engine/engine-policy.conf
-Djava.security.auth.login.config=etc/engine/engine-login.conf
openwfe.org.Application etc\engine\engine-configuration.xml

 

            Java -Dapp=wfdserver -Dopenwfe.xml.encoding=ISO-8859-1
-Dlog4j.configuration=etc/wfdserver/logging.xml -Djava.security.manager
-Djava.security.policy= -Djava.security.auth.login.config=
openwfe.org.Application etc\wfdserver\wfdserver-configuration.xml

 

            Java -Dapp=worklist -Dopenwfe.xml.encoding=ISO-8859-1
-Dlog4j.configuration=etc/worklist/logging.xml -Djava.security.manager
-Djava.security.policy=etc/worklist/worklist-policy.conf
-Djava.security.auth.login.config=etc/worklist/worklist-login.conf
openwfe.org.Application etc\worklist\worklist-configuration.xml

 

            Java -Dapp=apre -Dopenwfe.xml.encoding=ISO-8859-1
-Dlog4j.configuration=etc/apre/logging.xml -Djava.security.manager
-Djava.security.policy= -Djava.security.auth.login.config=
openwfe.org.Application etc\apre\apre-configuration.xml"

     Or 


We have to set any permission in java.policy so that we can programmatically
set system property with -D in command line.


Thanks




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Mettraux
Sent: Tuesday, October 25, 2005 1:05 PM
To: [email protected]
Subject: Re: [OpenWFE-users] AccessControlException

On Tue, Oct 25, 2005 at 01:04:48PM +0530, Lalit wrote:
> Hello John,
> 
>       It is still showing an error after setting the java.policy in
> $JAVA_HOME/jre/lib/security/.
> 
> The error shown is.
> 
> Failed to launch application.
> 
> openwfe.org.app.ApplicationBuildingException: Failed to interpret
> configuration file
>
'file:/E:/eclipse/workspace/openwfe-allice/etc/engine/engine-configuration.x
> ml'
>       at
>
openwfe.org.app.XmlApplicationContextBuilder.doBuild(XmlApplicationContextBu
> ilder.java:162)
>       at
>
openwfe.org.app.XmlApplicationContextBuilder.build(XmlApplicationContextBuil
> der.java:129)
>       at
>
openwfe.org.app.XmlApplicationContextBuilder.build(XmlApplicationContextBuil
> der.java:117)
>       at
>
openwfe.org.app.XmlApplicationContextBuilder.build(XmlApplicationContextBuil
> der.java:96)
>       at openwfe.org.Application.main(Application.java:139)
> Caused by: org.jdom.input.JDOMParseException: Error on line 1 of document
>
file:/E:/eclipse/workspace/openwfe-allice/etc/engine/engine-configuration.xm
> l: access denied (java.io.FilePermission
> E:\eclipse\workspace\openwfe-allice\etc\engine\engine-configuration.xml
> read)

Your code should be given the right to read the mentioned file.


Best regards,

-- 
john.mettraux @ openwfe.org  -///-  http://www.openwfe.org


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

Reply via email to