WebSphere Application Server - publishing in application server

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > December 2005 > publishing in application server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author publishing in application server

2005-12-27, 6:08 pm

hi
i did publish an application on websphere application server and it went well.
but when i try to see it, it doesn´t show the information. it opens thge first page but with errors. it doesn´t show the pictures and when i click on the links it says that there´s an error on the page.
what surprises me is the fact that it runs without errors on my pc...
my question is: why it doesn´t run properly in the application server?

please help

selumiel
Juanma Martinez

2005-12-27, 6:08 pm

In article <616107841.1135705455860.JavaMail.wassrvr@ltsgwas007.sby.ibm.com>, sgeronimo@sistec.co.ao says...
> my question is: why it doesn?t run properly in the application server?
>

My questions: which errors are you getting? How did you publish the application? What do
you have in your PC? what is there on the application server?

you didn't give much information about what is going on for someone to help you.
--

Juanma Martínez

2005-12-28, 2:55 am

hi Juanma Martinez
thanks for your reply.
i deployed or installed the application on websphere application server.after i installed it i tried to run it...it does open but with a javascript error saying: Line:20
Car:1
Error: object expected

also it doesn´t show the pictures on the page...when i click on a link it gives me the following error : HTTP 500 - Internal server error
Internet Explorer

this is my jsp

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %&gt;
&lt;%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %&gt;
&lt;%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %&gt;
&lt;%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %&gt;

&lt;%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%&gt;

&lt;META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;META name="GENERATOR" content="IBM WebSphere Studio"&gt;
&lt;META http-equiv="Content-Style-Type" content="text/css"&gt;
&lt;SCRIPT language="JavaScript" src="theme/javascript/Geral.js"&gt;&lt;/SCRIPT&gt;
&lt;LINK href="theme/css_files/geral.css" rel="stylesheet" type="text/css"&gt;
&lt;TITLE&gt; :: MINISTÉRIO DO PLANEAMENTO - REPÚBLICA DE ANGOLA :: WebSite&lt;/TITLE&gt;
&lt;/HEAD&gt;

&lt;BODY topmargin="0" bottommargin="0" leftmargin="0" rightmargin="5" marginheight="0"
marginwidth="0" leftmargin="5" background="#EFEFEF" onload="fnDestaques()"&gt;

&lt;html:form styleId="IndexForm" action="/IndexAction" target="_top"&gt;

&lt;CENTER&gt;
&lt;TABLE width="800" border="1" cellpadding="0" cellspacing="0" bordercolor="#EFF1F2"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;TABLE width="800" height="98" background="theme/images/BgHeader/bgdHeaderT1.jpg"&gt;
&lt;TR valign="top"&gt;
&lt;TD align="right" width="77" height="64"&gt;&lt;IMG border="0"
src="theme/images/BgHeader/bandeira_01.gif" width="55" height="30" align="middle"&gt;&nbsp;
&lt;/TD&gt;
&lt;TD align="center" height="34" width="0" valign="top"&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;TABLE cellpadding="0" cellspacing="0" width="800" background="theme/images/BgHeader/line.jpg"&gt;
&lt;TR align="left"&gt;
&lt;TD width="800" valign="bottom" height="23"&gt;&lt;MARQUEE
width="800" direction="left" scrolldelay="1" scrollamount="2"
height="16"&gt; &lt;FONT class="txtScrollNews" color="#FFFFFF" size="-3"
face="Verdana"&gt;/&nbsp; &nbsp; O novo Site do Ministério do Planeamento &nbsp; &nbsp;/&nbsp; &nbsp;&lt;/FONT&gt;&lt;/MARQUEE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;TABLE width="802" border="0" cellpadding="0" cellpadding="0" align="left"&gt;

