Bonjour,
J'ai continué à investiguer le problème décrit ci dessous...
En traçant dans org.apache.cocoon.components.sourceSourceUtil, dans la méthode
toSAX (distribution source cocoon 2.1.7)...
En ligne 174, si je récupere le File depuis le FileSource par
((FileSource)source).getFile()
son absolute Path est correct mais la méthode .exists() retourne false.
if (source instanceof FileSource) {
try {
File tF = ((FileSource)source).getFile();
System.err.println("File " + tF.getAbsolutePath());
if(tF.exists())
System.err.println(" EXISTS");
else
System.err.println(" DOES NOT EXIST");
}
// catch etc....
}
Sur windows :
File
G:\projets\veritas\workingcopy\bin\eXist\webapp\..\..\..\webapp\.\search\search.xsp
EXISTS
Sur Linux
File /home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp
DOES NOT EXIST
En mettant en place une petite classe avec main par ailleurs faisant simplement
(hors contexte cocoon)
File tF = new
File((String)"/home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp");
System.err.println("File " + tF.getAbsolutePath());
if(tF.exists())
System.err.println(" EXISTS");
else
System.err.println(" DOES NOT EXIST");
J'ai sur Linux
File /home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp
EXISTS
Est ce que quelqu'un serait deja tombé sur ce probleme ?
Pourquoi , comment ?
D'avance merci
-- bruno --
----- Original Message -----
From: "Bruno Chatel" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Jakob Fix" <[EMAIL PROTECTED]>; "Bruno Chatel" <[EMAIL PROTECTED]>
Sent: Tuesday, October 25, 2005 5:46 PM
Subject: Fw: Probleme XSP windows vs linux
> Bonjour,
>
> Je travaille sur une application basé sur la distribution eXist et intégrant
> Cocoon.
> (eXist version CVS 18/10/2005, intégrant cocoon 2.1.7, Jetty).
>
> L'application fonctionne correctement sous Windows (J2SE 1.4.2).
> Cependant, en copiant directement la distribution sous Linux (J2SE 1.4.2
> egalement)
> nous rencontrons un problème avec les XSP qui ne fonctionnent pas.
>
> Les logs indiquent :
>
> core.log
>
> INFO (2005-10-25) 15:20.27:453 [core.program-generator] (/dy/search)
> P1-1/ProgramGeneratorImpl: The serverpage
>
> [file:/home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp
> ] could not be preload
> ed, will be re-created
> (org.apache.cocoon.components.language.LanguageException: Unable to preload
> program
> org/webapp/__/search/search_xsp_:
> org.apache.cocoon.components.language.LanguageException: Could not load class
> for program 'org/webapp/__/search/search_xsp_' due to a
> java.lang.ClassNotFoundException: org.webapp.__.search.search_xsp_)
> INFO (2005-10-25) 15:20.28:151 [core.program-generator] (/dy/search)
> P1-1/ProgramGeneratorImpl: The serverpage
>
> [file:/home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp
> ] could not be preload
> ed, will be re-created
> (org.apache.cocoon.components.language.LanguageException: Unable to preload
> program
> org/webapp/__/search/search_xsp_:
> org.apache.cocoon.components.language.LanguageException: Could not load class
> for program 'org/webapp/__/search/search_xsp_' due to a
> java.lang.ClassNotFoundException: org.webapp.__.search.search_xsp_)
>
> et access.log
>
> WARN (2005-10-25) 15:33.56:892 [access] (/dy/search)
> P1-9/CocoonServlet: The resource was not found
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException:
>
> file:/home/bcha/dynaprism/bin/eXist/webapp/../../../webapp/./search/search.xsp
> doesn't exist.
> at
> org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:403)
> at
> org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:174)
> at
> org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:100)
> at
> org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:139)
> .....
>
> Le fichier search.xsp existe pourtant au path indiqué.
>
> Avez vous une idée du pourquoi ?
>
> D'avance merci
>
> -- bruno --
>
>
>
>
> ---------------------------------------------------------------------
> Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
> Pour vous desinscrire : mailto:[EMAIL PROTECTED]
> Autres commandes : mailto:[EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]