Thursday, October 24, 2024

Re: Embedded Jars and Java 17

To generally resolve cases like this, your IDE's build should be informed directly by your actual build files, rather than maintaining the IDE build separately. That ensures that the classpaths in the IDE directly match what the CI system or manual builds would produce, and keeps all developers on the same page, without the need for each to manually apply settings or check in build and IDE changes separately.

Build tools usually have their own features to hunt down transitive dependencies: mvn dependencies:tree, or gradle :dependencies would give you a hierarchical view of how transitive dependencies end up on your classpaths (though not, as you were initially suspicious of, how a class could be contributed from more than one jar).




On Thursday, October 24, 2024 at 3:10:31 PM UTC-5 B...@lacatena.net wrote:
Okay, my bad.  I looked for one class but not necessarily the right one.  There is another culprit, log4j2 core, that is using a commons IO class (FileUtils), so that is likely the source of the problem.

Sorry for wasting your time... but thanks very much for the quick response, and if nothing else, giving me a wrist slap to make me look more closely at what I'm doing.  [I never made these kinds of mistakes when I was younger.]

On Thursday, October 24, 2024 at 4:05:20 PM UTC-4 Bob Lacatena wrote:
So, yeah, that's why it compiles fine on the build server and on my Mac from using javac / Java command line.  I don't have gwt-dev.jar in my class paths there.  And I don't have it explicitly in the Eclipse class path, but I am presuming it is implicitly there (and is the problem) because of course I have this:

<classpathentry kind="con" path="com.gwtplugins.gwt.eclipse.core.GWT_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>

Or am I making a bad assumption here... does the problem/conflict lie elsewhere?

Another data point... I did not have this problem last week.  I haven't looked at that project for a week or so, and when I updated it (pull from GitHub) this compile issue cropped up, but I can find no change anyone else made remotely related to this, and everyone else (on Windows, I'm on a Mac) does not have the compile problem.

Last data point... I let Eclipse apply updates this week, so it upgraded me to 2024-09 and who knows what else.

I hate this black-box stuff.  Worst problems in the world to try to fix... things where you can't entirely look under the hood (into what's actually going on in Eclipse) to see what is really going on.
On Thursday, October 24, 2024 at 3:27:56 PM UTC-4 Colin Alworth wrote:
Vassilis is correct - definitely avoid placing either gwt-dev.jar or gwt-user.jar on your server classpath. Ideally, one can do this by splitting your server and client classpaths (into separate projects) - eclipse should then keep jars for one out of the classpath for the other.

GWT currently uses commons-io 2.4 in the compiler itself. There are a number of out of date dependencies in the compiler, but as above, these should never be deployed to your server, and should only present a risk if you provide untrusted data to the compiler - that is, if your project's own source and dependencies are themselves untrusted.

On Thursday, October 24, 2024 at 2:21:02 PM UTC-5 vas...@gmail.com wrote:
I think that you aren't supposed to include gwt-dev.jar in any classpath (frontend or backend). It is required for compilation and super-dev mode.

I can understand the infighting with eclipse settings though and I sympathize...

    Vassilis

On Thu, Oct 24, 2024 at 7:43 PM Bob Lacatena <B...@lacatena.net> wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/f4a30c32-ab5d-4ac3-a16e-eada196f0cean%40googlegroups.com.

Re: Embedded Jars and Java 17

Okay, my bad.  I looked for one class but not necessarily the right one.  There is another culprit, log4j2 core, that is using a commons IO class (FileUtils), so that is likely the source of the problem.

Sorry for wasting your time... but thanks very much for the quick response, and if nothing else, giving me a wrist slap to make me look more closely at what I'm doing.  [I never made these kinds of mistakes when I was younger.]

