Hi Oliver,
when did this problem start for you?
Are you using the latest from the CVS repository?
Did you just rebuild xalan.jar and get this problem?

When I look at what is in CVS I see this under
org.apache.xalan.transformer.TransformerImpl :
  public SerializationHandler getSerializationHandler()
  {
    return m_serializationHandler;
  }

So the method is public, and near as I can tell the javac compilation
should not have complained.

I want to get to the bottom of this problem for you. However, I'm concerned
aboue why you are calling this method in the first place. In my opinion
this method, though public, is not an API.


----------
Brian Minchau
XSLT Development, IBM Toronto
e-mail:        [EMAIL PROTECTED]



                                                                           
             "Olivier Lamy"                                                
             <[EMAIL PROTECTED]                                             
             or.com>                                                    To 
                                       "[EMAIL PROTECTED] Apache. Org"    
             10/18/2004 10:19          <[EMAIL PROTECTED]>      
             AM                                                         cc 
                                                                           
                                                                   Subject 
                                       Compilation problem with xalan      
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi all,
I have some trouble with xalan and maven and jdk 1.4.2_04.
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 (certainly the jdk
one) ??

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.
**********************************************************************



Reply via email to