problem deploying the PetStore 2.0 Early Access

Folks,

Pardon the ignorance, but i'm not very conversant with EE apps. Trying to build, deploy and run from the command line gave me this error:

deploy:

[exec] CLI171 Command deploy failed : Deploying application in domain failed; Error loading deployment descriptors for

module [petstore] -- javax.annotation.Resource.authenticationType()Ljavax/annotation/Resource$AuthenticationType;at com.sun.

enterprise.deployment.annotation.AnnotationInfo@16df0d6

The server.log had a NoSuchMethodException error.

Any suggestions?

Thanks,

Nilesh

[597 byte] By [nthalia] at [2007-11-26 22:48:18]
# 1

Hi,

are you using the petstore version bundled in the java EE 5 SDK? Or did you download the PS separately? Are you trying to install the PS from cammand line with ant commands or are you using an IDE such as NetBeans? First I would recommend trying to build and deploy the petstore version bundled with the SDK since it is a bit easier to install, has one fewer steps.

I am not sure what step it is having problmes with for you. You could first try to just the run command "ant" which will build the application, and will tell you if the classpath is set properly and it is finding things properly.

Make sure you follow the instruction carefully for editting the build.properties file. For eample, make sure your javaee.home is set to the directory of where you have the SDK installed. For example, in your build.properties gilre you might have something like

# path to your application server installation

javaee.home=c:/Sun/SDK

and make sure c:/Sun/SDK is the actual path to your installed SDK, so put your path in for the javaee.home property.

hth,

Sean

seanbrydona at 2007-7-10 12:07:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Sean,

Thanks for the reply.

As the subject line says, it's the latest version of Petstore that i downloaded separately. And also, as i said earlier, i'm just using the command line to build, deploy and run.

Unfortunately, i deleted the petstore that came with the EE distribution :)

i'm running it using JDK5.0 (1.5.0_10) - hopefully that's not a problem?

let me see if i can restore the petstore that was bundled with the EE distribution.

I was checking to see if anyone else had a similar error that would ring a bell.

Thanks again,

Nilesh

nthalia at 2007-7-10 12:07:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Alright, so the petstore app bundled with the distribution works fine, so i'm not going to bother figuring out what went wrong with the one i downloaded separately.Thanks to Sean for suggesting this, and thanks to anyone who read my question.Nilesh
nthalia at 2007-7-10 12:07:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...