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 Mike Woinoski <ne...@pineneedleconsulting.com> on 2005/08/30 04:38:35 UTC

problem building Axis 1.2.1 from source

I'm trying to rebuild axis.jar from the Axis 1.2.1 source. "ant compile" 
generates a number of errors like the following:

     C:\Home\Java\axis\src\org\apache\axis\SOAPPart.java:90:
     org.apache.axis.SOAPPart is not abstract and does not override abstract
     method renameNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in
     org.w3c.dom.Document
     public class SOAPPart extends javax.xml.soap.SOAPPart implements Part
            ^

I've tried it with Java 5.0 and Java 1.4.2 (using Ant 1.6.2), resetting 
JAVA_HOME for the different compilers, but I get the same errors. Is the 
compiler using the wrong version of the Xerces libraries? Should I be using an 
older compiler (JDK 1.3?)

Thanks,
Mike


Re: problem building Axis 1.2.1 from source

Posted by Mike Woinoski <ne...@pineneedleconsulting.com>.
Venkat,
Here are the classpaths:

sun.boot.class.path=
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\dom.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\sax.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\xalan.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\xercesImpl.jar
     C:\Home\Java\jwsdp\jaxp\lib\jaxp-api.jar
     C:\Home\Java\j2se\jre\lib\rt.jar
     C:\Home\Java\j2se\jre\lib\i18n.jar
     C:\Home\Java\j2se\jre\lib\sunrsasign.jar
     C:\Home\Java\j2se\jre\lib\jsse.jar
     C:\Home\Java\j2se\jre\lib\jce.jar
     C:\Home\Java\j2se\jre\lib\charsets.jar
     C:\Home\Java\j2se\jre\classes

classpath:
     C:\Home\Java\axis\lib\xercesImpl.jar
     C:\Home\Java\axis\lib\xmlParserAPIs.jar
     C:\Home\Java\axis\${xalan-unbundled.jar}
     C:\Home\Java\axis\${xml-apis.jar}
     C:\Home\Java\axis\${xerces.jar}
     C:\Home\Java\axis\test\lib\jakarta-oro-2.0.5.jar
     C:\Home\Java\axis\test\lib\xmlunit1.0.jar
     C:\Home\Java\axis\lib\jsse.jar
     C:\Home\Java\axis\lib\JimiProClasses.zip
     C:\Home\Java\axis\lib\activation.jar
     C:\Home\Java\axis\lib\mailapi.jar
     C:\Home\Java\j2se\lib\tools.jar
     C:\Home\Java\axis\${j2ee.jar}
     C:\Home\Java\axis\lib\junit.jar
     C:\Home\Java\axis\${servlet.jar}
     C:\Home\Java\axis\lib\axis-ant.jar
     C:\Home\Java\axis\lib\axis.jar
     C:\Home\Java\axis\lib\commons-discovery-0.2.jar
     C:\Home\Java\axis\lib\commons-httpclient-3.0-rc2.jar
     C:\Home\Java\axis\lib\commons-logging-1.0.4.jar
     C:\Home\Java\axis\lib\jaxrpc.jar
     C:\Home\Java\axis\lib\log4j-1.2.8.jar
     C:\Home\Java\axis\lib\mailapi_1_3_1.jar
     C:\Home\Java\axis\lib\saaj.jar
     C:\Home\Java\axis\lib\servlet.jar
     C:\Home\Java\axis\lib\wsdl4j-1.5.1.jar
     C:\Home\Java\jwsdp\server\lib\catalina-ant.jar
     C:\Home\Java\jwsdp\jaxp\lib\jaxp-api.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\xercesImpl.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\xalan.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\sax.jar
     C:\Home\Java\jwsdp\jaxp\lib\endorsed\dom.jar
     C:\Home\Java\jwsdp\apache-ant\lib\ant.jar
     C:\Home\Java\jwsdp\apache-ant\lib\ant-trax.jar
     C:\Home\Java\jwsdp\apache-ant\lib\ant-nodeps.jar
     C:\Home\Java\jwsdp\apache-ant\lib\ant-launcher.jar
     C:\Home\Java\jwsdp\apache-ant\lib\ant-junit.jar
     C:\Home\Java\axis\build\classes
     C:\Home\Java\axis\build\tools
     C:\Home\Java\axis\build\lib\axis-ant.jar

Thanks,
Mike

Venkat Reddy wrote:

