You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Carla Cremers <cr...@azulsystems.com> on 2005/10/20 05:43:45 UTC

Petstore with Geronimo M5 ?

I am working with geronimo-1.0-M5/solaris 9/java 1.4.2_06 and trying to get

the various applications to work.

 

Petstore : 

 

  cremers@slh: % pwd

  /home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandbox/petstore

  cremers@slh: % maven

    ( snip )

    [copy] Copying 2 files to
/home/cremers/java_apps/web_servers/geronimo-1.0-M

5/sandbox/petstore/target/geronimo_1.0-M5/var

    [echo] Preprocessing opc1.3.2.ear-plan.xml

    [echo] Preprocessing petstore1.3.2-db-ra-plan.xml

    [echo] Preprocessing petstore1.3.2-jms-ra-plan.xml

    [echo] Preprocessing petstore1.3.2-security-plan.xml

    [echo] Preprocessing petstore1.3.2.ear-plan.xml

    [echo] Preprocessing petstoreadmin1.3.2.ear-plan.xml

    [echo] Preprocessing supplier1.3.2.ear-plan.xml

    [echo] Building Security Configuration

    [java] Unable to access jarfile
/home/cremers/java_apps/web_servers/geronimo

-1.0-M5/sandbox/petstore/target/geronimo_1.0-M5/bin/deployer.jar

 

  BUILD FAILED

  File......
/home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandbox/petstor

e/maven.xml

  Element... ant:java

  Line...... 62

  Column.... 84

  Java returned: 1

  Total time: 38 seconds

  Finished at: Wed Oct 19 19:59:24 PDT 2005

 

  Looked and determined that target/geronimo-1.0-M5/bin/deployer.jar existed,

  but not target/geronimo_1.0-M5/bin/deployer.jar, so tweaked maven.xml :

 

  cremers@slh: % diff maven.xml maven.xml.original

26c26

  <     <j:set var="instDir"
value="${maven.build.dir}/geronimo-${geronimo_versi

on}"/>

  ---

  >     <j:set var="instDir"
value="${maven.build.dir}/geronimo_${geronimo_versi

on}"/>

 

  Now I get :

 

  [copy] Copying 2 files to
/home/cremers/java_apps/web_servers/geronimo-1.0-M5/

sandbox/petstore/target/geronimo-1.0-M5/var

  [mkdir] Created dir:
/home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandb

ox/petstore/target/plan

  [echo] Preprocessing opc1.3.2.ear-plan.xml

  [echo] Preprocessing petstore1.3.2-db-ra-plan.xml

  [echo] Preprocessing petstore1.3.2-jms-ra-plan.xml

  [echo] Preprocessing petstore1.3.2-security-plan.xml

  [echo] Preprocessing petstore1.3.2.ear-plan.xml

  [echo] Preprocessing petstoreadmin1.3.2.ear-plan.xml

  [echo] Preprocessing supplier1.3.2.ear-plan.xml

  [echo] Building Security Configuration

  [echo] Building Security Configuration

  [java]     Error: Operation failed: Unable to load first parent of

  [java]     configuration org/apache/geronimo/PetStoreSecurity1.3.2 caused
by N

o

  [java]     configuration with id: org/apache/geronimo/Secure

  [java]

 

Any clues ?

 

Thanks !


Re: Petstore with Geronimo M5 ?

Posted by Jacek Laskowski <jl...@apache.org>.
Carla Cremers wrote:

> Any clues ?

Let me take a look at it and I'll get back to you soon.

> Thanks !

Thanks for pointing it out!

Jacek

Re: Petstore with Geronimo M5 ?

Posted by Jacek Laskowski <jl...@apache.org>.
Carla Cremers wrote:

>   cremers@slh: % diff maven.xml maven.xml.original
> 
> 26c26
> 
>   <     <j:set var="instDir" 
> value="${maven.build.dir}/geronimo-${geronimo_versi
> 
> on}"/>
> 
>   ---
> 
>   >     <j:set var="instDir" 
> value="${maven.build.dir}/geronimo_${geronimo_versi
> 
> on}"/>
> 
>  
> 
>   Now I get :

> 
>   [java]     Error: Operation failed: Unable to load first parent of
> 
>   [java]     configuration org/apache/geronimo/PetStoreSecurity1.3.2 
> caused by No configuration with id: org/apache/geronimo/Secure

> Any clues ?

Hi Carla,

The changes to make it work are in the repo. I haven't been able to run 
PetStore because of some security changes involved which aren't yet 
sorted out. Stay tuned.

Please download the latest sources (sandbox/petstore, actually) and give 
it a try.

Thanks for the head-up.

Jacek

Re: Petstore with Geronimo M5 ?

Posted by Jacek Laskowski <jl...@apache.org>.
Carla Cremers wrote:

> Any clues ?