On Thursday, October 24, 2024 at 4:05:20 PM UTC-4 Bob Lacatena wrote:
So, yeah, that's why it compiles fine on the build server and on my Mac from using javac / Java command line.  I don't have gwt-dev.jar in my class paths there.  And I don't have it explicitly in the Eclipse class path, but I am presuming it is implicitly there (and is the problem) because of course I have this:

<classpathentry kind="con" path="com.gwtplugins.gwt.eclipse.core.GWT_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>

Or am I making a bad assumption here... does the problem/conflict lie elsewhere?

Another data point... I did not have this problem last week.  I haven't looked at that project for a week or so, and when I updated it (pull from GitHub) this compile issue cropped up, but I can find no change anyone else made remotely related to this, and everyone else (on Windows, I'm on a Mac) does not have the compile problem.

Last data point... I let Eclipse apply updates this week, so it upgraded me to 2024-09 and who knows what else.

I hate this black-box stuff.  Worst problems in the world to try to fix... things where you can't entirely look under the hood (into what's actually going on in Eclipse) to see what is really going on.
On Thursday, October 24, 2024 at 3:27:56 PM UTC-4 Colin Alworth wrote:
Vassilis is correct - definitely avoid placing either gwt-dev.jar or gwt-user.jar on your server classpath. Ideally, one can do this by splitting your server and client classpaths (into separate projects) - eclipse should then keep jars for one out of the classpath for the other.

GWT currently uses commons-io 2.4 in the compiler itself. There are a number of out of date dependencies in the compiler, but as above, these should never be deployed to your server, and should only present a risk if you provide untrusted data to the compiler - that is, if your project's own source and dependencies are themselves untrusted.

On Thursday, October 24, 2024 at 2:21:02 PM UTC-5 vas...@gmail.com wrote:
I think that you aren't supposed to include gwt-dev.jar in any classpath (frontend or backend). It is required for compilation and super-dev mode.

I can understand the infighting with eclipse settings though and I sympathize...

    Vassilis

On Thu, Oct 24, 2024 at 7:43 PM Bob Lacatena <B...@lacatena.net> wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/80e0cbd5-9a39-4a63-a398-80edab8fe97fn%40googlegroups.com.

Re: Embedded Jars and Java 17

So, yeah, that's why it compiles fine on the build server and on my Mac from using javac / Java command line.  I don't have gwt-dev.jar in my class paths there.  And I don't have it explicitly in the Eclipse class path, but I am presuming it is implicitly there (and is the problem) because of course I have this:

<classpathentry kind="con" path="com.gwtplugins.gwt.eclipse.core.GWT_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>

Or am I making a bad assumption here... does the problem/conflict lie elsewhere?

Another data point... I did not have this problem last week.  I haven't looked at that project for a week or so, and when I updated it (pull from GitHub) this compile issue cropped up, but I can find no change anyone else made remotely related to this, and everyone else (on Windows, I'm on a Mac) does not have the compile problem.

Last data point... I let Eclipse apply updates this week, so it upgraded me to 2024-09 and who knows what else.

I hate this black-box stuff.  Worst problems in the world to try to fix... things where you can't entirely look under the hood (into what's actually going on in Eclipse) to see what is really going on.
On Thursday, October 24, 2024 at 3:27:56 PM UTC-4 Colin Alworth wrote:
Vassilis is correct - definitely avoid placing either gwt-dev.jar or gwt-user.jar on your server classpath. Ideally, one can do this by splitting your server and client classpaths (into separate projects) - eclipse should then keep jars for one out of the classpath for the other.

GWT currently uses commons-io 2.4 in the compiler itself. There are a number of out of date dependencies in the compiler, but as above, these should never be deployed to your server, and should only present a risk if you provide untrusted data to the compiler - that is, if your project's own source and dependencies are themselves untrusted.

On Thursday, October 24, 2024 at 2:21:02 PM UTC-5 vas...@gmail.com wrote:
I think that you aren't supposed to include gwt-dev.jar in any classpath (frontend or backend). It is required for compilation and super-dev mode.

