RE: Multiple IDPs on one instance of JBoss
"Chris Snyder" <[email protected]> Fri, 24 Jun 2005 11:38:32 -0400
| Newsgroups | gmane.comp.sourceid.sso.user |
|---|---|
| Message-ID | <[email protected]> |
Cool thanks. That was the solution I was looking for... In the mean time, I figured out how to deploy two instances of JBoss... But I will try your method - I think it will be gentler on resources! From: "Peter Fennema" <[email protected]> Reply-To: SourceID Users List <[email protected]> To: "SourceID Users List" <[email protected]> Subject: RE: [SourceID SSO-users] Multiple IDPs on one instance of JBoss Date: Fri, 24 Jun 2005 12:30:29 +0200 I deployed 2 demos in a single jboss instance. I did this for the SAML toolkit, maybe it can help you. I used a brute force approach, by copying the entire unzipped download to another location and study the references to the string "demo" and replacing some property values from demo to demo1 and demo2 respectively. Than I deployed both sourcetrees, each with their own ant script. This resulted in saml-sourceid-demo1.ear and saml-sourceid-demo2.ear being deployed to jboss. This resulted in class loading problems, because both applications tried to deploy the same libraries. I solved this by modifying the file jboss-app.xml in the directory SAML 1.1 Java Toolkit 2.0 Demo1\SAML_1.1_Java_Toolkit_2.0\demo\src\meta (for both sourcetrees) The file content is shown below (for the demo1 tree): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd"> <jboss-app> <loader-repository loaderRepositoryClass="org.jboss.mx.loading.HeirarchicalLoaderRepository 3"> sourceid.saml.system:loader=sourceid-saml-demo1.ear <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> <!-- <loader-repository>sourceid.saml.system:loader=sourceid-saml.ear</loader -repository> --> <module> <service>sourceid-saml.sar</service> </module> <module> <service>sourceid-infrastructure.sar</service> </module> </jboss-app> This solved the class loading problem. There must be better ways then copying the sourcetree, but this quick and dirty way was good enough for the time being. Hope this helps, Peter > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Chris Snyder > Sent: donderdag 23 juni 2005 19:50 > To: [email protected] > Subject: [SourceID SSO-users] Multiple IDPs on one instance of JBoss > > > Hello, > > Anyone tried running multiple instances of the idff 1.2 demo > on one box? I > want to have two different configs so that I can test against > another server > with an IDP and SP. That way I will have three IDPs and three > SPs but only > two physical servers... > > > _______________________________________________ > sso-users mailing list > [email protected] > http://lists.sourceid.org/mailman/listinfo/sso-users > _______________________________________________ sso-users mailing list [email protected] http://lists.sourceid.org/mailman/listinfo/sso-users