&lt;TR valign="top"&gt;
&lt;TD width="120" valign="top" rowspan="3"&gt;
&lt;TABLE width="68" border="0" cellspacing="0" cellpadding="0" bgcolor="#050150"&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;
&lt;A href="organizacao.html" target="_parent"&gt;&lt;IMG border="0" src="theme/MnButtons/org.gif"
onmouseover="src='theme/MnButtons/org_pressed.gif'"
onmouseout="src='theme/MnButtons/org.gif'"
style="cursor: 'hand'" width="121" height="22"&gt;
&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;A href="legislacao.html" target="_parent"&gt;
&lt;IMG border="0" src="theme/MnButtons/Leg.gif"
onmouseover="src='theme/MnButtons/Leg_pressed.gif'"
onmouseout="src='theme/MnButtons/Leg.gif'"
style="cursor: 'hand'" width="121" height="22"&gt;&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;A href="relatorio.html" target="_parent"&gt; &lt;IMG border="0" src="theme/MnButtons/relat.gif"
onmouseover="src='theme/MnButtons/relat_pressed.gif'"
onmouseout="src='theme/MnButtons/relat.gif'" style="cursor: 'hand'" width="121" height="22"&gt;
&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;A href="programas.html" target="_parent"&gt; &lt;IMG border="0" src="theme/MnButtons/prog.gif"
onmouseover="src='theme/MnButtons/prog_pressed.gif'"
onmouseout="src='theme/MnButtons/prog.gif'"
style="cursor: 'hand'" width="121" height="22"&gt;
&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;A href="integracao.html" target="_parent" &gt;
&lt;IMG border="0" src="theme/MnButtons/int.gif"
onmouseover="src='theme/MnButtons/int_pressed.gif'"
onmouseout="src='theme/MnButtons/int.gif'"
style="cursor: 'hand'" width="121" height="22"&gt;&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &nbsp;&nbsp;&nbsp;&nbsp; &lt;A href=cooperacao.html target="_parent"&gt;
&lt;IMG border="0" src="theme/MnButtons/coop.gif"
onmouseover="src='theme/MnButtons/coop_pressed.gif'"
onmouseout="src='theme/MnButtons/coop.gif'"
style="cursor: 'hand'" width="119" height="23"&gt;&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD&gt; &lt;A href="provincias.html" target="_parent"&gt; &lt;IMG border="0" src="theme/MnButtons/prov.gif onmouseover="src='theme/MnButtons/prov_pressed.gif'" onmouseout=&
quot;src='theme/MnButtons/prov.gif'"
style="cursor: 'hand'" width="121" height="22"&gt;
&lt;/A&gt;
&lt;/TD&gt;
&lt;/TR&gt;

&lt;TR valign="top"&gt;
&lt;TD width="121" height="99"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="121" height="19" class="TD.WriteZone" title="área para utilizadores" align="center" rowspan="2"&gt;
&lt;html:link forward="login" target="_top" &gt; &lt;IMG src="theme/images/MnIcons/mail.gif" width="19" height="19"
align="middle" border="0" hspace="2" vspace="21"&gt; &lt;B&gt;&lt;FONT size="-2" face="Verdana" style="text-decoration:none" color="#ffffff"&gt;Login&lt;/FON
T&gt;&lt;/B&gt;
&lt;/html:link&gt;
&lt;TR valign="top"&gt;
&lt;TD width="121" height="99"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="121" height="99"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="121" height="29"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;TD align="left" height="7"&gt;
&lt;TABLE width="70" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TR&gt;
&lt;TD rowspan="2"&gt;&lt;/TD&gt;
&lt;TD width="1" colspan="2"&gt;&nbsp;&nbsp;&lt;IMG border="0"
src="theme/images/Minist.gif" align="left" width="208"&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;TABLE width="70" border="0" cellspacing="0" cellpadding="0" align="right"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="155" height="51"&gt;&lt;IMG border="0"
src="theme/images/tag_pesquisa.gif" width="54" height="8"&gt;&lt;html:text
property="pesquisar" maxlength="200" size="19"/&gt;&lt;/TD&gt;
&lt;TD align="left" height="51" valign="top"&gt;&lt;IMG width="12"
height="15" border="0" align="left"
src="theme/images/btn_pesquisa.gif" alt="Pesquisar Noticias"
style="cursor: 'hand'" onclick="fnPesquisar(IndexForm);"&gt;&lt;/TD&gt;
&lt;TD width="1"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;TD&gt;
&lt;TABLE cellspacing="0" cellpadding="0" width="450" align="left" height="120"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD colspan="1" height="8" width="424"&gt;&lt;IMG border="0"
src="theme/images/tag_destaque1.gif" width="80" height="11"
style="cursor: 'hand'" hspace="3"&gt;&lt;/TD&gt;

