cancel
Showing results for 
Search instead for 
Did you mean: 

xalan-2.7.0 does not work...

doblek
Champ in-the-making
Champ in-the-making
Hi all,

I've recently moved to alfresco2.0, but I found an error using web services…

The following exception is thrown:
GRAVE: JetspeedContainerServlet: Error rendering portlet "j2-alfresco-cms::AlfrescoNewProjectPortlet": java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader
java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader
   at org.apache.ws.security.WSSecurityEngine.<clinit>(WSSecurityEngine.java:132)
   at org.apache.ws.axis.security.WSDoAllSender.<clinit>(WSDoAllSender.java:69)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:242)
   at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:177)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
   at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)

The reason why this happens is that alfresco2.0 includes "xalan-2.7.0.jar" and that version does not contain the "FuncLoader" class (and as far as I know, it's needed by some classes in "wss4j.jar". See this link)

Well, it seems that xalan-2.6.0 does contain that "FuncLoader.class", so my question is: could I use xalan-2.6.0 instead of xalan-2.7.0 without problems?

Could I solve this issue doing a different thing?

Any help appreciated.

Thanks in advance,
Enrique
2 REPLIES 2

doblek
Champ in-the-making
Champ in-the-making
I've just read this previous thread in the forum,
but I can see the xmlsec-1.4.0.jar library in $TOMCAT_HOME/webapps/alfresco/WEB-INF/lib…  :?

doblek
Champ in-the-making
Champ in-the-making
Ok, it was my fault  Smiley Surprisedops:  Smiley Surprisedops:

My portlet application (which connects to Alfresco) was using xmlsec-1.2.1… I've replaced it with xml-1.4.0 and its working now…

My mistake! Sorry if i made you lose your time…  Smiley Surprisedops:

Thanks anyway.