cwstmartin / webgoat

Automatically exported from code.google.com/p/webgoat
0 stars 0 forks source link

Exception in thread "Thread-1" java.lang.NullPointerException #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
2. # env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
3. ./webgoat.sh start80 

What is the expected output? What do you see instead?
Using CATALINA_BASE:   ./tomcat
Using CATALINA_HOME:   ./tomcat
Using CATALINA_TMPDIR: ./tomcat/temp
Using JAVA_HOME:       /usr/lib/jvm/java-1.5.0-sun/

  Open http://127.0.0.1/WebGoat/attack
  Username: guest
  Password: guest
  Or try http://guest:guest@127.0.0.1/WebGoat/attack 

    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:464)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Exception in thread "Thread-1" java.lang.NullPointerException
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:875)
    at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1120)
    at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1092)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:119)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
    at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2044)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)

What version of the product are you using? On what operating system?
WebGoat-5.2 on Ubuntu 8.10 (i386)

Please provide any additional information below.

Original issue reported on code.google.com by jack.cia...@gmail.com on 23 Feb 2009 at 11:48

GoogleCodeExporter commented 8 years ago
Have you been able to start up Tomcat without using the WebGoat script?

Original comment by mayhe...@gmail.com on 20 Mar 2009 at 12:45

GoogleCodeExporter commented 8 years ago
Tomcat seems to start for me when I run the "startup.sh" script.  However, I 
can't
find it under the running process list.

ubuntu@MVKS:/pentest/WebGoat-5.2$ sudo ./tomcat/bin/startup.sh 
Using CATALINA_BASE:   /pentest/WebGoat-5.2/tomcat
Using CATALINA_HOME:   /pentest/WebGoat-5.2/tomcat
Using CATALINA_TMPDIR: /pentest/WebGoat-5.2/tomcat/temp
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun
ubuntu@MVKS:/pentest/WebGoat-5.2$ 

I do get some errors though when attempting to start WebGoat.  See below

ubuntu@MVKS:/pentest/WebGoat-5.2$ sudo sh ./webgoat.sh start80
Using CATALINA_BASE:   ./tomcat
Using CATALINA_HOME:   ./tomcat
Using CATALINA_TMPDIR: ./tomcat/temp
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun

  Open http://127.0.0.1/WebGoat/attack
  Username: guest
  Password: guest
  Or try http://guest:guest@127.0.0.1/WebGoat/attack 

    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:464)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Original comment by KellySey...@gmail.com on 21 Mar 2009 at 8:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Tomcat seems to start for me when I run the "startup.sh" script.  However, I 
can't
find it under the running process list.

ubuntu@MVKS:/pentest/WebGoat-5.2$ sudo ./tomcat/bin/startup.sh 
Using CATALINA_BASE:   /pentest/WebGoat-5.2/tomcat
Using CATALINA_HOME:   /pentest/WebGoat-5.2/tomcat
Using CATALINA_TMPDIR: /pentest/WebGoat-5.2/tomcat/temp
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun
ubuntu@MVKS:/pentest/WebGoat-5.2$ 

I do get some errors though when attempting to start WebGoat.  See below

ubuntu@MVKS:/pentest/WebGoat-5.2$ sudo sh ./webgoat.sh start80
Using CATALINA_BASE:   ./tomcat
Using CATALINA_HOME:   ./tomcat
Using CATALINA_TMPDIR: ./tomcat/temp
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun

  Open http://127.0.0.1/WebGoat/attack
  Username: guest
  Password: guest
  Or try http://guest:guest@127.0.0.1/WebGoat/attack 

    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:464)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Original comment by micvav...@gmail.com on 21 Mar 2009 at 8:32

GoogleCodeExporter commented 8 years ago
Did you make sure that no other service is already bound to port 80?

Original comment by linux.ni...@gmail.com on 9 Jun 2010 at 7:23

GoogleCodeExporter commented 8 years ago
fixed in 5.4

Original comment by mayhe...@gmail.com on 23 Apr 2012 at 7:53