Matt,

I'm not sure about your comment that you changed the "type" attribute of the resource element to java.sql.DataSource, that is actually not correct, it should be javax.sql.DataSource.

The part about "/roller" is fine. The path attribute of the context element defines the virtual location for the application within your servlet container, so by setting the path to /roller it means that's the location you will use to access Roller. i.e. if you server is at http://myserver.com/ then the application should be running at http://myserver.com/roller/

-- Allen


Matt Young wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

in the roller.xml:

I am trying to install roller on tomcat 5.5.17 I was getting problems
with postgres driver not being found.  And I realized that the driver
name was org.postgres.Driver instead of org.postgresql.Driver.  I fixed
that and then I was getting a filterStart error.  When I looked at the
resource type I noticed that the type is javax.sql.DataSource.  I
changed that to java.sql.DataSource and now tomcat is starting with no
errors.  However, I still can't navigate to the roller webapp.  I am
looking at the docbase and the path for the roller.xml file and I find
it quizical that the path in the install doc points to a directory that
does not exist (/roller).

below is my context file:
<Context path="/roller" docBase="/home/http/roller" debug="0">
  <Resource name="jdbc/rollerdb" auth="Container" type="java.sql.DataSource"
    driverClassName="org.postgresql.Driver"
    url="jdbc:postgresql://localhost:5432/roller?autoReconnect=true"
    username="<removed>"
    password="<removed>"
    maxActive="20"
    maxIdle="3"
    removeAbandoned="true"
    maxWait="3000" />
  <!-- If you want e-mail features, un-comment the section below -->
  <!--
  <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
     mail.smtp.host="localhost" />
  -->
</Context>

and here is a directory listing of the docbase:
ls -l /home/http/roller/
total 117
- -rw-r--r--  1 apache apache 31902 May 24 19:57 CHANGES.txt
- -rw-r--r--  1 apache apache 14785 May 24 19:57 LICENSE.txt
- -rw-r--r--  1 apache apache  1203 May 24 19:57 NOTICE.txt
- -rw-r--r--  1 apache apache   908 May 24 19:57 README.txt
drwxr-xr-x  7 apache apache   640 Jul 25 00:21 WEB-INF
drwxr-xr-x  2 apache apache   224 Jul 22 03:16 bookmarks
drwxr-xr-x  5 apache apache   136 May 24 19:57 docs
- -rw-r--r--  1 apache apache  1775 May 24 19:57 dstest.jsp
- -rw-r--r--  1 apache apache     0 May 24 19:57 dummy.txt
drwxr-xr-x  3 apache apache   424 Jul 22 03:16 editor
- -rw-r--r--  1 apache apache  1049 May 24 19:57 ekit.css
- -rw-r--r--  1 apache apache   894 May 24 19:57 favicon.ico
drwxr-xr-x  7 apache apache  1256 Jul 22 03:16 images
- -rw-r--r--  1 apache apache   923 May 24 19:57 index.jsp
- -rw-r--r--  1 apache apache  2437 May 24 19:57 keepalive.jsp
- -rw-r--r--  1 apache apache  1964 May 24 19:57 login-redirect.jsp
- -rw-r--r--  1 apache apache  1375 May 24 19:57 login.jsp
- -rw-r--r--  1 apache apache  3236 May 24 19:57 loginBody.jsp
- -rw-r--r--  1 apache apache  1404 May 24 19:57 logout-redirect.jsp
- -rw-r--r--  1 apache apache  1748 May 24 19:57 main-sidebar.jsp
- -rw-r--r--  1 apache apache  4791 May 24 19:57 main.jsp
drwxr-xr-x  2 apache apache   256 Jul 22 03:16 planet
drwxr-xr-x  2 apache apache    48 May 24 19:57 resources
- -rw-r--r--  1 apache apache   200 May 24 19:57 robots.txt
drwxr-xr-x  4 apache apache   104 Jul 22 04:29 roller_data
- -rw-r--r--  1 apache apache  2895 May 24 19:57 taglibs.jsp
drwxr-xr-x  2 apache apache   104 Jul 22 03:16 tags
drwxr-xr-x  7 apache apache  1040 Jul 22 03:16 theme
drwxr-xr-x 18 apache apache   488 Jul 22 03:16 themes
drwxr-xr-x  2 apache apache  1112 Jul 22 03:16 weblog
drwxr-xr-x  2 apache apache   912 Jul 22 03:16 website

why does the path in the context file point to a directory that does not
exist.  Am I missing something?  How does tomcat know what subdirectory
the roller app lives in?


- --

Cheers,
Matt Young
[EMAIL PROTECTED]
GPG Public Key: http://youngdev.net/?page=gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFExtRtOLPtyzxdcQYRAhvSAKCnFlsVbgd2vDA2rX3FfbIHfssgvACfSmmw
FATsGXU6/4u9aETP/THPhjs=
=pfyn
-----END PGP SIGNATURE-----

Reply via email to