1 2 Previous Next 15 Replies Latest reply on Jul 5, 2013 7:57 PM by medo

    Infinispan configuration

    medo

      i download infinispan recently. and unzip it and run guidemo.bat  but i have three question and need help from anybody can answer me and thankyou..

       

      q1: how can i switch to different configuration file exist in the infinispan folder?

       

      q2: if i want to change the content of manipulate data tab "like adding functions of storing data or retreive data " what can i do to get like attachement  file


      q3:how can i use infnispan as cloud computing cache

       

       

      by the way i use windows 7, and setting up on my pc Java, cygwin

        • 1. Re: Infinispan configuration
          nadirx

           

          q1: how can i switch to different configuration file exist in the infinispan folder?

          Start runGuiDemo.bat -Dinfinispan.configuration=file:///path/to/file

           

           

          q2: if i want to change the content of manipulate data tab "like adding functions of storing data or retreive data " what can i do to get like attachement  file

           

           

          You need to change the source code of the demo which is available here: https://github.com/infinispan/infinispan/tree/master/demos/gui/src/main/java/org/infinispan/demo

          You will need to use the IDEA form designer in order to modify the GUI.

           

           


          q3:how can i use infnispan as cloud computing cache

           

          It depends what you need to do. If by "cloud computing" you mean deploying a cluster on an EC2 instance, you will need to configure JGroups to use a specific discovery protocol. See http://www.jgroups.org/manual-3.x/html/protlist.html#d0e4978 for details

          • 2. Re: Infinispan configuration
            medo

            hi..sir

             

            q1: do you mean that i edit the file (runGuidemo.bat) by adding the line:  -dinfinispan.configuration=file///path/to/file or what do you mean?

            because when i add that line in (runGuidemo.bat) after openning it by notebad and specify the path to be the path of (config.xml) and save changes and click on (runGuidemo.bat) no changes happen

            and i observe that in the screen of cmd .exe there was written that:'-dinfinispan.configuration' is not recognized as an internal of external command'

            so what can i do please to switch to another configuration file

             

            q2: i download (infinispan-5.1.6.final-src) and (infinispan-5.1.6.final-all) and observe that the first contain the file(infinispandemo.form) in the path:

            (infinispan-5.1.6.final-src/demo/gui/src/main/java/org/infinispan/demo)and that file not exist in (infinispan-5.1.6.final-all) also the file (runGuidemo.bat) exist in (infinispan-5.1.6.final-all) and not exist in (infinispan-5.1.6.final-src)

            and when i open the file (infinispandemo.form) using wordpad i found it is very long file so please which part that i should edit to change the content of

            manipulate data tab from the original screen which contain the default content to that which contain in attachment  and after make changes in the file (infinispandemo.form) what the benifit of intellij idea form designer

            and how i can see these changes in infinispan gui and the file (runguidemo.bat) not in the folder (bin) of folder(infinispan-5.1.6.final-src)

             

            q3: how can i use infinispan-5.1.6.final for storing any file (whiach i can browse from my pc) to the infinispan and how i can use it also for retreiving that file again from the infinispan to my PC

            • 3. Re: Infinispan configuration
              nadirx

              medo, please don't create new threads for the same questions.

               

              q1: you need to edit the last line of runGuiDemo.bat as follows (case is important!!!):

               

              java -cp "%CP%" -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=%TESTPORT% -Djgroups.bind_addr=127.0.0.1 -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=%ISPN_HOME%\etc\log4j.xml -Dsun.nio.ch.bugLevel="" -Dinfinispan.configuration=%ISPN_HOME%\etc\config-samples\minimal.xml org.infinispan.demo.InfinispanDemo

               

              Obviously change the name of the file to what you want.

               

              q2: you should really use a proper IDE or programming editor. In this case you really need IntelliJ Idea which gives you a nice visual editor

               

              q3: Infinispan provides a distributed virtual filesystem (GridFS) which exposes a WebDAV interface. Read about it at https://docs.jboss.org/author/display/ISPN/Grid+File+System

              • 4. Re: Infinispan configuration
                medo

                Thank you very much for replying

                 

                but when i edit the runguidemo.bat tybical as you told me but when i start cache it is not able to open the file and on the back "i mean cmd.exe" i observe that there is an error message like :

                 

                log4j:WARN No appenders could be found for logger (org.jboss.logging).

                log4j:WARN Please initialize the log4j system properly.

                log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in

                fo.

                Exception in thread "pool-1-thread-1" java.lang.RuntimeException: java.net.Malfo

                rmedURLException: no protocol: \etc\config-samples\relay1.xml

                        at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:416)

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                        at java.lang.Thread.run(Unknown Source)

                Caused by: java.net.MalformedURLException: no protocol: \etc\config-samples\rela

                y1.xml

                        at java.net.URL.<init>(Unknown Source)

                        at java.net.URL.<init>(Unknown Source)

                        at java.net.URL.<init>(Unknown Source)

                        at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:371)

                        ... 3 more

                 

                so please what the meaning of that error message and what can i do to overcome that problem?

                 

                thanks in advance

                • 5. Re: Infinispan configuration
                  medo

                  Hello

                   

                  Is that message represent an error? , if it is an error what the correct methode?

                   

                  Thanks

                  • 6. Re: Infinispan configuration
                    shadowcreeper

                    When you get a MalformedURLException, it means you need to do a google search for "url format", or since you are looking specifically for a local file, try "url format file".

                     

                    Here is a hint.

                    • 7. Re: Infinispan configuration
                      medo

                      Hi,

                       

                      It is now ok , i overcome that problem as you told me by changing the format of file path in correct way.....and when i start cache it is running without error

                       

                       

                      Please i have other question :

                       

                      **  i download (infinispan-5.1.6.final-src) and (infinispan-5.1.6.final-all) and observe that the first contain the file(infinispandemo.form) in the path:

                      (infinispan-5.1.6.final-src/demo/gui/src/main/java/org/infinispan/demo)and that file not exist in (infinispan-5.1.6.final-all) also the file (runGuidemo.bat) exist in (infinispan-5.1.6.final-all) and not exist in (infinispan-5.1.6.final-src)

                       

                      and when i open the file (infinispandemo.form) using wordpad i found it is very long file so please which part that i should edit to change the content of

                      manipulate data tab from the original screen which contain the default content to that which contain in attachment  and after making changes in the file (infinispandemo.form)

                      how i can see these changes in infinispan gui and the file (runguidemo.bat) not exist in the folder (bin) of folder (infinispan-5.1.6.final-src)

                       

                      Thanks in advance

                      • 8. Re: Infinispan configuration
                        medo

                        Hi................

                         

                        it is may be that problem is strange and has no solution !!!!!!!!!!!!!!!!

                         

                         

                        i download (infinispan-5.1.6.final-src) and (infinispan-5.1.6.final-all) and observe that the first contain the file(infinispandemo.form) in the path:

                        (infinispan-5.1.6.final-src/demo/gui/src/main/java/org/infinispan/demo)and that file not exist in (infinispan-5.1.6.final-all) also the file (runGuidemo.bat) exist in (infinispan-5.1.6.final-all) and not exist in (infinispan-5.1.6.final-src)

                         

                        and when i open the file (infinispandemo.form) using wordpad i found it is very long file so please which part that i should edit to change the content of

                        manipulate data tab from the original screen which contain the default content to that which contain in attachment  and after making changes in the file (infinispandemo.form)

                        how i can see these changes in infinispan gui and the file (runguidemo.bat) not exist in the folder (bin) of folder (infinispan-5.1.6.final-src)

                         

                         

                         

                        Thanks

                        • 9. Re: Infinispan configuration
                          nadirx

                          You need to use IntelliJ Idea's GUI designer not wordpad. Download Idea from http://www.jetbrains.com/idea/

                          • 10. Re: Infinispan configuration
                            medo

                            hi......

                             

                            sorry my question is after changing the file (infinispandemo.form) using intellij idea  or jformdesigner how can i call that file (infinispandemo.form) and it is not exist in the folder (infinispan-5.1.6-all) which has (runguidemo.bat)

                             

                            Thanks in advance

                            • 11. Re: Infinispan configuration
                              nadirx

                              medo, the best way to do it is to checkout the code from github using

                               

                              git clone https://github.com/infinispan/infinispan.git

                               

                              Choose the tag you want:

                               

                              git checkout 5.1.6.FINAL

                               

                              modify the .form file in demos/gui/src/main/java/org/infinispan/demo/InfinispanDemo

                               

                              and recompile everything with

                               

                              mvn clean package -DskipTests

                               

                              Now replace the infinispan-gui-demo.jar in your distribution with  demos/gui/target/infinispan-gui-demo.jar

                              • 12. Re: Infinispan configuration
                                medo

                                Thanks Tristant

                                 

                                I will make what you told me and give you feed back if it is ok or there are any problem happened

                                 

                                Thanks again and hope that every thing good with you

                                 

                                medo...

                                • 13. Re: Infinispan configuration
                                  medo

                                  Hi..


                                  I hope that everyone has a good health , and really i appreciate your time

                                   

                                  when i execute the command (mvn clean package -DskipTests) after modifying .form file i get an error as below:

                                   

                                   

                                   

                                  c:\Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\infinispa

                                  n-5.0.1.FINAL>mvn clean package -DskipTests

                                  [INFO] Scanning for projects...

                                  [INFO] Reactor build order:

                                  [INFO]   Infinispan Common Parent

                                  [INFO]   Infinispan Core

                                  [INFO]   Infinispan Tools

                                  [INFO]   Infinispan Query API

                                  [INFO]   Infinispan Tree API

                                  [INFO]   Parent pom for cachestore modules

                                  [INFO]   Infinispan JDBC CacheStore

                                  [INFO]   Infinispan Lucene Directory Implementation

                                  [INFO]   Infinispan JDBM CacheStore

                                  [INFO]   Infinispan BDBJE CacheStore

                                  [INFO]   Infinispan CloudCacheStore

                                  [INFO]   Parent pom for server modules

                                  [INFO]   Infinispan Server Core Module

                                  [INFO]   Infinispan Server Hotrod Module

                                  [INFO]   Infinispan Client Hotrod Module

                                  [INFO]   Infinispan remote CacheStore

                                  [INFO]   Infinispan CassandraCacheStore

                                  [INFO]   Infinispan Server Memcached Module

                                  [INFO]   Infinispan WebSocket Server

                                  [INFO]   Infinispan REST Server

                                  [INFO]   Infinispan RHQ Plugin

                                  [INFO]   Infinispan Spring Integration

                                  [INFO]   Infinispan GUI Demo

                                  [INFO]   Infinispan EC2 Demo

                                  [INFO]   Infinispan Distributed Executors and Map/Reduce Demo

                                  [INFO]   Infinispan EC2 Demo UI

                                  [INFO]   Infinispan Directory Demo

                                  [INFO]   Infinispan Lucene Directory Demo

                                  [INFO]   Infinispan GridFileSystem WebDAV interface

                                  [INFO]   Infinispan CDI support

                                  [INFO]   Infinispan Distribution

                                  [WARNING] POM for 'biz.aQute:bndlib:pom:1.15.0:runtime' is invalid.

                                  Its dependencies (if any) will NOT be available to the current build.

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] Building Infinispan Common Parent

                                  [INFO]    task-segment: [clean, package]

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] [clean:clean {execution: default-clean}]

                                  [INFO] Deleting directory C:\Users\e mohamed\Downloads\Compressed\5 0\infinispan

                                  -5.0.1.FINAL-src\infinispan-5.0.1.FINAL\parent\target

                                  [INFO] [enforcer:enforce {execution: enforce-java}]

                                  [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus

                                  .velocity.ContextClassLoaderResourceLoader'.

                                  [INFO] Setting property: velocimacro.messages.on => 'false'.

                                  [INFO] Setting property: resource.loader => 'classpath'.

                                  [INFO] Setting property: resource.manager.logwhenfound => 'false'.

                                  [INFO] [remote-resources:process {execution: attach-license}]

                                  [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]

                                  [INFO] [jar:test-jar {execution: build-test-jar}]

                                  [WARNING] JAR will be empty - no content was marked for inclusion!

                                  [INFO] Building jar: C:\Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.

                                  1.FINAL-src\infinispan-5.0.1.FINAL\parent\target\infinispan-parent-tests.jar

                                  [INFO] Preparing source:jar

                                  [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

                                  [INFO] [enforcer:enforce {execution: enforce-java}]

                                  [INFO] [source:jar {execution: attach-sources}]

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] Building Infinispan Core

                                  [INFO]    task-segment: [clean, package]

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] [clean:clean {execution: default-clean}]

                                  [INFO] Deleting directory C:\Users\e mohamed\Downloads\Compressed\5 0\infinispan

                                  -5.0.1.FINAL-src\infinispan-5.0.1.FINAL\core\target

                                  [WARNING] POM for 'org.osgi:org.osgi.core:pom:4.3.0:compile' is invalid.

                                  Its dependencies (if any) will NOT be available to the current build.

                                  [INFO] [enforcer:enforce {execution: enforce-java}]

                                  [INFO] [remote-resources:process {execution: attach-license}]

                                  [WARNING] POM for 'org.osgi:org.osgi.core:pom:4.3.0:compile' is invalid.

                                  Its dependencies (if any) will NOT be available to the current build.

                                  [WARNING] Invalid project model for artifact [org.osgi.core:org.osgi:4.3.0]. It

                                  will be ignored by the remote resources Mojo.

                                  [INFO] [resources:resources {execution: default-resources}]

                                  [INFO] Using 'UTF-8' encoding to copy filtered resources.

                                  [INFO] Copying 17 resources

                                  [INFO] Copying 2 resources

                                  [INFO] [compiler:compile {execution: default-compile}]

                                  [INFO] Compiling 619 source files to C:\Users\e mohamed\Downloads\Compressed\5 0

                                  \infinispan-5.0.1.FINAL-src\infinispan-5.0.1.FINAL\core\target\classes

                                  [INFO] -------------------------------------------------------------

                                  [ERROR] COMPILATION ERROR :

                                  [INFO] -------------------------------------------------------------

                                  [ERROR] \Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\inf

                                  inispan-5.0.1.FINAL\core\src\main\java\org\infinispan\transaction\xa\GlobalTrans

                                  action.java:[136,29] error: id has private access in GlobalTransaction

                                  [ERROR] \Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\inf

                                  inispan-5.0.1.FINAL\core\src\main\java\org\infinispan\transaction\xa\GlobalTrans

                                  action.java:[149,12] error: id has private access in GlobalTransaction

                                  [INFO] 2 errors

                                  [INFO] -------------------------------------------------------------

                                  [INFO] ------------------------------------------------------------------------

                                  [ERROR] BUILD FAILURE

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] Compilation failure

                                  \Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\infinispan-

                                  5.0.1.FINAL\core\src\main\java\org\infinispan\transaction\xa\GlobalTransaction.j

                                  ava:[136,29] error: id has private access in GlobalTransaction

                                  \Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\infinispan-

                                  5.0.1.FINAL\core\src\main\java\org\infinispan\transaction\xa\GlobalTransaction.j

                                  ava:[149,12] error: id has private access in GlobalTransaction

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] For more information, run Maven with the -e switch

                                  [INFO] ------------------------------------------------------------------------

                                  [INFO] Total time: 12 seconds

                                  [INFO] Finished at: Sat Jun 15 01:39:42 EET 2013

                                  [INFO] Final Memory: 54M/247M

                                  [INFO] ------------------------------------------------------------------------

                                  c:\Users\e mohamed\Downloads\Compressed\5 0\infinispan-5.0.1.FINAL-src\infinispa

                                  n-5.0.1.FINAL>

                                   

                                  Could you please help me to overcome that error message ?  and    is it possible that i can use eclipse for building complete infinispan distribution bundle

                                  from the infinispan source code instead of maven?

                                   

                                  thank you very much and so sorry if there are stupid question..

                                   

                                  Medo

                                  • 14. Re: Infinispan configuration
                                    medo

                                    Hi all

                                     

                                    Hoping that every body having good health

                                     

                                    sorry , the problem which happened with me during executing command(mvn clean package -DskipTests) solved when i use

                                    maven 3 instead of maven 2

                                     

                                    thanks in advance

                                    1 2 Previous Next