Export to GitHub

bodgeit - issue #8

Installation of Bodgeit Unclear


Posted on Jun 30, 2014 by Helpful Bird

In the installation notes it states:

All you need to do is download and open the zip file, and then extract the war file into the webapps directory of your favorite servlet engine.

Then point your browser at (for example) http://localhost:8080/bodgeit

Q. Exactly what do you mean by 'point your browser'? Are you referring to a proxy setting here?

Comment #1

Posted on Jun 30, 2014 by Grumpy Rhino

Just type that URL into your browser's URL bar. If you want to use an intercepting proxy (like ZAP) then you'll need to set that up as well.

Comment #2

Posted on Jul 1, 2014 by Helpful Bird

Hi - I did type that URL into my browser's URL bar and all it returns is a blank screen. Yes, I have ZAP installed so please kindly confirm exactly what needs setting up in ZAP in order for it to pick up the Bodgeit site in the sites tab.

Comment #3

Posted on Jul 1, 2014 by Grumpy Rhino

Have a look at the ZAP help file (menu: Help / User Guide) - which is also online: https://code.google.com/p/zaproxy/wiki/HelpStartStart

Comment #4

Posted on Jul 1, 2014 by Helpful Bird

The Help files are anything but helpful i'm afraid. In Firefox, I have set the proxy to Localhost 8080. in ZAP, the Local Proxy is also set to Localhost 8080. Why does it still fail to lad the Bodgeit site?? What am I doing wrong? Is there any other setting/application I need to either install/configure? Note. I have also installed Appache Tomcat and also placed the Bodgeit WAR file onto the Webapps directory of Apache.

Comment #5

Posted on Jul 1, 2014 by Grumpy Rhino

By default tomcat listens on 8080 too. Try changing ZAP to listen on 8090. Remember to change you browser proxy settings as well. ZAP should warn you if it cant listen on the configured port, but tomcat wont.

Comment #6

Posted on Jul 1, 2014 by Helpful Bird

I've just changed the Firefox proxy to listen on 8090 (and ZAP to also listen on 8090). I then entered the URL ( http://localhost:8090/bodgeit http://localhost:8080/bodgeit) into Firefox URL bar anmd all i get is a blank white screen. What am I doing wrong??

Comment #7

Posted on Jul 1, 2014 by Grumpy Rhino

If tomcat is listening on 8080 you should access bodgeit via http://localhost:8080/bodgeit (not sure if the 8090 was a typo) Try accessing bodgeit on http://localhost:8080/bodgeit without using ZAP as a proxy (eg using a different browser) - if that doesnt work then its a tomcat issue. Have a look in the tomcat logs and see if there are any errors

Comment #8

Posted on Jul 1, 2014 by Helpful Bird

I've tried a different browser without using zap as a proxy and still doesn't work. Now, when you mention Tomcat...I installed Tomcat but it does not appear in Start------>Programs menu. In my local drive I have a folder called 'apache-tomcat-8.0.9'. IN there, is an executable called tomcat8.exe - which when double clicking does not do anything.

Comment #9

Posted on Jul 1, 2014 by Grumpy Rhino

So it sounds like its a tomcat issue. Have a look at the files in the tomcat 'logs' directory - are there any errors logged in any of them?

Comment #10

Posted on Jul 1, 2014 by Helpful Bird

The Logs directory is empty.

Comment #11

Posted on Jul 1, 2014 by Grumpy Rhino

That means tomcat isnt being started :/ Is there a tomcat8w.exe file in the bin directory? I've got tomcat 7 installed right now, and I use tomcat7w.exe which starts and stops the tomcat service. That might give you more info.

Comment #12

Posted on Jul 1, 2014 by Helpful Bird

Yes there is an exe with that name, but when I double clcik on it i get an 'Application System Error' dialogue box. the message syas 'The specified service does not exist as an installed service. unable to open the service tomcat8'

Comment #13

Posted on Jul 1, 2014 by Grumpy Rhino

No idea what that is then :( Might be worth reinstalling? Or asking on a tomcat list?

Comment #14

Posted on Jul 1, 2014 by Helpful Bird

Appreciate the time - its pretty annoying when we can't get the site to load up - irf yiou do come across anyone else with similar issues and there is a workaround please do let me know.

Comment #15

Posted on Jul 1, 2014 by Grumpy Rhino

Will do. Might be worth trying Tomcat7 - thats working fine for me ;) One thought - are you using tomcat 32 or 64 bit? Might also be worth trying the other one!

Comment #16

Posted on Jul 1, 2014 by Helpful Bird

I tried tomcat 8 64 bit and also tomcat 7 64 bit - OK will try 32 bit on both. I will update you once I have tried 32 bit version.

Comment #17

Posted on Jul 1, 2014 by Helpful Bird

i got it to work! i installed both tomcat 7 and 8 32 bit and after stoipping/starting services on both and changing the port to 8090 (yes, 8090); it launched the site in firefox and it loads up within zap too!!

:)

On Tue, Jul 1, 2014 at 9:29 AM, A Momoniat wrote:

Comment #18

Posted on Jul 1, 2014 by Grumpy Rhino

\o/

Status: Invalid

Labels:
Type-Defect Priority-Medium