axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anamitra Bhattacharyya (JIRA)" <>
Subject [jira] Created: (AXIS2-811) axis 2 class loader issue for loading security jar files from web-inf/lib folder
Date Fri, 09 Jun 2006 14:53:29 GMT
axis 2 class loader issue for loading security jar files from web-inf/lib folder

         Key: AXIS2-811
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: core  
    Versions: 1.0    
 Environment: Weblogic 9.1 with jdk 1.5 [sun]
    Reporter: Anamitra Bhattacharyya

I am trying to setup a security test with the rampart module and have deployed axis 2 as a
web app in the weblogic server. I have modified the axis2.xml.path and the axis2.repository.path
to point to a folder [say c:\myrepo] and have dropped the rampart module under the module
folder under c:\myrepo. Now I have added the entry 


in the file for both the client and the server.
I try 2 scenarios

1>I put the bcprov-jdk15-133.jar in the axis2 web app web-inf/lib folder and I send the
encrypted message from the cleint and I get an error which indicates the that the axis engine
didnt find the crypto provider [org.bouncycastle.jce.provider.BouncyCastleProvider]. But If
I put the bcprov-jdk15-133.jar in the system class path opf weblogic this works fine and the
axis is able to find the crypto provider.

2>Ruchith asked me to test his service using the weblogic setup and that had the bcprov-jdk15-133.jar
 in the service/lib folder and that also failed. 

- Invalid service  SimpleService.aar due to java.lang.ExceptionInInitializerErro
        at javax.crypto.Cipher.getInstance(DashoA12275)
        at SimpleService.<clinit>(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at org.apache.axis2.deployment.util.Utils.fillAxisService(
        at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBui
        at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServic
        at org.apache.axis2.deployment.repository.util.ArchiveReader.processServ
        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin
        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL
        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe
        at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito
        at org.apache.axis2.deployment.RepositoryListener.startListener(Reposito
        at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(S
        at org.apache.axis2.deployment.scheduler.Scheduler$
        at java.util.TimerThread.mainLoop(
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
        at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
        ... 19 more
Caused by:
ption: Public key presented not for certificate signature
        at Method)
        ... 20 more
Caused by: Public key presented not for certi
ficate signature
        at org.bouncycastle.jce.provider.X509CertificateObject.checkSignature(Un
known Source)
        at org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown So
        at javax.crypto.SunJCE_b.c(DashoA12275)
        at javax.crypto.SunJCE_b.b(DashoA12275)
        ... 21 more

I more concerned for the first scenario as that would be the way I will deploy axis and not
have to have the bcprov-jdk15-133.jar   for every individual service.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message