&lt;TD height="20" align="left" width="8"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="center" height="229" width="424"&gt;
&lt;TABLE cellspacing="0" cellpadding="0" border="0" align="left"&gt;
&lt;%if (session.getAttribute("noticiasList") == null) {
session.setAttribute("noticiasList", new java.util.Vector());
}%&gt;
&lt;TBODY&gt;&lt;/TABLE&gt;
&lt;TABLE id="tblNoticias" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;TBODY valign="top" align="left"&gt;
&lt;logic:iterate id="List" name="noticiasList"&gt;
&lt;TR id="tr_noticias" onclick="funtitulo(IndexForm, '&lt;bean:write name="List" property="id_noticias" filter="true" /&gt;');"&gt;
&lt;TD valign="top" width="2000"
style="cursor:hand; height:65" title="saiba mais"&gt;
&lt;B&gt;&lt;FONT size="1" face="Verdana"&gt;&lt;bean:write name="List"
property="noticia1" filter="true" /&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;
&lt;FONT size="-2" face="Verdana" color="#050150"&gt;&lt;bean:write name="List" property="data" filter="true" /&gt;&lt;/FONT&gt; &lt;FONT size="-2" face="Verdana">
;&lt;bean:write name="List" property="resumo" filter="true" /&gt;&lt;/FONT&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/logic:iterate&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TD valign="middle" align="right"&gt;&lt;IMG border="0"
src="theme/images/separador_3_1.gif" width="5" height="219 align="left" hspace="8"&gt;
&lt;TABLE cellspacing="0" cellpadding="0" border="0"&gt;
&lt;TBODY valign="top"&gt;
&lt;TR valign="top"&gt;
&lt;TD height="11" width="157" align="center"&gt;&lt;IMG border="0" src="theme/images/tag_voce.gif" width="47" height="11"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177" height="22" align="center"&gt;
&lt;SELECT name="perfil" class="txtNormal"&gt;
&lt;OPTION value="" selected="selected"&gt;-- Seleccione --&lt;/OPTION&gt;
&lt;OPTION value="1"&gt;Autarca&lt;/OPTION&gt;
&lt;OPTION value="12"&gt;Estudante&lt;/OPTION&gt;
&lt;OPTION value="11"&gt;Jornalista&lt;/OPTION&gt;
&lt;/SELECT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt; &lt;TD width="177" align="center" height="4"&gt; &lt;IMG height="1" width="1" border="0"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt; &lt;TD valign="top" width="177" height="14" align="center"&gt;&lt;IMG border="0" src="theme/images/tag_temas.gif" width="98" height="11&
quot;&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177" height="21" align="center"&gt;
&lt;SELECT name="tema" class="txtNormal"&gt;
&lt;OPTION value="" selected="selected"&gt;-- Seleccione --&lt;/OPTION&gt;
&lt;OPTION value="1"&gt;Comunicações&lt;/OPTION&gt;
&lt;OPTION value="2"&gt;Obras Públicas&lt;/OPTION&gt; &lt;OPTION value="3"&gt;Transportes&lt;/OPTION&gt;
&lt;/SELECT&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177" height="7" align="center"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="top" width="177" height="12" align="center"&gt;&lt;A
title="Links Úteis" href="#"&gt;&lt;IMG border="0"
src="theme/images/tag_links.gif" width="69" height="12"&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="center" width="177" align="center" height="8"&gt;&lt;IMG
height="5" alt="" src="theme/images/separador_5_1.gif"
width="141" border="0" align="left"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle" width="177" height="17"
align="center"&gt;
&lt;DIV class="txt-lnk1"&gt;
&lt;H5&gt;&lt;A href="http://www.MinPlan.gov.ao/" target="_blank"&gt;&lt;IMG
height="9" alt="APL - Administração do Porto de Lobito src="theme/images/MnIcons/seta_1.gif" width="9"
align="middle" border="0"&gt;&lt;/A&gt;&nbsp;&lt;A class="txt-lnk1" title="MF - Ministério das Finanças"
href="http://www.minfin.gv.ao/" target="_blank"
style="text-decoration: none"&gt;&lt;FONT color="#00008C"
face="verdana"&gt;Ministério das Finanças [MF]&lt;/FONT&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="top" width="177" height="17" align="center"&gt;
&lt;DIV class="txt-lnk1"&gt;
&lt;H5&gt;&lt;A href="http://www.mai.gov.pt/" target="_blank"&gt;&lt;IMG
height="9"
alt="Ministério da Administração Interna [MAI]"
src="theme/images/MnIcons/seta_1.gif" width="9"
align="middle" border="0"&gt;&lt;/A&gt;&nbsp;&lt;A class="txt-lnk1"
title="Ministério da Administração Interna [MAI]"
href="http://www.mai.gov.ao/" target="_blank" style="text-decoration: none"&gt;&lt;FONT color="#00008C" face="verdana"&gt;Ministério da Administração Interna [MAI]&lt;/FO
NT&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="177" height="0" align="center"&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD valign="middle" width="177" height="22"
align="center"&gt;
&lt;DIV class="txt-lnk1"&gt;
&lt;H5&gt;&lt;A href="http://www.min-edu.ao/" target="_blank"&gt;&lt;IMG
height="9" alt="Ministério da Educação [MEd]" src="theme/images/MnIcons/seta_1.gif" width="9"
align="middle" border="0"&gt;&lt;/A&gt;&nbsp; &lt;A class="txt-lnk1"
title="Ministério da Educação [MEd]"
href="http://www.min-edu.ao/" target="_blank"
style="text-decoration: none"&gt;&lt;FONT color="#00008C"
face="verdana"&gt; Ministério da Educação [MED]&lt;/FONT&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="1" width="177" align="center"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle" align="center" height="22"
width="177"&gt;&lt;B&gt;ANGOLA&lt;/B&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="center" height="6" width="177"&gt;&lt;IMG height="5"
src="theme/images/separador_5_1.gif" width="141"
border="0"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="top" width="177" height="93" align="center"&gt;&lt;A
href="angola.html" target="_blank"&gt;&lt;IMG border="0"
alt="Situa-se na África Central - saiba mais..."
src="theme/images/mapa1_fundo.gif" width="99"
height="93"&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;

