-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging in sometimes goes to report card and misses category-menu #114
Comments
I am using the developer bootstrap, which calls the mvn -pl webgoat-container tomcat7:run-war goal and I face this intermittent issue as well. Whenever there is a fail when loading the plugins, no lessons are shown. Here is the plugin that fail intermittently: 015-10-22 17:31:00,274 INFO - Loading courses: /
362 2015-10-22 17:31:00,274 DEBUG - Loading plugins into cache
363 2015-10-22 17:31:00,733 ERROR - Loading plugins failed
364 java.util.concurrent.ExecutionException: org.owasp.webgoat.plugins.PluginLoadingFailure: Class org.owasp.webgoat.plugin.BlindScript listed in jar but unable to load the class.
365 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
.... |
I have the same failure in my logs when this occurs. I did some further testing, in a more structured way with the following conclusions. After running I got the same results when building with I had a look at when the plugin with
However, when it crashes it seems the class is loaded as the first class (or at least the output makes me believe so):
The root cause is always a ClassNotFoundException: When trying to reload the plugins by going to http://localhost:8080/WebGoat/service/reloadplugins.mvc I get another error:
I tried to refresh the page with the scorecard and ended up with a stack trace printed to the screen:
|
I was able to reproduce this on a Linux machine seems to work fine on a Windows platform, also directly after a clean checkout and build. Changed how the jars are loaded also works on the Linux image now. Pull request is available |
Logging in sometimes goes to report card and misses category-menu #114
The Travis build for JDK7 is green the JDK 8 build fails with an IO error(made another ticket for this one) Before closing the issue can you do a verification on your machine? |
I have made new builds on my local machine that had the issue and I am no longer able to reproduce the issue. I am using JDK8 on OS X.
|
Fixed by Nanne on commit nbaars@060b0cd Now working on Linux, Windows and Mac 💯 |
I know this ticket is close (it's been 2 years :-)) I am running java version 7.1 (school assignment) ... And have the most recent version fo WebGoat for Windows. |
I have been having issues trying to log in as
guest
orwebgoat
. The left menu does not render as expected with the categories but rather with the admin menu and displays the report card. Manually entering a URL-hash like#attack/152/900
will load that page but still with the wrong menu.I get stuck in this mode and logging out and logging in again puts me on the same page, even when I clear the cookies for localhost. I am able to get around it by clearing cookies, restarting the application and then reloading the login page.
I end up in this state both when running the
mvn -pl webgoat-container tomcat7:run-war
command and when running the app as a standalone jar usingjava -jar webgoat-container-7.0-SNAPSHOT-war-exec.jar http://localhost:8080/WebGoat
. It does not act consistently to my understanding and I have been unable to reproduce at will.The text was updated successfully, but these errors were encountered: