That example is amazingly out of date...
Since you are deploying your jar with the gbean plan you shouldn't
need a dependency on your jar.
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://geronimo.apache.org/xml/ns/
deployment-1.2">
<environment>
<moduleId>
<groupId>com.example</groupId>
<artifactId>MyGBean</artifactId>
<version>1.0-SNAPSHOT</version>
<type>car</type>
</moduleId>
</environment>
<gbean name="MySimpleGBean" class="example1.MyGBean" />
</configuration>
(I didn't test this)
david jencks
On Sep 10, 2007, at 8:37 AM, thebugslayer wrote:
Jason,
I changed to what u suggested, but still got same error.
content of mygbean-plan.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://geronimo.apache.org/xml/ns/
deployment-1.2"
configId="example1/MyGBean">
<dependency>
<uri>mygbean.jar</uri>
</dependency>
<gbean name="geronimo.example:name=My first simple GBean"
class="example1.MyGBean"/>
</configuration>
Any more ideas?
Thanks
On 9/10/07, Jason Warner <[EMAIL PROTECTED]> wrote:
Hello,
Assuming you copied the sample plan.xml exactly, try changing :
<configuration
xmlns="http://geronimo.apache.org/xml/ns/deployment
"
configId="example1/MyGBean"
to:
<configuration
xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2
"
configId="example1/MyGBean"
Notice the "-1.2" on the end of deployment.
Hope this helps,
Jason Warner
On 9/10/07, thebugslayer <[EMAIL PROTECTED] > wrote:
Hi,
The doc from http://cwiki.apache.org/GMOxDEV/gbeans.html
seems little
outdated for G2.0.1, and I got error when deploying the simple
MyGBean
app. Can someone help?
Error Received:
$ /opt/geronimo/bin/deploy.sh deploy mygbean.jar mygbean-plan.xml
Using GERONIMO_BASE: /opt/geronimo
Using GERONIMO_HOME: /opt/geronimo
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Error: Unable to distribute mygbean.jar: 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=/Users/bugslayer/geronimo-example/mygbean-
plan.xml,
moduleFile=/opt/geronimo-jetty6-jee5-2.0.1/var/temp/geronimo-
deployer17472.tmpdir/mygbean.jar)
--
/bugslayer
--
/bugslayer