It's much better now. I've just applied a fix to make it work as 
described at http://wiki.apache.org/geronimo/PetStore. Download the 
latest sources (make sure it's revision 328497 or higher) and give it a 
try again. You'll be surprised to see the green parrot in your browser ;)

Thanks again for the head-up!

Jacek


Re: Petstore with Geronimo M5 ?

Posted by Jacek Laskowski <jl...@apache.org>.
David Jencks wrote:
> I think petstore has not been maintained, and I wasn't aware that it 
> ever completely worked.

Dave is completely right...unfortunatelly (it's not that I'm not happy 
he's right ;)). It was time when I tried to deploy it and failed, mostly 
because of lack of time. I'm gonna take a look at it again, so keep your 
eye on http://wiki.apache.org/geronimo/PetStore to watch the topic.

> I (although extremely biased) would work with head rather than M5 and if 
> you make progress on this I hope you will consider contributiing the 
> patches to make it work back to the community!

+100000. Yes, yes, yes, please do! I'd love to commit any changes to 
boost the work on it.

> david jencks

Jacek

Re: Petstore with Geronimo M5 ?

Posted by David Jencks <da...@yahoo.com>.
I think petstore has not been maintained, and I wasn't aware that it 
ever completely worked.  You would probably have to figure out exactly 
which parent configurations were appropriate and modify the plans 
appropriately.  The most likely guess for this one would be 
org/apache/geronimo/Security.

I (although extremely biased) would work with head rather than M5 and 
if you make progress on this I hope you will consider contributiing the 
patches to make it work back to the community!

thanks
david jencks

On Oct 19, 2005, at 8:43 PM, Carla Cremers wrote:

> I am working with geronimo-1.0-M5/solaris 9/java 1.4.2_06 and trying 
> to get
> the various applications to work.
>  
> Petstore :
>  
>   cremers@slh: % pwd
>   /home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandbox/petstore
>   cremers@slh: % maven
>     ( snip )
>     [copy] Copying 2 files to 
> /home/cremers/java_apps/web_servers/geronimo-1.0-M
> 5/sandbox/petstore/target/geronimo_1.0-M5/var
>     [echo] Preprocessing opc1.3.2.ear-plan.xml
>     [echo] Preprocessing petstore1.3.2-db-ra-plan.xml
>     [echo] Preprocessing petstore1.3.2-jms-ra-plan.xml
>     [echo] Preprocessing petstore1.3.2-security-plan.xml
>     [echo] Preprocessing petstore1.3.2.ear-plan.xml
>     [echo] Preprocessing petstoreadmin1.3.2.ear-plan.xml
>     [echo] Preprocessing supplier1.3.2.ear-plan.xml
>     [echo] Building Security Configuration
>     [java] Unable to access jarfile 
> /home/cremers/java_apps/web_servers/geronimo
> -1.0-M5/sandbox/petstore/target/geronimo_1.0-M5/bin/deployer.jar
>  
>   BUILD FAILED
>   File...... 
> /home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandbox/petstor
> e/maven.xml
>   Element... ant:java
>   Line...... 62
>   Column.... 84
>   Java returned: 1
>   Total time: 38 seconds
>   Finished at: Wed Oct 19 19:59:24 PDT 2005
>  
>   Looked and determined that target/geronimo-1.0-M5/bin/deployer.jar 
> existed,
>   but not target/geronimo_1.0-M5/bin/deployer.jar, so tweaked 
> maven.xml :
>  
>   cremers@slh: % diff maven.xml maven.xml.original
> 26c26
>   <     <j:set var="instDir" 
> value="${maven.build.dir}/geronimo-${geronimo_versi
> on}"/>
>   ---
>   >     <j:set var="instDir" 
> value="${maven.build.dir}/geronimo_${geronimo_versi
> on}"/>
>  
>   Now I get :
>  
>   [copy] Copying 2 files to 
> /home/cremers/java_apps/web_servers/geronimo-1.0-M5/
> sandbox/petstore/target/geronimo-1.0-M5/var
>   [mkdir] Created dir: 
> /home/cremers/java_apps/web_servers/geronimo-1.0-M5/sandb
> ox/petstore/target/plan
>   [echo] Preprocessing opc1.3.2.ear-plan.xml
>   [echo] Preprocessing petstore1.3.2-db-ra-plan.xml
>   [echo] Preprocessing petstore1.3.2-jms-ra-plan.xml
>   [echo] Preprocessing petstore1.3.2-security-plan.xml
>   [echo] Preprocessing petstore1.3.2.ear-plan.xml
>   [echo] Preprocessing petstoreadmin1.3.2.ear-plan.xml
>   [echo] Preprocessing supplier1.3.2.ear-plan.xml
>   [echo] Building Security Configuration
>   [echo] Building Security Configuration
>   [java]     Error: Operation failed: Unable to load first parent of
>   [java]     configuration org/apache/geronimo/PetStoreSecurity1.3.2 
> caused by N
> o
>   [java]     configuration with id: org/apache/geronimo/Secure
>   [java]
>  
> Any clues ?
>  
> Thanks !