tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giancarlo Gallardo" <ggalla...@vworld-tech.com>
Subject Problem compiling JSP in Tomcat
Date Thu, 19 Sep 2002 22:16:00 GMT
Hi guys!
I was working developing an intranet application using JDeveloper 9.0.2,
everything worked fine at testing (It works with the OC4J application
server). Now I've tried to move the app to Tomcat 4 and everything goes
absolutely wrong!!!!! Servlets work fine, but JSP's don't! They can't even
compile!
I have no clue about it.  Now, I'm trying to compile the JSP's on Forte4j
(CE 4 but using JDK 1.3.1, and an internal Tomcat server) and I get this
error:

JSP/Administracion/MisProyectos.jsp [-1:-1]
Errors compiling MisProyectos.


How is possible to get a position -1:-1 for an error?????
Here is the header of MisProyectos.jsp

<%@ page contentType="text/html"
import="org.dai.infogeneral.databean.*,java.util.*,java.net.*,org.dai.comun.
*" %>
<%@ taglib uri="/WEB-INF/webdai.tld" prefix="webdai"%>

when I get out the taglib (line 2), It compiles, but It's useless without
the tags!!!(obviously tags inside don't work)
My Web.xml file is alright I think, just like the webdai.tld so I'm in
really big problems!!! Any help please!!!!!

web.xml (reduced!)

<?xml version = '1.0' encoding = 'ISO_8859-1'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
  <servlet>
    <servlet-name>administracion</servlet-name>

<servlet-class>org.dai.administracion.accion.Administracion</servlet-class>
    <load-on-startup>10</load-on-startup>
  </servlet>
  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <taglib>
    <taglib-uri>/WEB-INF/webdai.tld</taglib-uri>
    <taglib-location>/WEB-INF/webdai.tld</taglib-location>
  </taglib>
</web-app>

and my webdai.tld (reduced also)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
        PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
        "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>webdai</short-name>
    <uri>/WEB-INF/webdai.tld</uri>
    <display-name>webdai</display-name>
    <description>webdai taglib</description>
   <tag>
      <name>errores</name>
        <tag-class>org.dai.comun.tags.TagErrores</tag-class>
        <body-content>EMPTY</body-content>
        <description>Maneja los errores capturados</description>
   </tag>
</taglib>



thanks in advance!!!

regards
gianca



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message