&lt;/TABLE&gt;


&lt;/TD&gt;&lt;/TR&gt;

&lt;/TABLE&gt;
&lt;/TD&gt;

&lt;/TABLE&gt;

&lt;/TABLE&gt;
&lt;/TABLE&gt; &lt;/CENTER&gt;
&lt;html:hidden property="id_noticias" /&gt;
&lt;html:hidden property="_$action" /&gt;
&lt;/html:form&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
Ken Hygh

2005-12-28, 7:54 am

sgeronimo@sistec.co.ao wrote:

>hi Juanma Martinez
>thanks for your reply.
>i deployed or installed the application on websphere application server.after i installed it i tried to run it...it does open but with a javascript error saying: Line:20
> Car:1
> Error: object expected
>
>also it doesn´t show the pictures on the page...when i click on a link it gives me the following error : HTTP 500 - Internal server error
>Internet Explorer
>
>this is my jsp
>
>
>


[snip]

Please do not ever again post an entire JSP here. It doesn't help much
at all - though answering all of Juanma's questions would have.

You'll need to look in WebSphere's logs, there should be more
information there.

Javascript errors are not caused by WebSphere. This sounds like it was
installed incorrectly, so many of the files that your page is expecting
- javascript files, jpg's, etc. aren't in the right places.

Ken

2005-12-30, 7:57 am

ok Ken, thanks.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com