Re: [java ee programming] Re: Homework 4001

2010-03-08 Thread Adrian Militaru
I made this to work:

After you make all the lab requirements, not run the project directly
(with Run command). Select Services tab/Servers/Glassfish v3
Domain/Applications/MyFirstWebApp. Right-click and select "Open in
Browser". The result is now ok, and the browser displays the start
page that you selected.

Adrian Militaru

2010/3/8 Chris K :
> 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  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:
>>
>> 
>> 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";>
>>     
>>         MyOwnServlet
>>         myownpackage.MyOwnServlet
>>     
>>     
>>         MyOwnServlet
>>         /MyOwnServlet
>>     
>>     
>>         
>>             30
>>         
>>     
>>     
>>         MyOwnJSP.jsp
>>     
>> 
>>
>> 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



-- 
Adrian Militaru

Consultant IT&C
Infosoft SRL

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


[java ee programming] Homework 4001

2010-03-08 Thread Adrian Militaru
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:


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

MyOwnServlet
myownpackage.MyOwnServlet


MyOwnServlet
/MyOwnServlet



30



MyOwnJSP.jsp




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