Ok,

the name of the project where the build file is generated is the ApplicationXY 
Project. this Project depends in JsrcComponents and JsrcFW.

here is how to reproduce the Behavior.

if have two projects (P1,P2). I create a third project that depends on the first two 
(N). P1 and P2 are included via the N Project Properties->Java Build Path->Projects 
Dialog. The two projects are checked there.

P2 contains a class that is derived from HTTPServlet and adds some functionality. I 
derive a new Class TestServlet in N from that class and add the following XDoclet 
comments:

  | /**
  |  * 
  |  * @author thomas
  |  * 
  |  * @web.servlet name = "TestServlet"
  |  *                          display-name = "Test Servlet"
  |  *                          description = "Ein Test Servlet"
  |  * 
  |  * @web.servlet-mapping  url-pattern = "/Servlet"
  |  *
  |  */
  | 
This is straight from the JBoss IDE Tutorial.

Than i create the XDoclet configuration as it is described in the Tutorial.
Here is the generated .doclet File.

  | <?xml version="1.0" encoding="UTF-8"?>
  | <configurations>
  | <configuration name="Web" used="true">
  | <task name="webdoclet" used="true" className="xdoclet.modules.web.WebDocletTask">
  | <attribute name="excludedTags" value="" used="false"/>
  | <attribute name="destDir" value="generated/WEB-INF" used="true"/>
  | <attribute name="mergeDir" value="" used="false"/>
  | <attribute name="force" value="" used="false"/>
  | <attribute name="verbose" value="" used="false"/>
  | <attribute name="addedTags" value="" used="false"/>
  | <element name="fileset" used="true">
  | <attribute name="dir" value="src" used="true"/>
  | <attribute name="includes" value="**/*Servlet.java" used="true"/>
  | <attribute name="excludes" value="" used="false"/>
  | </element>
  | <element name="deploymentdescriptor" used="true">
  | <attribute name="Servletspec" value="2.3" used="true"/>
  | <attribute name="smallicon" value="" used="false"/>
  | <attribute name="largeicon" value="" used="false"/>
  | <attribute name="displayname" value="" used="false"/>
  | <attribute name="description" value="" used="false"/>
  | <attribute name="distributable" value="" used="false"/>
  | <attribute name="sessiontimeout" value="" used="false"/>
  | <attribute name="tagLibs" value="" used="false"/>
  | <attribute name="welcomeFiles" value="" used="false"/>
  | <attribute name="contextParams" value="" used="false"/>
  | <attribute name="useIds" value="" used="false"/>
  | <attribute name="xmlencoding" value="ISO-8859-1" used="true"/>
  | <attribute name="schema" value="" used="false"/>
  | <attribute name="validateXML" value="" used="false"/>
  | <attribute name="acceptInterfaces" value="" used="false"/>
  | <attribute name="acceptAbstractClasses" value="" used="false"/>
  | <attribute name="packageSubstitutions" value="" used="false"/>
  | <attribute name="packageSubstitutionInheritanceSupported" value="" used="false"/>
  | <attribute name="subTaskClassName" value="" used="false"/>
  | <attribute name="prefixWithPackageStructure" value="" used="false"/>
  | <attribute name="destinationFile" value="" used="false"/>
  | <attribute name="templateURL" value="" used="false"/>
  | <attribute name="templateFile" value="" used="false"/>
  | <attribute name="Extent" value="" used="false"/>
  | <attribute name="havingClassTag" value="" used="false"/>
  | <attribute name="ofType" value="" used="false"/>
  | <attribute name="subTaskName" value="" used="false"/>
  | <attribute name="destDir" value="" used="false"/>
  | <attribute name="mergeDir" value="" used="false"/>
  | <attribute name="currentMethodTag" value="" used="false"/>
  | <attribute name="currentClassTag" value="" used="false"/>
  | <attribute name="currentFieldTag" value="" used="false"/>
  | <attribute name="currentPackage" value="" used="false"/>
  | <attribute name="currentMethod" value="" used="false"/>
  | <attribute name="currentConstructor" value="" used="false"/>
  | <attribute name="currentField" value="" used="false"/>
  | <attribute name="currentClass" value="" used="false"/>
  | </element>
  | <element name="jbosswebxml" used="true">
  | <attribute name="securitydomain" value="" used="false"/>
  | <attribute name="contextroot" value="" used="false"/>
  | <attribute name="virtualhost" value="" used="false"/>
  | <attribute name="Version" value="3.0" used="true"/>
  | <attribute name="useIds" value="" used="false"/>
  | <attribute name="xmlencoding" value="ISO-8859-1" used="true"/>
  | <attribute name="schema" value="" used="false"/>
  | <attribute name="validateXML" value="" used="false"/>
  | <attribute name="acceptInterfaces" value="" used="false"/>
  | <attribute name="acceptAbstractClasses" value="" used="false"/>
  | <attribute name="packageSubstitutions" value="" used="false"/>
  | <attribute name="packageSubstitutionInheritanceSupported" value="" used="false"/>
  | <attribute name="subTaskClassName" value="" used="false"/>
  | <attribute name="prefixWithPackageStructure" value="" used="false"/>
  | <attribute name="destinationFile" value="" used="false"/>
  | <attribute name="templateURL" value="" used="false"/>
  | <attribute name="templateFile" value="" used="false"/>
  | <attribute name="Extent" value="" used="false"/>
  | <attribute name="havingClassTag" value="" used="false"/>
  | <attribute name="ofType" value="" used="false"/>
  | <attribute name="subTaskName" value="" used="false"/>
  | <attribute name="destDir" value="" used="false"/>
  | <attribute name="mergeDir" value="" used="false"/>
  | <attribute name="currentMethodTag" value="" used="false"/>
  | <attribute name="currentClassTag" value="" used="false"/>
  | <attribute name="currentFieldTag" value="" used="false"/>
  | <attribute name="currentPackage" value="" used="false"/>
  | <attribute name="currentMethod" value="" used="false"/>
  | <attribute name="currentConstructor" value="" used="false"/>
  | <attribute name="currentField" value="" used="false"/>
  | <attribute name="currentClass" value="" used="false"/>
  | </element>
  | </task>
  | </configuration>
  | </configurations>
  |  

If i use JBoss IDE 1.2.2 i get a xdoclet-build.xml with the correct classpaths. If i 
use JBoss IDE 1.2.4 i get the incorrect one.

I stumbeled on the error because the web.xml deployment descriptor gets generated 
wrong. The servlet element for my servlet class is missing.  Stangely the 
servlet-mapping element is generated correctly.

If i edit the xdoclet-build.xml generated by 1.2.4 by Hand and correct the classpath 
the missing element gets generated correctly.

I'm using eclipse 1.2.3 und j2sdk 1.2.4 from Sun on Linux.

  thomas

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841205#3841205

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841205


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to