Problem when Agent access Webservice

Hi, i developher one Agent, and it access webservice to rescue data and show for user.I have the error down, please anybody help me!!

thanks.

Robson Thanael Poffo

java.lang.ExceptionInInitializerError: org.apache.commons.discovery.DiscoveryException: Unable to instantiate implementation class for org.apache.commons.logging.LogFactory


java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:286)



at java.security.AccessController.checkPermission(AccessController.java:413)



at java.lang.SecurityManager.checkPermission(SecurityManager.java:565)



at COM.ibm.JEmpower.applet.AppletSecurity.superDotCheckPermission(AppletSecurity.java:1303)



at COM.ibm.JEmpower.applet.AppletSecurity.checkRuntimePermission(AppletSecurity.java:1180)



at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1380)



at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1318)



at java.lang.ClassLoader.getParent(ClassLoader.java:933)



at org.apache.commons.discovery.resource.ClassLoaders.isAncestor(ClassLoaders.java:99)



at org.apache.commons.discovery.resource.ClassLoaders.put(ClassLoaders.java:72)



at org.apache.commons.discovery.resource.ClassLoaders.getLibLoaders(ClassLoaders.java:134)



at org.apache.commons.discovery.tools.DiscoverClass.find(DiscoverClass.java:309)



at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:533)



at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:372)



at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:332)



at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)



at java.security.AccessController.doPrivileged(Native Method)



at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)



at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)



at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)



at org.apache.axis.client.Service.getAxisClient(Service.java:104)



at org.apache.axis.client.Service.<init>(Service.java:113)



at oscar.ServiceVisImplServiceLocator.<init>(ServiceVisImplServiceLocator.java:12)



at com.datasul.hcm.controleAcesso.lotus.utils.Utils.<clinit>(Utils.java:26)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.alimentaComponentes(MovtoVisitante.java:237)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.<init>(MovtoVisitante.java:112)



at JavaAgent.NotesMain(JavaAgent.java:17)



at lotus.domino.AgentBase.runNotes(Unknown Source)



at lotus.domino.NotesThread.run(NotesThread.java:208)







at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:380)



at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:332)



at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)



at java.security.AccessController.doPrivileged(Native Method)



at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)



at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)



at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)



at org.apache.axis.client.Service.getAxisClient(Service.java:104)



at org.apache.axis.client.Service.<init>(Service.java:113)



at oscar.ServiceVisImplServiceLocator.<init>(ServiceVisImplServiceLocator.java:12)



at com.datasul.hcm.controleAcesso.lotus.utils.Utils.<clinit>(Utils.java:26)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.alimentaComponentes(MovtoVisitante.java:237)



at com.datasul.hcm.controleAcesso.lotus.MovtoVisitante.<init>(MovtoVisitante.java:112)



at JavaAgent.NotesMain(JavaAgent.java:17)



at lotus.domino.AgentBase.runNotes(Unknown Source)



at lotus.domino.NotesThread.run(NotesThread.java:208)

Subject: Problem when Agent access Webservice

try signing your applet.

HTH

Geoff-

Subject: RE: Problem when Agent access Webservice

I arrive in solution editing the file in $LOTUS_INSTALL_DIR\lotus\notes\jvm\lib\security\java.policy and alter the content to:grant {

permission java.security.AllPermission;

};

Thanks for all!!!

Subject: RE: Problem when Agent access Webservice

I have the same error message but could not fix it with the posted setting in the java.policy file.

I also tried to configure the logging with

System.setProperty(“org.apache.commons.logging.Log”,“org.apache.commons.logging.impl.NoOpLog”);

No success.

I also added the log4J-1.2.8.jar.

No success.

I also added the commons-logging-api-1.1.jar.

No success.

Hope someone have another idea. I read a posting about replacing the XML4J, but I can’t understand why the XML4j classes should be the reason for this error.

Subject: RE: Problem when Agent access Webservice

Hi Jens,

I’ve got the same problem.

Do you have a solution now?

regards

Marcus