• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Slide Implemented Sucesssfully

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends
I somehow managed to install the basic components of slide and its running fine if any one is facing some problem i can try to help
Amit Roy
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would love to take you up on your offer of help. I am having a nightmare with this. THe sheer amount of expletives I have shouted in the office has increased ten-fold since discovering the total lack of accurate information in installing slide.
I have managed to get the server running (I think). There appears to be references to slide when I start Tomcat. As for the client... **** knows. I try to run the run.bat and nothing happens. I imagine it will be something to do with the classpath as everything to do with Java invariably boils down to.
If you can help I will be forever in your debt.
Tonto
 
Richard Horvath
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please ignore my last post. I am sorted
 
Richard Horvath
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually..... Can you help me with this?
This is the code I am trying to use to login

This will not let me logon. If, however, I change this:

to this:

It will let me logon.
Can you help?
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Other Open Source Projects
 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing a solution design problem and hence seeking your adivse here.
Scenario
1. There is a security layer in a running EJB system that decides the access privileges of various user groups on various resources (files, images etc).
2. A webdav application using jakarta slide is being developed to be deployed under tomcat that will give the access to the resources.
3. Apache is acting as web server with which tomcat is connected as a web container (for servlets/jsp) files.
4. I initially am using apache's htpasswd.exe file to generate username/password for basic authentication. It works fine as far as I have created the user or group in that file and shown the URL to be protected (http://localhost/testDav instead of http://localhost:8080/testDav), popping up the basic authentication dialog box.
Problem
Now I need that user will point to http://localhost/testDav URL in his browser, get the basic or any other authentication (basic is sufficient in this case), after submitting the username and password the request will go to the slide's servlet, say TestWebDavServlet. Then this servlet will call the security layer's API of the EJB system to authenticate and authorize the user and thus provide or deny access to the user. That means using the passwords text file is not sufficient in this case.
Query
Please let me know, if the whole idea is feasible or their is a basic misunderstanding of teh problem by me? What are the alternatives to me in this scenario. Once I can get the username and password as string to my servlet I can do the rest. But how can I get that as I am not using tomcat as a web server rather using apache as web server?
Looking for comments from you.

Regards,

Muhammad Ashikuzzaman (Fahim)
[ January 16, 2004: Message edited by: Ashik uzzaman ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to use webdavresuorce but when I try to use the propfindmethod the status respose of the server is 400 "Bad Request".
Some one have any idea of witch could be the problem?

Thanks
gonzo

Code:
public static void main(String[] args) throws URIException {
String user = new String("pippo");
String password = new String("pluto");
String host = new String("host.xgplab.xgp");
String abs_path = new String("/path/path2/Documents");
int port = 50000;




HttpURL url = new HttpURL(user, password, host, port, abs_path);
System.out.println(url);
System.out.println(url.getEscapedUser());

try {

WebdavResource container = new WebdavResource(url, WebdavResource.OPTIONS_VERSION_HISTORY, org.apache.webdav.lib.methods.DepthSupport.DEPTH_0);
Vector<Object> vec = new Vector<Object>();
vec.addElement(WebdavResource.DISPLAYNAME);
vec.addElement(WebdavResource.CREATIONDATE);




System.out.println(container.propfindMethod(org.apache.webdav.lib.methods.DepthSupport.DEPTH_0));
System.out.println(container.propfindMethod(url.getPath(), org.apache.webdav.lib.methods.DepthSupport.DEPTH_0, vec));


} catch (IOException e) {
e.printStackTrace();
}
}

}
 
reply
    Bookmark Topic Watch Topic
  • New Topic