You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by German Munoz <cu...@yahoo.com> on 2008/11/24 09:35:03 UTC

Cannot install any Geronimo Sample apps

Hi, I'm new to Geronimo, and I want to test out some sample apps, but so far I have not been able to install any using several methods. I'm using Geronimo 2.1 with jetty 6  (should I use Geronimo 2.2?). I am running Windows Vista SP1 (long story...).

*First, through admin console > Plugins:
In left nav, click on Plugins. I see these two repositories:
http://geronimo.apache.org/plugins/geronimo-2.1/
file:/C:/Users/Administrator/.m2/repository/
Smaples oly show up in "file/C:" repository (I downloaded source code and built using maven).
I cannot install plugins from here, I get an error after clicking ot Install plugin. Browser "cannot Open the Internet site" (URL is: http://localhost:8080/console/portal//Applications/Plugins/__rp0x3plugin0x2ImportExport!1639862964%7C0_configIds/org0x2apache0x2geronimo0x2samples0x3customer-jetty0x320x210x220x3car/__rp0x3plugin0x2ImportExport!1639862964%7C0_downloadKey/4/__rp0x3plugin0x2ImportExport!1639862964%7C0_mode/downloadStatus/__rp0x3plugin0x2ImportExport!1639862964%7C0_repository/file:0x3C:0x3Users0x3German0x30x2m20x3repository0x3)


*First, through admin console > Deploy new:
I build one of the Samples, then I browse to the Plan.xml in the corresponding directory (gsamples-2.1.2\samples\sample-datasource\target\resources\META-INF). 
This gives me an error of: "Cannot deploy the requested application module because no deployer is able to  handle it. This can happen if you have omitted the J2EE deployment descriptor,  disabled a deployer module, or if, for example, you are trying to deploy an EJB  module on a minimal Geronimo server that does not have EJB support installed.  (planFile=C:\g2\geronimo-jetty6-javaee5-2.1\var\temp\plan.xml) "
I'm pretty sure I have EJB module, and all the Delpoyer modules seem to be running, for liek Calculator sample  (J2EE, Jetty, etc, etc... everything in the dependencies section of the plan.xml). 

I cannot even install the sample-datasource plugin.

*Third, through GShell:
Using gsh deploy/deploy, I get an error when choosing a Sample to install, it throws an error stating that it cannot load a dependency.
 

I've tried looking online and in the archives, but no solution seems to work for me. Since none of the samples seem to install correclty, I feel this is a server confg issue. Any help would be greatly appreciated. Thanks!

-German





*****************************
Germán Muñoz
Messenger: cuatez@hotmail.com

Re: Cannot install any Geronimo Sample apps

Posted by Donald Woods <dw...@apache.org>.
Vista introduces new security constraints, so some simple questions to 
help debug what's going on (as I don't have a Vista machine to test with) -

- Are you running Geronimo under the same User as it was 
installed/extracted with?

- Does the user account you're running Geronimo under have Admin rights 
or is just a User?

- Where did you extract Geronimo too?  Under your \Users\<uid>\ 
directory or to something like C:\ ?  Extracting it to a location 
outside your home directory would be a problem for normal users.  I was 
just setting up a new Win2008 Server and noticed I could extract files 
to c:\geronimo, but did not have the rights as a user to modify/delete 
files (just create them) until I edited the default permissions for the 
directory.  Maybe this is your problem on Vista...


-Donald


cuatez wrote:
> I followed your steps on a WIndows XP machine ant it all worked great.
> My previous failed attempts were on a machine running Windows Vista. Any
> known issues with Vista and Geronimo?
> 
> Thanks for your help!

Re: Cannot install any Geronimo Sample apps

Posted by cuatez <cu...@yahoo.com>.
Yes, I used ""Update Repository List".
-- 
View this message in context: http://www.nabble.com/Cannot-install-any-Geronimo-Sample-apps-tp20662280s134p20844956.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Cannot install any Geronimo Sample apps

Posted by Donald Woods <dw...@apache.org>.
Did you use the "Update Repository List" option before trying to install 
the plugin this time?  I ran into a case yesterday where I had to use 
the Update option before I could install the DayTrader plugins from a 
manually added repo....


-Donald


cuatez wrote:
> Well, it started again from scratch on Vista, following your instructions,
> and it worked fine. 
> I originally had troubles because I did not see this repository:
>  
> https://svn.apache.org/repos/asf/geronimo/samples/tags/samples-parent-2.1.2 
> I did not know it would appear automatically by first clicking update
> repositories (or I just should have added it). That seems to have made the
> difference. The earlier issues I was having seem to stem from the fact that
> I downloaded the samples source and tried to build and deploy.
> 
> Thanks so much for all your help!
> 

