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
> >
> >
> >
> 
>

Attachment: hello.war
Description: Binary data

Reply via email to