I use Java + Spring for my app. I am running on a local Tomcat 7 and everything 
works fine.
When I deploy my code to Git, the Maven build is completed successfully, but 
then I can not browse to the website - I get two errors on Firebug:

"NetworkError: 404 Not Found - http://myapp.herokuapp.com/";
"The character encoding of the plain text document was not declared. The 
document will render with garbled text in some browser configurations if the 
document contains characters from outside the US-ASCII range. The character 
encoding of the file needs to be declared in the transfer protocol or file 
needs to use a byte order mark as an encoding signature."

I do not understand why it works on a my local server but not on my Heroku 
instance, and what does it have to do with character encoding?

Heroku sample apps are running fine also after I change them so I guess it's 
not a Maven config issue.

I do use a Spring CharacterEncodingFilter in my web.xml:

        <filter>
                <filter-name>encodingFilter</filter-name>
                
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
                <init-param>
                        <param-name>encoding</param-name>
                        <param-value>UTF-8</param-value>
                </init-param>
                <init-param>
                        <param-name>forceEncoding</param-name>
                        <param-value>true</param-value>
                </init-param>
        </filter>
        <filter-mapping>
                <filter-name>encodingFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
        
But even if I remove it the problem persists.
Did anyone ever encounter this issue?

Thanks,
Yuval

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to