HI Aaron,
 
I did exactly as you suggested below, but I am still getting the following error message:
 
Error: Unable to distribute GBean1-plan.xml: Cannot deploy the
requested application module
(planFile=D:\geronimo-1.0\GBean1-plan.xml)
 
I took care to ensure that the gbean is compiled and jared with 1.4 as well and that didn't help either.  I tried putting the deployment plan into the deply directory and I got the following server side exception:
 
11:22:56,834 INFO  [Hot Deployer] Deploying GBean1-plan.xml
11:22:56,959 ERROR [Hot Deployer] Unable to deploy: Cound not open module file:
D:\geronimo-1.0\var\temp\geronimo-deployer24954.tmpdir\GBean1-plan.xml
org.apache.geronimo.common.DeploymentException: Cound not open module file: D:\g
eronimo-1.0\var\temp\geronimo-deployer24954.tmpdir\GBean1-plan.xml
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java :209)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:102)
        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.i
nvoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke (FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:835)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
178)
        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doD
eploy(AbstractDeployCommand.java:106)
        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Dis
tributeCommand.java:59)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.util.zip.ZipException : error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:111)
        at java.util.jar.JarFile.<init>(JarFile.java:127)
        at java.util.jar.JarFile.<init>(JarFile.java:92)
        at org.apache.geronimo.deployment.util.DeploymentUtil.createJarFile(Depl
oymentUtil.java:164)
        at org.apache.geronimo.deployment.Deployer.deploy (Deployer.java:207)
        ... 10 more
 
I don't know what I can try next.  Please advice.  Thanks.
 
Ye
 
On 4/7/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
You should put your JAR at, say, repository/yelu/jars/gbean-1.jar --
note that it has the form repository/<group>/jars/<file>-<version>.jar
where group, file, and version can be anything you like, but need to
be present and with a dash before the version.

Then set your dependency URI to group/<file>/<version>/jar (like
yelu/gbean/1/jar if you follow the path I used exactly).

Le me know how you make out.

Thanks,
   Aaron

On 4/7/06, Ye Lu <yel728@gmail.com> wrote:
>
> Hi Aaron,
>
> Thanks for your quick reply.  I tried your suggestion and added a dependency
> element in the deployment plan and copied GBean1.jar into
> geronimo/repository/GBean1/jars and I did not pass the JAR file to the
> deployer.  The following is the modified deployment plan.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration configId="GBean1">
> <dependency>
> <uri>GBean1/jars</uri>
> </dependency>
>
> <gb:gbean xmlns:gb="
> http://geronimo.apache.org/xml/ns/deployment-1.0"
> name="geronimo.server:type=GBean"
> class="com.businessobjects.geronimo.GBean1">
>   <gb:attribute name="attribute1" type="java.lang.String">
>  test1
>  </gb:attribute>
> </gb:gbean>
> </configuration>
>
>
> I also tried putting GBean1/jars and GBean1/jars/GBean1.jar as the uri, but
> both times I got the following error:
>
>  Error: Unable to distribute GBean1-plan.xml: Cannot deploy the
>  requested application module
>  (planFile=D:\geronimo-1.0\GBean1-plan.xml)
>
> Any suggestion you can give will be greatly appreciated.  Thanks.
>
>
> Ye
>
>
>
> On 4/6/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
> > You can't pass a JAR and plan to the deployer for a custom GBean.
> > Instead, you need to install the JAR under geronimo/repository and
> > refer to it from a dependency element in the plan for the GBean.  Does
> > that make sense or do you need some more detailed help?
> >
> > Thanks,
> >    Aaron
> >
> > On 4/6/06, Ye Lu < yel728@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > I am currently running Geronimo 1.0.  When I tried to deploy a GBean
> using
> > > the command "java -jar bin\deployer.jar --user system --password manager
> > > deploy
> d:\geronimo-1.0\repository\GBean1\jars\GBean1.jar
> > > GBean1-plan.xml ", I got the following error:
> > >
> > >     Error: Unable to distribute GBean1.jar: Cannot deploy the requested
> > >     application module (planFile=D:\geronimo- 1.0\GBean1-plan.xml,
> > >
> > >
> moduleFile=D:\geronimo-1.0\var\temp\geronimo-deployer382.tmpdir\GBean1.jar
> > > )
> > >
> > > My deployment plan is
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <configuration configId="GBean1">
> > > <gb:gbean
> > >
> xmlns:gb="http://geronimo.apache.org/xml/ns/deployment-1.0
> > > " name=" geronimo.server:type=GBean"
> > > class="com.businessobjects.geronimo.GBean1">
> > >  <gb:attribute name="attribute1" type="java.lang.String">
> > >  test1
> > >  </gb:attribute>
> > > </gb:gbean>
> > > </configuration>
> > >
> > > I did a quick trace into the source code and found that the value of
> builder
> > > after the following loop is null and that cause the exception to be
> thrown.
> > >
> > > Object plan = null;
> > >             ConfigurationBuilder builder = null;
> > >             for (Iterator i = builders.iterator(); i.hasNext();) {
> > >                 ConfigurationBuilder candidate = (ConfigurationBuilder)
> > > i.next();
> > >                 plan = candidate.getDeploymentPlan(planFile, module);
> > >                 if (plan != null) {
> > >                     builder = candidate;
> > >                     break;
> > >                 }
> > >             }
> > >
> > > Can you tell me what I have done wrong?  Thanks in advance.
> > >
> > >
> > > Ye
> >
>
>