From twright at bbn.com Fri May 9 11:02:22 2008 From: twright at bbn.com (Todd Wright) Date: Fri, 09 May 2008 11:02:22 -0400 Subject: test Message-ID: <4824677E.8040201@bbn.com> This is a test. Todd From ngivler at bbn.com Tue May 20 14:53:25 2008 From: ngivler at bbn.com (Noelle Givler) Date: Tue, 20 May 2008 14:53:25 -0400 Subject: Roles in servicediscovery Message-ID: <48331E25.8010607@bbn.com> Hi, Christian. I assume you've already looked at the pizza tutorial. ( http://cougaar.org/projects/tutorials/ ). That's a very straightforward example of cougaar service discovery. I'm going to use the pizza tutorial as the context for my answers below. CommercialServiceScheme-yp.xml and the service profiles define the set of services registered for a given agent within the yellow pages. The README file in tutorials/pizza/data/serviceprofiles discusses how to add a new service (i.e. IceCreamProvider) and how to add an new provider (i.e. Pizzahut). SDPizzaNode1.xml and SDPizzaNode2.xml in tutorials/pizza/configs/pizzaparty are well commented examples of society .xml files. They illustrate how to define nodes and agents. In addition, you can find information on how the plugins within the agents are configured to support service discovery. Within the cougaar agents, the service functionality is modeled by plugins. tutorials/tutorials/pizza/src/org/cougaar/pizza/plugin/package.html discusses how the plugins use service discovery to find a PizzaProvider. For service discovery to work correctly in the simple service discovery case demonstrated by the pizza tutorial, Role.getName() (in the org.cougaar.planning.ldm.plan.Role sense) must match the string used to define the service in CommercialServiceScheme-yp.xml and the the service profiles. Hence the addition of the PIZZAPROVIDER and PIZZACONSUMER Roles defined on org.cougaar.pizza.Constants. Section 3.2.9 of the Cougaar Developers Guide discusses Service Discovery in greater detail. If you have additional questions, it would be helpful if you could also provide some background on the problem you wish to solve. Thanks, Noelle Givler Subject: Re: Question Cougaar, mailing list not working From: Todd Wright Date: Thu, 15 May 2008 11:06:04 -0400 To: Christian Bernardt , christian.bernardt at googlemail.com CC: Aaron Helsinger I've cc'ed Aaron. I don't know much about the YP, so hopefully Aaron can answer your questions. Also, try sending your email to mailing list again. It was down for several weeks but I think we've fixed it. Todd Christian Bernardt wrote: > Hi Todd, > > I have a question concerning the cougaar yellow page service. I hope > you find the time to answer it. > I am a little confused about the definition of roles. There are, as > far as I know, 4 places where one can find a role definition: > > * CommercialServiceScheme-yp.xml > * the society xml, when creating the self-entity > * the serviceprofile owls > * Constants Class > > Which of the places, where I can find the role names are essential to > get the yellow page service working? > Could you please explain a bit, what exactly is e.g. done in the > Constants class, which I do not fully understand and therefore can not > really adapt it to my problem. > I know, that the pizza example creates complementary roles, provider > vs. customer, but what does the creation of the relationship type in > Constants do? and is it essential for the yellow page service? > > I hope you find the time to elaborate a little more on the concept. > > Yours sincerely, > > Christian Bernardt > > From Justin.Michalczak at sri.com Wed May 21 17:48:02 2008 From: Justin.Michalczak at sri.com (Justin Michalczak) Date: Wed, 21 May 2008 17:48:02 -0400 Subject: Security Core Message-ID: <48349892.2010204@sri.com> I've been having trouble with the Security Core project. Can anyone here provide help on that? I realize that this is not the list for that project, but its list and forums are empty. Particularly, I am having trouble even running the Secure Ping example. Running the provided NodeA.bat file results in: Exception in thread "main" java.lang.Error: Failed to launch org.cougaar.core.node.Node at org.cougaar.bootstrap.Bootstrapper.launchMain(Bootstrapper.java:446) at org.cougaar.bootstrap.Bootstrapper.launchApplication(Bootstrapper.java:378) at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:348) at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:333) at org.cougaar.bootstrap.Bootstrapper.main(Bootstrapper.java:321) Caused by: java.lang.ClassNotFoundException: Class cannot be Trusted at org.cougaar.core.security.securebootstrap.SecureClassLoader.findClass(SecureClassLoader.java:108) at org.cougaar.core.security.securebootstrap.BaseClassLoader.loadClass(BaseClassLoader.java:147) at java.lang.ClassLoader.loadClass(Unknown Source) at org.cougaar.bootstrap.Bootstrapper.launchMain(Bootstrapper.java:422) ... 4 more Caused by: org.cougaar.core.security.securebootstrap.CertificateVerificationException: Archive Z:\Cougaar\TESTBED\lib\core.jar cannot be trusted at org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.verify(CertificateVerifierImpl.java:298) at org.cougaar.core.security.securebootstrap.SecureClassLoader.findClass(SecureClassLoader.java:99) ... 7 more Caused by: java.io.FileNotFoundException: \cygdrive\c\UL\cougaar-security-test2\configs\security\bootstrap_keystore (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at java.io.FileInputStream.(Unknown Source) at org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.inKeyStore(CertificateVerifierImpl.java:374) at org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.verify(CertificateVerifierImpl.java:295) ... 8 more At first, I thought it was a problem with signing core.jar. But, I verified that it was signed, and reading further down the chain to the last exception, the system is trying to access a Cygwin path, which is interesting since this is the .bat file that I'm running. Also, even if I were running in Cygwin, that path does not exist on my system, and I have no idea what it means. (It looks to me like a hard-coded path used during testing that was never removed/replaced.) Any advice appreciated, ~Justin From Justin.Michalczak at sri.com Wed May 21 19:14:58 2008 From: Justin.Michalczak at sri.com (Justin Michalczak) Date: Wed, 21 May 2008 19:14:58 -0400 Subject: Security Core In-Reply-To: <48349892.2010204@sri.com> References: <48349892.2010204@sri.com> Message-ID: <4834ACF2.4050708@sri.com> I made some progress, after finding the NodeA.prop file, which is where that path was coming from. Now I have a much more substantial errors: COUGAAR 12.4 built on Thu Sep 27 19:19:45 GMT 2007 Repository: B12_4 on Thu Sep 27 19:17:21 GMT 2007 VM: JDK 10.0-b19 (mixed mode) OS: Windows XP (5.1) Couldn't find Log4J config file loggingConfig.conf. Using defaults. 2008-05-21 22:47:29,858 SHOUT [XMLComponentInitializerServiceProvider] - Initializing node "NodeA" from XML file "NodeA.xml" 2008-05-21 22:47:32,238 ERROR [BindingUtility] - Component org.cougaar.core.agent.service.event.EventServiceComponent at 135f44e could not be provided with all required services 2008-05-21 22:47:32,238 ERROR [BindingUtility] - Component org.cougaar.core.agent.service.event.EventServiceComponent at 135f44e Failed service interface org.cougaar.core.service.AgentIdentificationService java.lang.Throwable: No service for interface org.cougaar.core.service.AgentIdentificationService at org.cougaar.core.component.BindingUtility.setServices(BindingUtility.java:208) at org.cougaar.core.component.BinderSupport.initialize(BinderSupport.java:126) at org.cougaar.core.component.ContainerSupport.addComponent(ContainerSupport.java:687) at org.cougaar.core.component.ContainerSupport.add(ContainerSupport.java:497) at org.cougaar.core.agent.Agent.add(Agent.java:49) at org.cougaar.core.agent.AgentImpl.load(AgentImpl.java:141) at org.cougaar.core.component.BinderSupport.load(BinderSupport.java:132) at org.cougaar.core.component.BinderWrapper.load(BinderWrapper.java:94) at org.cougaar.core.component.BinderWrapper.load(BinderWrapper.java:94) at org.cougaar.core.security.access.JaasAgentBinder.doLoad(JaasAgentBinder.java:106) at org.cougaar.core.security.access.JaasAgentBinder.access$200(JaasAgentBinder.java:56) at org.cougaar.core.security.access.JaasAgentBinder$1.run(JaasAgentBinder.java:135) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Unknown Source) at org.cougaar.core.security.auth.JaasClient.doAs(JaasClient.java:369) at org.cougaar.core.security.auth.JaasClient.doAs(JaasClient.java:96) at org.cougaar.core.security.access.JaasAgentBinder.load(JaasAgentBinder.java:127) at org.cougaar.core.component.ContainerSupport.addComponent(ContainerSupport.java:689) at org.cougaar.core.component.ContainerSupport.add(ContainerSupport.java:497) at org.cougaar.core.agent.AgentManager.add(AgentManager.java:156) at org.cougaar.core.agent.AgentManager.load(AgentManager.java:116) at org.cougaar.core.component.BinderSupport.load(BinderSupport.java:132) at org.cougaar.core.component.ContainerSupport.addComponent(ContainerSupport.java:689) at org.cougaar.core.component.ContainerSupport.add(ContainerSupport.java:497) at org.cougaar.core.node.Node.load(Node.java:237) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.cougaar.core.component.BindingUtility.call0(BindingUtility.java:288) at org.cougaar.core.component.BindingUtility.load(BindingUtility.java:272) at org.cougaar.core.component.BindingUtility.activate(BindingUtility.java:47) at org.cougaar.core.node.Node.launch(Node.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.cougaar.bootstrap.Bootstrapper.launchMain(Bootstrapper.java:444) at org.cougaar.bootstrap.Bootstrapper.launchApplication(Bootstrapper.java:378) at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:348) at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:333) at org.cougaar.bootstrap.Bootstrapper.main(Bootstrapper.java:321) After this, there's a UID service NullPointerException that I'm sure results from a call to fetch the AgentIdentificationService. I really don't know what would be causing this. Again, any advice appreciated, ~Justin Justin Michalczak wrote: > I've been having trouble with the Security Core project. Can anyone here > provide help on that? I realize that this is not the list for that > project, but its list and forums are empty. > > Particularly, I am having trouble even running the Secure Ping example. > Running the provided NodeA.bat file results in: > > Exception in thread "main" java.lang.Error: Failed to launch > org.cougaar.core.node.Node > at > org.cougaar.bootstrap.Bootstrapper.launchMain(Bootstrapper.java:446) > at > org.cougaar.bootstrap.Bootstrapper.launchApplication(Bootstrapper.java:378) > at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:348) > at org.cougaar.bootstrap.Bootstrapper.launch(Bootstrapper.java:333) > at org.cougaar.bootstrap.Bootstrapper.main(Bootstrapper.java:321) > Caused by: java.lang.ClassNotFoundException: Class cannot be Trusted > at > org.cougaar.core.security.securebootstrap.SecureClassLoader.findClass(SecureClassLoader.java:108) > > at > org.cougaar.core.security.securebootstrap.BaseClassLoader.loadClass(BaseClassLoader.java:147) > > at java.lang.ClassLoader.loadClass(Unknown Source) > at > org.cougaar.bootstrap.Bootstrapper.launchMain(Bootstrapper.java:422) > ... 4 more > Caused by: > org.cougaar.core.security.securebootstrap.CertificateVerificationException: > Archive Z:\Cougaar\TESTBED\lib\core.jar cannot be trusted > at > org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.verify(CertificateVerifierImpl.java:298) > > at > org.cougaar.core.security.securebootstrap.SecureClassLoader.findClass(SecureClassLoader.java:99) > > ... 7 more > Caused by: java.io.FileNotFoundException: > \cygdrive\c\UL\cougaar-security-test2\configs\security\bootstrap_keystore > (The system cannot find the path specified) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(Unknown Source) > at java.io.FileInputStream.(Unknown Source) > at > org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.inKeyStore(CertificateVerifierImpl.java:374) > > at > org.cougaar.core.security.securebootstrap.CertificateVerifierImpl.verify(CertificateVerifierImpl.java:295) > > ... 8 more > > > At first, I thought it was a problem with signing core.jar. But, I > verified that it was signed, and reading further down the chain to the > last exception, the system is trying to access a Cygwin path, which is > interesting since this is the .bat file that I'm running. Also, even if > I were running in Cygwin, that path does not exist on my system, and I > have no idea what it means. (It looks to me like a hard-coded path used > during testing that was never removed/replaced.) > > Any advice appreciated, > ~Justin > From guillaume.liegard at gmail.com Wed May 28 05:54:41 2008 From: guillaume.liegard at gmail.com (Guillaume Liegard) Date: Wed, 28 May 2008 11:54:41 +0200 Subject: Problem with security overlay and Cougaar 12.4 Message-ID: <1dd8f11e0805280254g401f8570u1f8fce642d298fbd@mail.gmail.com> Hi, I have been trying the security-overlay 11.4 with cougaar 12.4 and it doesn't work. After some investigations, I found it is because of a move of classes in mts (RMILinkProtocol) as LinkProtocolAspect references the wrong package (org.cougaar.mts.base.RMILinkProtocol) and it is now in org.cougaar.mts.rmi.RMILinkProtocol. But there may be other reasons. So I was planning to recompile the module, but before I do that, do you plan any update for security-overlay compatible with cougaar 12.4? Cheers, -- Guillaume