I can understand the infighting with eclipse settings though and I sympathize...

    Vassilis

On Thu, Oct 24, 2024 at 7:43 PM Bob Lacatena <B...@lacatena.net> wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/5857a12f-fb1e-40ee-a38f-a808f14c1cfen%40googlegroups.com.

Re: Embedded Jars and Java 17

Vassilis is correct - definitely avoid placing either gwt-dev.jar or gwt-user.jar on your server classpath. Ideally, one can do this by splitting your server and client classpaths (into separate projects) - eclipse should then keep jars for one out of the classpath for the other.

GWT currently uses commons-io 2.4 in the compiler itself. There are a number of out of date dependencies in the compiler, but as above, these should never be deployed to your server, and should only present a risk if you provide untrusted data to the compiler - that is, if your project's own source and dependencies are themselves untrusted.

On Thursday, October 24, 2024 at 2:21:02 PM UTC-5 vas...@gmail.com wrote:
I think that you aren't supposed to include gwt-dev.jar in any classpath (frontend or backend). It is required for compilation and super-dev mode.

I can understand the infighting with eclipse settings though and I sympathize...

    Vassilis

On Thu, Oct 24, 2024 at 7:43 PM Bob Lacatena <B...@lacatena.net> wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/d5620e22-5532-4162-9734-82827065efbcn%40googlegroups.com.

Re: Embedded Jars and Java 17

I think that you aren't supposed to include gwt-dev.jar in any classpath (frontend or backend). It is required for compilation and super-dev mode.

I can understand the infighting with eclipse settings though and I sympathize...

    Vassilis

On Thu, Oct 24, 2024 at 7:43 PM Bob Lacatena <Bob@lacatena.net> wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEyU8V_AMqEsGp%2BtqM3TLrD3m%2Bm4L3gL0PH4dzGuS0Qq-w%40mail.gmail.com.

Re: Embedded Jars and Java 17

Two important details I forgot.  This is happening in Eclipse, and the problem is that I get compile errors (probably because of conflicting signatures in the two versions of classes, but also possibly just in how it is resolving finding classes).

Often (not always), the command line compile works (I have not yet tested that in this case)... it's Eclipse that has the issue.

So maybe this is an Eclipse problem, but it's frequently triggered by the nature of the gwt-dev.jar in this case.

On Thursday, October 24, 2024 at 12:42:59 PM UTC-4 Bob Lacatena wrote:
I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/4935626f-4711-4e1a-8462-7700f694a49bn%40googlegroups.com.

Embedded Jars and Java 17

I've been working on a project for a while (posted a related problem some time back) to convert our massively complex software from Java 8 to Java 17.

Almost everything is done, but a recurring problem, one that just reared its head again this morning, as to do with jar conflicts.  [I am so angry with the Java architects for "fixing" the version problem in such an intractable, unmanageable way...]

The problem occurs when another jar (in this case gwt-dev.jar) embeds other class files (in this case org.apache.commons.io) that are otherwise used in our software.

Some questions:

1) What version of commons-io is it within gwt-dev.jar?
2) Is it all of the classes, or only the classes needed/referenced by gwt-dev code?
3) Has anyone else had this problem and found a good solution?

Approaches I am going to try are:

1) Match our commons IO version to the one in gwt-dev (this bothers me, because there may be a lot of recoding on my end) and remove the commons-io jar from our classpath.
2) If that doesn't work, then also rebuild the gwt-dev jar without the commons-io (this won't work until I match our commons IO version to the one gwt-dev.jar embeds).
3) Beg you to solve this problem for me somehow.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/b2259293-b34e-48bb-9ae7-22425ebb9d69n%40googlegroups.com.

Wednesday, October 16, 2024

Domino-ui 2.0.3 release

Dears;
Domino-ui 2.0.3 have been released

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/db6d16cd-3b95-493a-a252-6c4c838178fcn%40googlegroups.com.

