|
|
|
|
|
Re: New Scout version 10 released [message #1823435 is a reply to message #1823426] |
Thu, 26 March 2020 12:04   |
Eclipse User |
|
|
|
Ok, you explicitly set devMode to false. This works a little bit different than for previous releases.
When the server runs in dev mode, it loads the html files from the dist/dev folder. The dist folder contains the output of the webpack build and other html resources.
When the server runs in prod mode (devMode=false), the resources are loaded from the class path. So the content of the dist folder needs to be in the folder target/classes, e.g. target/classes/dev and target/classes/res. This is done by the maven phase prepare-package and should be executed automatically in Eclipse. Additionally, in prod mode the JS and CSS files look different than in dev mode, they are minimized and obfuscated. And they are placed in a folder prod.
Since creating these resources is not necessary for the daily development, you need to trigger the build manually. To do so, run "npm run build:prod" on the command line. This will fill your folder dist/prod. Now you need to move the prod folder to target/classes. Either do it manually or you can also click "Project / Clean..." in Eclipse which should do it for you.
Note: When building the war file using mvn install, this should all be done automatically. So when deploying it on Tomcat it should work out of the box.
|
|
|
|
|
Re: New Scout version 10 released [message #1830756 is a reply to message #1830716] |
Mon, 03 August 2020 06:32   |
Eclipse User |
|
|
|
Hi Senaka
Welcome to Eclipse Scout!
To better help you, could you provide us with the info what your JDK/JRE is that you are running Maven with, as well as the Maven version.
The easiest way to do is:
* If you are running the Maven Build from the commandline, please paste the output of mvn -version
* If you are running the Maven Build from the Eclipse IDE, open the Debug Menu and select the Build you ran. Check "Debug output" and start it again.
The output should look something like this:
Maven home: C:\dev\apache-maven-3.5.4
Java version: 11.0.4, vendor: AdoptOpenJDK, runtime: C:\eclipse\java\adoptopenjdk-11.0.4
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
|
|
|
|
|
|
|
Re: New Scout version 10 released [message #1849425 is a reply to message #1830888] |
Wed, 19 January 2022 09:58  |
Eclipse User |
|
|
|
Hello,
I have been having problems with launching my Scout 10 application after I switched developer mode to false and run 'npm run build:prod', then cleaned the project accordingly, as directed in this thread. Ever since ive been getting an error message ''lauching [webapp] all' has encountered a problem. Variable references non-existent resource : ${workspace_loc:/fitness_area.ui.html/js build.cmd}'
Any idea?
|
|
|
Powered by
FUDForum. Page generated in 0.05272 seconds