BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
dollars5 Offline
Talking BlackBerry Encyclopedia
 
Posts: 335
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Exclamation HELP: Enabling MIME settings for OTA install - 02-05-2007, 09:30 AM

Hello,

We got a code from configuring apache for mobile browsing « rivviepop phantom
for enabling MIME, and use the following htaccess file
Code:
# Index options
IndexOptions +DescriptionWidth=* +SuppressDescription +SuppressIcon

# Symbian
AddType application/vnd.symbian.install .sis .sisx

# Basic WML
AddType text/vnd.wap.wml .wml
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp

# J2ME
AddType application/java-archive .jar
AddType text/vnd.sun.j2me.app-descriptor .jad

# BlackBerry
AddType application/vnd.rim.cod .cod

# Certs
AddType application/x-pkcs12 .p12
AddType application/x-x509-ca-cert .crt
AddType application/x-x509-ca-cert .der
AddType application/x-x509-ca-cert .cer

# PRC files (eBook)
#AddType application/x-mobipocket-ebook .prc
AddType application/octet-stream .prc
placed in the folder where the files for OTA resides, but users seem to complain that they just get internal server error when accessed from IE or Firefox and Blackberry users complain that it just gets only the jad and no OTA install happens.

Pls help with this.

Thanks in advance.


Dollars 5 Complete - Making Mobile Complete
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
dollars5 Offline
Talking BlackBerry Encyclopedia
 
Posts: 335
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Default 02-05-2007, 11:51 AM

Any one please can you tell is this OTA installation working http://www.dollars5.com/downloads/bl.../multiPlay.jad

Thanks in advance.


Dollars 5 Complete - Making Mobile Complete
   
  (#3 (permalink)) Old
jmishra Offline
New Member
 
Posts: 2
Join Date: Feb 2007
Model: 7100
Carrier: Cingular
Default Not working - 02-05-2007, 03:42 PM

I tried this using my bberry 7100. Doesn't seem to work.

FYI - I have done the same thing using my web.xml. Here is the code I used -

<mime-mapping>
<extension>cod</extension>
<mime-type>application/vnd.rim.cod</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jad</extension>
<mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jar</extension>
<mime-type>application/java-archive</mime-type>
</mime-mapping>
   
  (#4 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 02-05-2007, 05:55 PM

Quote:
Originally Posted by dollars5
Any one please can you tell is this OTA installation working http://www.dollars5.com/downloads/bl.../multiPlay.jad
I returned your PM on HoFo just a bit ago, in case you're not checking that one as often. If those ideas don't work, feel free to followup here and I'll do my best to get your OTA working. Honestly I'm surprised it isn't working, must be a non-generic Apache setup your webserver has...(?)
   
  (#5 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 02-05-2007, 05:58 PM

Quote:
Originally Posted by jmishra
FYI - I have done the same thing using my web.xml. Here is the code I used -
Lest we add confusion, this is for a servlet runner only that's deploying warballs (i.e. Tomcat) and is not useful to a generic Apache installation. I don't think Dollars5 is using a java based setup to set that, but I could be wrong.
   
  (#6 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 02-05-2007, 06:01 PM

Quote:
Originally Posted by dollars5
placed in the folder where the files for OTA resides, but users seem to complain that they just get internal server error when accessed from IE or Firefox and Blackberry users complain that it just gets only the jad and no OTA install happens.
If you're getting an internal server error (500?), you should have log entries in /var/log/error_log (or wherever your ErrorLog directive points to) which should help explain things. A typical 500 usually indicated a bad configuration of some sort, or possibly the use of a given configuration directive in a container it's not allowed.
   
  (#7 (permalink)) Old
dollars5 Offline
Talking BlackBerry Encyclopedia
 
Posts: 335
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Default 02-05-2007, 08:07 PM

Thanks, but web.xml is not for us - we use php and no Tomcat.

With wget it still shows as text/plain

I tried adding the directory config like
<Directory /blackberry/multiplay/beta/OTA>
AllowOverride All
</Directory>

but that gives a 404 for all requests.

this is my current .htaccess file over at root

Code:
RewriteEngine On
Redirect /index.html http://dollars5.com/plete/index.php
Redirect /index.php http://dollars5.com/plete/index.php
Redirect /index.htm http://dollars5.com/plete/index.php
I tried adding it before and after but no help. Btw - I have mod-rewrite htaccess in the other sub-folders which work fine.

Also I could not locate my error logs on my server.

Thanks for your help, and input on this situation will be very kind of you.

My Host is goDaddy - I think it is time to change hosts ;)

Regards,
Dollars5


Dollars 5 Complete - Making Mobile Complete
   
  (#8 (permalink)) Old
dollars5 Offline
Talking BlackBerry Encyclopedia
 
Posts: 335
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Default 02-05-2007, 08:21 PM

For some reason only the htaccess files on the immediate sub-directories of the root seem t work. In out old setup we have it this way a folder called /OTA/ and all files into it - now again it seem to work.

new location http://www.dollars5.com/OTA/multiPlay.jad - now it works.


Dollars 5 Complete - Making Mobile Complete
   
  (#9 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 02-05-2007, 09:52 PM

Quote:
Originally Posted by dollars5
<Directory /blackberry/multiplay/beta/OTA>
AllowOverride All
</Directory>
Directory takes an absolute path, but you're feeding it a relative one (from the docroot); this can be solved by either:

<Directory /full/path/on/server/to/folder>

...or by changing to Location directive:

<Location /blackberry/multiplay/beta/OTA>
AllowOverride All
</Location>

I would stick with Directory, though -- I've had weird problems with some directives in some situations when using Location that doesn't occur using Directory.
   
  (#10 (permalink)) Old
dollars5 Offline
Talking BlackBerry Encyclopedia
 
Posts: 335
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Default 02-05-2007, 10:50 PM

Ohh, Anyways the OTA is working as of now without problems and I donot want to disturb it for now. But was curious why the htaccess placed in other locations other than root of immediate sub-directory of root did not work.

Have to place a post in apache groups to see if it is a goDaddy specific problem.

Thanks all for helping.


Dollars 5 Complete - Making Mobile Complete
   
  (#11 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 02-06-2007, 02:39 PM

Quote:
Originally Posted by dollars5
Have to place a post in apache groups to see if it is a goDaddy specific problem.
I suspect it might be -- I work with a large cross section of Apache on a regular basis (I'm a systems engineer by day) and don't see this kind of problem much. My free PHP space (Index of /bb/ e.g.) has a lot of weird problems of things working right - like my htaccess - that 'normal' Apache instances don't have any problems with...
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.