You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mi...@flagstar.com on 2005/03/09 15:31:34 UTC

Axis Xdoclet Error

Can someone help me with this error, this is my first implmentation, I
looked at the source code and it fails for a null pointer, I am thinking I
have something setup incorrectly.....

XDoclet line of code failing;
String service_urn =
getCurrentClass().getDoc().getTag("axis:service").getValue();


Xdoclet snipit;
 * @ejb.bean name="PCIFacade" type="Stateless" view-type="local"
 *
local-jndi-name="com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeHome"
 * @ejb.interface
local-class="com.fsb.module.loanservices.predatorylending.ejb.PCIFacade"
 * @ejb.home
local-class="com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeHome"
 * @ejb.transaction type="Required"
 * @weblogic.enable-call-by-reference True
 * @axis.service name="PCIFacade" provider="java:EJB" scope="Application"


Ant build script:
      <target name="gen.ejb"  description="Generates source using XDoclet">
        <taskdef name="ejbdoclet" classname=
"xdoclet.modules.ejb.EjbDocletTask" classpathref="master-classpath" />
            <taskdef name="AxisDeploy" classname=
"xdoclet.modules.apache.axis.ejb.AxisDeploySubTask" classpathref=
"master-classpath" />
            <ejbdoclet destdir="${gen.dir}" force="true" verbose="1">
            <fileset dir="${java.dir}">
                <include name="**/ejb/PCIFacadeBean.java" />
            </fileset>
            <deploymentdescriptor destdir="${etc.dir}/ejb" />
            <weblogic version="8.1" destDir="${etc.dir}/ejb" createtables=
"Disabled" />
            <localhomeinterface />
            <localinterface />
            <session />
                  <AxisDeploy templateFile=
"${etc.dir}/axis/axis-deploy_wsdd.xdt" destdir="${gen.dir}"
destinationFile="web-services.xml" />
        </ejbdoclet>
    </target>



Error msg:
gen.ejb:
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] Generating weblogic-ejb-jar.xml.
[ejbdoclet] Generating Local Home interface for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] Generating Local interface for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] Generating Session class for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] java.lang.NullPointerException
[ejbdoclet]     at
xdoclet.modules.apache.axis.ejb.AxisDeploySubTask.engineStarted(AxisDeploySubTask.java:103)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:556)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:617)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:598)
[ejbdoclet]     at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:201)
[ejbdoclet]     at
xdoclet.TemplateSubTask.execute(TemplateSubTask.java:487)
[ejbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:468)
[ejbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
[ejbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ejbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ejbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:341)
[ejbdoclet]     at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[ejbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[ejbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[ejbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
[ejbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
[ejbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[ejbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED
C:\eclipse\workspace\Mortrac\build.xml:184: Unexpected error





Michael Medwith
Flagstar Bank
Mortrac 4 - Development Team
248.312.5959


This e-mail may contain data that is confidential, proprietary or "non-public
personal information," as that term is defined in the Gramm-Leach-Bliley Act
(collectively, "Confidential Information"). The Confidential Information is
disclosed conditioned upon your agreement that you will treat it
confidentially and in accordance with applicable law, ensure that such data
isn't used or disclosed except for the limited purpose for which it's being
provided and will notify and cooperate with us regarding any requested or
unauthorized disclosure or use of any Confidential Information. By accepting
and reviewing the Confidential Information you agree to indemnify us against
any losses or expenses, including attorney's fees that we may incur as a
result of any unauthorized use or disclosure of this data due to your acts or
omissions. If a party other than the intended recipient receives this e-mail,
you are requested to instantly notify us of the erroneous delivery and return
to us all data so delivered.

Re: Axis Xdoclet Error

Posted by Mi...@flagstar.com.
Doesn't seem to be the case, my ejb tags are getting picked up as well.....
here is my error....

does anyone else have any ideas?

gen.ejb:
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] Generating weblogic-ejb-jar.xml.
[ejbdoclet] Generating Local Home interface for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] Generating Local interface for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] Generating Session class for
'com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeBean'.
[ejbdoclet] java.lang.NullPointerException
[ejbdoclet]     at
xdoclet.modules.apache.axis.ejb.AxisDeploySubTask.engineStarted(AxisDeploySubTask.java:103)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:556)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:617)
[ejbdoclet]     at
xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:598)
[ejbdoclet]     at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:201)
[ejbdoclet]     at
xdoclet.TemplateSubTask.execute(TemplateSubTask.java:487)
[ejbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:468)
[ejbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
[ejbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ejbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ejbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:341)
[ejbdoclet]     at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[ejbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[ejbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[ejbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
[ejbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
[ejbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[ejbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED
C:\eclipse\workspace\Mortrac\build.xml:184: Unexpected error


Xdoclet snipit;
 * @ejb.bean name="PCIFacade" type="Stateless" view-type="local"
 *
local-jndi-name="com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeHome"
 * @ejb.interface
local-class="com.fsb.module.loanservices.predatorylending.ejb.PCIFacade"
 * @ejb.home
local-class="com.fsb.module.loanservices.predatorylending.ejb.PCIFacadeHome"
 * @ejb.transaction type="Required"
 * @weblogic.enable-call-by-reference True
 * @axis.service name="PCIFacade" provider="java:EJB" scope="Application"

Michael Medwith
Flagstar Bank
Mortrac 4 - Development Team
248.312.5959


                                                                           
             Adrian Perez                                                  
             Jorge                                                         
             <aperez@ignos.com                                          To 
             >                         axis-user@ws.apache.org             
                                                                        cc 
             03/09/2005 01:43                                              
             PM                                                    Subject 
                                       Re: Axis Xdoclet Error              
                                                                           
             Please respond to                                             
             axis-user@ws.apac                                             
                  he.org                                                   
                                                                           
                                                                           




Hi Michael,

  Please, check out your documentation comment for the class starts with
"/**" and not with just "/*".  It is a common mistake and maybe that's
why xdoclet can't find axis:service tag (the cause of
NullPointerException, I believe).

  Cheers,

Adrian P.J.




This e-mail may contain data that is confidential, proprietary or "non-public
personal information," as that term is defined in the Gramm-Leach-Bliley Act
(collectively, "Confidential Information"). The Confidential Information is
disclosed conditioned upon your agreement that you will treat it
confidentially and in accordance with applicable law, ensure that such data
isn't used or disclosed except for the limited purpose for which it's being
provided and will notify and cooperate with us regarding any requested or
unauthorized disclosure or use of any Confidential Information. By accepting
and reviewing the Confidential Information you agree to indemnify us against
any losses or expenses, including attorney's fees that we may incur as a
result of any unauthorized use or disclosure of this data due to your acts or
omissions. If a party other than the intended recipient receives this e-mail,
you are requested to instantly notify us of the erroneous delivery and return
to us all data so delivered.

Re: Axis Xdoclet Error

Posted by Adrian Perez Jorge <ap...@ignos.com>.
Hi Michael,

  Please, check out your documentation comment for the class starts with 
"/**" and not with just "/*".  It is a common mistake and maybe that's 
why xdoclet can't find axis:service tag (the cause of 
NullPointerException, I believe).

  Cheers,

Adrian P.J.