Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Share a directory using Schroedinger's WebDAV ability Apps
Over the Internet, or sometimes even in your LAN an AFP, SMB or NFS share can be improper or insecure. However, the JSP development tool Schrödinger from Micromata can share each directory over WebDAV. Read the rest of the hint for the steps to create WebDAV shares...

After a directory is deployed by Schrödinger, Schrödinger creates a file WEB-INF/web.xml. Modify this file with a text editor like this:
<?xml version="1.0" ?>
 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
 <web-app>
   <servlet>
     <servlet-name>webdav</servlet-name>
     <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
     <init-param>
       <param-name>debug</param-name>
       <param-value>0</param-value>
     </init-param>
     <init-param>
       <param-name>listings</param-name>
       <param-value>true</param-value>
     </init-param>
     <init-param>
       <param-name>readonly</param-name>
       <param-value>false</param-value>
     </init-param>
   </servlet>
 
   <servlet-mapping>
     <servlet-name>webdav</servlet-name>
     <url-pattern>/</url-pattern>
   </servlet-mapping>
 
   <welcome-file-list>
     <welcome-file>index.jsp</welcome-file>
     <welcome-file>index.html</welcome-file>
   </welcome-file-list>
 </web-app>
Now, after the Web application is restarted in Schrödinger, the directory is available under WebDAV. You can observe each access to the directory in Schrödinger's HTTP Inspector.

Mount a WebDAV share under MacOS X ... Select from the Finder of the remote Mac Go -> Connect to server (or hit Command-K). Now in the appearing dialog, fill in the address field the URL under which Schrödinger makes the web application available (ie http://computer_name:8080 in the LAN or http://your-ip:8080 over the Internet). Now a new drive will appear on your desktop. Assure that your firewall does allow access to port 8080. If you want to add access control with passwords, read further information at Jakarta or Sun.

[robg adds: I haven't tested this one...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,913 views]  

Share a directory using Schroedinger's WebDAV ability | 6 comments | Create New Account
Click here to return to the 'Share a directory using Schroedinger's WebDAV ability' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Share a directory using Schroedinger's WebDAV ability
Authored by: leenoble_uk on Jun 13, '03 11:52:42AM

Whodawhatwhat??
Ok total newbie at this. I read and re-read this and followed the tutorial in the readme file to create a jsp page. Now honestly I only want to serve up some webdav folders over the interweb. I couldn't give a rats about the jsp stuff.
Now was I supposed to just copy/paste the text into the web.xml file or am I supposed to configure it to my computer or directory somehow?
I can serve the jsp page to othermachines with the default xml file but as soon as I replace the text with that supplied it fails to work. And yes I did take out the line wrap from the doctype definition to match the original. I've restarted schrddifvlkrrgkl and I get a load of errors. It's not clear whether I'm supposed to use the same Mac OS X computer to open a connection to the server or use a different one. Either way I get an error type -36 on the connecting machine.
Can someone enlighten me here?



[ Reply to This | # ]
Share a directory using Schroedinger's WebDAV ability
Authored by: leenoble_uk on Jun 13, '03 11:58:34AM

IGNORE ME. I fixed it. I somehow had a single tag missing from the xml doc



[ Reply to This | # ]
Share a directory using Schroedinger's WebDAV ability
Authored by: tandemrepeat on Jun 13, '03 02:21:28PM

What was thie fix? - I'm seeing a similar problem but am completely ignorant of XML...:(



[ Reply to This | # ]
Share a directory using Schroedinger's WebDAV ability
Authored by: MacFandango on Jun 13, '03 12:16:09PM

Somewhat related, we got the title changed to Schroedinger - can we get the article changed, too? The RSS feed seems to be unreadable (at least in AmphetaDesk) until the o-dieresis is off the feed.

---
Feet motion!



[ Reply to This | # ]
Share a directory using Schroedinger's WebDAV ability
Authored by: twang on Oct 16, '03 11:50:27PM

isn't there an simpler way to turn on webdav sharing? i dont need all the jsp feature either...



[ Reply to This | # ]
Share a directory using Schroedinger's WebDAV ability
Authored by: twang on Oct 17, '03 12:36:37AM

ugh, yeah, what was the ix, i'm getting an xml parse error too =(



[ Reply to This | # ]