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 <[email protected]>
wrote:

> [email protected]
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
>  [image:
> Google Groups Logo]
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/topics>
>
>    - Error : No project found - Running GWT in client mode only
>    <#m_-168645234083686637_group_thread_0> - 1 Update
>
> Error : No project found - Running GWT in client mode only
> <http://groups.google.com/group/google-web-toolkit/t/58c2f6fcbdd5df9b?utm_source=digest&utm_medium=email>
> Mukeya Kassindye <[email protected]>: 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?
> Back to top <#m_-168645234083686637_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to [email protected].
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CABjQu7TMhqTsRqCXKQYpKfnUgND5M1k%2Bxh8hBFf7g1_V1DpEyw%40mail.gmail.com.

Reply via email to