Which version of GF are you using?
I would assume there is some other entry in the server.policy file that
is granting the necessary permissions.
What is the full path to:
1. asadmin
2. your spring.jar
My guess is that you put spring.jar in the installRoot, not the
instanceRoot.
thanks,
vbk
Tang Yong wrote:
> Hi Kraemer,
>
> I am sorry for interupting your work again.
>
> According your reply, I do some investigating on the 'SM' and try the spring web sample again.
>
> The result is as following:
> 1 Because my GF's profile is cluster(not enterprise profile), by default, 'SM' is disabled.
> So, I turned on the 'SM' by means of "asadmin create-jvm-options --user admin -Djava.security.manager",
> Then, I restarted the GF. (The above config info is from "GF Enterprise Server 2.1 Developer's Guide".
> 2 I redeployed the spring web sample.
> 3 Running is still well.
>
> Although the result displayed that Kraemer's "Probably", I have a problem related the result:
>
> When I have seen the server.policy file, I did not find the sentence related "grant codeBase "file:${com.sun.aas.instanceRoot}/lib/-" {
> permission java.security.AllPermission;
> };"
> BTW: my spring.jar is placed in the "${com.sun.aas.instanceRoot}/lib/" which is valid for the whole domain.
>
> So, I want to know why spring.jar has been granted?
>
> Regard!
>
> --Mike Tang.
>
>
>
>> Response in-line, below....
>>
>> vbk
>>
>> Tang Yong wrote:
>>
>>> Hi Kraemer,
>>>
>>> Thanks for your reply, and I indeedly expected your reply.
>>>
>>> Your explaination is very detailed and I have knowed a lot.
>>>
>>> However, due to my poor English, I want to confirm my understanding with you:
>>>
>>> 1 Whether or not glassfish version changed, if I turn on the 'SM', I will run into
>>> the similar issues related 'SM'.
>>> (BTW: I will try it.)
>>>
>>>
>> I can only say, "Probably". I haven't tried it for a long time (in terms
>> of software 'years')
>>
>>
>>> 2 For current glassfish version, 'SM' is disabled by default.
>>>
>>>
>> Yes.
>>
>>
>>> Kraemer, I have a suggestion:
>>> Although the blog is not a formal document, I (we) still believe/respect the sun's blog.(:).
>>> However, I wish that to some blog's content, you/experts can update the content a litter.
>>> Even adding some more valuable materials.
>>>
>>>
>> Hmm... I have to disagree with you on this... Blogs are 'stuff I
>> learned... that I am sharing with you'. The power of a blog comes from
>> others (like yourself) doing the same.. learning something and then
>> sharing it, via a blog (or e-mail list or social network or...)
>>
>> You see, I WAS an expert on this topic... at that time... since I was
>> working on it actively. At this point, you are the expert... not me...
>> since YOU are working actively in this area.
>>
>> By sharing what you know, NOW, you will spur others to make their own
>> discoveries and publish them... to the benefit of all of us.
>>
>> vbk
>>
>>
>>> In addition, Spring on GF is an important topic, if you know the weblogic ejb container implementation(using pitchfork).
>>> Because Spring on GF may be let us make more valuable decisions in designing mission-critical enterprise app.
>>>
>>> Thanks again!
>>>
>>> Best Regard!
>>>
>>> --Mike Tang, MiddleWare Developer,From Fujitsu China
>>>
>>>
>>>
>>>
>>>> Hi Mike,
>>>>
>>>> The problem that you are referring to was due to the fact that the
>>>> Security manager was enabled by default when the blog entries were
>>>> written. The default state (on or off) of the SM was changed very early
>>>> in the v1 development cycle... (to OFF)... due to the errors that Matt
>>>> and Jerome encountered.
>>>>
>>>> Note: if the 'turn on the SM' you will run into issues similar to those
>>>> discussed in the blogs entries...
>>>>
>>>> Since blogs are not 'documentation' in the formal sense, you have to
>>>> consider their age as you read their content.
>>>>
>>>> The blog entries you cite were about experiences with a server that
>>>> existed a couple years ago... that was changing on a daily basis...
>>>>
>>>> that said, I am gald to hear that you are making progress with Spring on GF.
>>>>
>>>> vbk
>>>>
>>>>