axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hyen V Chung <hych...@us.ibm.com>
Subject Re: [axis2] add security.mar and get class not found exception
Date Thu, 16 Feb 2006 23:02:57 GMT
The problem is that there is a wss4j-SNAPSHOT.jar in the
axis2.war#WEB-INF/lib/wss4j-SNAPSHOT.jar, for some reason, the classloader
loads the classes from axis2.war#WEB-INF/lib/wss4j-SNAPSHOT.jar and it also
try to load classes from xmlsec-1.2.1.jar which is *not*
axis2.war#WEB-INF/lib, but in
security-0.95-SNAPSHOT.mar#lib/xmlsec-1.2.1.jar.

By removing axis2.war#WEB-INF/lib/wss4j-SNAPSHOT.jar, I can load
security-0.95-SNAPSHOT.mar no problem.

Does anyone know why the wss4j-SNAPSHOT.jar is exist in both:

axis2.war#WEB-INF/lib/
security-0.95-SNAPSHOT.mar#lib/

Thanks,
Henry




                                                                           
             Hyen V                                                        
             Chung/Austin/IBM@                                             
             ibmus                                                      To 
                                       axis-dev@ws.apache.org              
             02/11/2006 12:40                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: [axis2] add security.mar and    
             Please respond to         get class not found exception       
             axis-dev@ws.apach                                             
                   e.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           




I am using security-0.95-SNAPSHOT.mar from axis2/modules/security/target
and verified that xmlsec-1.2.1.jar is in security-0.95-SNAPSHOT.mar#/lib
directory. The contents of my security-0.95-SNAPSHOT.mar:

  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-10-06 09:17   META-INF/
       91  02-10-06 09:17   META-INF/MANIFEST.MF
        0  02-10-06 09:17   lib/
        0  02-10-06 09:17   org/
        0  02-10-06 09:17   org/apache/
        0  02-10-06 09:17   org/apache/axis2/
        0  02-10-06 09:17   org/apache/axis2/security/
        0  02-10-06 09:17   org/apache/axis2/security/handler/
        0  02-10-06 09:17   org/apache/axis2/security/handler/config/
        0  02-10-06 09:17   org/apache/axis2/security/util/
      489  02-10-06 09:17   META-INF/module.xml
  1179709  02-10-06 09:17   lib/bcprov-jdk13-128.jar
    46725  02-10-06 09:17   lib/commons-codec-1.3.jar
   232105  02-10-06 09:17   lib/jaxen-1.1-beta-7.jar
   105026  02-10-06 09:17   lib/opensaml-1.0.1.jar
   516412  02-10-06 09:17   lib/wss4j-SNAPSHOT.jar
  1203860  02-10-06 09:17   lib/xercesImpl-2.7.1.jar
   194205  02-10-06 09:17   lib/xml-apis-1.3.02.jar
   292712  02-10-06 09:17   lib/xmlsec-1.2.1.jar
     5179  02-10-06 09:17   org/apache/axis2/security/SecurityModule.class
    10140  02-10-06 09:17   org/apache/axis2/security/WSDoAllReceiver.class
     6404  02-10-06 09:17   org/apache/axis2/security/WSDoAllSender.class
     4803  02-10-06 09:17
org/apache/axis2/security/handler/WSDoAllHandler.class
     1108  02-10-06 09:17
org/apache/axis2/security/handler/WSSHandlerConstants.class
     3813  02-10-06 09:17
org/apache/axis2/security/handler/config/InflowConfiguration.class
     8557  02-10-06 09:17
org/apache/axis2/security/handler/config/OutflowConfiguration.class
     4851  02-10-06 09:17   org/apache/axis2/security/util/Axis2Util.class
     6716  02-10-06 09:17
org/apache/axis2/security/util/HandlerParameterDecoder.class
     2715  02-10-06 09:17
org/apache/axis2/security/util/MessageOptimizer.clas


And contents of xmlsec-1.2.1.jar: (unzip -l xmlsec-1.2.1.jar
org/apache/xml/security/Init.class)
Archive:  xmlsec-1.2.1.jar
  Length     Date   Time    Name
 --------    ----   ----    ----
     8874  02-28-05 21:13   org/apache/xml/security/Init.class
 --------                   -------
     8874                   1 file

Am I missing some other jars?

Thanks,
Henry




             Davanum Srinivas
             <davanum@gmail.co
             m>                                                         To
                                       axis-dev@ws.apache.org
             02/10/2006 05:10                                           cc
             PM
                                                                   Subject
                                       Re: [axis2] add security.mar and
             Please respond to         get class not found exception
             axis-dev@ws.apach
                   e.org








you need the xml-security jar

On 2/10/06, Hyen V Chung <hychung@us.ibm.com> wrote:
> Copy security-0.95-SNAPSHOT.mar to webapps/axis2/WEB-INF/modules
>
> Have anyone seen this?
>
> java.lang.NoClassDefFoundError: org.apache.xml.security.Init
>              org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:72)
>
> org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:89)
>              org.apache.ws.security.WSSConfig.<clinit>(WSSConfig.java:53)
>              java.lang.J9VMInternals.initializeImpl(Native Method)
>              java.lang.J9VMInternals.initialize(J9VMInternals.java:155)
>
>
org.apache.ws.security.WSSecurityEngine.<clinit>(WSSecurityEngine.java:49)
>              java.lang.J9VMInternals.initializeImpl(Native Method)
>              java.lang.J9VMInternals.initialize(J9VMInternals.java:155)
>
> org.apache.ws.security.handler.WSHandler.<clinit>(WSHandler.java:60)
>              java.lang.J9VMInternals.initializeImpl(Native Method)
>              java.lang.J9VMInternals.initialize(J9VMInternals.java:155)
>              java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
>              java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
>              java.lang.Class.forNameImpl(Native Method)
>
> Thanks,
> Henry
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/





Mime
View raw message