You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrew Stubbs <an...@stusoft.com> on 2001/04/22 17:13:18 UTC
Sunday and the brain is numb
Okay - please will somebody spot the obvious mistake for me - I cant see it
The servlet is called newlist
1) Mailman starts and give the following
2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): XmlReader - init /mailadmin/servlet /www/listserv/mailadmin
2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Reading /www/listserv/mailadmin/WEB-INF/web.xml
2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646 newlist
2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646 jsp
Si it finds the class ok.
2) I have setup the alias in httpd.conf as
Alias /mailadmin "/www/listserv"
<Directory "/www/listserv">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /mailadmin/servlet /mailadmin
<Location "/mailadmin/WEB-INF/">
AllowOverride None
deny from all
</Location>
Apache starts ok.
3) Servlet is in "/www/listserv/mailadmin/WEB-INF/net/stusoft/newlist.class"
4) tomcat server.xml is:
<Context path="/mailadmin/servlet"
docBase="/www/listserv/mailadmin"
debug="99"
reloadable="true"
trusted="true" >
</Context>
5) "/www/listserv/mailadmin/WEB-INF/web.xml is:
<web-app>
<servlet>
<servlet-name>
newlist
</servlet-name>
<url-pattern>
/servlet
</url-pattern>
<servlet-class>
net.stusoft.newlist
</servlet-class>
<load-on-startup>
-2147483646
</load-on-startup>
</servlet>
</web-app>
When I try and access the page using http:/www/mailadmin/servlet/newlist - it does not find it.
It is being called from a jsp as www/mailadmin/test.jsp which submits a form with action = "servlet/newlist"
Bypassing apache and using port 8080 also gives the same result.
Ideas anyone ?
I am off to drown my sorrows in beer !!
Andrew
Re: Sunday and the brain is numb
Posted by "Noel E. Lecaros" <sp...@mozcom.com>.
Hi, Andrew
I think newlist.class should be in a subdirectory named "classes" under
WEB-INF (see your item 3).
Regards,
Noel Lecaros
Andrew Stubbs wrote:
> Okay - please will somebody spot the obvious mistake for me - I cant
> see itThe servlet is called newlist 1) Mailman starts and give the
> following 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): XmlReader -
> init /mailadmin/servlet /www/listserv/mailadmin
> 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Reading
> /www/listserv/mailadmin/WEB-INF/web.xml
> 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646
> newlist
> 2001-04-22 03:00:54 - Ctx( /mailadmin/servlet ): Loading -2147483646
> jsp Si it finds the class ok. 2) I have setup the alias in httpd.conf
> as Alias /mailadmin "/www/listserv"
> <Directory "/www/listserv">
> Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /mailadmin/servlet /mailadmin
> <Location "/mailadmin/WEB-INF/">
> AllowOverride None
> deny from all
> </Location> Apache starts ok. 3) Servlet is in
> "/www/listserv/mailadmin/WEB-INF/net/stusoft/newlist.class" 4) tomcat
> server.xml is: <Context path="/mailadmin/servlet"
> docBase="/www/listserv/mailadmin"
> debug="99"
> reloadable="true"
> trusted="true" >
> </Context>5) "/www/listserv/mailadmin/WEB-INF/web.xml
> is: <web-app>
> <servlet>
> <servlet-name>
> newlist
> </servlet-name>
> <url-pattern>
> /servlet
> </url-pattern>
> <servlet-class>
> net.stusoft.newlist
> </servlet-class>
> <load-on-startup>
> -2147483646
> </load-on-startup>
> </servlet> </web-app> When I try and access the page using
> http:/www/mailadmin/servlet/newlist - it does not find it.It is being
> called from a jsp as www/mailadmin/test.jsp which submits a form with
> action = "servlet/newlist"Bypassing apache and using port 8080 also
> gives the same result. Ideas anyone ? I am off to drown my sorrows
> in beer !! Andrew