tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sérgio Vieira Rolanski <ser...@strategos.com.br>
Subject Problem publishing application to debian with tomcat 5.5.17
Date Wed, 09 Jul 2008 13:59:24 GMT
Hi,

I get the following error when I publish my web application to debian 
server running apache-tomcat 5.5.17:

java.lang.IllegalArgumentException: Value is no String 
(class=java.lang.Integer, value=4) and component _idJsp46:smUnidadewith 
path: {Component-Path : [Class: 
org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: 
/sjij/login/login.jsp][Class: 
br.com.strategos.faces.html.component.UIPage,Id: _idJsp0][Class: 
br.com.strategos.faces.navytheme.UILayout,Id: _idJsp1][Class: 
br.com.strategos.faces.html.component.UILayoutItem,Id: _idJsp45][Class: 
br.com.strategos.faces.html.component.UIForm,Id: _idJsp46][Class: 
br.com.strategos.faces.html.component.UICell,Id: _idJsp52][Class: 
br.com.strategos.faces.html.component.UISelectOneMenu,Id: smUnidade]} 
does not have a Converter
    at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:513)
    at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:532)
    at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:410)
    at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:315)
    at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:267)
    at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:59)
    (and several more...)

I'm developing using Netbeans 5.5 running on Windows XP Pro SP2 using 
the bundle Apache-Tomcat 5.5.17. Deploying my web application to my the 
bundle Tomcat gives no error. But the same application running on debian 
gives me the above exception. The project was recently broke into 
smaller pieces and that was when that error started to happen.

I also tried Apache-Tomcat 5.5.26 on both computers (with debian and 
win.xp) and I get the same error. Adding a converter to every single 
combo box right now it's not an option and I think it's not necessary 
since it runs Windows with no problem. Could it be a configuration issue 
on Tomcat?

Here are sample code from my java class:

   1. private void loadUsuarioUnidades(){  
   2.     this.listUnidades = new ArrayList<SelectItem>();  
   3.     for(SisUsuarioUnidade sisUsuarioUnidade :
      getUsuario().getUnidades()){  
   4.         setUnidade(sisUsuarioUnidade.getUnidade());  
   5.         getListUnidades().add(new
      SelectItem(getUnidade().getSeqUnidade().getValue(),  
   6.                 getUnidade().getDesUnidade().getValue()));  
   7.     }  
   8.     if(getListUnidades().size() > 0){  
   9.         sortUnidades();  
  10.     }  
  11. }

And this is a sample from a JSP file:

   1. <sh:selectOneMenu cols="2" label="#{msgs.UnidadeLabel}"
      value="#{basewebAcessoLogin.unidade.seqUnidade.value}"
      disabled="#{basewebAcessoLogin.notLogged}" >   
   2.   <sf:selectItems value="#{basewebAcessoLogin.listUnidades}" />  
   3. </sh:selectOneMenu> 


Thanks in advance,
Sérgio


Mime
View raw message