Re: Error : No project found - Running GWT in client mode only

I am trying to set up a project where I want to use the GWT app on the client side only that is going to interact with another remote server.

Which server is going to host the GWT compiled JavaScript / HTML / ...?
1. If you'll have your own server, just leave the architecture as is, and write your calls to the external server in the the client.
2. If you need to host it on the external server, again, just leave the  architecture as is, as you can just copy the compiled GWT code across when you are ready to deploy.  But, if this is the situation, it's a bit crazy to not just make the external server a GWT app.

On Tuesday 15 October 2024 at 4:54:10 am UTC+11 Mukeya Kassindye wrote:
I am trying to set up a project where I want to use the GWT app on the client side only that is going to interact with another remote server.
However, before I implement the CORS option, I just want to run the client only part by eliminating all the server side code and deleting their corresponding module.
The GWT project is generated with the Tbroyer archetypes modular web-app.
This is what I did so far :
- copied the webapp folder from the web-project-server/src/main to web-project-client/src/main
- deleted the web-project-server and web-project-shared folders.
- updated the web-project-client's packaging from gwt-app to war
- kept the main pom packaging to "pom" because, soon the client's project is going to  have another modules(maven).
- deleted all reference to the two modules in the main pom.xml file.

So, if I run mvn clean install I can see that a war file is generated that can be deployed let's say to a Jboss/ wildfly server app.

However, from the main folder where the main pom.xml file is, I have an error of No project found if I run mvn gwt:codeserver -pl *-client -am

is there any other tweak I should consider on both poms xml file?
Notice that, if the packaging is kept to gwt-app in the client module, codeserver/devmode runs without a problem but I will have no reference the webapp files (index.html, css) because they won't be referenced.

Please advise.

this the content of my main pom.xml file : 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>web-app</artifactId>
  <version>HEAD-SNAPSHOT</version>
  <packaging>pom</packaging>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.gwtproject</groupId>
        <artifactId>gwt</artifactId>
        <version>2.11.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <inherited>false</inherited>
        <configuration>
          <moduleName>com.example.WebAppClient</moduleName>
          <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
          <!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
          <warDir>${project.build.directory}/gwt/launcherDir</warDir>
          <devmodeArgs>
            <arg>-noserver</arg>
            <arg>-startupUrl</arg>
            <arg>app/index.html</arg>
          </devmodeArgs>
        </configuration>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.12.1</version>
          <configuration>
            <release>11</release>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.3.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>3.2.5</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>3.4.0</version>
        </plugin>
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>11.0.19</version>
        </plugin>
        <plugin>
          <groupId>net.ltgt.gwt.maven</groupId>
          <artifactId>gwt-maven-plugin</artifactId>
          <version>1.1.0</version>
          <extensions>true</extensions>
          <configuration>
            <sourceLevel>11</sourceLevel>
            <failOnError>true</failOnError>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <modules>
    <module>web-app-client</module>
  </modules>
</project>


and this is the content of my client module pom.xml file : 
<?xml version="1.0" encoding="UTF-8"?>
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.example</groupId>
    <artifactId>web-app</artifactId>
    <version>HEAD-SNAPSHOT</version>
  </parent>

  <artifactId>web-app-client</artifactId>
  <!-- <packaging>gwt-app</packaging> -->
  <packaging>war</packaging>

  <dependencies>
    <dependency>
      <groupId>org.gwtproject</groupId>
      <artifactId>gwt-user</artifactId>
    </dependency>
    <dependency>
      <groupId>org.gwtproject</groupId>
      <artifactId>gwt-dev</artifactId>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <configuration>
          <moduleName>com.example.WebAppClient</moduleName>
          <moduleShortName>app</moduleShortName>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


what am i missing?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/7030870f-8897-4ead-9e04-47d4138ced21n%40googlegroups.com.

Monday, October 14, 2024

