Hi,

 I've the same issue and I was going to write to the list as well.
Initially, I thought that GlassFish 3.0 bundled with NetBeans 6.8 is the
issue (GlassFish 2.x is used in tutorial).
 When you change Relative URL in project properties and you hit Run,
then NetBeans would use URL as composed from project properies:
http://localhost:8080/MyFirstWebApp/MyOwnServlet.
 Please point your browser to: http://localhost:8080/MyFirstWebApp/

Regards,
Ovidiu

On 3/8/10 3:16 PM, Adrian Militaru wrote:
> Hello everyone,
>
>   I followed all the steps in lab 4001, part 2.4, but when I run
> MyFirstWebApp, it displays :
>
> Servlet MyOwnServlet at /MyFirstWebApp
>
> not MyOwnJSP.jsp content.
>
> My web.xml looks like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>     <servlet>
>         <servlet-name>MyOwnServlet</servlet-name>
>         <servlet-class>myownpackage.MyOwnServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>MyOwnServlet</servlet-name>
>         <url-pattern>/MyOwnServlet</url-pattern>
>     </servlet-mapping>
>     <session-config>
>         <session-timeout>
>             30
>         </session-timeout>
>     </session-config>
>     <welcome-file-list>
>         <welcome-file>MyOwnJSP.jsp</welcome-file>
>     </welcome-file-list>
> </web-app>
>
>
> and the Properties/Run in MyFirstApp project points to relative url:
> /MyOwnServlet
>
>
> I use NetBeans IDE 6.8 on WIndows 7 Professional.
>
> Best regards,
> --
> Adrian Militaru
>
>   

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to