- This topic has 5 replies, 3 voices, and was last updated 19 years, 2 months ago by Greg.
-
AuthorPosts
-
j.binMemberHello!
Could you, please, remind us how to turn on generation of specific AS files?
For example, jboss-web.xml?Many thanks!
Scott AndersonParticipantI’d suggest you look at this fine tutorial from one of our partner sites: http://www.laliluna.de/session-bean-facade-entity-beans.html
While it focuses on generating session beans, it also shows how to properly set up XDoclet for JBoss generation. Simply do that with your web project, rather than an EJB project as shown, and the JBoss descriptors will be generated for you when XDoclet is run.
j.binMemberThanks!
1. Enabled “MyEclipse-XDoclet” by adding “Standard Web” configuration.
2. In “webdoclet” added “jbosswebxml” and checked the following properties:
a. Version
b. securitydomain
3. Unchecked “jsptaglib” and “deploymentdescriptor” thus leaving 2:
a. fileset
b. jbosswebxml4. Applied, OKed
5. Run XDoclet
6. Got:Buildfile: C:\Devel\eclipse\workspace\SecMyFacesExamples\.xdoclet-build.tmp.xml N65540: BUILD FAILED C:\Devel\eclipse\workspace\SecMyFacesExamples\.xdoclet-build.xml:50: is not a legal value for this attribute Total time: 1 second
Line 50 in xdoclet-build.xml reads:
<taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdoclet.classpath"/> <webdoclet excludedTags="@version,@author,@todo" destDir="src" verbose="true" addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" >
(all one line)
What’s next?
Is the a way to force myEclipse to generate proper deployment descriptors WITHOUT spending an hour in the tutorial?
Just check a box that says: “Generate Deployment Descriptors” and OK it?Many thanks!
GregMemberWhat value did you give the version and securitydomain attributes? The version attribute for the jbosswebxml subtask must be a valid version number. You can check the XDoclet documentation for possible values:
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/jboss/web/JBossWebXmlSubTask.html
j.binMemberHi,
version was given 4.0
securitydomain: “java:/jaas/SecMyFacesExamples”(BTW, any idea why myEclipse does NOT hint me there?)
Anything about that values, that isn’t quite right?
Thank you!
GregMemberIf you have a xdoclet-build.xml file in your project it is no longer being used for running xdoclet. It appears you are using the dynamic build, which creates a temporary .xdoclet-build.xml file and runs xdoclet and then deletes this afterwards. So try switching the XDoclet build specification to “manual” in the MyEclipse-XDoclet properties page under the “Build” tab. This will create a new xdoclet-build.xml file that is update to date with your latest settings. Then run XDoclet and see the line number that those the error. Then inspect the new xdoclet-build.xml file to get a better sense of where the error is.
-
AuthorPosts