Foros de discusión

Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server

Jesse Smith, modificado hace 7 años.

Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server

New Member Mensajes: 2 Fecha de incorporación: 9/08/16 Mensajes recientes
I'm using Liferay 6.2 GA 6 with Liferay IDE 3. I developed a little portlet that displays a map. It works when I deploy it to the tomcat test server, but when I deploy it to JBOSS the map does not show up. I don't see any javascript errors either in the console. It's almost like it isn't executing the scripts. Is there anything I would have to change in the deployment for it to work correctly in JBOSS 7.1.1?

My View.jsp:

<div id="map" style="width:100%;height:600px;">&nbsp;</div>
<script src="https://maps.googleapis.com/maps/api/js"></script>

<script>
    function initialize() {
        var mapCanvas = document.getElementById('map');

        var mapOptions = {
            center : new google.maps.LatLng(50.111606, 8.680795),
            zoom : 8,
            mapTypeId : google.maps.MapTypeId.ROADMAP
        }
        var map = new google.maps.Map(mapCanvas, mapOptions);

    }
    google.maps.event.addDomListener(window, 'load', initialize);
</script>
thumbnail
David H Nebinger, modificado hace 7 años.

RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Is your tomcat configured differently than the jboss instance?

Are you suffering from a same origin policy issue?
thumbnail
Joye Luo, modificado hace 7 años.

RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server

Regular Member Mensajes: 144 Fecha de incorporación: 3/05/16 Mensajes recientes
Hey Jesse,

Maybe u can refer to this link installing liferay on JBoss 7.1. Hope that can provide a little bit help.
thumbnail
Fernando Fernandez, modificado hace 7 años.

RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server

Expert Mensajes: 396 Fecha de incorporación: 22/08/07 Mensajes recientes
Jesse,

You might want to start by checking if the portlet html+js code is getting into the browser. Just use the browser debug tools to check the page code and eventual errors on the browser side.

If the code is fully present on the browser side this is not a tomcat vs jboss problem. You then must check other problems, like network, proxies, firewall, etc.

If the code is not present on the browser then yes, it's a tomcat vs jboss problem.

HTH

Fernando