Hi mihai,
My tomcat server was started making correction as suggested with the following message displayed from command prompt: Dec 15, 2009 4:58:17 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 15, 2009 4:58:17 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 15, 2009 4:58:17 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 15, 2009 4:58:17 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 15, 2009 4:58:17 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-80 Dec 15, 2009 4:58:17 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Dec 15, 2009 4:58:17 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/38 config=null Dec 15, 2009 4:58:17 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2467 ms I then started my glassfish server and ran the webgoat application from the browser, but the browser returned the following error message. I tried both http:\\localhost:8080\WebGoat or http:\\localhost:8080\WebGoat\attack. I have restarted my PC and repeat the steps but still having the same error. HTTP Status 404 - type Status report message descriptionThe requested resource () is not available. Sun GlassFish Enterprise Server v2.1 Pls advise anyother configuration setup I should apply or examine in order to get the application going. Sorry for making the trouble. Regards, Peeter Date: Mon, 14 Dec 2009 10:45:14 +0100 From: mihai.di...@free.fr To: java-ee-j2ee-programming-with-passion@googlegroups.com Subject: Re: [java ee programming] Re: Lab 4010 home work problem Hi Peter, It seems that the JAVA_HOME works, the new error concern another problem that seems to be known for Tomcat as I found it through Google. Here is the solution "http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/87B9844AF29A886D852570530054F28B". Hope it helps, mihai peeter brunch a écrit : Hi, I have tried both methods that were suggested : set JAVA_HOME=c:\Program Files x(86)\Java\jdk1.6.0_14 or set JAVA_HOME=c:\PRGRA~2\Java\jdk1.6.0_14 Now, the Files unexpected error message has gone. But the system complained cannot find the file -Djava.endorsed.dirs=. reported as below: .................................................................. I M P O R T A N T U P G R A D E N O T I C E .................................................................. WebGoat 3.5 uses Tomcat 5.5.4 as the default application server. Tomcat 5.5.4 requires J2SE 5.0 (JDK 1.5) If the Tomcat server does not start: Download the WebGoat with Java addition from 1) http://www.owasp.org/software/webgoat.html 2) set JAVA_HOME= 3) run this batch file. .................................................................. .................................................................. The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE Using CATALINA_BASE: .\tomcat Using CATALINA_HOME: .\tomcat Using CATALINA_TMPDIR: .\tomcat\temp Using JAVA_HOME: C:\PRGRA~2\Java\jdk1.6.0_14 The system cannot find the file -Djava.endorsed.dirs=. May I know how to set home environment variabel correctly in order to access the missing file. Thanks for the suggested solutions. Regards, Peeter > Date: Fri, 11 Dec 2009 18:44:04 -0800 > Subject: [java ee programming] Re: Lab 4010 home work problem > From: yousongz...@gmail.com > To: java-ee-j2ee-programming-with-passion@googlegroups.com > > set JAVA_HOME="c:\Program Files x(86)" > I thought the code above is the key point. > > Try this instead: > set JAVA_HOME=c:\Program Files x(86) > > Otherwise, it may work like this when executing if not "%JAVA_HOME%" > == "" goto gotHome > > "%JAVA_HOME%" was stretched into ""c:\Program Files x(86)"" > then blank string "" was encountered. Then C:\Program. Then Files. And > Files unexpected. > > The dos shell isn't that intelligent like BASH. > > On 12月11日, 下午5时40分, peeter brunch <peeterbru...@hotmail.com> wrote: > > Hi, > > > > I have downloaded Java JDK 1.6 14 as my development kit for the J2EE) > > Programming (with Passion!) Basics course. My home directory for the JDK is > > under C:\Program Files (x86)\java\jdk1.6.0_14. > > > > I ran into the trouble of doing home work > > > > LAB-4010: Web Application Security Threats and Counter-measure > > > > I set the JAVA_HOME variable in my .bat file as follow: > > > > set CATALINA_HOME=.\tomcat > > set JAVA_HOME="c:\Program Files x(86)" > > if not "%JAVA_HOME%" == "" goto gotHome > > if exist ".\java" goto gotJava > > > > When I ran the webgoat.bat from window command prompt, I got the following > > error message when I try to start the Tomcat server : > > > > E:\techdoc\J2ee\Homework\4010_websecthreats\websecthreats\webgoatstandalone > > >webg > > oat > > Files was unexpected at this time. > > > > Window DOS is stopping at the string "Files" in "C:\Program Files x(86)" > > > > Could someone please tell me how to set up the JAVA_HOME variable correctly? > > > > Thanks for the help in advance. > > > > Regards, > > > > Peeter > > > > _________________________________________________________________ > > Your E-mail and More On-the-Go. Get Windows Live Hotmail > > Free.http://clk.atdmt.com/GBL/go/171222985/direct/01/ > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/ -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en