Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    com.isomorphic.cdi.CDIBeanManger cannot be found

    Using:
    SmartClient Version: v11.0p_2016-04-27/PowerEdition Deployment (built 2016-04-27)

    Trying to use CDI for ServerObject lookupStyle, and am getting an error server side stating that com.isomorphic.cdi.CDIBeanManger cannot be found. It says to make sure isomorphic_cdi.jar is included, but I cannot find any such jar for this version nor the latest build.

    #2
    Has our support contract lapsed?

    Comment


      #3
      Hello, I've got SmartClient_v110p_2016-04-26_Evaluation and isomorphic_cdi.jar is included in smartclientSDK/WEB-INF/lib

      Comment


        #4
        I may have to steal the jar from a smartclient build then

        Comment


          #5
          Todays build of SmartGWT actually contains the jar. However I am using the maven tool, and it does not appear that isomorphic_cdi is handled as an artifact by that plugin

          Comment


            #6
            Yes, we were about to tell you we solved the build issue - next we're looking at adding the Maven artifact.

            Comment


              #7
              The latest builds now have the CDI jar in the Maven POM.

              Comment


                #8
                thank you

                Comment


                  #9
                  I am getting the same exception when using maven on smartgwt 6.0-p20161005 power.

                  Code:
                  <!-- Standard GWT depdendency -->
                          <dependency>
                              <groupId>com.google.gwt</groupId>
                              <artifactId>gwt-user</artifactId>
                              <version>${gwt.version}</version>
                              <scope>provided</scope>
                          </dependency>
                          <dependency>
                              <groupId>com.google.gwt</groupId>
                              <artifactId>gwt-servlet</artifactId>
                              <version>${gwt.version}</version>
                              <scope>runtime</scope>
                          </dependency>
                  
                          <!-- The SmartGWT power edition -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>smartgwt-power</artifactId>
                              <version>${smartgwt.version}</version>
                          </dependency>
                  
                          <!-- Add support for SQLDataSources -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>isomorphic-sql</artifactId>
                              <version>${smartgwt.version}</version>
                          </dependency>
                  
                          <!-- Batik for Image Export -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>dependencygroup-batik</artifactId>
                              <version>${smartgwt.version}</version>
                              <type>pom</type>
                          </dependency>
                  
                          <!-- Real-Time Messaging -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>smartgwt-messaging</artifactId>
                              <version>${smartgwt.version}</version>
                          </dependency>
                          
                          <!-- Add the Network Performance module -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>isomorphic-network</artifactId>
                              <version>${smartgwt.version}</version>
                              <type>pom</type>
                          </dependency>
                  
                          <!-- Content-Export (Image-Export) -->
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>isomorphic-content-export</artifactId>
                              <version>${smartgwt.version}</version>
                          </dependency>
                  
                          <dependency>
                              <groupId>com.isomorphic.smartgwt.power</groupId>
                              <artifactId>isomorphic-js-parser</artifactId>
                              <version>${smartgwt.version}</version>
                              <type>pom</type>
                          </dependency>
                  
                  
                  ...

                  Comment


                    #10
                    Adding
                    Code:
                    <dependency>
                                <groupId>com.isomorphic.smartgwt.power</groupId>
                                <artifactId>isomorphic-cdi</artifactId>
                                <version>${smartgwt.version}</version>
                                <type>pom</type>
                            </dependency>
                    did not work. It did add cdi-api-1.2.jar but no com.isomorphic.cdi.CDIBeanManger inside. And that seems the only .jar being added.

                    Comment


                      #11
                      Strange:
                      changing it to
                      Code:
                      <!-- Isomorphic CDI -->
                              <dependency>
                                  <groupId>com.isomorphic.smartgwt.power</groupId>
                                  <artifactId>isomorphic-cdi</artifactId>
                                  <version>${smartgwt.version}</version>
                              </dependency>
                      seems to add the correct jar.
                      But when do I need <type>pom</type>?
                      For example, if I remove it from
                      Code:
                      <!-- Add the Network Performance module -->
                              <dependency>
                                  <groupId>com.isomorphic.smartgwt.power</groupId>
                                  <artifactId>isomorphic-network</artifactId>
                                  <version>${smartgwt.version}</version>
                                  <type>pom</type>
                              </dependency>
                      Then the dependency is not found. Where are all the dependencies documented? I found isomorphic-cdi by "just trying", but found no documentation on this.

                      Comment


                        #12
                        The type element’'s value defaults to jar. When the artifact you want is a jar, you don’t need it (although there’s nothing wrong with using <type>jar</type>). When the artifact you want is a pom, you have to override the default with <type>pom</type>. The pom of the dependency itself will tell you which groupId, artifactId, version, and type you need.

                        SmartGWT uses jar packaging for its jars, as you'd expect, and pom packaging to provide dependency groups (just a convenient way to bundle a collection of dependencies.)

                        From a smartgwt-power pom:

                        Code:
                        <groupId>com.isomorphic.smartgwt.power</groupId>
                        <artifactId>smartgwt-power</artifactId>
                        <version>6.0-p20160906</version>
                        Here, there is no <packaging /> element, so it’s going to be a jar. The following are both correct:

                        Code:
                        <dependency>
                            <groupId>com.isomorphic.smartgwt.power</groupId>
                            <artifactId>smartgwt-power</artifactId>
                            <version>${smartgwt.version}</version>
                        </dependency>
                        
                        <dependency>
                            <groupId>com.isomorphic.smartgwt.power</groupId>
                            <artifactId>smartgwt-power</artifactId>
                            <version>${smartgwt.version}</version>
                            <type>jar</type>
                        </dependency>
                        We provide another convenience artifact, for example, that bundles all of the export dependencies.

                        Code:
                        <groupId>com.isomorphic.smartgwt.power</groupId>
                        <artifactId>dependencygroup-pdfexport</artifactId>
                        <version>6.0-p20160906</version>
                        [B]<packaging>pom</packaging>[/B]
                        Here, packaging is pom (there is of course no jar named dependencygroup-pdfexport), so you'd declare your dependency on a pom artifact.

                        Code:
                        <dependency>
                            <groupId>com.isomorphic.smartgwt.power</groupId>
                            <artifactId>dependencygroup-pdfexport</artifactId>
                            <version>6.0-p20160906</version>
                        [B]        <type>pom</type>[/B]
                        </dependency>

                        The available artifacts are limited to what you’ve installed using the isc-maven-plugin. You can probably get a listing from your repository manager if you're using one, or just by using file system tools on your local repo. e.g.,

                        Code:
                        ls -l ~/.m2/repository/com/isomorphic/smartgwt/power/
                        
                        total 0
                        
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 dependencygroup-batik
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 dependencygroup-pdfexport
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isc-batchuploader
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isc-batchuploader-resources
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isc-jakarta-oro
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isc-selenium-resources
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-assembly
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-autotest
                        drwxr-xr-x   5 dev  staff  170 Sep  6 18:06 isomorphic-cdi
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-compression
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-content-export
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-core-rpc
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-hibernate
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-jpa
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-js-parser
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-messaging
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-network
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-spring
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-sql
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-struts
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-tools
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 isomorphic-webdriver
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 smartgwt-power
                        drwxr-xr-x  21 dev  staff  714 Sep  6 18:11 smartgwt-skins
                        Last edited by Isomorphic; 27 Oct 2016, 17:41.

                        Comment


                          #13
                          Thanks for your explanation.
                          Is isomorphic-js-parser also a dependency group? if yes, why doesn't it follow the name convention "dependencygroup-"? If I remove the type="pom", I get an error.

                          Code:
                          <dependency>
                                      <groupId>com.isomorphic.smartgwt.power</groupId>
                                      <artifactId>isomorphic-js-parser</artifactId>
                                      <version>${smartgwt.version}</version>
                                      <type>pom</type>
                                  </dependency>

                          Comment


                            #14
                            Again, use jar for artifacts with jar packaging and pom for artifacts with pom packaging. To know how an artifact is packaged, look at its pom. If it isn't specified, as is the case with js-parser, jar is implied.

                            Code:
                            <groupId>com.isomorphic.smartgwt.power</groupId>
                            <artifactId>isomorphic-js-parser</artifactId>
                            <version>6.0-p20160906</version>

                            Comment


                              #15
                              Ok, thanks, in most of the cases, this seems to be right.
                              but one case is confusing:

                              Code:
                              <dependency>
                                          <groupId>com.isomorphic.smartgwt.power</groupId>
                                          <artifactId>smartgwt-power</artifactId>
                                          <version>${smartgwt.version}</version>
                                      </dependency>
                              If I look into smartclient-power.xml, I see:
                              Code:
                                  <groupId>com.isomorphic.smartgwt.power</groupId>
                                  <artifactId>smartclient-power</artifactId>
                                  <version>6.0-p20160330</version>
                                  <packaging>pom</packaging>
                              So this means, packaging is pom.
                              If I change my pom to:
                              Code:
                              <dependency>
                                          <groupId>com.isomorphic.smartgwt.power</groupId>
                                          <artifactId>smartgwt-power</artifactId>
                                          <version>${smartgwt.version}</version>
                                          <type>pom</type>
                                      </dependency>
                              I get a lot of compilation errors:
                              Code:
                              [ERROR] COMPILATION ERROR :
                              [INFO] -------------------------------------------------------------
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/VariantListGrid.java:[3,32] package com.smartgwt.client.data does not exist
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/VariantListGrid.java:[27,32] cannot find symbol
                                symbol:   class Record
                                location: interface de.mks_infofabrik.kids.client.ui.widgets.VariantListGrid
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/VariantListGrid.java:[35,26] cannot find symbol
                                symbol:   class Record
                                location: interface de.mks_infofabrik.kids.client.ui.widgets.VariantListGrid
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/windows/KategorienVerwaltungWindow.java:[6,32] package com.smartgwt.client.data does not exist
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/windows/KategorienVerwaltungWindow.java:[7,32] package com.smartgwt.client.data does not exist
                              [ERROR] /Users/eduardo/Documents/git/kids/kids/src/main/java/de/mks_infofabrik/kids/client/ui/widgets/windows/KategorienVerwaltungWindow.java:[8,32] package com.smartgwt.client.data does not exist

                              Comment

                              Working...
                              X