[Xdoclet-user] (no subject)
http://maxpharma.com.ar/healthylife.html -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
Don’t be shy anymore! I’ll help you!. http://mescla.free.fr/sites.friend.php?issiteid=82ti3 -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
--- Bjørn T Johansen [EMAIL PROTECTED] wrote: If I include unique=true in a hibernate.many-to-one tag, I get two unique=true lines in the hbm file, which is not what I want.. But I also see in the doc to xdoclet, that they define two unique=true, for some reasons? unique boolIf the column is unique Default value(s): false and unique textEnable the DDL generation of a unique constraint for the foreign-key column. Valid options are: true false How do I use only the bool variant of unique? Maybe XD2 hibernate plugin would be an option for you? regards, [ Konstantin Pribluda http://www.pribluda.de ] Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org In other words, this is not possible in Xdoclet? It is possible but you will need to: 1. Open JIRA issue (since this is a bug) for it. This is optional but a desirable step. 2. Meanwhile, create a hiberante-properties.xml file and sutff that many-to-one rlation in there so it can be merged, rather than generated. And of course you will need to mainatain it manually for a while. To merge properties, read comments in your successfully generated files to see exactly the name of the file to create in merge dir (just make sure that you understand how merge works). Maybe XD2 is a wonderful piece of software but the amount of time you waste (or at least I wasted about a year ago) on configuring it and chacing all the dependencies was not worth it for me. -- Alex. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
Re: [Xdoclet-user] (no subject)
--- Aleksandr Shneyderman [EMAIL PROTECTED] wrote: Maybe XD2 is a wonderful piece of software but the amount of time you waste (or at least I wasted about a year ago) on configuring it and chacing all the dependencies was not worth it for me. That's penalty for not using maven for builds :) And plugin bundle on SF contins all the dependencies you need for it. regards, [ Konstantin Pribluda http://www.pribluda.de ] Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
On 2/22/06, Konstantin Priblouda [EMAIL PROTECTED] wrote: That's penalty for not using maven for builds :) And plugin bundle on SF contins all the dependencies you need for it. regards, Well, I am not sure who is penalized here. Me or XD2 that has no chance to develop since it is so deprived of users. That's the penalty releasing stuff that is incoherent and relies on SNAPSHOT dependencies that exist only on developer's local repo. And no use of maven will help here. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
--- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
What do you mean from the user? Your temlpate will get metadata from your java sources, and invocation parameters of module. Not more. Yes, that's what I mean. If you start writing your own plugins, and are not locked into using XDoclet-1 for some modules I would recommend to start with xdoclet-2. It's easier to write plugins for it, and it got a lot of nice fatures. Didn't know about Xdoclet 2. It seems interesting to be able to use Velocity, but I didn't see any documentation for it (to be sincere, I was a bit lost with XDoclet 1 and I'm really lost right now with XDoclet 2 and no docs). If you try to read the wiki you only get spam (ex. Recent changes: http://xdoclet.sourceforge.net/wiki/wakka.php?wakka=RecentChanges). I didn't find any info at all... Am I missing some important part in the web ? Best regards, - Leny _ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349 --- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402alloc_id=16135op=click ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
Re: [Xdoclet-user] (no subject)
On Sun, 2005-04-03 at 01:01, Alessandro Oliveira wrote: Hi Guys, I'm new to XDoclet and EJB in general, but I've been building some sites using hibernate, struts, mysql deploying on Tomcat Servers. Now I have to deal with it, but I found out that using XDoclet could alleviate the time cosuming J2EE tasks. First of all I installed JBOSS-IDE that comes with a version of XDoclet, It may help to know which version? then I managed to generate the deployment descriptors, following JBOSS-IDE tutorial. Then I tried to generate all Hibernate mapping files, the only problem that I couldn't work out was that hibernate.cfg.xml does not link to Bean.hbm.xml. I'd like to know if this is a known bug and if there is a workaround to this problem. If it is, it's a bug in JBOSS-IDE, and you'd be better off asking on a JBoss mailing list. Nothing on the lists or in our bug tracker would suggest the Hibernate support is fundamentally broken. If you included the relevant bits of your classes and Ant script, we'd stand more chance of being able to tell you what's wrong with them... Andrew. -- Thanks for any help !!! Alessandro Oliveira TIDIA-Ae - LAI - ITA +55-12-3947-6869 Mac OS X, Windows and DOS, also known as the Good, the Bad and the Ugly. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
--- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
--- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
--- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
hi all, I have some problems with value objects. so here is the example: Company with two type of addresses. like the example here http://xdoclet.sourceforge.net/xdoclet/valueobjects.html i consider the address to be composition. It can be an aggregation too, but composition fits my case. so here is my source: ... /** * @return address for correspondence * @ejb.relation * name = companyInfo-addressCor-1-1 * role-name = companyInfo * target-ejb=Address * target-role-name=addressCor * target-cascade-delete=yes * * @ejb.interface-method * view-type=local * * @jboss.relation * related-pk-field=addressId * fk-column=address_Cor_id * * @ejb.value-object * compose=com.leasing.business.AddressValue * compose-name=AddressCorValue * relation=external * */ public abstract AddressLocal getAddressCorLocal(); /** * @param address * @ejb.interface-method * view-type=local * */ public abstract void setAddressCorLocal( AddressLocal addressCorLocal); /** * @return registration address * @ejb.relation * name = companyInfo-addressReg-1-1 * role-name = companyInfo * target-ejb=Address * target-role-name=addressReg * target-cascade-delete=yes * * @ejb.interface-method * view-type=local * * @jboss.relation * related-pk-field=addressId * fk-column=address_Reg_id * * @ejb.value-object * compose=com.leasing.business.AddressValue * compose-name=AddressRegValue * relation=external * */ public abstract AddressLocal getAddressRegLocal(); /** * @param address * @ejb.interface-method * view-type=local */ public abstract void setAddressRegLocal( AddressLocal addressRegLocal); ... Difference between that and EmployeeBean Sample of xdoclet is in fact only that i Use compose instead of aggregate. But the generated code have errors: here is the CompanyInfoCMP: ... // Anonymous block to allow variable declations without conflicts { // Checks for null composition if (valueHolder.getAddressCorValue() != null) { java.lang.Integer pk = valueHolder.getAddressCorValue().getAddressId(); com.leasing.business.AddressLocalHome home = com.leasing.business.AddressUtil.getLocalHome(); com.leasing.business.AddressLocal relation = home.findByPrimaryKey(pk); relation.setAddressCorValue(valueHolder.getAddressCorValue()); } } // Anonymous block to allow variable declations without conflicts { // Checks for null composition if (valueHolder.getAddressRegValue() != null) { java.lang.Integer pk = valueHolder.getAddressRegValue().getAddressId(); com.leasing.business.AddressLocalHome home = com.leasing.business.AddressUtil.getLocalHome(); com.leasing.business.AddressLocal relation = home.findByPrimaryKey(pk); relation.setAddressRegValue(valueHolder.getAddressRegValue()); } } ... and the problem: AddressLocal interface didn't have method setAddressCorValue neither setAddressRegValue. Only setAddressValue. so i think that setAddressValue will be ok for me. Thaks in advance for your answers. Petko. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.766 / Virus Database: 513 - Release Date: 17.9.2004 a. --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
could someone help me with this error? What does it mean? Thanks, Gino Buildfile: /home/OVGC_SCM/SCM/build.xml clean: [delete] Deleting directory /home/OVGC_SCM/SCM/build clean_generated_files: init: prepare: [mkdir] Created dir: /home/OVGC_SCM/SCM/build/classes [mkdir] Created dir: /home/OVGC_SCM/SCM/build/gen-src [mkdir] Created dir: /home/OVGC_SCM/SCM/build/meta-inf [mkdir] Created dir: /home/OVGC_SCM/SCM/build/web-inf ejbdoclet: [echo] +---+ [echo] | | [echo] | R U N N I N G E J B D O C L E T | [echo] | First Pass| [echo] +---+ [ejbdoclet] (XDocletMain.start 47 ) Running entityfacade/ [ejbdoclet] (XDocletMain.start 47 ) Running valueobject/ [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BatchHisDetailsBean-- com.ovgc.scm.store.domain.BatchHisDetailsValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.UOMTypeBean-- com.ovgc.scm.store.domain.UOMTypeValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.UserListBean-- com.ovgc.scm.store.domain.UserListValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BrandDetailBean-- com.ovgc.scm.store.domain.BrandDetailValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.TransactionLogBean-- com.ovgc.scm.store.domain.TransactionLogValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ProductSubClassBean-- com.ovgc.scm.store.domain.ProductSubClassValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BrandTypeBean-- com.ovgc.scm.store.domain.BrandTypeValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ColorBrandBean-- com.ovgc.scm.store.domain.ColorBrandValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.VendorBean-- com.ovgc.scm.store.domain.VendorValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ErrorLogBean-- com.ovgc.scm.store.domain.ErrorLogValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ProductStyleBean-- com.ovgc.scm.store.domain.ProductStyleValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.CompanyBean-- com.ovgc.scm.store.domain.CompanyValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.SizeBean-- com.ovgc.scm.store.domain.SizeValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.StoreBean-- com.ovgc.scm.store.domain.StoreValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.MyProductBean-- com.ovgc.scm.store.domain.MyProductValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.UnitOfMeasurementBean-- com.ovgc.scm.store.domain.UnitOfMeasurementValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BatchTypeBean-- com.ovgc.scm.store.domain.BatchTypeValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ProductClassBean-- com.ovgc.scm.store.domain.ProductClassValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BatchHisBean-- com.ovgc.scm.store.domain.BatchHisValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.UserPositionBean-- com.ovgc.scm.store.domain.UserPositionValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.GenderBean-- com.ovgc.scm.store.domain.GenderValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ErrorMessageBean-- com.ovgc.scm.store.domain.ErrorMessageValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.UserAccessBean-- com.ovgc.scm.store.domain.UserAccessValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.BrandBean-- com.ovgc.scm.store.domain.BrandValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ColorListBean-- com.ovgc.scm.store.domain.ColorListValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.InventoryStoreBean-- com.ovgc.scm.store.domain.InventoryStoreValue'. [ejbdoclet] Generating Value Object class: 'com.ovgc.scm.store.domain.ProductSubStyleBean-- com.ovgc.scm.store.domain.ProductSubStyleValue'. [ejbdoclet] (XDocletMain.start 47 ) Running strutsform/ [echo] +---+ [echo] | | [echo] | R U N N I N G E J B D O C L E T | [echo] | Second Pass | [echo] +---+ [ejbdoclet] (XDocletMain.start 47 ) Running localinterface/ [ejbdoclet] Generating Local interface
RE: [Xdoclet-user] (no subject)
That worked! Thanks:] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 2:41 PM To: [EMAIL PROTECTED] Subject: RE: [Xdoclet-user] (no subject) Here is what my ant task looks like. Slightly different.: === ejbdoclet ejbspec=${ejb.version} addedTags=@xdoclet-generated at ${TODAY},@copyright WellsFargo,@author mknutson,@version xxx destdir=${gen_src.ejb.dir} excludedtags=@version,@author mergeDir=${src.merge.dir} verbose=${xdoclet.verbose} fileset dir=${src.ejb.dir} includes=**/*.jar / fileset dir=${src.ejb.dir} include name=**/*.java/ /fileset valueobject pattern={0}Dto destDir=${gen_src.common.dir} / remoteinterface destDir=${gen_src.ejb.dir} / localinterface destDir=${gen_src.ejb.dir} / homeinterface destDir=${gen_src.ejb.dir} / localhomeinterface destDir=${gen_src.ejb.dir} / entitypk destDir=${gen_src.ejb.dir} / entitycmp destDir=${gen_src.ejb.dir} / entityfacade destDir=${gen_src.ejb.dir} / session destDir=${gen_src.ejb.dir} / utilobject destDir=${gen_src.ejb.dir} cacheHomes=true includeGUID=true / deploymentdescriptor destDir=${gen_src.conf.ejb.dir} mergedir=${src.merge.dir} / weblogic databaseType=${weblogic.database.type} poolname=${weblogic.datasource} version=${weblogic.version} createtables=${weblogic.createtables} validateDbSchemaWith=${weblogic.validateDbSchemaWith} destdir=${gen_src.conf.ejb.dir}/ xmlencoding=UTF-8 validateXml=${weblogic.validateXml} / apachesoap destDir=${gen_src.common.dir} / strutsform destdir=${gen_src.servlets.common.dir} / /ejbdoclet -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bender, James Sent: Thursday, July 15, 2004 10:31 AM To: '[EMAIL PROTECTED]' Subject: [Xdoclet-user] (no subject) Hi, I have been messing around with XDoclet trying to get my first EJB Doclet to work for a few days with no success. I'm sure the thing I'm doing wrong is simple. Here is the file I'm trying to generate ejb-jar.xml and all of the interfaces from (from the XDoclet Samples) package test.ejb; import test.interfaces.Customer; import test.interfaces.CustomerHome; import javax.ejb.EJBException; import javax.ejb.FinderException; import javax.ejb.SessionBean; import javax.ejb.SessionContext; import javax.naming.InitialContext; import javax.naming.NamingException; import java.rmi.RemoteException; import java.util.Collection; import java.util.Iterator; /** * This Bean serves as an example of a session bean that does not require a subclass to * be generated, but is included in the deployment descriptor generation. It is a _very_ simple * stupid example. * * @ejb.bean *generate=false *jndi-name=ejb/bank/SecurityOfficer *name=SecurityOfficer *type=Stateless * @ejb.ejb-ref *ejb-name=SecurityOfficer * @ejb.permission *role-name=SecurityOfficer * @ejb.interface *generate=false * @ejb.home *generate=false * @ejb.util *generate=false * @jboss.container-configuration *name=Standard Stateless SessionBean * @jboss.ejb-ref-jndi *jndi-name=ejb/bank/Customer *ref-name=bank/Customer * * @jonas.bean ejb-name=SecurityOfficer * jndi-name=SecurityOfficerHome * @jonas.ejb-ref ejb-ref-name=ejb/SecurityOfficer *jndi-name=SecurityOfficer */ public class SecurityOfficerBean implements SessionBean { // SessionBean implementation --- private SessionContext sessionContext; /** */ public void setSessionContext(SessionContext context) { this.sessionContext = context; } /** */ public void ejbRemove() { ; } /** */ public void ejbActivate() { ; } /** */ public void ejbPassivate() { ; } /** */ public void patrolBank() { System.out.println(Patrolling bank.); try { CustomerHome home = (CustomerHome) new InitialContext().lookup(java:comp/env/ejb/bank/Customer); Collection customers = home.findAll
RE: [Xdoclet-user] (no subject)
Bender, James [EMAIL PROTECTED] wrote: I have been messing around with XDoclet trying to get my first EJB Doclet to work for a few days with no success. ... /** * @ejb.bean *generate=false This is what I use to have XDoclet *not* reference my base bean classes anywhere. Remove or change this to true and try again. David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21alloc_id040op=click ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
iH: I have created a CMP bean, and so far XDoclet is working out nicely. However, I can't seem to get a create() method generated in my local home interface. I have the following in my bean source: /** * @ejb.bean * type=CMP * cmp-version=2.x * view-type=local * * @ejb.pk * class=java.lang.Integer * * @ejb.finder * signature= [finder signature1] * @ejb.finder * signature= [finder signature2] * @ejb.finder * signature= [finder signature3] */ public abstract class [name] implements EntityBean { ... /** * @ejb.create-method * view-type=local */ public Integer ejbCreate(Integer id, String title, String content) throws CreateException { setId(id); setCreationDate(new Date()); setTitle(title); setContent(content); return null; } ... } But I don't get the corresponding create() method in the generated local home source. The finder methods are there, but not the create method. Am I missing something obvious? Is there an XDoclet trace/log file that will give me some more details on why ejbCreate is being ignored? At present I'm just trying to autogenerate the local home and local interfaces, with the O-R mapping to be performed using tools provided with my app server (J2EE SDK 1.4) ... Aaron
RE: [Xdoclet-user] (no subject)
Aston, Aaron (MBS) wrote: However, I can't seem to get a create() method generated in my local home interface. I have the following in my bean source: /** * @ejb.bean * type=CMP * cmp-version=2.x * view-type=local * * @ejb.pk * class=java.lang.Integer I don't know if this could be related (bug in one area creating a bug in another area), but if you have a single-column PK you can simply denote this as * @ejb.bean * primkey-field=id It will figure out the class from the field's abstract accessor. Looking back at my (old old) code, I see I also specify * @ejb.pk-field on the getId() accessor. I cannot remember if this ended up being necessary or if I was merely being pedantic. Regardless, it works so you might want to give it a try. I do know there's a bug in XDoclet that makes it generate a custom PK class even if you specify a java.lang class (the docs say otherwise, and this is logged in JIRA). /** * @ejb.create-method * view-type=local */ public Integer ejbCreate(Integer id, String title, String content) throws CreateException I've never used the view-type on @ejb.create-method; perhaps this is broken. By having the view-type tag at the class-level (@ejb.bean view-type=local, which you have), you don't need to specify the view-type for all the other methods -- only the local home and interface will be generated anyway. Otherwise, your code looks fine. Good luck! David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 --- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62alloc_ida84op=click ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
Hi again, Sorry forgot to attach files last time. Thanks Rupen ejbc: [java] java.io.IOException: CreateProcess: javac -nowarn -classpath C:\Misc \General\workspace\EJBTest\ejbcgen;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jr e\lib\i18n.jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\classes;C: \bea\wlserver6.1\lib\j2ee12.jar;C:\bea\wlserver6.1\lib\weblogic.jar -d C:\Misc\G eneral\workspace\EJBTest\ejbcgen C:\Misc\General\workspace\EJBTest\ejbcgen\conve rter\*.java C:\Misc\General\workspace\EJBTest\ejbcgen\count\*.java C:\Misc\Gener al\workspace\EJBTest\ejbcgen\customer\*.java error=2 [java] at java.lang.Win32Process.create(Native Method) [java] at java.lang.Win32Process.init(Win32Process.java:61) [java] at java.lang.Runtime.execInternal(Native Method) [java] at java.lang.Runtime.exec(Runtime.java:546) [java] at java.lang.Runtime.exec(Runtime.java:472) [java] at java.lang.Runtime.exec(Runtime.java:438) [java] at weblogic.utils.Executable.exec(Executable.java:209) [java] at weblogic.utils.Executable.exec(Executable.java:134) [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp ilerInvoker.java:572) [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok er.java:373) [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok er.java:364) [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:2 50) [java] at weblogic.ejbc20.runBody(ejbc20.java:362) [java] at weblogic.utils.compiler.Tool.run(Tool.java:79) [java] at weblogic.ejbc.main(ejbc.java:29) [java] Exec failed .. exiting BUILD FAILED C:\Misc\General\workspace\EJBTest\build.xml:67: Java returned: 1 Total time: 6 seconds C:\Misc\General\workspace\EJBTest Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/?xml version=1.0? project name=XDoclet Example default=clean basedir=. property file=build.properties/ path id=xdoclet.classpath fileset dir=${xdoclet.dir}/lib include name=*.jar/ /fileset fileset dir=${bea.dir}/lib include name=j2ee12.jar/ /fileset fileset dir=${bea.dir}/lib include name=weblogic.jar/ /fileset /path path id=ejbc.classpath fileset dir=${bea.dir}/lib include name=j2ee12.jar/ /fileset fileset dir=${bea.dir}/lib include name=weblogic.jar/ /fileset /path !-- creating directories -- target name=prepare mkdir dir=${build.dir} / mkdir dir=${classes.dir} / mkdir dir=${meta-inf.dir} / mkdir dir=${lib.dir} / /target !-- doclets -- target name=ejbdoclet depends=prepare taskdef name=ejbdoclet classname=xdoclet.modules.ejb.EjbDocletTask classpathref=xdoclet.classpath/ ejbdoclet destdir = ${src.dir} excludedtags = @version,@author ejbspec=2.0 fileset dir=${src.dir} include name=**/*Bean.java / /fileset remoteinterface / homeinterface / entitypk / deploymentdescriptor destdir=${meta-inf.dir}/ weblogic destdir=${meta-inf.dir} / /ejbdoclet /target !-- compiling classes -- target name=compile-ejbs depends=ejbdoclet javac srcdir=${src.dir} classpathref=xdoclet.classpath destdir=${classes.dir} includes=**/*.java debug=on /javac /target !-- create jar -- target name=ejb-jar depends=compile-ejbs jar jarfile=${lib.dir}/${ejb-jar.name} fileset dir=${classes.dir}/ fileset dir=${build.dir} includes=META-INF/** / /jar /target target name=ejbc depends=ejb-jar java classname=weblogic.ejbc fork=yes classpathref=ejbc.classpath failonerror=yes sysproperty key=weblogic.home value=${bea.dir}/ arg line=-compiler javac ${lib.dir}/${ejb-jar.name} ${lib.dir}/ejbone.jar -keepgenerated/ classpath pathelement path=${WL_HOME}/lib/weblogic.jar/ /classpath /java /target !-- deleting directories -- target name=clean depends=ejbc !-- delete dir=${build.dir} / -- /target /project # These properties are only used when building the samples expanded from the distribution. src.dir = . ejb-src.dir = ${src.dir}/ejb-src web-src.dir = ${src.dir}/web-src build.dir= c:/build gen-src.dir = ${build.dir}/src classes.dir = ${build.dir}/classes lib.dir = ${build.dir}/lib lib-meta-inf.dir = ${lib.dir}/META-INF meta-inf.dir = ${build.dir}/META-INF web-inf.dir = ${build.dir}/WEB-INF web-classes.dir = ${build.dir}/WEB-INF/classes web-resources.dir = ${src.dir}/web xdoclet.dir = c:/xdoclet ant.dir = c:/apache-ant-1.6.1 bea.dir = c:/bea/wlserver6.1 java.dir = ${bea.dir}/jdk131 ejb-jar.name=count.jar
[Xdoclet-user] (no subject)
Hi, I'd like to know how the DeploymentDescriptor are generated for the EJB Files. Do I have to add some xdoclet tags into the EJB Bean files ? Here is a sample of ejbdoclet tag used : ejbdoclet ejbspec=2.0 destdir=${tmp.ejb.descriptor.jboss.32.dir} mergeDir=${source.components.descriptor.dir} deploymentdescriptor/ jboss version=3.2 validateXML=true/ fileset dir=${source.dir} include name=**/*Bean.java/ /fileset /ejbdoclet Regards, Denis. --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70alloc_id638op=click ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
Since i am using Dynaforms, i dont code formbeans in java.Right now i have the following settings hand coded for "pbGettinghereForm".My question is where do i code web-doclet tags when i am not coding form beans ?and is there any ways to auto generate the attributes in ApplicationResources.properties also ?Please let me know.ThanksRajstruts-config.xml-- form-bean name="pbGettinghereForm" type="org.apache.struts.validator.DynaValidatorForm" form-property name="addressStart" type="java.lang.String" / form-property name="cityStart" type="java.lang.String" / form-property name="stateStart" type="java.lang.String" / form-property name="zipStart" type="java.lang.String" //form-bean validation.xml--form name="pbGettinghereForm" field property="addressStart" depends="required" arg0 key="pbGettinghereForm.startAr.displayname"/ /field field property="cityStart" depends="required" arg0 key="pbGettinghereForm.startCt.displayname"/ /field field property="stateStart" depends="required" arg0 key="pbGettinghereForm.startSt.displayname"/ /field field property="zipStart" depends="required,integer" arg0 key="pbGettinghereForm.startZp.displayname"/ /field/form ApplicationResources.properties---pbGettinghereForm.startAr.displayname=AddresspbGettinghereForm.startCt.displayname=CitypbGettinghereForm.startSt.displayname=StatepbGettinghereForm.startZp.displayname=Zip Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
[Xdoclet-user] (no subject)
I am trying to merge some non-XDoclet composite-id's of hibernate to my hbm.xml files. Since hibernate does not have that capability I added a little merge point in hibernate.xdt template right before the ids are generated. So that if I have a composite-id of the form: composite-id key-property name=blah1 / key-property name=blah2 / /composite-id I can just insert it, where it has to be. The problem I have is that since, I provide the id thru merge point, I do not need @hibernate.id tag in my Java source any more and it seems hibernate module just does not like it. Upon generation I get an exception: [hiberdoclet] Caused by: xdoclet.XDocletException: Class edu.columbia.law.gls.model.AppliedP rogram misses ID property [hiberdoclet] at xdoclet.modules.hibernate.HibernateTagsHandler.hasCompositeId_Impl(Hibern ateTagsHandler.java:482) [hiberdoclet] at xdoclet.modules.hibernate.HibernateTagsHandler.ifHasPrimitiveId(Hibernate TagsHandler.java:153) [hiberdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [hiberdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) [hiberdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI mpl.java:25) [hiberdoclet] at java.lang.reflect.Method.invoke(Method.java:324) [hiberdoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635) [hiberdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:561) [hiberdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:959 ) [hiberdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:926) [hiberdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:466) [hiberdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347) [hiberdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414) [hiberdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560) [hiberdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:767) : : So, my question is how do I make it work? What else do I need to change? Is there a setting that I can use to disable that checking for id existence? -- Thanks, Alex. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
[EMAIL PROTECTED]
[Xdoclet-user] (no subject)
I've got a CMP class that I'm trying to generate a finder method for. I've included the following XDoclet class level tag: * @ejb.finder signature = java.util.Collection findByUsername(String username) * query = select OBJECT(c) from SysUserItem c where c.username = ?1 And it seems to generate correct entries in the home interfaces as well as the deployment descriptors. Here's the entry in the ejb-jar.xml file: query query-method method-namefindByUsername/method-name method-params method-paramString/method-param /method-params /query-method ejb-ql![CDATA[select OBJECT(c) from SysUserItem c where c.username = ?1]]/ejb-ql /query JBoss (3.2.1 w/ Tomcat) gives the following error when I attempt to deploy: Bean : SysUserItem Method : public abstract Collection findByUsername(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. 11:31:21,921 ERROR [MainDeployer] could not create deployment: file:/C:/obox/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/def ault/deploy/bis-app-1.0.ear/37.bis-app-1.0.ear-contents/ejb-db-1.0.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487) Vincent Bryce Fischer --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
RE: [Xdoclet-user] (no subject)
Totally random guess here, but I remember reading a warning that you needed to use fully-qualified class names in finder methods, even for the java.lang objects. I know many of mine were compiling and running just fine specifying Collection by itself, but it's an easy thing to check. Try changing the parameter to java.lang.String. I know, it shouldn't make a difference, but ... How many times have we all said that? :) David Harkness Sony Pictures Digital Networks (310) 482-4756 -Original Message- From: Bryce Fischer [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:36 AM To: [EMAIL PROTECTED] Subject: [Xdoclet-user] (no subject) I've got a CMP class that I'm trying to generate a finder method for. I've included the following XDoclet class level tag: * @ejb.finder signature = java.util.Collection findByUsername(String username) * query = select OBJECT(c) from SysUserItem c where c.username = ?1 And it seems to generate correct entries in the home interfaces as well as the deployment descriptors. Here's the entry in the ejb-jar.xml file: query query-method method-namefindByUsername/method-name method-params method-paramString/method-param /method-params /query-method ejb-ql![CDATA[select OBJECT(c) from SysUserItem c where c.username = ?1]]/ejb-ql /query JBoss (3.2.1 w/ Tomcat) gives the following error when I attempt to deploy: Bean : SysUserItem Method : public abstract Collection findByUsername(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. 11:31:21,921 ERROR [MainDeployer] could not create deployment: file:/C:/obox/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server /def ault/deploy/bis-app-1.0.ear/37.bis-app-1.0.ear-contents/ejb-db-1.0.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487) Vincent Bryce Fischer --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
RE: [Xdoclet-user] (no subject)
Is username a CMP-managed field ? Is it possible username should be userName ? It should correspond to the way you've spelled out the get/setXXX method. Perhaps if you provided the markup and method declaration for the get/setUsername it would shed more light. One thing I noticed with the 3.0.x series of JBoss is that if you create a finder method that references the primary key, it balks - loudly. unknown element found ?1 or somesuch.. hence, you can't do any finders that use the PK. Not sure if the 3.2.x series changed the messages or not. -Original Message- From: Bryce Fischer [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:36 AM To: [EMAIL PROTECTED] Subject: [Xdoclet-user] (no subject) I've got a CMP class that I'm trying to generate a finder method for. I've included the following XDoclet class level tag: * @ejb.finder signature = java.util.Collection findByUsername(String username) * query = select OBJECT(c) from SysUserItem c where c.username = ?1 And it seems to generate correct entries in the home interfaces as well as the deployment descriptors. Here's the entry in the ejb-jar.xml file: query query-method method-namefindByUsername/method-name method-params method-paramString/method-param /method-params /query-method ejb-ql![CDATA[select OBJECT(c) from SysUserItem c where c.username = ?1]]/ejb-ql /query JBoss (3.2.1 w/ Tomcat) gives the following error when I attempt to deploy: Bean : SysUserItem Method : public abstract Collection findByUsername(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. 11:31:21,921 ERROR [MainDeployer] could not create deployment: file:/C:/obox/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server /def ault/deploy/bis-app-1.0.ear/37.bis-app-1.0.ear-contents/ejb-db-1.0.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487) Vincent Bryce Fischer --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
By: midiguy ( Rui Liu ) xdoclet-bin-1.2b3 bug?? 2003-06-18 10:48 where i changed from xdoclet-bin-1.2b2to xdoclet-bin-1.2b3 ,this come to me.. [taskdef] BUILD FAILED: taskdef class xdoclet.modules.hibernate.HibernateDocletTask cannot be found build snatch: path id="class.path" fileset dir="${ro.tools}/xdoclet-bin-1.2b3" include name="lib/*.jar"/ /fileset /path !-- === -- !-- XDoclet code generation -- !-- === -- target name="generate" taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask" classpathref="class.path" / hibernatedoclet destdir="${build.compile_beans}" excludedtags="@version,@author,@todo,@see" addedtags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" force="true" verbose="false" fileset dir="./src" include name="**/*.java"/ /fileset hibernate/ /hibernatedoclet /target By: panchmp ( Michael Panchenko ) RE: xdoclet-bin-1.2b3 bug?? 2003-06-26 16:14 I have this problem too, but with ejbdoclet and webdoclet
[Xdoclet-user] (no subject)
Hi all, I tried to build the interfaces for a stateless ejb, it seems the build was successful, however, nothing generated after run. Could you please help? Below is the result of run. C:\XDoclet\samplesant Buildfile: build.xml init: prepare: [echo] |inside of prepare| [mkdir] Created dir: C:\XDoclet\samples\gen-src ejbdoclet: [echo] +---+ [echo] | | [echo] | R U N N I N G E J B D O C L E T | [echo] | | [echo] +---+ [ejbdoclet] Running remoteinterface/ [ejbdoclet] Running homeinterface/ [ejbdoclet] Running localhomeinterface/ [ejbdoclet] Running homeinterface/ [ejbdoclet] Running deploymentdescriptor/ BUILD SUCCESSFUL Total time: 6 seconds Thanks. David _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
Roland Chan Software Developer, RD CaseBank Technologies, Inc. 1 Kenview Blvd. Brampton, ON L6T 5E6 (905) 792-1981 ext. 519
[Xdoclet-user] (no subject)
Hi, resurces info: - xdoclet 1.1.2 - ant 1.4.1 - jboss 3.0 RC3 - postgres 7.2 I'm trying to define a many to many relationship for two cmp beans using a jboss apps server and a postgres db respectively. As usual for a many to many relation I use a join (link) table between the two tables mapped to the two beans. I can see how this is achieved for weblogic using @weblogic:relation join-table-name tag. However, @jboss doesn't have a join-table-name tag. How can I define the name of the join table in @jboss? thanks for your time cu chriss ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
[Xdoclet-user] (no subject)
Mit freundlichen Grüßen Sven Efftinge lohndirekt.de/aktiengesellschaft Lise-Meitner-Straße 19 - D 24941 Flensburg Telefon: 0461/7071 - 133 Telefax: 0461/7071 - 107 E-Mail: mailto:[EMAIL PROTECTED] Internet: http://www.lohndirekt.de ___ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user