You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@accor.com> on 2004/10/18 15:59:59 UTC

Compilation problem with xalan

Hi all,
I have some trouble with xalan.
In my m project.xml, I have the dependency :

<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.6.0</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency> 

In my java code :

    private void addToXmlResponse(final
org.apache.xalan.extensions.XSLProcessorContext context,
            final String xml) {
        try {
            final org.apache.xml.serializer.SerializationHandler handler
= 
                (org.apache.xml.serializer.SerializationHandler)
context.getTransformer().getSerializationHandler(); 
		and so on ...


The java:compile goals says :
java:compile:
    [echo] Compiling to C:\projets\OTAReceiver/target/classes
    [javac] Compiling 67 source files to
C:\projets\OTAReceiver\target\classes
    [javac]
C:\projets\OTAReceiver\src\java\com\accor\connectors\util\CallTC.java:
343: cannot resolve symbol
    [javac] symbol  : method getSerializationHandler ()
    [javac] location: class org.apache.xalan.transformer.TransformerImpl
    [javac]
(org.apache.xml.serializer.SerializationHandler) conte
xt.getTransformer().getSerializationHandler();
    [javac]
                 ^
    [javac] 1 error


Which xalan is used in order to compile my project ??

The jdk one or the one defined in my project ??
Certainly the first but why ??
How can i solve this problem whitout adding some jars in the endorseds
dirs ??

Thanks,
Olivier



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message ?lectronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci apr?s "le message" ), sont confidentiels et destin?s exclusivement ? l'usage de la  personne ? laquelle ils sont adress?s. Si vous avez re?u ce message par erreur, merci  de le renvoyer ? son ?metteur et de le d?truire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non express?ment autoris?es de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE : Compilation problem with xalan

Posted by Olivier Lamy <ol...@accor.com>.
sorry solved with :
 
<preGoal name="java:compile">

<maven:set plugin="maven-java-plugin"
property="maven.compile.compilerargs" 

value="-Xbootclasspath/p:${pom.getDependencyPath('xalan:xalan')}" /> 

</preGoal>

 

 

-----Message d'origine-----
De : Olivier Lamy [mailto:olivier.lamy@accor.com] 
Envoyé : lundi 18 octobre 2004 16:00
À : Maven Users List
Objet : Compilation problem with xalan



Hi all, 
I have some trouble with xalan. 
In my m project.xml, I have the dependency : 

<dependency> 
<groupId>xalan</groupId> 
<artifactId>xalan</artifactId> 
<version>2.6.0</version> 
<properties> 
<war.bundle>true</war.bundle> 
</properties> 
</dependency> 

In my java code : 

    private void addToXmlResponse(final 
org.apache.xalan.extensions.XSLProcessorContext context, 
            final String xml) { 
        try { 
            final org.apache.xml.serializer.SerializationHandler handler

= 
                (org.apache.xml.serializer.SerializationHandler) 
context.getTransformer().getSerializationHandler(); 
                and so on ... 


The java:compile goals says : 
java:compile: 
    [echo] Compiling to C:\projets\OTAReceiver/target/classes 
    [javac] Compiling 67 source files to 
C:\projets\OTAReceiver\target\classes 
    [javac] 
C:\projets\OTAReceiver\src\java\com\accor\connectors\util\CallTC.java: 
343: cannot resolve symbol 
    [javac] symbol  : method getSerializationHandler () 
    [javac] location: class org.apache.xalan.transformer.TransformerImpl

    [javac] 
(org.apache.xml.serializer.SerializationHandler) conte 
xt.getTransformer().getSerializationHandler(); 
    [javac] 
                 ^ 
    [javac] 1 error 


Which xalan is used in order to compile my project ?? 

The jdk one or the one defined in my project ?? 
Certainly the first but why ?? 
How can i solve this problem whitout adding some jars in the endorseds 
dirs ?? 

Thanks, 
Olivier 



This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.

********************************************************************** 
Ce message ?lectronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apr?s "le message" ), sont
confidentiels et destin?s exclusivement ? l'usage de la  personne ?
laquelle ils sont adress?s. Si vous avez re?u ce message par erreur,
merci  de le renvoyer ? son ?metteur et de le d?truire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non express?ment autoris?es de ce message, sont
interdites.

********************************************************************** 


--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
For additional commands, e-mail: users-help@maven.apache.org 



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
**********************************************************************