Hi, I'll take a look at it. I think you mistakenly attached the UserAddressBean class' JUnit test instead of the bean itself. Could you send the bean plus a snippet of your ant build file where XDoclet is invoked?
Cheers, Aslak > -----Original Message----- > From: James Higginbotham [mailto:[EMAIL PROTECTED]] > Sent: 9. desember 2001 20:34 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [Xdoclet-user] Permission problem in Local CMP descriptor > > > I'm finally getting around to testing this.. I am getting an error during > generation: > > <snip> > [ejbdoclet] Running <entitycmp/> > [ejbdoclet] Generating CMP class for > 'org.dotw.usermanager.useraccount.UserAddressBean'. > [ejbdoclet] Generating CMP class for > 'org.dotw.usermanager.useraccount.UserAccountBean'. > [ejbdoclet] Generating CMP class for > 'org.dotw.usermanager.useraccount.UserPhoneBean'. > [ejbdoclet] Running <deploymentdescriptor/> > [ejbdoclet] Generating EJB deployment descriptor. > [ejbdoclet] Running XDoclet failed: > [ejbdoclet] Running XDoclet failed. > [ejbdoclet] 1 error > [ejbdoclet] [ejbdoclet] javadoc: In doclet class > xdoclet.DocletTask$DocletMain, method start has thrown an exception j > va.lang.reflect.InvocationTargetException > 9 warnings > > Attached is the source file that I added your new parameter to so you can > have a test case to work with.. I am using the latest code from > CVS, updated > about 1:30pm Sun CST. > > Thanks! > James > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "James Higginbotham" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 4:15 AM > Subject: RE: [Xdoclet-user] Permission problem in Local CMP descriptor > > > > I have updated the @ejb:pk and @ejb:finder to include a new parameter: > > method-intf parameter. Please tell me if this can help you get > around your > > problem, as I haven't found time to test this myself (sorry). > > > > Regards, > > Aslak > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of James > > > Higginbotham > > > Sent: 26. november 2001 00:03 > > > To: [EMAIL PROTECTED] > > > Subject: [Xdoclet-user] Permission problem in Local CMP descriptor > > > > > > > > > I fetched the latest XDoclet code 2 days ago from CVS and have > > > the following > > > problem. I didn't see anything on the bug tracker that resembled this > > > problem, so I wanted to first post here for a confirmation of the bug. > It > > > seems that if the bean descriptor is set to local interface only, > > > the DD is > > > generated as if it were for the remote home rather than the local > > > home. If I > > > switch the type to remote, it works so there is a workaround > - however, > I > > > want to generate a Local CMP bean, so the sooner the fix the better. > > > > > > > > > Attached is the source file used by XDoclet to generate the bean. > Nothing > > > special, it was generated from middlegen. Here is the stacktrace from > > > WebLogic: > > > > > > Unable to deploy EJB: UserAccount.jar from UserAccount.jar: > > > > > > > > > Unable to set the method permission for method > "findAll()". No > > > matching > > > method could be found. Please verify the method signature > > > specified in the > > > ejb > > > -jar.xml file matches that of your EJB. > > > at > weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:130) > > > at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:295) > > > at > weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:676) > > > at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:843) > > > at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30) > > > at > weblogic.j2ee.Application.addComponent(Application.java:160) > > > at > weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) > > > at > > > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl > > > oymentTarget.java:329) > > > at > > > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl > > > oymentTarget.java:144) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB > > > eanImpl.java:608) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl > > > .java:592) > > > at > > > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat > > > ionMBeanImpl.java:352) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 55) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 23) > > > at > > > weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean > > > s(ConfigurationMBeanImpl.java:484) > > > at > > > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat > > > ionMBeanImpl.java:354) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 55) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 23) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB > > > eanImpl.java:945) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMB > > > eanImpl.java:932) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.ja > > > va:917) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB > > > eanImpl.java:620) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl > > > .java:592) > > > at > > > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat > > > ionMBeanImpl.java:352) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 55) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 23) > > > at > > > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449) > > > at > > > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190) > > > at $Proxy11.addTarget(Unknown Source) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(Appli > > > cationManager.java:837) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.addApplication(A > > > pplicationManager.java:936) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.addApplication(A > > > pplicationManager.java:856) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.poll(Application > > > Manager.java:772) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.poll(Application > > > Manager.java:705) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.update(Applicati > > > onManager.java:200) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.startAdminManage > > > r(ApplicationManager.java:272) > > > at > > > weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio > > > nManager.java:146) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB > > > eanImpl.java:608) > > > at > > > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl > > > .java:592) > > > at > > > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat > > > ionMBeanImpl.java:352) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 55) > > > at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 > > > 23) > > > at > > > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449) > > > at > > > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190) > > > at $Proxy5.start(Unknown Source) > > > at > > > weblogic.management.Admin.startApplicationManager(Admin.java:1155) > > > at weblogic.management.Admin.finish(Admin.java:570) > > > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:506) > > > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203) > > > at weblogic.Server.main(Server.java:35) > > > > > > > > > > > > > <Nov 25, 2001 12:52:25 PM CST> <Error> <Management> <Error deploying > > > application > > > .\config\mydomain\applications\UserAccount_app.ear: > > > java.lang.reflect.Undeclare > > > dThrowableException> > > > <Nov 25, 2001 12:52:25 PM CST> <Notice> <Management> > <Application Poller > > > started > > > for development server.> > > > <Nov 25, 2001 12:52:25 PM CST> <Notice> <WebLogicServer> <ListenThread > > > listening > > > on port 7001> > > > <Nov 25, 2001 12:52:25 PM CST> <Notice> <WebLogicServer> > <SSLListenThread > > > listen > > > ing on port 7002> > > > <Nov 25, 2001 12:52:26 PM CST> <Notice> <WebLogicServer> <Started > WebLogic > > > Admin > > > Server "myserver" for domain "mydomain" running in Development Mode> > > > > > > > > > Here is the offending generated DD section: > > > > > > <!-- finder perms --> > > > > > > <method-permission> > > > <description>description not supported yet by > > > ejbdoclet</description> > > > <unchecked/> > > > <method> > > > <ejb-name>UserAccount</ejb-name> > > > <method-intf>Home</method-intf> > > > <method-name>findAll</method-name> > > > <method-params> > > > </method-params> > > > </method> > > > </method-permission> > > > > > > > > > > > > _______________________________________________ > > Xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
