Announcement

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

    Superdev Mode in Java8 - java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

    Hey,

    does anybody managed to use superdev with OpenJdk8, GWT10 and SmartGWT12.1 LGPL.

    Everytime when I klick in Eclipse "Open With SDBG Chrome JS Debugger... I get the following error Message:
    Click image for larger version

Name:	SDBG_error_openJDK8.png
Views:	575
Size:	116.5 KB
ID:	268661


    My Server POM is:
    Code:
    <dependencies>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>testAw-shared</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-servlet</artifactId>
                <version>${gwt.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${servlets.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jaxb</groupId>
                <artifactId>jaxb-runtime</artifactId>
                <version>2.3.1</version>
                <scope>runtime</scope>
            </dependency>
    
        </dependencies>
    My client POM is as Follows:
    Code:
    <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-user</artifactId>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-dev</artifactId>
            </dependency>
             <!-- The SmartGWT core -->
            <dependency>
                <groupId>com.isomorphic.smartgwt.lgpl</groupId>
                <artifactId>smartgwt-lgpl</artifactId>
                <version>${smartgwt.version}</version>
            </dependency>
            <dependency>
                <groupId>com.isomorphic.smartgwt.lgpl</groupId>
                <artifactId>smartgwt-skins</artifactId>
                <version>${smartgwt.version}</version>
            </dependency>
            <!-- Application Toolbox -->
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava-gwt</artifactId>
                <version>20.0</version>
            </dependency>
    The application itselfs runs fine... just the browser debugging does not work.

    Thanks
    Andy



    #2
    What do you mean by GWT 10? GWT 2.10.0? We don't see any issue running the sample projects in SGWT 12.1 LGPL in SuperDev mode from Eclipse. We did notice there's an apparent bug in the Eclipse GWT 3 plugin where it doesn't recognize GWT 2.10.0 and hides some of the GUI in the GWT tab of the launch dialog. To workaround, configure the GUI with GWT 2.9.0 selected in your project and then switch to GWt 2.10.0 right before running.

    Can you download SGWT 12.1 Eval and see if the problem you're reporting happens with the BuiltInDS sample project?

    Although you say you're using Java 8, the reports on the web we see about this problem involve people using later versions of Java (Java 11 or above), which have dropped JAXB. Are you sure your project is actually configured to run against Java 8? In Java 11, you may need to include the jaxb-api-<version>.jar, which we do include in the SGWT Eval package. You can also read through a discussion what a JAXB Maven dependency should look like here.

    If adding JAXB solves your issue, please let us know so we can document that, and potentially update our Maven dependencies.

    Comment


      #3
      thanks for getting back. Yeah you are right... I mean GWT 2.10. I will go trough your points. I doubt that this is because of smartgwt. The SuperDevMode is running I can also debug with Source Maps in chrome... But I can not use the SDBG Debugger. By calling this... the error message in the screen appears.

      The project is running on JDK 1.8... here is the pom.
      Code:
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
      
          <groupId>testAw</groupId>
          <artifactId>testAw</artifactId>
          <version>1.0-SNAPSHOT</version>
          <packaging>pom</packaging>
      
          <properties>
              <gwt.version>2.10.0</gwt.version>
              <smartgwt.version>12.1-p20220909</smartgwt.version>
              <servlets.version>3.1.0</servlets.version>
              <jaxb-api.version>2.3.0</jaxb-api.version>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>
      
          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>com.google.gwt</groupId>
                      <artifactId>gwt</artifactId>
                      <version>${gwt.version}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
                  <dependency>
                      <groupId>javax.servlet</groupId>
                      <artifactId>javax.servlet-api</artifactId>
                      <version>3.1.0</version>
                  </dependency>
              </dependencies>
          </dependencyManagement>
          <build>
              <plugins>
                  <plugin>
                      <groupId>com.isomorphic</groupId>
                      <artifactId>isc-maven-plugin</artifactId>
                      <version>1.4.5</version>
                      <dependencies>
                          <dependency>
                              <groupId>com.isomorphic.extras</groupId>
                              <artifactId>isomorphic-m2pluginextras</artifactId>
                              <version>${smartgwt.version}</version>
                          </dependency>
                      </dependencies>
                  </plugin>
                  <plugin>
                      <groupId>net.ltgt.gwt.maven</groupId>
                      <artifactId>gwt-maven-plugin</artifactId>
                      <inherited>false</inherited>
                      <configuration>
                          <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
                      </configuration>
                  </plugin>
              </plugins>
              <pluginManagement>
                  <plugins>
                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-compiler-plugin</artifactId>
                          <version>3.10.1</version>
                          <configuration>
                              <source>1.8</source>
                              <target>1.8</target>
                          </configuration>
                      </plugin>
                      <plugin>
                          <groupId>org.eclipse.jetty</groupId>
                          <artifactId>jetty-maven-plugin</artifactId>
                          <version>9.4.46.v20220331</version>
                      </plugin>
                      <plugin>
                          <groupId>net.ltgt.gwt.maven</groupId>
                          <artifactId>gwt-maven-plugin</artifactId>
                          <version>1.0.1</version>
                          <extensions>true</extensions>
                          <configuration>
                              <sourceLevel>1.8</sourceLevel>
                              <failOnError>true</failOnError>
                          </configuration>
                      </plugin>
                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-source-plugin</artifactId>
                          <version>3.2.1</version>
                          <executions>
                              <execution>
                                  <id>attach-sources</id>
                                  <phase>package</phase>
                                  <goals>
                                      <goal>jar-no-fork</goal>
                                  </goals>
                              </execution>
                          </executions>
                      </plugin>
                      <plugin>
                          <groupId>org.apache.tomcat.maven</groupId>
                          <artifactId>tomcat7-maven-plugin</artifactId>
                          <version>2.2</version>
                      </plugin>
                  </plugins>
              </pluginManagement>
          </build>
          <modules>
              <module>testAw-client</module>
              <module>testAw-shared</module>
              <module>testAw-server</module>
          </modules>
      </project>
      I will give it a try with the eval... but I have doubts that this is a SMARTGWT issues. It's maybe related to the tools we need to use (Eclipse, The GWT Plugin or the SDBG Debugger). I use the following Eclipse Version (Latest + lastes GWT Plugin3):

      Version: 2022-06 (4.24.0)
      Build id: 20220609-1112

      Also thanks for pointing the JAXB issue... I already saw this post and tried several combinations to add to the client and server pom. I had no success so far with this.

      Thanks
      Andy

      Comment


        #4
        Seems that there are issues between recent eclipse versions, the gwt plugin and sdbg. Just found this conversation.
        https://groups.google.com/g/google-w.../c/w2mCob7nB8g

        I tried to setup a new Eclipse Version (Version: 2022-09 (4.25.0))... the GWT Plugin does not install anymore. Tried it from marketplace and from http://storage.googleapis.com/gwt-ec...gin/v3/release

        Code:
        Cannot complete the install because one or more required items could not be found.
          Software being installed: GWT Eclipse Plugin 3.0.0.201710131939 (com.gwtplugins.eclipse.suite.v3.feature.feature.group 3.0.0.201710131939)
          Missing requirement: GWT Eclipse Plugin 3.0.0.201710131939 (com.gwtplugins.eclipse.suite.v3.feature.feature.group 3.0.0.201710131939) requires 'org.eclipse.equinox.p2.iu; org.eclipse.mylyn.commons.ui 0.0.0' but it could not be found
        Thanks
        Andy

        Last edited by andyx1975; 14 Sep 2022, 14:53.

        Comment


          #5
          So I downloaded now an older version of Eclipse (eclipse-jee-2021-06-R-linux-gtk-x86_64)... installed the GWT Plugin without SDBG and created an add on as described here:

          1. Clone: https://github.com/sdbg/sdbg
          2. Run maven: mvn install
          3. Find the SDBG plugin at the following location: om.github.sdbg.releng.p2\target\com.github.sdbg.releng.p2-1.0.10.qualifier.zip
          3. Add the built plugin with these steps: https://stackoverflow.com/questions/...lugin-manually

          This plugin works again in Eclipse. The plugin is too large to upload here. So everybody needs to build it for himself.

          Any idea what we can do with the GWT Plugin? Is this project discontinued? There are no updates since over one year. This plugin is still really usefull. Even with maven for starting the Codeserver in Eclipse.

          Thanks
          Andy



          Comment


            #6
            Here is also a fix available to for recent eclipse versions:
            https://github.com/gwt-plugins/gwt-e...gin/issues/407

            Just download that 407.zip and extract it to the plugins folder in Eclipse.

            Comment


              #7
              or you can download and install this one:
              https://github.com/keinhaar/gwt-eclipse-plugin/releases

              Comment

              Working...
              X