- Have you tried to delete the tomcat working directory?
- Have you changed the dependend jars too?

Regards,
Henner

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im 
> Auftrag von Ivan Codarin
> Gesendet: Sonntag, 28. Dezember 2003 22:14
> An: [EMAIL PROTECTED]
> Betreff: [dbforms] Upgrading from 1.1.4 pr1 to PR2 - 
> Big/strange problem or error???
> 
> Dear all,
> I'm trying to upgrade my production server from dbforms 1.1.4pr1 to
> 1.1.4pr2 (2003.12.13 build).
> I've a strange problem when I substitute the 
> dbforms1.1.4.pr1.jar lib (in
> WEB-INF/lib) with the new one dbforms1.1.4pr2.jar.
> 
> With the first one the software is OK, when I try the version 
> 1.1.4pr2 I get errors.
> The error in a simple JSP page is this:
> -------------------------
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> 
> exception
> 
> org.apache.jasper.JasperException
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:254)
>       at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>       at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> root cause
> 
> java.lang.NullPointerException
>       at org.dbforms.taglib.DbFormTag.setTableName(DbFormTag.java:296)
>       at
> org.apache.jsp.business_objects.users.users_win_single_ro_jsp.
> _jspService(users_win_single_ro_jsp.java:121)
>       at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:210)
>       at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>       at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> ................................
> -----------------------
> I analyzed by hand the file user_win_single_ro_jsp.java on 
> line 121 where I have this set of instructions:
> 
>  /* ----  db:dbform ---- */
>       org.dbforms.taglib.DbFormTag _jspx_th_db_dbform_0 =
> (org.dbforms.taglib.DbFormTag)
> _jspx_tagPool_db_dbform_tableName_maxRows_followUp_autoUpdate.
> get(org.dbforms.taglib.DbFormTag.class);
>       _jspx_th_db_dbform_0.setPageContext(pageContext);
>       _jspx_th_db_dbform_0.setParent(null);
>       _jspx_th_db_dbform_0.setAutoUpdate("false");
>       
> _jspx_th_db_dbform_0.setFollowUp("/business_objects/users/user
s_win_single_ro.jsp");
>       _jspx_th_db_dbform_0.setMaxRows("1");
>       _jspx_th_db_dbform_0.setTableName("users");    
> <<======== PROBLEM !!!!
>       int _jspx_push_body_count_db_dbform_0 = 0;
>       try {.................
> 
> the "users" is the table of my database. In DbFormTag.java 
> the error is on this rows:
> 
> public void setTableName(String tableName) {
>       this.tableName = tableName;
>       this.table = config.getTableByName(tableName);
>       this.tableId = table.getId();               
> <<========== PROBLEM !!!!
>    }
> 
> The dbforms-config.xml file is the same with 1.1.4pr1 test 
> and with 1.1.4pr2.
> I put in the footer of this mail the JSP page and the piece 
> of dbforms-config.xml that regards the "users" table.
> This error is happening with any other JSP page.
> PS.
> I'm using Linux to develop  (with eclipse 3.0m4) and I've 
> problems to debug tomcat apps.
> 
> Have you any idea about this problem?
> 
> Many thanx
> Ivan
> 
> =================================
> DBFORMS-CONFIG.XML PICECE OF CODE
> 
>       <table name="users">
>               <field name="user_name" fieldType="char" 
> size="15" isKey="true"/>
>               <field name="user_pass" fieldType="char" size="15"/>
>               <granted-privileges insert="uwcad_amm" 
> update="uwcad_amm"
>                       delete="uwcad_amm" />
>       </table>
> 
> =================================
> JSP PAGE:
> 
> <%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %>
> <%    String user= request.getUserPrincipal().getName(); %>
> 
> <html xmlns:db="http://www.wap-force.com/dbforms";>
> <head>
> <db:base/>
> <title>Users and passowrds</title>
> <link href="/uwcad/css/dbforms.css" rel="stylesheet"/> <link 
> href="/uwcad/css/webgui_window.css" rel="stylesheet"/> 
> </head> <body class="clsPageBody">
> 
> 
> <table align="center" border="0" width="100%" cellspacing="0"
> cellpadding="1" class="clsMainMenuTable"> <tr> <td> <table 
> border="0" width="100%" cellspacing="0" cellpadding="3"
> class="clsMainMenuTable">
> <tr class="clsMainMenuTableRow">
> <td>
> <span class="clsMainMenu"><%= "Connected user: " + user 
> %></span> </td> <td class="clsMainMenu" align="right"> <a 
> class="clsMainMenu"
> href="/uwcad/business_objects/users/users_win_list.jsp">[List]</a>
> </td>
> </tr>
> </table></td>
> </tr>
> </table>
> 
> <db:dbform autoUpdate="false"
> followUp="/business_objects/users/users_win_single_ro.jsp" maxRows="1"
> tableName="users">
> <db:header/>
> 
> <db:body>
> <table width="400" align="center" border="0">
>       <tr class="clsEvenDataTableRow">
>               <td style="font-weight: bold" align="left">Username</td>
>               <td align="left">
>                       <span class="FieldName">
>                       <db:label styleClass="clsInputStyle" 
> fieldName="user_name"/>
>                       </span>
>               </td>
>       </tr>
>       <tr class="clsOddDataTableRow">
>               <td style="font-weight: bold" align="left">Password</td>
>               <td align="left">
>                       <span class="FieldName">
>                       <db:label styleClass="clsInputStyle"  
> fieldName="user_pass"/>
>                       </span>
>               </td>
>       </tr>
> </table></db:body>
> <db:footer>
> <table border="0" align="center">
> <tr valign="middle">
> <hr width="400"/>
> </tr>
> <tr>
> <td align="right">
> <db:navFirstButton styleClass="clsButtonStyle" 
> caption="&lt;&lt; First"
> src="/uwcad/pics/buttons/first.png" flavor="image"/> </td> 
> <td align="center"> <db:navPrevButton 
> styleClass="clsButtonStyle" caption="&lt; Previous"
> src="/uwcad/pics/buttons/previous.png" flavor="image"/> </td> 
> <td align="center"> <db:gotoButton 
> destination="/business_objects/users/users_win_single.jsp"
> styleClass="clsButtonStyle" caption="Edit &gt;"
> src="/uwcad/pics/buttons/edit.png" flavor="image"/> </td> <td 
> align="center"> <db:navNextButton styleClass="clsButtonStyle" 
> caption="Next &gt;"
> src="/uwcad/pics/buttons/next.png" flavor="image"/> </td> <td 
> align="left"> <db:navLastButton styleClass="clsButtonStyle" 
> caption="Last &gt;&gt;"
> src="/uwcad/pics/buttons/last.png" flavor="image"/> </td> 
> </tr> </table> </db:footer> </db:dbform>
> 
> 
> </body>
> </html>
> 
> =============================================================
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign 
> up for IBM's Free Linux Tutorials.  Learn everything from the 
> bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> DbForms Mailing List
> 
> http://www.wap-force.net/dbforms
> 




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to