You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-user@incubator.apache.org by Audrey Moui <Au...@irit.fr> on 2010/06/01 11:45:23 UTC

CIM-SPL and CIM-server ?

Hello,

First, I want to apologize for my English, which may not be perfect.

Second, I have a question about the installation of CIM-SPL.
On this page http://incubator.apache.org/imperius/community/contribute.html 
, you write that CIM-SPL needs a CIM-server like Open Pegasus to work.  
I am installing Apache Imperius on a computer with Windows XP  
Professional and I already have OpenPegasus installed on a remote  
computer (Linux Ubuntu 8.04). Is it possible to make a link toward the  
OpenPegasus by network (and how?), or do I really have to install  
OpenPegasus on the XP computer with Apache Imperius in order to use  
CIM-SPL ?

Thank you,
--
Audrey Moui <Au...@irit.fr>

Laboratoire IRIT/SIERA
Université Paul Sabatier
31062 Toulouse Cedex 09

Bât. 1R1 – Bur. 109
+33 (0)5 6155 6472


Re: CIM-SPL and CIM-server ?

Posted by Audrey Moui <Au...@irit.fr>.
Hello

Thank you for your answer. I'd like to have some more explanations  
about the second case you mentioned.

> 2) uses client libraries to talk to a remote OpenPegasus (uses
> sblim)
> In your case you could try using the 2) option which is available as  
> part
> of the cimspl-clientside provider jars.

Does that mean that the jars are already in the cimspl- 
clientsideprodiver repository which had been generated by the build?
Because I don't see any jars in the repository. Where can I find these  
jars? (URL, path?)

In the same time, I realized that I can't use Java SPL. I followed all  
the instruction on that page (http://incubator.apache.org/imperius/docs/getting_started.html 
), but when I run the "runsamples.bat", I have the following outpout:

C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>runsamples  
SimplePolicy.spl
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM   
Licensed to the Apache Software Foundation (ASF) under one
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM  or  
more contributor license agreements.  See the NOTICE file
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM   
distributed with this work for additional information
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM  
regarding copyright ownership.  The ASF licenses this file
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM to you  
under the Apache License, Version 2.0 (the
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM  
"License"); you may not use this file except in compliance
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM with  
the License. You may obtain a copy of the License at
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM     http://www.apache.org/licenses/LICENSE-2.0
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM Unless  
required by applicable law or agreed to in writing,
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM  
software distributed under the License is distributed on an
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM "AS IS"  
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM KIND,  
either express or implied.  See the License for the
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM  
specific language governing permissions and limitations
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>REM under  
the License.
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>echo  
"Running Test policies..."
"Running Test policies..."
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>set CP=C: 
\antlr\277\lib\antlr.jar;..\..\lib\imperius-javaspl-1.0.0.jar;..\..\lib 
\imperius-splcore-1.0.0.jar;..\..\lib\javaspl-samples-1.0.0.jar
C:\src\ApacheImperius\imperius-javaspl1.0.0\samples\simple>java - 
classpath C:\antlr\277\lib\antlr.jar;..\..\lib\imperius- 
javaspl-1.0.0.jar;..\..\lib\imperius-splcore-1.0.0.jar;..\..\lib 
\javaspl-samples-1.0.0.jar  
org.apache.imperius.javaspl.samples.simplepolicies.RunSamples  
SimplePolicy.spl
java.io.FileNotFoundException: resources\samples\simple\policies 
\SimplePolicy.spl.spl (Le chemin d'accÞs spÚcifiÚ est introuvable)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileReader.<init>(Unknown Source)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples._test(RunSamples.java:63)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples.testPolicy(RunSamples.java: 
108)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples.main(RunSamples.java:46)
SimplePolicy.spl:1:1: unexpected token: null
org.apache.imperius.spl.parser.exceptions.SPLException: Error  
encountered while parsing PolicyString
         at  
org 
.apache 
.imperius 
.spl 
.manager.impl.PolicyManagerImpl.createPolicy(PolicyManagerImpl.java:147)
         at  
