Question : Apache Torque 3.3 and Tomcat 5.5 Not Working

Hi,

I'm trying to setup a new web application using Apache Torque but I'm getting this error when i try to use the generated classes: java.lang.ExceptionInInitializerError

This is my setup:
Windows XP Pro
Apache Torque 3.3
Tomcat 5.5
Java 1.5

- Data access classes were generated using Ant (Torque-gen)
- Torque init servlet in place and called from the web.xml file

I created a simple test JSP:
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="miniblog.data.Tema" %>
<%@ page import="miniblog.data.TemaPeer" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

  TEST PAGE
 
   

TEST PAGE


   

    <%
        try
        {
            List temasList = TemaPeer.doSelectAll();

            Tema tema;
            Iterator itTemas = temasList.iterator();
            out.println("
SIZE=" + temasList.size());
            while (itTemas.hasNext())
            {
                tema = (Tema)itTemas.next();
    %>
            <%=tema.getTema()%>

    <%
            }
        }
        catch (Exception e)
        {
            out.println("ERROR");
        }
    %>

 


Attaching log file.

Any help will be really appreciated.

Thanks!

Answer : Apache Torque 3.3 and Tomcat 5.5 Not Working

I use torque 3.1 and everything worked ok.
Random Solutions  
 
programming4us programming4us