掲示板
Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server
7年前 に Jesse Smith によって更新されました。
Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server
New Member 投稿: 2 参加年月日: 16/08/09 最新の投稿
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:
My View.jsp:
<div id="map" style="width:100%;height:600px;"> </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>
7年前 に David H Nebinger によって更新されました。
RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
Is your tomcat configured differently than the jboss instance?
Are you suffering from a same origin policy issue?
Are you suffering from a same origin policy issue?
7年前 に Joye Luo によって更新されました。
RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server
Regular Member 投稿: 144 参加年月日: 16/05/03 最新の投稿
Hey Jesse,
Maybe u can refer to this link installing liferay on JBoss 7.1. Hope that can provide a little bit help.
Maybe u can refer to this link installing liferay on JBoss 7.1. Hope that can provide a little bit help.
7年前 に Fernando Fernandez によって更新されました。
RE: Portlet Developed in Liferay IDE 3 doesn't work on JBOSS server
Expert 投稿: 396 参加年月日: 07/08/22 最新の投稿
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
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