Petstore Early Release Issue

I d/l'd NetBeans 5.5 that is bundled with the new version of Java EE and have installed the new Petstore early access (web 2.0) version. However, when I start it I am able to select one of the category ids (Dogs) and the page flips to the inventory page but, the accordion menu is present but has no items and the dark square in the middle of the page does not have a picture. The picker on the bottom does not show the inventory either. I receive the following stack trace:

StandardWrapperValve[CatalogServlet]: Servlet.service() for servlet CatalogServlet threw exception

java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName PetstorePu

at com.sun.enterprise.util.EntityManagerFactoryWrapper.getDelegate(EntityManagerFactoryWrapper.java:159)

at com.sun.enterprise.util.EntityManagerFactoryWrapper.createEntityManager(EntityManagerFactoryWrapper.java:181)

at com.sun.javaee.blueprints.petstore.model.CatalogFacade.getCategories(CatalogFacade.java:39)

at com.sun.javaee.blueprints.petstore.controller.CatalogServlet.handleCategories(CatalogServlet.java:239)

at com.sun.javaee.blueprints.petstore.controller.CatalogServlet.doGet(CatalogServlet.java:124)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

I am a novice whan it come to using NetBeans and the Sun Application Server, we use Eclipse and WebSphere. So, I'm sure its just a config problem but, I'm having difficulty getting this straightend out.

Any Help would be greatly appreciated.

Fran

[1644 byte] By [F_Varina] at [2007-10-2 20:55:19]
# 1

Fran,

I was having the same issue setting this up for the first time. In NetBeans, expand the petstore project to reveal the Server Resources directory. In that directory, there should be a setup.xml (Ant) which will create and populate a new petstore database instance. Right-click and Run Target -> setup.

Also, I had to manually unzip the javapetstore-2.0-ea1/lib/petstoreIndexes.zip to my own glassfish/domains/domain1/lib/petstore directory to get the search functionality working.

Hope this helps!

Brian

brodecapa at 2007-7-13 23:39:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

> Fran,

> I was having the same issue setting this up for the

> first time. In NetBeans, expand the petstore project

> to reveal the Server Resources directory. In that

> directory, there should be a setup.xml (Ant) which

> will create and populate a new petstore database

> instance. Right-click and Run Target -> setup.

>

> Also, I had to manually unzip the

> javapetstore-2.0-ea1/lib/petstoreIndexes.zip to my

> own glassfish/domains/domain1/lib/petstore directory

> to get the search functionality working.

>

> Hope this helps!

> Brian

I encountered same situation. Then, I tried the recovery way that you suggested. However, it still keep same situation.

Does anyone know how to resolve this?

I hope anyone to assist.

my version is

javapststore-2.0-ea3

Thank you and best regards

Dufunisa at 2007-7-13 23:39:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Hi,

You got that error because the setup did not happen successfully. The setup step creates the database and related connection resources in the app sever and populates it DB with data and indexes.

Can you try these instructons at

https://blueprints.dev.java.net/petstore/usingnetbeans.html ?

hth,

Sean

seanbrydona at 2007-7-13 23:39:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...