You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Damien <da...@laposte.net> on 2003/09/03 12:44:15 UTC
Problem with my first webapp
Hi,
I'm following the instrutions found in :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
I'm trying to install my first webapp in tomcat but a problem occurs :
[quetzalcoatl@linux tomcat-test]$ ant install
Buildfile: build.xml
prepare:
compile:
install:
[install] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[install] <html lang="fr">
[install] <head>
[install] <title>Centre de Commande de POPFile</title>
[install] <link rel="stylesheet" type="text/css"
href="skins/SimplyBlue.css" title="SimplyBlue">
[...]
[install] </body>
[install] </html>
BUILD FAILED
file:/home/quetzalcoatl/Documents/www/tomcat-test/build.xml:364:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Total time: 2 seconds
[quetzalcoatl@linux tomcat-test]$
Here, we can see the index page of popfile (a mail classifier proxy)
which is under the port 8080 of my computer.
I've changed the file $CATALINA_HOME/conf/server.xml so tomcat uses the
port 8081 instead of 8080 :
<Connector port="8081"
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
But 'ant install' always output the same error message. Can somebody
help me ?
Thanks
Re: Problem with my first webapp
Posted by John Turner <to...@johnturner.com>.
oops, that should be:
out.println("<div align='center'><h2>" + myVar = "</h2></div>");
My bad.
John
John Turner wrote:
>
> $CATALINA_HOME/webapps/myApp
> $CATALINA_HOME/webapps/myApp/hello.jsp
> $CATALINA_HOME/webapps/myApp/WEB-INF
> $CATALINA_HOME/webapps/myApp/WEB-INF/classes
> $CATALINA_HOME/webapps/myApp/WEB-INF/lib
> $CATALINA_HOME/webapps/myApp/WEB-INF/web.xml
>
> hello.jsp:
>
> <%
>
> String myVar = new String("Hello World");
> out.println("<div align="center"><h2>" + myVar = "</h2></div>");
>
> %>
>
> http://localhost/myApp/hello.jsp
>
> Post back when you are ready for servlets.
>
> John
>
> Damien wrote:
>
>> Can somebody provides me a complete tree with a simple application to
>> start working on ? I think it would be a good idea if somebody
>> 'tar/gzip' the directory strutcure found in this page :
>> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
>> so a beginner is able to start with a clean project.
>>
>>
>> Thanks
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
Re: Problem with my first webapp
Posted by John Turner <to...@johnturner.com>.
$CATALINA_HOME/webapps/myApp
$CATALINA_HOME/webapps/myApp/hello.jsp
$CATALINA_HOME/webapps/myApp/WEB-INF
$CATALINA_HOME/webapps/myApp/WEB-INF/classes
$CATALINA_HOME/webapps/myApp/WEB-INF/lib
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml
hello.jsp:
<%
String myVar = new String("Hello World");
out.println("<div align="center"><h2>" + myVar = "</h2></div>");
%>
http://localhost/myApp/hello.jsp
Post back when you are ready for servlets.
John
Damien wrote:
> Can somebody provides me a complete tree with a simple application to
> start working on ? I think it would be a good idea if somebody
> 'tar/gzip' the directory strutcure found in this page :
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
> so a beginner is able to start with a clean project.
>
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
Re: Problem with my first webapp
Posted by Damien <da...@laposte.net>.
Can somebody provides me a complete tree with a simple application to
start working on ? I think it would be a good idea if somebody
'tar/gzip' the directory strutcure found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
so a beginner is able to start with a clean project.
Thanks