Its not going to work. The JBossSecurityMgrRealm is designed for being embedded in JBoss. You would have to modify it significantly to run standalone.
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "Brian Topping" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 12:16 PM Subject: RE: [JBoss-user] Standalone Tomcat 4.1 and JAAS Okay, so I've gotten far enough through to realize there might be some ability to add a line such as: <Realm className="org.jboss.web.catalina.security.JBossSecurityMgrRealm" useJAAS="true"/> to the server.xml of the standalone Tomcat. I copied the Tomcat-service.jar into the tomcat/common/lib directory (for the class) as well as the jboss-sx.jar for some of the classes it references. Now I get: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/realm/RealmBase at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:723) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) Am I smoking crack trying to do this or is there something simple that I am missing? RealmBase is in catalina.jar, so there's no good reason why it shouldn't be found. I presume there is something else missing. Any ideas? Thanks!!! -b > -----Original Message----- > From: Brian Topping > Sent: Wednesday, December 18, 2002 7:04 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Standalone Tomcat 4.1 and JAAS > > > Hi all, > > I'm trying to get a standalone Tomcat 4.1 instance to use the JAAS > authentication realm of a remote JBoss 3.2 instance. This is > a standalone > "downloaded from Apache" instance of Tomcat, not one running > under JBoss. > Using VM arguments, I'm able to mesh the JNDI tree and remote > EJB calls work > fine, but I need to get the web container realm to use the > JAAS of the remote > EJB container. I've also confirmed that JAAS works properly > when the web.war > and ejb.jar are deployed on the same JBoss instance. > > I need to get this particular configuration to work because I > need to be able > to support the new Tomcat manager app in the web container, > which doesn't > work under JBoss yet. > > Anyone have any ideas on this? > > Thanks, > > Brian > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