> This must be because of using JRE 5.0, which uses DOM-3. You can fix
> this either simply using a 1.4.2 JRE or ensuring Xerces 2.6.2 is in
> classpath. How does your classpath looks like as emitted by ant while
> running "ant clean compile"?
> 
> - venkat
> 
> On 8/30/05, Mike Woinoski <ne...@pineneedleconsulting.com> wrote:
> 
>>I'm trying to rebuild axis.jar from the Axis 1.2.1 source. "ant compile"
>>generates a number of errors like the following:
>>
>>     C:\Home\Java\axis\src\org\apache\axis\SOAPPart.java:90:
>>     org.apache.axis.SOAPPart is not abstract and does not override abstract
>>     method renameNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in
>>     org.w3c.dom.Document
>>     public class SOAPPart extends javax.xml.soap.SOAPPart implements Part
>>            ^
>>
>>I've tried it with Java 5.0 and Java 1.4.2 (using Ant 1.6.2), resetting
>>JAVA_HOME for the different compilers, but I get the same errors. Is the
>>compiler using the wrong version of the Xerces libraries? Should I be using an
>>older compiler (JDK 1.3?)
>>
>>Thanks,
>>Mike
>>
>>
> 
> 



Re: problem building Axis 1.2.1 from source

Posted by Venkat Reddy <vr...@gmail.com>.
This must be because of using JRE 5.0, which uses DOM-3. You can fix
this either simply using a 1.4.2 JRE or ensuring Xerces 2.6.2 is in
classpath. How does your classpath looks like as emitted by ant while
running "ant clean compile"?

- venkat

On 8/30/05, Mike Woinoski <ne...@pineneedleconsulting.com> wrote:
> I'm trying to rebuild axis.jar from the Axis 1.2.1 source. "ant compile"
> generates a number of errors like the following:
> 
>      C:\Home\Java\axis\src\org\apache\axis\SOAPPart.java:90:
>      org.apache.axis.SOAPPart is not abstract and does not override abstract
>      method renameNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in
>      org.w3c.dom.Document
>      public class SOAPPart extends javax.xml.soap.SOAPPart implements Part
>             ^
> 
> I've tried it with Java 5.0 and Java 1.4.2 (using Ant 1.6.2), resetting
> JAVA_HOME for the different compilers, but I get the same errors. Is the
> compiler using the wrong version of the Xerces libraries? Should I be using an
> older compiler (JDK 1.3?)
> 
> Thanks,
> Mike
> 
>

Re: problem building Axis 1.2.1 from source

Posted by Mike Woinoski <ne...@pineneedleconsulting.com>.
In an response to a old post about this same problem, Dims said:

 > The jdk15 comes with dom3 which is a not compatible with SAAJ 1.2
 > spec. can you please drop the xercesImpl.jar and xmlParserAPIs.jar in
 > java/lib directory. if that does not work, please drop them into
 > JDK15\jre\lib\endorsed directory (as per
 > http://java.sun.com/j2se/1.4.2/docs/guide/standards/).

I touched xercesImpl.jar and xmlParserAPIs.jar from axis/lib, then copied them 
into several directories under the JDK installation:
	JAVA_HOME/jre/lib
	JAVA_HOME/jre/lib/endorsed (removed dom.jar, etc.)
	JAVA_HOME/lib
However, in all cases the compiler still uses the class files from rt.jar. What 
other settings are needed to convince the compiler to use the classes in the 
axis jar files?

Thanks,
Mike	

Mike Woinoski wrote:

> I'm trying to rebuild axis.jar from the Axis 1.2.1 source. "ant compile" 
> generates a number of errors like the following:
> 
>     C:\Home\Java\axis\src\org\apache\axis\SOAPPart.java:90:
>     org.apache.axis.SOAPPart is not abstract and does not override abstract
>     method 
> renameNode(org.w3c.dom.Node,java.lang.String,java.lang.String) in
>     org.w3c.dom.Document
>     public class SOAPPart extends javax.xml.soap.SOAPPart implements Part
>            ^
> 
> I've tried it with Java 5.0 and Java 1.4.2 (using Ant 1.6.2), resetting 
> JAVA_HOME for the different compilers, but I get the same errors. Is the 
> compiler using the wrong version of the Xerces libraries? Should I be 
> using an older compiler (JDK 1.3?)
> 
> Thanks,
> Mike
> 
>