Re: Digest for google-web-toolkit@googlegroups.com - 1 update in 1 topic

Hi Mukeya,

I've never worked with the GWT archetype. But what is probably the case is that the archetype configuration needs the specific folders and setup it's defined. 
If you want to use a generated setup, it's best to follow the instructions of said setup.
So it's a bit like buying a toy car, removing the wheels and then complain about the fact that the car isn't rolling anymore.

In your case, based on the compiler error my guess would be that the compiler can't find the required ProjectName.gwt.xml or the accompanying ProjectName class is not present (or the ProjectName class does not implement EntryPoint)

If you only want the client side result, the tweaks you are making are not necessary anyway. The GWT client code gets compiled to html & javascript. So to start -> there is no need to run the result as a war. But since there is no runtime java code remaining if you want client code only, you should also just be able to take the generated html&javascript from the GWT compilation and with the root HTML file (and the external CSS if you have it) you can just zip it, and copy it over to your webserver. You can use the maven assembly plugin to generate the zip file.

In that case it doesn't matter if you have the whole generated structure from the archetype generation, but atleast you can be sure it works. You can always tweak that setup later, once you get more at home with the GWT plugin. 

rg,

Leon.





On Mon, Oct 14, 2024 at 10:56 PM <google-web-toolkit@googlegroups.com> wrote:
Mukeya Kassindye <djasy3@gmail.com>: Oct 14 10:54AM -0700

I am trying to set up a project where I want to use the GWT app on the
client side only that is going to interact with another remote server.
However, before I implement the CORS option, I just want to run the client
only part by eliminating all the server side code and deleting their
corresponding module.
The GWT project is generated with the Tbroyer archetypes modular web-app.
This is what I did so far :
- copied the webapp folder from the web-project-server/src/main to
web-project-client/src/main
- deleted the web-project-server and web-project-shared folders.
- updated the web-project-client's packaging from gwt-app to war
- kept the main pom packaging to "pom" because, soon the client's project
is going to have another modules(maven).
- deleted all reference to the two modules in the main pom.xml file.
 
So, if I run *mvn clean install *I can see that a war file is generated
that can be deployed let's say to a Jboss/ wildfly server app.
 
However, from the main folder where the main pom.xml file is, I have an
error of *No project found* if I run *mvn gwt:codeserver -pl *-client -am*
 
is there any other tweak I should consider on both poms xml file?
Notice that, if the packaging is kept to *gwt-app* in the client module,
codeserver/devmode runs without a problem but I will have no reference the
webapp files (index.html, css) because they won't be referenced.
 
Please advise.
 
this the content of my main pom.xml file :
 
