incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Connaughton (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist
Date Fri, 30 Apr 2010 19:04:55 GMT


Mark Connaughton commented on JSPWIKI-198:

I just fixed essentially the same issue in my setup.  Using Apache with mod_jk to redirect
requests to a Tomcat instance that serves only JSPWiki. 

A virtual host is used to point to Tomcat in the httpd-vhosts.conf file and according to my
Apache logs the permissions weren't being correctly routed. I added the following to my virtual
based on the advice of one of the pages on JSPWiki and the setup of my

JkMount /attach/* worker2
JkMount /attach* worker2
JkMount /RPC/* worker2
JkMount /RPC* worker2

I also added the /attach and /RPC directories to the JSPWiki structure, though I suspect that
may not actually be necessary as part of the solution. Hopefully this helps.

> A "HTTP Status 404 - Attachment "Main", version -1 does not exist
> -----------------------------------------------------------------
>                 Key: JSPWIKI-198
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.1
>         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
>            Reporter: Robert Berg
>         Attachments: attach.ppt, catalina.2008-02-26.log, jspwiki.log, jspwiki.policy,, localhost.2008-02-26.log, server.xml, web.xml, web.xml
> I installed JSPWiki 2.4.102 and setup container managed security using a MySql database(with
the reccommended JDBC connector)  to store user id's, roles(Admin, Auhenticated), and digested
passwords. The jspwiki.policy is used. I copied the application data files over from the older
version(2.4.102) and the Everthing seems to work well except uploading attachments. When I
attempt to upload an attachment on a jspwiki page, I get a:
> "HTTP Status 404 - Attachment "Main", version -1 does not exist" 
> message: Attachment 'Main', version -1 does not exist
> description: The requested resource (Attachment 'Main', version -1 does not exist.) is
not available
> Apache Tomcat/5.5.23
> contains:
> jspwiki.basicAttachmentProvider.storageDir = c:\\p\\web\\www-data\\jspwiki
> jspwiki.fileSystemProvider.pageDir = c:\\p\\web\\www-data\\jspwiki
> How do I get attachments to work?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message