Re: Please help. What is wrong: no code generation with ejbdoclet

"Marco Mistroni" <[email protected]> Wed, 28 Feb 2007 13:48:30 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,
 i have it working successfully...
can u post your pom.xml?

regards
 marco

On 2/28/07, Dipl.-Ing. Torsten Liermann <[email protected]> wrote:
>
> Hi,
>
> sorry, i can not speak english... I would like to to have
> all interfaces and so on for a slsb.
> I' using maven 2.0.4 and start maven with
>
> mvn generate-sources
>
> The output ist:
>
> [WARNING] While downloading servletapi:servletapi:2.3
>   This artifact has been relocated to javax.servlet:servlet-api:2.3.
>
>
> [INFO] [xdoclet:xdoclet {execution: generateSources}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> 28.02.2007 13:32:56 xdoclet.XDocletMain start
> INFO: Running <remoteinterface/>
> 28.02.2007 13:32:56 xdoclet.XDocletMain start
> INFO: Running <homeinterface/>
> 28.02.2007 13:32:56 xdoclet.XDocletMain start
> INFO: Running <localhomeinterface/>
> 28.02.2007 13:32:56 xdoclet.XDocletMain start
> INFO: Running <deploymentdescriptor/>
> Generating EJB deployment descriptor (ejb-jar.xml).
> 28.02.2007 13:32:56 xdoclet.XDocletMain start
> INFO: Running <weblogic/>
> Generating weblogic-ejb-jar.xml.
> [INFO] Executed tasks
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Feb 28 13:32:56 CET 2007
> [INFO] Final Memory: 5M/10M
> [INFO]
> ------------------------------------------------------------------------
>
> But the deployment descriptor is empty and no interfaces generated.
>
> The xdoclet part in the slsb is:
>
> /**
> * Session bean for scheduler
> *
> * @ejb.bean
> * name="bpo.Scheduler"
> * description="Session bean class for scheduling"
> * display-name="Scheduler"
> * jndi-name="xxx.bpo.Scheduler"
> * view-type="remote"
> * type="Stateless"
> * transaction-type="Container"
> * remote-business-interface="com.abc.xxx.server.bpo.scheduler.Scheduler"
> *
> * @ejb.home
> * extends="javax.ejb.EJBHome"
> *
> * @ejb.interface
> * extends="javax.ejb.EJBObject"
> *
> * @ejb.transaction
> * type="Required"
> *
> * @weblogic.pool
> * max-beans-in-free-pool="20"
> * initial-beans-in-free-pool="1"
> *
> * @weblogic.cache
> * max-beans-in-cache="1000"
> * idle-timeout-seconds="5"
> *
> * @weblogic.enable-call-by-reference True
> *
> * @weblogic.transaction-descriptor
> * trans-timeout-seconds="60"
> *
> * @weblogic.transaction-isolation TRANSACTION_READ_COMMITTED
> */
> //public class SchedulerBean extends SessionAdapter implements SchedulerBI
> public class SchedulerBean extends SessionAdapter implements Scheduler
> ================================
>
> The ejbdoclet configuration in the pom.xml is
>
>   <ejbdoclet verbose="99" destDir="${project.build.directory
> }/generated-sources/xdoclet"
>         excludedTags="@author,@version"
>         ejbSpec="2.1" force="true">
>      <fileset dir="${project.build.sourceDirectory}/">
>        <include name="**/*.java"/>
>      </fileset>
>
>      <remoteinterface/>
>      <homeinterface/>
>      <localhomeinterface/>
>      <deploymentdescriptor destDir="${project.build.outputDirectory
> }/META-INF"
>          useIDs="true"/>
>
>      <weblogic version="8.1"
>          createtables="Disabled"
>
>          destDir="${project.build.outputDirectory}/META-INF"
>          dataSource="${mw.dataSource}"
>          />
> </ejbdoclet>
>
> What is here wrong?
>
> Thanks for a help.
> Torsten
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user