Re: Cannot install any Geronimo Sample apps

Posted by cuatez <cu...@yahoo.com>.
Well, it started again from scratch on Vista, following your instructions,
and it worked fine. 
I originally had troubles because I did not see this repository:
 
https://svn.apache.org/repos/asf/geronimo/samples/tags/samples-parent-2.1.2 
I did not know it would appear automatically by first clicking update
repositories (or I just should have added it). That seems to have made the
difference. The earlier issues I was having seem to stem from the fact that
I downloaded the samples source and tried to build and deploy.

Thanks so much for all your help!

-- 
View this message in context: http://www.nabble.com/Cannot-install-any-Geronimo-Sample-apps-tp20662280s134p20841109.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Cannot install any Geronimo Sample apps

Posted by Joe Bohn <jo...@earthlink.net>.
I looked back at your original post and it looks like you were 
attempting to install from your local repo rather than from the 2.1.2 
samples repo (and the geronimo repo you mentioned seeing didn't quite 
make sense as it contained the wrong version).  So I'm not sure of the 
exact scenario/repo/etc... on your Vista attempt.  You should be able to 
install the plugin from a local build of the samples if you pulled the 
source from 
https://svn.apache.org/repos/asf/geronimo/samples/tags/samples-parent-2.1.2 
or the working development branch: 
https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1.  If not, 
then there is a problem.

In short, if you can recreate the problem and provide some more details 
on Vista (such as the names of the missing dependencies) then it would 
be helpful to open a JIRA.  I'd also be interested in knowing if you can 
successfully install the plugin on Vista using the samples 2.1.2 plugin 
repository.

Thanks,
Joe

cuatez wrote:
> Yeah, I could start the server. I could get as far as the sample plugin
> install screen. After clicking install, it fails. Should I file a bug?
> 
> 


Re: Cannot install any Geronimo Sample apps

Posted by cuatez <cu...@yahoo.com>.
Yeah, I could start the server. I could get as far as the sample plugin
install screen. After clicking install, it fails. Should I file a bug?


-- 
View this message in context: http://www.nabble.com/Cannot-install-any-Geronimo-Sample-apps-tp20662280s134p20819662.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Cannot install any Geronimo Sample apps

Posted by Joe Bohn <jo...@earthlink.net>.
There have been a few people posting about some problems on Vista.  Most 
of those seem to be related to issues starting the server and/or using 
eclipse.  It sounded like you were beyond any of those problems.  I 
haven't tried Vista myself so I don't have any first hand knowledge.  It 
seems like it should work.

Joe

cuatez wrote:
> I followed your steps on a WIndows XP machine ant it all worked great.
> My previous failed attempts were on a machine running Windows Vista. Any
> known issues with Vista and Geronimo?
> 
> Thanks for your help!


Re: Cannot install any Geronimo Sample apps

Posted by cuatez <cu...@yahoo.com>.
I followed your steps on a WIndows XP machine ant it all worked great.
My previous failed attempts were on a machine running Windows Vista. Any
known issues with Vista and Geronimo?

Thanks for your help!
-- 
View this message in context: http://www.nabble.com/Cannot-install-any-Geronimo-Sample-apps-tp20662280s134p20808943.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Cannot install any Geronimo Sample apps

Posted by Joe Bohn <jo...@earthlink.net>.
If you are using the 2.1.3 jetty javaee5 assembly 
(geronimo-jetty6-javaee5-2.1.3) then I am a little confused by your 
earlier statements on the repositories you see in the plugins portlet. 
They don't seem to be the list I would expect (see below).

Also, there are some issues installing plugins using the web console 
from a jetty server involving dwr.  IIRC things should install but the 
web console may freeze and you will see some dwr errors in the command 
window.  If you want a smoother ride you might want to switch to the 
tomcat server (geronimo-tomcat6-javaee5-2.1.2.zip)


