Closed bonsmik closed 4 years ago
I could not reproduce with Maven, but I could reproduce with Gradle, both Angular and React. The weird characters are present on the home page with no changes in the message: You don't have an account yet?Ć Register a new account
I'm not familiar with Gradle so did not look into a fix.
For reference, here's the script I use for testing Tomcat (no database for easy Tomcat testing):
echo '{ "generator-jhipster": { "promptValues": { "packageName": "com.mycompany.myapp", "nativeLanguage": "en" }, "jhipsterVersion": "6.4.1", "applicationType": "gateway", "baseName": "nodb", "packageName": "com.mycompany.myapp", "packageFolder": "com/mycompany/myapp", "serverPort": "8080", "authenticationType": "uaa", "uaaBaseName": "uaa", "cacheProvider": "ehcache", "enableHibernateCache": false, "websocket": false, "databaseType": "no", "devDatabaseType": "no", "prodDatabaseType": "no", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": false, "buildTool": "gradle", "enableSwaggerCodegen": false, "clientFramework": "angular", "clientTheme": "none", "clientThemeVariant": "", "useSass": true, "clientPackageManager": "npm", "testFrameworks": [], "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "otherModules": [], "enableTranslation": true, "nativeLanguage": "en", "languages": [ "en" ], "embeddableLaunchScript": false, "blueprints": [] } }' > .yo-rc.json
jhipster --skip-install --force
./gradlew -Pprod -Pwar clean bootWar -DskipTests
docker run -d -p 8080:8080 --name=tomcat tomcat:8.5.40-jre8-alpine
docker cp ./build/libs/nodb-0.0.1-SNAPSHOT.war tomcat:/usr/local/tomcat/webapps/ROOT.war
sleep 30
open http://localhost:8080/
Will have a look. Sounds strange indeed. Maybe some resource processing or so
On Mon, Oct 28, 2019, 21:07 Jon Ruddell notifications@github.com wrote:
I could not reproduce with Maven, but I could reproduce with Gradle, both Angular and React. The weird characters are present on the home page with no changes in the message: You don't have an account yet?Ć Register a new account
I'm not familiar with Gradle so did not look into a fix.
For reference, here's the script I use for testing Tomcat (no database for easy Tomcat testing):
echo '{ "generator-jhipster": { "promptValues": { "packageName": "com.mycompany.myapp", "nativeLanguage": "en" }, "jhipsterVersion": "6.4.1", "applicationType": "gateway", "baseName": "nodb", "packageName": "com.mycompany.myapp", "packageFolder": "com/mycompany/myapp", "serverPort": "8080", "authenticationType": "uaa", "uaaBaseName": "uaa", "cacheProvider": "ehcache", "enableHibernateCache": false, "websocket": false, "databaseType": "no", "devDatabaseType": "no", "prodDatabaseType": "no", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": false, "buildTool": "gradle", "enableSwaggerCodegen": false, "clientFramework": "angular", "clientTheme": "none", "clientThemeVariant": "", "useSass": true, "clientPackageManager": "npm", "testFrameworks": [], "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "otherModules": [], "enableTranslation": true, "nativeLanguage": "en", "languages": [ "en" ], "embeddableLaunchScript": false, "blueprints": [] } }' > .yo-rc.json
jhipster --skip-install --force
./gradlew -Pprod -Pwar clean bootWar -DskipTests
docker run -d -p 8080:8080 --name=tomcat tomcat:8.5.40-jre8-alpine
docker cp ./build/libs/nodb-0.0.1-SNAPSHOT.war tomcat:/usr/local/tomcat/webapps/ROOT.war
sleep 30
ā You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/10698?email_source=notifications&email_token=AABRVCMJ3VY2N4QXAY3BHEDQQ5A7LA5CNFSM4JF6CDE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOG7KA#issuecomment-547123112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRVCIUY4KYXA6VONALDT3QQ5A7LANCNFSM4JF6CDEQ .
I can't reproduce it on my machine.
Sorry, just added and
and I have the same error now.
I found a solution (the web.xml
is missing from generated war). Will provide a PR tomorrow.
Overview of the issue
After deploying application to tomcat weird chars in application.
becomesĆ
Example from login page:
Motivation for or Use Case
Instead of using boxfuse to deploy I use jhipster aws subgenerator. Now I see those weird characters when running the application on Tomcat.
Reproduce the error
Create minimal application. Build the war as instructed. Deploy the application on tomcat. See login page.
Dockerfile for tomcat:
Steps to reproduce:
Related issues
Similar issue have been reported and fixed earlier https://github.com/jhipster/generator-jhipster/issues/8586
Suggest a Fix
Most probably something similar than in #8586
JHipster Version(s)
6.4.1
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
macOS 10.15, reproduces on chrome, safari and firefox