After my project generation, and without any local change, I started my application.
When I try to access http://localhost:8080/ I get an error screen :
"Your request cannot be processed"
Sorry, an error has occurred.
Status: Not Found (Not Found)
Message: Not Found
My application is inaccessible.
4.8.2
jhipster info :
[email protected] D:\Work\workspace\ads
+-- [email protected]
`-- UNMET PEER DEPENDENCY popper.js@^1.11.0
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.ads",
"nativeLanguage": "fr"
},
"jhipsterVersion": "4.8.2",
"baseName": "ads",
"packageName": "com.ads",
"packageFolder": "com/ads",
"serverPort": "8080",
"authenticationType": "oauth2",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": true,
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "fr",
"languages": [
"fr",
"ar-ly",
"en"
]
}
}
entityName.json files generated in the .jhipster directory
JDL entity definitions
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode)
git version 2.14.1.windows.1
node: v6.11.3
npm: 3.10.10
yarn: 1.0.2
Execution complete
entityName.json files generated in the .jhipster directoryNo entities.
Windows 7 Ultimate, and Chrome browser.
Can you provide us a stacktrace? Or your server lots?
I just used your configuration to generate an application and run it, no problem whatsoever...
I'm closing this as I can't reproduce: next time, please provide more information (what is your stacktrace? how do you start your application?), so we don't all lose time! I can't work with incomplete information.
And please also do a better ticket title, this is going to be annoying in the next release, as nobody will understand what this is
I encountered this problem some time ago randomly in Windows 7. In my case sometimes version compiled by Jenkins gave this error, but version compiled in my local computer didn't gave this error. I couldn't fix it, just some new build fixed this issue.
Seems to be related to Undertow. Switching Undertow logs to debug may give more information, in logback-spring.xml switch from:
<logger name="io.undertow" level="WARN"/>
to:
<logger name="io.undertow" level="DEBUG"/>
I get this output in my console after changing the io.undertow level :
2017-09-28 14:47:47.806 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Attempting to authenticate /, authentication required: false
2017-09-28 14:47:47.810 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@c61884 for /
2017-09-28 14:47:47.811 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Authentication result was ATTEMPTED for /
@ehatime You said you got the error at http://localhost:8080 but this works only if you run yarn webpack:build otherwise the recommended workflow in dev is to run both yarn start and mvnw and to access your app at http://localhst:9000 as explained in doc: http://www.jhipster.tech/development/#working-with-angular
I have a GC memory error when I run yarn start, I'll increase memory and see.
ran into the same probelm and had to run yarn webpack:build
ran into the same probelm and had to run
yarn webpack:build
Worked for me. Thanks @gwokudasam !!
More details.
yarn webpack:build from command promptran into the same probelm and had to run
yarn webpack:buildWorked for me. Thanks @gwokudasam !!
More details.
- worked with mvnw command from command prompt.
- failed when imported that project in eclipse and deployed on tomcat. Worked after running
yarn webpack:buildfrom command prompt
you're welcome
I am facing the same issue, and I have followed everything I found from running npm install, yarn install, yarn webpack:build, yarn start. I am still getting the same error. I even used https://start.jhipster.tech/ to see if something was wrong with the app generated in my machine. Not sure what else I could try, or how I could provide you with more information to help you.
@mustafa-almulla :
Please don't comment on an old issue. If you think this issue still applies, please create a new ticket with proper details.
If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:
Finally, you can also use our chat room on gitter.