tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alastair Baldwin <alastairgbald...@yahoo.co.uk>
Subject Re: SEVERE: Allocate exception for servlet helloworld Apache-Tomcat 7.0.23
Date Tue, 10 Jan 2012 18:38:47 GMT
Excuse my ignorance, but I had the package information in place and had the same error
so I tried to simplify it by removing the package details from HelloWorldServlet.java
and the webapps directory. Is a package essential for tomcat to work?


----- Original Message -----
From: Mark Thomas <markt@apache.org>
To: Tomcat Users List <users@tomcat.apache.org>
Cc: 
Sent: Tuesday, 10 January 2012, 18:30
Subject: Re: SEVERE: Allocate exception for servlet helloworld Apache-Tomcat 7.0.23

On 10/01/2012 18:28, Alastair Baldwin wrote:
> Dear users
> 
> I'm unable to get a Hello World Servlet running from my browser. 
> 
> Configuration:
> Windows XP Version 2002 service pack 3
> Apache-tomcat-7.0.23-windows-x86
> CATALINA_HOME = c:\apache-tomcat-7.0.23-windows-x86\apache-tomcat-7.0.23
> CLASSPATH= .;c:\apache-tomcat-7.0.23-windows-x86\apache-tomcat-7.0.23\servlet-api.jar

>  JAVA_HOME=c:\Program Files\jdk1.7.0
> 
> 
> compiling as javac HelloWorldServlet.java -cp CATALINA_HOME/lib/servlet-api.jar 
> 
> I manually copy  HelloWorldServlet.class  to the apress directory under webapps

That should be apress/WEB-INF/classes/<package
structure>/HelloWorldServlet.class

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message