I have a servlet MyHelloWorld.java and it compiles OK.

I have a directory WEB-INF, inside there's web.xml, jboss-web.xml and classes 
directory, where MyHelloWorld.class is put.

Listing of web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!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>
    
        <servlet-name>MyHelloWorld</servlet-name>
        <servlet-class>MyHelloWorld</servlet-class>
    
    <servlet-mapping>
        <servlet-name>MyHelloWorld</servlet-name>
        <url-pattern>/servlet/MyHelloWorld/*</url-pattern>
    </servlet-mapping>
</web-app>

Listing of jboss-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_3_3.dtd";>
<jboss-web>
   <context-root>/MyHelloWorld</context-root>
   <virtual-host>localhost</virtual-host>
</jboss-web>

when I make a MyHelloWorld.war from WEB-INF directory and copy it into 
C:\jboss-4.0.0DR3\server\default\deploy and then see 
http://localhost:8080/MyHelloWorld/ 
I get 
directory listing for /
and no files inside

Can anybody help me?





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831652#3831652

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831652


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to