users@glassfish.java.net

Re: deploying javapetstore

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Mon, 29 Mar 2010 17:39:44 +0200

it's been ages since I used petstore...
for it to work in v3, you need to edit bp-project/build.properties and adjust the value of :
        javaee.home=/path/to/glassfishv3/
make sure you start the appserver and the DB:
        asadmin start-domain
        asadmin start-database
then run :
        ant setup
        ant run (you could also open the project in NetBeans and run from there)

The error you have means you don't have a properly packaged (or properly deployed) application since /faces requests should be treated by the JSF servlet.

-Alexis

On 18 mars 2010, at 11:04, glassfish_at_javadesktop.org wrote:

> Hi all
> I am new to java world
> I have glassfishv3 that comes with the java EE SDK web profile. I tried to deploy the javapetstore, everything is fine until I press [b]ENTER THE STORE[/b] it throws an error message like:
>
> [b] Status 404 -
> type Status report
> message
> descriptionThe requested resource () is not available.
> GlassFish v[/b]
>
> and the resource in question is at:
> [b]http://localhost:8080/javapetstore-2/web/faces/index.jsp[/b]
> when I search the folder there is no directory named [b]faces[/b] and I thought it might be missing or corrupt, then I downloaded the app few more times but the same error still occurred.
> help please
> [Message sent by forum member 'vik_sintus']
>
> http://forums.java.net/jive/thread.jspa?messageID=392528
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>