I am packaging my first Geronimo plugin in a CAR file. I am using car-maven-plugin.
The CAR packaging will not complete successfully. The essence of the error is: Caused by: org.apache.geronimo.common.DeploymentException: No reference named GeronimoServerInfo in gbean org.apache.geronimo.plugins/directory/1.5.4 /car?ServiceModule=org.apache.geronimo.plugins/directory/1.5.4/car,j2eeType=GBean,name=DirectoryService My deployment plan is shown below. I think the root cause of the problem is that maven boots the Geronimo kernel and runs the plugin to do the packaging. But there will be no external gbean to reference until I start the plugin on a real instance of the server; not the maven bootstrapped one. If I remove the thread from the source code that runs my gbean, packaging is OK. But of course, I don't have anything useful. *How do I make external references available to my plugin when it is being activated by car-maven-plugin? Or should I be taking another approach?* Thanks in advance. GERONIMO DEPLOYMENT PLAN <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"> <environment> <moduleId> <groupId>org.apache.geronimo.plugins</groupId> <artifactId>directory</artifactId> <version>1.5.4</version> <type>car</type> </moduleId> <dependencies/> <hidden-classes/> <non-overridable-classes/> <private-classes/> </environment> <gbean name="ServerInfo" class="org.apache.geronimo.system.serverinfo.BasicServerInfo"> <attribute name="useSystemProperties">true</attribute> </gbean> <gbean name="DirectoryService" class="org.apache.geronimo.directory.wasce.DirectoryGBean"> <attribute name="configFile">var/directory/server.xml</attribute> <attribute name="workingDir">var/directory</attribute> <reference name="GeronimoServerInfo"><name>ServerInfo</name></reference> </gbean> </module> -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/car-maven-plugin-and-Geronimo-Bean-references-problem-tp3987759.html Sent from the Users mailing list archive at Nabble.com.