<?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>com.example</groupId>
<artifactId>web-app</artifactId>
<version>HEAD-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt</artifactId>
<version>2.11.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<moduleName>com.example.WebAppClient</moduleName>
<launcherDir>${project.build.directory}/gwt/launcherDir</
launcherDir>
<!-- To be able to use gwt:devmode (useful on Windows where
Ctrl+C won't kill gwt:codeserver)-->
<warDir>${project.build.directory}/gwt/launcherDir</warDir>
<devmodeArgs>
<arg>-noserver</arg>
<arg>-startupUrl</arg>
<arg>app/index.html</arg>
</devmodeArgs>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>11.0.19</version>
</plugin>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1.0</version>
<extensions>true</extensions>
<configuration>
<sourceLevel>11</sourceLevel>
<failOnError>true</failOnError>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>web-app-client</module>
</modules>
</project>
 
 
and this is the content of my client module pom.xml file :
<?xml version="1.0" encoding="UTF-8"?>
<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>
 
<parent>
<groupId>com.example</groupId>
<artifactId>web-app</artifactId>
<version>HEAD-SNAPSHOT</version>
</parent>
 
<artifactId>web-app-client</artifactId>
<!-- <packaging>gwt-app</packaging> -->
<packaging>war</packaging>
 
<dependencies>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-user</artifactId>
</dependency>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-dev</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<moduleName>com.example.WebAppClient</moduleName>
<moduleShortName>app</moduleShortName>
</configuration>
</plugin>
</plugins>
</build>
</project>
 
 
what am i missing?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to google-web-toolkit+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CABjQu7TMhqTsRqCXKQYpKfnUgND5M1k%2Bxh8hBFf7g1_V1DpEyw%40mail.gmail.com.

Error : No project found - Running GWT in client mode only

I am trying to set up a project where I want to use the GWT app on the client side only that is going to interact with another remote server.
However, before I implement the CORS option, I just want to run the client only part by eliminating all the server side code and deleting their corresponding module.
The GWT project is generated with the Tbroyer archetypes modular web-app.
This is what I did so far :
- copied the webapp folder from the web-project-server/src/main to web-project-client/src/main
- deleted the web-project-server and web-project-shared folders.
- updated the web-project-client's packaging from gwt-app to war
- kept the main pom packaging to "pom" because, soon the client's project is going to  have another modules(maven).
- deleted all reference to the two modules in the main pom.xml file.

So, if I run mvn clean install I can see that a war file is generated that can be deployed let's say to a Jboss/ wildfly server app.

However, from the main folder where the main pom.xml file is, I have an error of No project found if I run mvn gwt:codeserver -pl *-client -am

is there any other tweak I should consider on both poms xml file?
Notice that, if the packaging is kept to gwt-app in the client module, codeserver/devmode runs without a problem but I will have no reference the webapp files (index.html, css) because they won't be referenced.

Please advise.

this the content of my main pom.xml file : 

<?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>com.example</groupId>
  <artifactId>web-app</artifactId>
  <version>HEAD-SNAPSHOT</version>
  <packaging>pom</packaging>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.gwtproject</groupId>
        <artifactId>gwt</artifactId>
        <version>2.11.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <inherited>false</inherited>
        <configuration>
          <moduleName>com.example.WebAppClient</moduleName>
          <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
          <!-- To be able to use gwt:devmode (useful on Windows where Ctrl+C won't kill gwt:codeserver)-->
          <warDir>${project.build.directory}/gwt/launcherDir</warDir>
          <devmodeArgs>
            <arg>-noserver</arg>
            <arg>-startupUrl</arg>
            <arg>app/index.html</arg>
          </devmodeArgs>
        </configuration>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.12.1</version>
          <configuration>
            <release>11</release>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.3.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>3.2.5</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>3.4.0</version>
        </plugin>
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>11.0.19</version>
        </plugin>
        <plugin>
          <groupId>net.ltgt.gwt.maven</groupId>
          <artifactId>gwt-maven-plugin</artifactId>
          <version>1.1.0</version>
          <extensions>true</extensions>
          <configuration>
            <sourceLevel>11</sourceLevel>
            <failOnError>true</failOnError>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <modules>
    <module>web-app-client</module>
  </modules>
</project>


and this is the content of my client module pom.xml file : 
<?xml version="1.0" encoding="UTF-8"?>
<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>

  <parent>
    <groupId>com.example</groupId>
    <artifactId>web-app</artifactId>
    <version>HEAD-SNAPSHOT</version>
  </parent>

  <artifactId>web-app-client</artifactId>
  <!-- <packaging>gwt-app</packaging> -->
  <packaging>war</packaging>

  <dependencies>
    <dependency>
      <groupId>org.gwtproject</groupId>
      <artifactId>gwt-user</artifactId>
    </dependency>
    <dependency>
      <groupId>org.gwtproject</groupId>
      <artifactId>gwt-dev</artifactId>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <configuration>
          <moduleName>com.example.WebAppClient</moduleName>
          <moduleShortName>app</moduleShortName>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


what am i missing?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/07799cc7-b5c4-4cc5-90d3-69e3007fb7edn%40googlegroups.com.