Hi

I had the same experience, running same IDE and Windows version; I'm
guessing it is a detail left out of the homework.  Also, NetBeans
defaulted to Java EE version "6 Web", but I used 5 per the
instructions.  I wonder if that had anything to do with it or the
version of GlassFish.  I simply changed the Properties/Run field of
the project to get the desired effect but that was the only way I
could get it to work.

On Mar 8, 5:16 am, Adrian Militaru <infosof...@gmail.com> 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/javaeehttp://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