Re: neither default servlet nor welcome files found

Johan Edlund <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Well, it still doesn't work..
I tried with the "<welcome files>". Web.xml now looks like this:

<?xml version="1.0"?>
<!--$Id: web.xml,v 1.1 2003/11/11 13:32:15 shuber Exp $ -->
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Hello</display-name>
<servlet>
	<servlet-name>hello</servlet-name>
	<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
	<servlet-name>hello</servlet-name>
	<url-pattern>/hello</url-pattern>
</servlet-mapping>
<welcome-file-list>
	<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

And the structure of the hello.war:
META-INF
------MANIFEST.MF
WEB-INF
-------\CLASSES
------------------HelloServlet.class
-------index.jsp
-------web.xml

Is Index.jsp in the right place?

/Johan

On 7/4/05, Serge Huber <[email protected]> wrote:
> 
> Hi Johan,
> 
> Do you have a welcome file entry ? Try looking at how our packaged web
> apps work using an index.jsp file as an entry point and this should help.
> 
> Regards,
>   Serge Huber.
> 
> Johan Edlund wrote:
> 
> >Hi,
> >
> >I'm trying to deploy a simple web app as described in this doc (section 2.1):
> > Jahia 4.x Web Application Developer Guide
> >
> >But, i get the error "neither default servlet nor welcome files
> >found". But I'm sure this web app should work....?
> >
> >I have Jahia version 4.0.5 and Tomcat 4.1.
> >
> >best regards
> >/Johan
> >
> >
> >
> 
>
hello.war (application/octet-stream, 2.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.