Try the following and let me know where you see differences:
- Start from a clean slate.  Get the the geronimo-jetty6-javaee5-2.1.3 
zip or tomcat referenced above and unpack it.
- start the server
- connect to the web console (http://localhost:8080/console)
- click on Plugins under Navigation in the left hand navigation panel
- click on "Update Repository List" in the Install Plugins portlet
- When you look at the list of repositories you should see three:
   - http://geronimo.apache.org/plugins/geroniom-2.1.3/
   - http://geronimo.apache.org/plugins/samples-2.1.2/
   - file:/... (pointing to your local maven repo if you have built 
something locally)
- Select the second repository (samples-2.1.2) and then click on "Show 
Plugins in selected repository"
- Choose just one sample - let's pick the calculator plugin for the 
appropriate server you installed (tomcat or jetty).
- You should then see some info on the plugin and it's dependencies. 
Select "install" to install it.
- When the install is complete you should see a list of the dependencies 
that were either already present or installed.  For this sample all of 
the dependencies should already be installed.
- Next, you should be able to access the running sample using 
http://localhost:8080/calculator

NOTE:  If you use Jetty you will probably get an error in the command 
prompt about dwr and the console install may never appear to complete. 
However, the sample should be actually installed after a few minutes and 
  you should be able to access it using the url above.

One more thing ... For some reason access to the apache servers has been 
crawling lately (especially yesterday and today).  It may take much 
longer to install a plugin than normal until the issue is resolved.

HTH,
Joe



cuatez wrote:
> I installed Geronimo 2.1.3 (from this site:
> http://geronimo.apache.org/apache-geronimo-v213-release.html)
> It should be working per your comments. Any idea where I can start
> debugging?
> 
> 


Re: Cannot install any Geronimo Sample apps

Posted by cuatez <cu...@yahoo.com>.
I installed Geronimo 2.1.3 (from this site:
http://geronimo.apache.org/apache-geronimo-v213-release.html)
It should be working per your comments. Any idea where I can start
debugging?


-- 
View this message in context: http://www.nabble.com/Cannot-install-any-Geronimo-Sample-apps-tp20662280s134p20786450.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Cannot install any Geronimo Sample apps

Posted by Joe Bohn <jo...@earthlink.net>.
Hi German,

Can you clarify which Geronimo server you are using?  Is it Geronimo 2.1 
downloaded binaries, a local build of our svn branch for 2.1 (which 
would be 2.1.4-SNAPSHOT), or something else (such as 2.1.1, 2.1.2, or 
2.1.3)?

I recommend that you use Geronimo 2.1.2, 2.1.3, or 2.1.4-SNAPSHOT since 
our 2.1.2 Samples will only work with those versions at this point in time.

HTH,
Joe


German Munoz wrote:
> Hi, I'm new to Geronimo, and I want to test out some sample apps, but so 
> far I have not been able to install any using several methods. I'm using 
> Geronimo 2.1 with jetty 6  (should I use Geronimo 2.2?). I am running 
> Windows Vista SP1 (long story...).
> 
> *First, through admin console > Plugins:
> In left nav, click on Plugins. I see these two repositories:
> http://geronimo.apache.org/plugins/geronimo-2.1/
> file:/C:/Users/Administrator/.m2/repository/
> Smaples oly show up in "file/C:" repository (I downloaded source code 
> and built using maven).
> I cannot install plugins from here, I get an error after clicking ot 
> Install plugin. Browser "cannot Open the Internet site" (URL is: 
> http://localhost:8080/console/portal//Applications/Plugins/__rp0x3plugin0x2ImportExport!1639862964%7C0_configIds/org0x2apache0x2geronimo0x2samples0x3customer-jetty0x320x210x220x3car/__rp0x3plugin0x2ImportExport!1639862964%7C0_downloadKey/4/__rp0x3plugin0x2ImportExport!1639862964%7C0_mode/downloadStatus/__rp0x3plugin0x2ImportExport!1639862964%7C0_repository/file:0x3C:0x3Users0x3German0x30x2m20x3repository0x3)
> 
> 
> *First, through admin console > Deploy new:
> I build one of the Samples, then I browse to the Plan.xml in the 
> corresponding directory 
> (gsamples-2.1.2\samples\sample-datasource\target\resources\META-INF).
> This gives me an error of: "Cannot deploy the requested application 
> module because no deployer is able to handle it. This can happen if you 
> have omitted the J2EE deployment descriptor, disabled a deployer module, 
> or if, for example, you are trying to deploy an EJB module on a minimal 
> Geronimo server that does not have EJB support installed. 
> (planFile=C:\g2\geronimo-jetty6-javaee5-2.1\var\temp\plan.xml) "
> I'm pretty sure I have EJB module, and all the Delpoyer modules seem to 
> be running, for liek Calculator sample  (J2EE, Jetty, etc, etc... 
> everything in the dependencies section of the plan.xml).
> 
> I cannot even install the sample-datasource plugin.
> 
> *Third, through GShell:
> Using gsh deploy/deploy, I get an error when choosing a Sample to 
> install, it throws an error stating that it cannot load a dependency.
> 
> 
> I've tried looking online and in the archives, but no solution seems to 
> work for me. Since none of the samples seem to install correclty, I feel 
> this is a server confg issue. Any help would be greatly appreciated. Thanks!
> 
> -German
> 
> 
> 
> 
> 
> *****************************
> Germán Muñoz
> Messenger: cuatez@hotmail.com