org 
.apache 
.imperius 
.javaspl 
.Java_SPLPolicyRuleProvider 
.createPolicy(Java_SPLPolicyRuleProvider.java:81)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples._test(RunSamples.java:89)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples.testPolicy(RunSamples.java: 
108)
         at  
org 
.apache 
.imperius 
.javaspl.samples.simplepolicies.RunSamples.main(RunSamples.java:46)

Do I do something wrong ?

Thank you for your time,
--
Audrey Moui <Au...@irit.fr>

Laboratoire IRIT/SIERA
Université Paul Sabatier
31062 Toulouse Cedex 09

Bât. 1R1 – Bur. 109
+33 (0)5 6155 6472

Le 7 juin 10 à 23:12, Neeraj Joshi a écrit :

> Hello Audrey,
> The CIM-SPL is available in 2 forms 1) is a provider that plugs into
> OpenPegasus 2) uses client libraries to talk to a remote OpenPegasus  
> (uses
> sblim)
> In your case you could try using the 2) option which is available as  
> part
> of the cimspl-clientside provider jars.
> Thanks
> Neeraj
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "It is hard enough to remember my opinions, without also remembering  
> my
> reasons for them". -Friedrich Wilhelm Nietzsche
>
> Neeraj Joshi (knee-rudge)
> WebSphere XD - Compute Grid
> AIM, IBM
> Apache Imperius - http://incubator.apache.org/imperius
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> From:
> Audrey Moui <Au...@irit.fr>
> To:
> imperius-user@incubator.apache.org
> Date:
> 06/01/2010 07:47 AM
> Subject:
> CIM-SPL and CIM-server ?
>
>
>
> Hello,
>
> First, I want to apologize for my English, which may not be perfect.
>
> Second, I have a question about the installation of CIM-SPL.
> On this page
> http://incubator.apache.org/imperius/community/contribute.html
> , you write that CIM-SPL needs a CIM-server like Open Pegasus to work.
> I am installing Apache Imperius on a computer with Windows XP
> Professional and I already have OpenPegasus installed on a remote
> computer (Linux Ubuntu 8.04). Is it possible to make a link toward the
> OpenPegasus by network (and how?), or do I really have to install
> OpenPegasus on the XP computer with Apache Imperius in order to use
> CIM-SPL ?
>
> Thank you,
> --
> Audrey Moui <Au...@irit.fr>
>
> Laboratoire IRIT/SIERA
> Université Paul Sabatier
> 31062 Toulouse Cedex 09
>
> Bât. 1R1 – Bur. 109
> +33 (0)5 6155 6472
>
>
>
>


Re: CIM-SPL and CIM-server ?

Posted by Neeraj Joshi <jn...@us.ibm.com>.
Hello Audrey,
The CIM-SPL is available in 2 forms 1) is a provider that plugs into 
OpenPegasus 2) uses client libraries to talk to a remote OpenPegasus (uses 
sblim)
In your case you could try using the 2) option which is available as part 
of the cimspl-clientside provider jars.
Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"It is hard enough to remember my opinions, without also remembering my 
reasons for them". -Friedrich Wilhelm Nietzsche

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
Audrey Moui <Au...@irit.fr>
To:
imperius-user@incubator.apache.org
Date:
06/01/2010 07:47 AM
Subject:
CIM-SPL and CIM-server ?



Hello,

First, I want to apologize for my English, which may not be perfect.

Second, I have a question about the installation of CIM-SPL.
On this page 
http://incubator.apache.org/imperius/community/contribute.html 
, you write that CIM-SPL needs a CIM-server like Open Pegasus to work. 
I am installing Apache Imperius on a computer with Windows XP 
Professional and I already have OpenPegasus installed on a remote 
computer (Linux Ubuntu 8.04). Is it possible to make a link toward the 
OpenPegasus by network (and how?), or do I really have to install 
OpenPegasus on the XP computer with Apache Imperius in order to use 
CIM-SPL ?

Thank you,
--
Audrey Moui <Au...@irit.fr>

Laboratoire IRIT/SIERA
Université Paul Sabatier
31062 Toulouse Cedex 09

Bât. 1R1 – Bur. 109
+33 (0)5 6155 6472