Problem with audio in web application with deploy in tomcat7

0

Hello,

I developed a web application that needs audios. I use a javascript code to control this audio call. With the application ready, I transferred to another computer doing deploy on tomcat7. Everything works perfectly except the execution of the audio and firefox returns these messages:

  

The "Content-Type" HTTP attribute of "audio / mpeg" is not supported. Uploading media link failed

     

Can not play media. There are no decoders for the requested formats: audio / mpeg

I've already checked that my ubuntu has the necessary codecs. Any audio out of the application runs seamlessly and the application without deploy also performs the audio.

Additional information: Use HTML, CSS and Javascript for the page. Using Java servlets to connect to the MySQL database. The connection works perfectly.

Thank you in advance.

    
asked by anonymous 01.12.2016 / 13:08

1 answer

0

Have you tried configuring in the application's web.xml?

<mime-mapping>
    <extension>mp3</extension>
    <mime-type>audio/mpeg</mime-type>
</mime-mapping>
    
01.12.2016 / 17:41