AW: AW: AW: [opencms-dev] Files with extension "rar"

maria.freixes_graells at alcatel.es maria.freixes_graells at alcatel.es
Tue Aug 8 17:21:49 CEST 2006


Kai, RuiXian, Ruben,

Many thanks for your help and your support, you're very kind!!
The option that finally I've implemented and works is the one that 
modify the opencms.jar.

It's working properly now.
Many thanks again!!!   :-*

RuiXian BAO wrote:
> Hello Maria,
>
> Please do the following steps:
>
>         1.     Extract the file 
> org.opencms.loader.mimetypes.properties from the jar file 
> $OPENCMS_HOME/WEB-INF/lib/opencms.jar
>         2.     Add your mimetypes to the list
>         3.     Put back the file 
> org.opencms.laoder.mimetypes.properties into file opencms.jar
>         4.     Restart OpenCms, and finnished.
>
> Best
>
> - RuiXian
>
>
> On 8/7/06, *Kai Schliemann* <k.schliemann at comundus.com 
> <mailto:k.schliemann at comundus.com>> wrote:
>
>     Hi Maria,
>
>     I was curious. So i tested it. It works on my system!
>
>     I did as I told you:
>     1. added mime-type to web.xml of my webapp.
>     2. added mapping in opencms-vfs.xml
>     3. restarting tomcat
>     4. clearing browser cache and restarting browser.
>
>     AND THIS IS PROBABLY THE DECISIVE POINT:
>     Tested it in Online project. It seems not to work in Offline
>     project. Don't
>     know why.
>     (If it doesn't work in the first time do a forced reload
>     (STRG/CTRL + F5)
>
>     HTH this time. Please let me know.
>
>     Regards
>
>     Kai
>
>
>
>     > -----Ursprüngliche Nachricht-----
>     > Von: opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>
>     > [mailto: opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>]Im Auftrag von
>     > maria.freixes_graells at alcatel.es
>     <mailto:maria.freixes_graells at alcatel.es>
>     > Gesendet: Montag, 7. August 2006 17:26
>     > An: The OpenCms mailing list
>     > Betreff: Re: AW: AW: AW: [opencms-dev] Files with extension "rar"
>     >
>     >
>     > All you say have been tested without success.
>     > thanks anyway....
>     >
>     > Kai Schliemann wrote:
>     > > Hi Maria,
>     > >
>     > > did you tell OpenCMS about the new mime-type, too?
>     > >
>     > > To do so, do the following:
>     > > edit opencms-vfs.xml
>     > > find...
>     > >                             <type
>     > class="org.opencms.file.types.CmsResourceTypeBinary" name="binary"
>     > > id="2">
>     > >                                     <mappings>
>     > >                                             <mapping
>     suffix=".pdf" />
>     > >                                             <mapping
>     suffix=".zip" />
>     > >                                             <mapping
>     suffix=".class" />
>     > >                                             <mapping
>     suffix=".ppt" />
>     > >                                             <mapping
>     suffix=".doc" />
>     > >                                             <mapping
>     suffix=".xls" />
>     > >                                     </mappings>
>     > >                             </type>
>     > > ...and add a mapping for .rar. Actually this is just to tell
>     > OpenCMS what
>     > > kind of file you use. But maybe OpenCMS sends the mime-type in the
>     > > html-header.
>     > >
>     > > One more question. Do you have an Apache running which delivers
>     > your .rar
>     > > files? If so, you have to tell Apache about the new file type:
>     > > edit httpd.conf or .htaccess and add:
>     > >     AddType application/octet-stream .rar
>     > >
>     > > HTH
>     > >
>     > > Regards
>     > >
>     > > Kai
>     > >
>     > >
>     > >> -----Ursprüngliche Nachricht-----
>     > >> Von: opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>
>     > >> [mailto:opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>]Im Auftrag von
>     > >> maria.freixes_graells at alcatel.es
>     <mailto:maria.freixes_graells at alcatel.es>
>     > >> Gesendet: Montag, 7. August 2006 14:53
>     > >> An: The OpenCms mailing list
>     > >> Betreff: Re: AW: AW: [opencms-dev] Files with extension "rar"
>     > >>
>     > >>
>     > >> Hi Kai,
>     > >>
>     > >> I've tried to google and all the options, but it doesn't
>     work, it must
>     > >> be a bug....
>     > >> There is no manner to open files with extension rar....
>     > >> Thanks anyway!!
>     > >>
>     > >> Best regards,
>     > >> Maria
>     > >>
>     > >> Kai Schliemann wrote:
>     > >>
>     > >>> Hi Maria,
>     > >>>
>     > >>> don't know why it doesn't work now. Try to google for a fitting
>     > >>>
>     > >> mime-type.
>     > >>
>     > >>> One hint: I had to clear my browser cache in order to make it
>     > >>>
>     > >> work. So maybe
>     > >>
>     > >>> that may help. To be sure do a browser restart too.
>     > >>>
>     > >>> Regards
>     > >>>
>     > >>> Kai Schliemann
>     > >>> ________________________________________________________________
>     > >>>
>     > >>> Mit einem Klick alles im Blick, dank Informatik
>     > >>> Partner im Wissenschaftsjahr 2006 – www.Informatikjahr.de
>     <http://www.Informatikjahr.de>
>     > >>> ________________________________________________________________
>     > >>>
>     > >>> Dipl.-Wirt.Ing (FH)
>     > >>> Kai Schliemann
>     > >>>
>     > >>>
>     > >>> IT-Berater
>     > >>>
>     > >>> comundus GmbH
>     > >>> Schüttelgrabenring 3, 71332 Waiblingen
>     > >>>
>     > >>> Telefon  +49 (0)71 51-5 00 28-20
>     > >>> Internet www.comundus.com <http://www.comundus.com>
>     > >>>
>     > >>> IT EXCELLENCE by comundus.
>     > >>>
>     ________________________________________________________________
>     > >>>
>     > >>>
>     > >>>
>     > >>>
>     > >>>
>     > >>>
>     > >>>> -----Ursprüngliche Nachricht-----
>     > >>>> Von: opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>
>     > >>>> [mailto:opencms-dev-bounces at opencms.org
>     <mailto:opencms-dev-bounces at opencms.org>]Im Auftrag von
>     > >>>> maria.freixes_graells at alcatel.es
>     <mailto:maria.freixes_graells at alcatel.es>
>     > >>>> Gesendet: Montag, 7. August 2006 12:33
>     > >>>> An: The OpenCms mailing list
>     > >>>> Betreff: Re: AW: [opencms-dev] Files with extension "rar"
>     > >>>>
>     > >>>>
>     > >>>> No exit with application/rar.........sniff!
>     > >>>>
>     > >>>> Cayetano wrote:
>     > >>>>
>     > >>>>
>     > >>>>>> But it doesn't work!! I've tried "x-rar-compressed"
>     "octet-stream"
>     > >>>>>> "x-rar", nothing.......
>     > >>>>>> Each time I've restart tomcat, but the file continues
>     showing bad
>     > >>>>>> characters.....
>     > >>>>>> Another idea?
>     > >>>>>>
>     > >>>>>>
>     > >>>>>>
>     > >>>>> how about application/rar??
>     > >>>>>
>     > >>>>>
>     > >>>>>
>     > >>>> _______________________________________________
>     > >>>> This mail is sent to you from the opencms-dev mailing list
>     > >>>> To change your list options, or to unsubscribe from the list,
>     > >>>>
>     > >> please visit
>     > >>
>     > >>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>     > >>>>
>     > >>>>
>     > >>> _______________________________________________
>     > >>> This mail is sent to you from the opencms-dev mailing list
>     > >>> To change your list options, or to unsubscribe from the list,
>     > >>>
>     > >> please visit
>     > >>
>     > >>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>     > >>>
>     > >>>
>     > >
>     > >
>     > > _______________________________________________
>     > > This mail is sent to you from the opencms-dev mailing list
>     > > To change your list options, or to unsubscribe from the list,
>     > please visit
>     > > http://lists.opencms.org/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/mailman/listinfo/opencms-dev>
>     > >
>     >
>
>
>     _______________________________________________
>     This mail is sent to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list,
>     please visit
>     http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev


More information about the opencms-dev mailing list