You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Pill, Juergen" <Ju...@softwareag.com> on 2000/10/05 15:19:26 UTC

Slide: Source distribution content

I have downloaded todays (20001005) source version of slide and extracted it
on my hard disk (in addition to the binary distribution). I wanted to get
the standalone catalina server running and some ideas come up, how this
could be made easier for me:

1) following jar files are not contained in the binary package:
a. webserver.jar
b. parser.jar
c. jaxp.jar
d. servlet.jar
e. catalinautil.jar (this jar file actually come with the binary
distribution)

I have added these jar files to the lib directory (I have the feeling they
came with an older version of slide contained in the lib directory).


The startup.bat file looks like this:

@echo off
set _DAV_HOME=%DAV_HOME%
if not "%DAV_HOME%" == "" goto gotDavHome
set DAV_HOME=.
:gotDavHome
%DAV_HOME%\bin\dav start %1 %2 %3 %4 %5 %6 %7 %8 %9
set DAV_HOME=%_DAV_HOME%
set _DAV_HOME=

2) Is the first parameter on the call to %DAV_HOME%\bin\dav start %1 %2 %3
%4 %5 %6 %7 %8 %9 correct? This would mean, that the server is started
always with start!
3) I set %DAV_HOME% to point to
...\jakarta-slide\src\conf\catalina\standalone. In this case the dav.bat
shell script wouldn't be located in dav_home.



4) The same applies to dav.bat (in this file the cp.bat file is prefixed
with dav_home too.
5) I added a pushd %dav_home% and a popd  in dav.bat.
6) In dav_home the directory lib containing all the jar files had to be
created
7) The file domain.xml from src\conf\webapp had to be copied to
src\conf\catalina\standalone\

The dav.bat file looked now like this:

@echo on

if not "%DAV_HOME%" == "" goto gotDavHome
set DAV_HOME=.
:gotDavHome

set CP=%CLASSPATH%
for %%i in (%DAV_HOME%\lib\*.jar) do call cp.bat %%i


pushd %dav_home%

if "%1" == "run" goto doRun
if "%1" == "start" goto doStart
if "%1" == "stop" goto doStop

echo Usage:  dav ( run | start | stop )
echo Commands:
echo   run -   Start DAV Server in the current window
echo   start - Start DAV Server in a separate window
echo   stop -  Stop DAV Server
goto cleanup

:doRun
java %JAVA_OPTS% -classpath %CP% -Dcatalina.home=%DAV_HOME%
org.apache.catalina.startup.Catalina start
goto cleanup

:doStart
start java %JAVA_OPTS% -classpath %CP% -Dcatalina.home=%DAV_HOME%
org.apache.catalina.startup.Catalina start
goto cleanup

:doStop
java %JAVA_OPTS% -classpath %CP% -Dcatalina.home=%DAV_HOME%
org.apache.catalina.startup.Catalina stop
goto cleanup

:cleanup
popd
set CP=



And with these changes the server came up with following protocol:

Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Auto-Initializing
Domain
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Domain configuration
: {org.exolab.slide.security=true}
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Initializing Domain
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Domain configuration
: {org.exolab.slide.security=true}
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Initializing
namespace : webdav
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading namespace
definition
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Registering Data
Source name memory of class class
org.apache.slide.store.StandardDescriptorsStore with parameters {} on scope
/
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Registering Store
name file of class class slidestore.file.FileContentStore with parameters
{rootpath=files} on scope /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - ERROR - Failed to locate
messages resource org.apache.slide.util.resources.messages
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Initializing service
org.apache.slide.store.StandardDescriptorsStore@171afc
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Initializing service
slidestore.file.FileContentStore@30e280
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading namespace
webdav base data
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object /users
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/users/root
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/users/john
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/users/guest
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/actions
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/actions/read
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/actions/write
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object
/actions/manage
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading object /files
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Checking basic
permissions on new object
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Basic permissions
granted for user /
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Loading namespace
webdav configuration
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Namespace
configuration complete
Thu, 05 Oct 2000 15:15:27 GMT+02:00 - default - INFO - Domain initialization
complete
Apache Tomcat 4.0-dev
XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD
Web Application 2.2//EN --> http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
"null"
ERROR reading java.io.FileInputStream@76cbf7
At External entity not found:
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd".




An access to  http://localhost:8005/  returned "this page could not be
displayed" and on the server side following println showed up (one line for
each access):


StandardServer.await: Invalid command 'GET / HTTP/1.1' received
StandardServer.await: Invalid command 'GET / HTTP/1.1' received
StandardServer.await: Invalid command 'GET / HTTP/1.1' received
StandardServer.await: Invalid command 'GET / HTTP/1.1' received



Any idea what went wrong in my environment/setup?


Best regards

Juergen Pill