A couple of weeks ago I had to see if I could get Slide to work with
JBoss. Someone pointed me to the Slide/JBoss Wiki or I arrived at
the page by following links from the JBoss home page. At any rate,
I then created an ant task for creating the war file.
While the Slide war file worked in isolation, dropping our application's
ear file in afterwards did not work - there were classloader issues.
So, I added the Ant task to make a Slile ear and that was just right.

one needs an application.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
  "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
  "http://java.sun.com/dtd/application_1_3.dtd";>

<application>
  <display-name>Slide</display-name>
  <module id="Slide_WAR">
     <web>
        <web-uri>slide.war</web-uri>
        <context-root>/foobarcompany/slide</context-root>
     </web>
  </module>
</application>

and the file META-INF/jboss-app.xml:

<?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>com.foobarcompany:loader=slide.ear</loader-repository>
</jboss-app>



Richard


Patrick van Kann wrote:
I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki:

http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide

I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means 
that you either need to use the "auto-create-users" = true setting in 
Domain.xml or manually synchronise users in your Realm with the Slide users at 
/slide/users.

Hope this helps.

Patrick



-----Original Message-----
From: Roy Russo [mailto:[EMAIL PROTECTED]
Sent: Tue 11/30/2004 2:29 PM
To: 'Slide Users Mailing List'
Subject: slide and jboss I'm curious if anyone has been able to get authentication to work in jboss. Commenting out the lines in web.xml, brings up a login prompt, using DAVExplorer, but no username or passwords are accepted.


My log spits out the following:
09:21:29,624 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: Properties file users.properties not found
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:217)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:234)
at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:100)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:662)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:491)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:442)
...


Moving a users.properties file around in the slide.war seems to do absolutely nothing. I'm not sure if this is the way to go, either, and I may be missing something simple.

I'm currently evaluating slide for use in JBoss Portal.

Roy Russo




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
This email message is for the sole use of the intended recipient(s) and
may contain confidential information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies of the original message.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to