Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF4E4B204 for ; Tue, 10 Jan 2012 18:28:42 +0000 (UTC) Received: (qmail 17838 invoked by uid 500); 10 Jan 2012 18:28:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 17770 invoked by uid 500); 10 Jan 2012 18:28:38 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 17760 invoked by uid 99); 10 Jan 2012 18:28:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 18:28:37 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.12.10.78] (HELO nm21-vm6.bullet.mail.ukl.yahoo.com) (217.12.10.78) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Jan 2012 18:28:27 +0000 Received: from [217.146.183.217] by nm21.bullet.mail.ukl.yahoo.com with NNFMP; 10 Jan 2012 18:28:06 -0000 Received: from [217.146.183.162] by tm10.bullet.mail.ukl.yahoo.com with NNFMP; 10 Jan 2012 18:28:06 -0000 Received: from [127.0.0.1] by omp1003.mail.ukl.yahoo.com with NNFMP; 10 Jan 2012 18:28:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 44747.10308.bm@omp1003.mail.ukl.yahoo.com Received: (qmail 141 invoked by uid 60001); 10 Jan 2012 18:28:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1326220085; bh=lNbBiPHuUoVh4sea35YHdkT49S8GpZeRaETD1RvJuUA=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SYtpEcK2K8gcuc9nxjVJD0EGChG9v6OZBcZL4Got0QMfVRtLsFcXSpawqj9DTVVemR1LkojB1j9+djsvJprY39P5Xrc2Ygq5RCuya0IFO8s6otgwheQSXdWy+Gw0o+NNW23FFZWTo9xZNF3gqsdfzXvGUD4HYc8Pkq6LVjMDIPc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6W+iQ4Iug+pczb/q6+EXdSYivm+QUZdYjK+zI0u8WrxQLK9UKMoZouw/EsumAXbRB/FvfL9E7Rr7LGVueL9Gd1opw6uf6XW4XCvwWSEVBvCa3B7isKbaQOY1ZMpdDUK4nOqRaXKxw4d7X3ahK2rxx2kvG+d6zMozoVc3aCxNMCE=; X-YMail-OSG: 4pHUR3cVM1mvEhhLwI2OVxFeHUVK.1RnU63LiSHoyQDu6go 20K6JZDi.PKO9VtFI_7dOFfGZk80dh6MCp67i4SzgHVPtoy04cm_6VFBhx7z fu6cV4AvvdMpepJsTyll.3pvyjdSqRObE9qX.F2ArE3hITiPFEUpup69Mvnu dZgA4mNrYc8yz0j_1LoIFxE9H.jZj5NITH0q3LIVcWn1WaYGlxk0q7edNm8x Ses.HrpjB6cN1ltVg7ReCZsG535NA24.D1QKtkqfNdtoyjD1qkSdhge1v_b1 PkQ.0zdsTl4Jkkqru54Pv5svWx9OPBo2a8OJv4PHJw7qBgyowfrIh27iS5wh b1cZvh3vcd4oVugbiK_kpX.YGRdTCUZDgihWll1DONhGY80tIMner6SYXzMl EVvFsLlbgwxd2pL_vMryJIwOfYMk5 Received: from [87.114.19.119] by web25504.mail.ukl.yahoo.com via HTTP; Tue, 10 Jan 2012 18:28:05 GMT X-Mailer: YahooMailWebService/0.8.115.331698 Message-ID: <1326220085.99441.YahooMailNeo@web25504.mail.ukl.yahoo.com> Date: Tue, 10 Jan 2012 18:28:05 +0000 (GMT) From: Alastair Baldwin Reply-To: Alastair Baldwin Subject: SEVERE: Allocate exception for servlet helloworld Apache-Tomcat 7.0.23 To: "users@tomcat.apache.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Dear users=0A=0AI'm unable to get a Hello World Servlet running from my bro= wser.=A0=0A=0AConfiguration:=0AWindows XP Version 2002 service pack 3=0AApa= che-tomcat-7.0.23-windows-x86=0ACATALINA_HOME =3D c:\apache-tomcat-7.0.23-w= indows-x86\apache-tomcat-7.0.23=0ACLASSPATH=3D=A0.;c:\apache-tomcat-7.0.23-= windows-x86\apache-tomcat-7.0.23\servlet-api.jar=A0=0A=A0JAVA_HOME=3Dc:\Pro= gram Files\jdk1.7.0=0A=0A=0Acompiling as javac HelloWorldServlet.java -cp C= ATALINA_HOME/lib/servlet-api.jar=A0=0A=0AI manually copy =A0HelloWorldServl= et.class=A0 to the apress directory under webapps=0A=0Aand the web.xml to w= ebapps/apress/WEB-INF=0A=0AI start Tomcat from CATALINA_HOME\bin as catalin= a start=0A=0AI get the following output:=0AJan 09, 2012 12:40:51 AM org.apa= che.catalina.startup.HostConfig deployDirectory=A0=0AINFO: Deploying web ap= plication directory C:\apache-tomcat-7.0.23-windows-x86\apache-tomcat-7.0.2= 3\webapps\apress=A0=0AINFO: Server startup in 1017 ms=A0=0A=0A=0AIn Google = chrome I type:=A0=0Ahttp://localhost:8080/apress/hello.html=0A=0AI get the = following output in my browser:=A0=0A=0A=0A-HTTP Status 500 -=A0=0Atype Exc= eption report=A0=0Amessage=A0=0Adescription The server encountered an inter= nal error () that prevented it from fulfilling this request.=A0=0Aexception= =A0=0Ajavax.servlet.ServletException: Error instantiating servlet class Hel= loWorldServlet=A0=0Aorg.apache.catalina.authenticator.AuthenticatorBase.inv= oke(AuthenticatorBase.java:472)=A0=A0=0A=0A=0Aand this is the logs:=A0=0A= =0AINFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLoc= ationsCache', 'org.apache.jasper.compiler.TldLocationsCache@4ded8e')=A0=0AJ= an 09, 2012 12:40:49 PM org.apache.catalina.core.ApplicationContext log=A0= =0AINFO: Marking servlet helloworld as unavailable=A0=0AJan 09, 2012 12:40:= 49 PM org.apache.catalina.core.StandardWrapperValve invoke=A0=0ASEVERE: All= ocate exception for servlet helloworld=A0=0Ajava.lang.ClassNotFoundExceptio= n: HelloWorldServlet=A0=0Aat org.apache.catalina.loader.WebappClassLoader.l= oadClass(WebappClassLoader.java:1688)=A0=A0=0A=0A=0A=0AThanks in advance=0A= =0AAlastair=A0=A0 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org