Jsp - JavaBean  Error

Hi Friends,
I am stuck with one error in jsp and javabean.
I have Three file
1. Home.jsp [ home page]
2. log.jsp [check user]
3. connectBean.java [class file is in WEB-INF\classes\connection] connection is my package.
When i open nd login using user name & password it give the following error
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /log.jsp(1,5) Invalid directive
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
     org.apache.jasper.compiler.Parser.parseDirective(Parser.java:499)
     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
     org.apache.jasper.compiler.Parser.parse(Parser.java:133)
     org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
     org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Log.jsp
<%@ language="java" import="java.util.*,java.sql.*" errorPage="" %>
<jsp:useBean id="chk1" class="connection.ConnectionBean" scope="page" />
<%
     String userId = request.getParameter("txt_username");          //get user name frm home page.
     String passWd = request.getParameter("txt_password");          //get password frm home page.
     session.setAttribute("userId",userId);      //set session value as user name.
     session.setAttribute("passWd",passWd);          //set session value as password.
     String type = chk1.chkLogin(userId,passWd);          //pass value to ConnectionBean to get user name.
     String userName = chk1.getUserName(userId,passWd);          //pass value to connection bean to get user name.
     if(type.equals("admin") {
          session.setAttribute("msg"," Welcome " + userName+" ..");
          response.sendRedirect("AdminHomePage.jsp");
     else {
     session.setAttribute("msg","Login Failed.....");
     response.sendRedirect("Home.jsp");
%>
<html>
<head>
<title>Checking</title>
</head>
<body>
Hello
</body>
</html>
Home.jsp
<%@ page language="java" import="java.util.*,java.sql.*" errorPage="" %>
<html>T
<head>
<title>Home Page</title>
</head>
<body>
<form name="frm_login" action="log.jsp" method="post">
<table align="center">
     <tr><td>User Name</td><td></td><td><input type="text" name="txt_username" /></td></tr>
     <tr><td>Password</td><td></td><td><input type="password" name="txt_password" /></td></tr>
     <tr><td></td><td><input type="submit" name="btn_login" value="Login"/></td><td></td></tr>
</table>
<%
     String msg1 = (String)session.getAttribute("msg");
     if (msg1 != null)
     out.println(msg1);
     session.removeAttribute("msg");      
%>
</form>
</body>
</html>
====
connectionBean.java
ackage connection;
import java.lang.*;
import java.sql.*;
import java.util.*;
public class ConnectionBean {
     Connection con;
     Statement st;
     ResultSet rs;
     // * * For Connection * *
     public Connection getCon() {
     try {
               Class.forName("org.postgresql.Driver");
               con=DriverManager.getConnection("jdbc:postgresql://localhost/postgis?user=postgres&password=raj");
               return con;
          catch(Exception e)     {
               System.out.println(e);
               return con;
     //For Check a Specific User And Go To His/Her Home Page
     public String checkLogin(String uName,String passWd) {
          try {
               con=getCon();
               st=con.createStatement();
               rs=st.executeQuery("select * from login_table where userName='"+uName+"' and passWord='"+passWd+"'");
               if(rs.next()) {
                    String type=rs.getString(5);
                    return type;
               else
                    return "error";
          catch(Exception e1) {
               System.out.println(e1);
               return "error";
//For Getting User Name
public String getUserName(String userId,String passWord)
String userName=null;
try
con=getCon();
st=con.createStatement();
     rs=st.executeQuery("select userName from login_table where userName='"+userId+"' and passWord='"+passWord+"'");
     while(rs.next())
          userName=rs.getString(2);
     return userName;
     catch(Exception e)
     System.out.println("getUserName:"+e);
     return "hiii";
}

Similar Messages

  • Having trouble interpretting a javabean error in a jsp

    I have used servlets before and now i am learning jsps. The hard part is comprehending the errors. the line numbesr to don't match up to what is in my files.
    how do i read this? I don't even have any code on line eleven of my JSP?
    what is myscript6_jsp.java:61? that looks like a line number. line number to what? Is this an error in the generated servlet?
    I'm using tomcat 4.1.30
    this is how i called the bean:
    <jsp:useBean id="AddressBook" class="iAddressBook" />
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /rgaffurihw6.jsp
    Generated servlet error:
        [javac] Compiling 1 source file
    C:\Tomcat_new\work\Standalone\localhost\myJSPApp\myscript6_jsp.java:61: cannot resolve symbol
    symbol  : class AddressBook
    location: class org.apache.jsp.hw6_jsp
          AddressBook AddressBook = null;
          ^
    An error occurred at line: 11 in the jsp file: /rgaffurihw6.jsp
    Generated servlet error:
    C:\Tomcat_new\work\Standalone\localhost\myJSPApp\rgaffurihw6_jsp.java:63: cannot resolve symbol
    symbol  : class AddressBook
    location: class org.apache.jsp.rgaffurihw6_jsp
            AddressBook = (AddressBook) pageContext.getAttribute("AddressBook", PageContext.PAGE_SCOPE);
                                   ^

    i worked a little more and now i'm getting the following error when i run the jsp:
    javax.servlet.ServletException: class myPackage.AddressBook : java.lang.InstantiationException: myPackage.AddressBookI also tried compiling the generated servlet and got this:
    C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:6: package org.apache.jasper.runtime does not exist
    import org.apache.jasper.runtime.*;
    ^
    C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:18: cannot resolve symbol
    symbol  : class HttpJspBase
    location: class org.apache.jsp.hw6_jsp
    public class hw6_jsp extends HttpJspBase {
                                         ^
    C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:66: cannot resolve symbol
    symbol  : method getClass ()
    location: class org.apache.jsp.hw6_jsp
                myAddressBook = (myPackage.AddressBook) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "myPackage.AddressBook");
                                                                                             ^
    3 errors
    Tool completed with exit code 1

  • JSP : Tiles Error �tag.getAsString� : component context is not defined

    JSP : Tiles Error �tag.getAsString� : component context is not defined
    I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
    My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:

    javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax

    I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
    What am I missing???
    I have created a series of �mostly� empty JSP files, for simplicity sake.
    JSP FILES:
    -     header.jsp
    -     footer.jsp
    -     menu.jsp
    -     rootLayout.jsp
    -     user.jsp
    -     show_user.jsp
    -     error.jsp
    -     defaultContentPage.jsp
    All JSP files contain:
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    and

    <title>
    <tiles:getAsString name="title"/>
    </title>

    My �tiles-defs.xml�: =================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <!-- ================ RootLayout ======================= -->
    <definition name=".root.layout" path="/jsp/rootLayout.jsp" >
    <put name="title" value="Default title"/>
    <put name="header" value="/jsp/header.jsp"/>
    <put name="menu" value="/jsp/menu.jsp"/>
    <put name="content" value="/jsp/defaultContentPage.jsp"/>
    <put name="footer" value="/jsp/footer.jsp"/>
    </definition>
    <!-- ================ Extentions ======================= -->
    <!-- User -->
    <definition name=".view.user" extends=".root.layout">
    <put name="title" value="Welcome to the User Form."/>
    <put name="content" value="/jsp/user.jsp"/>
    </definition >
    <!-- Save -->
    <definition name=".view.save" extends=".root.layout">
    <put name="title" value="Welcome to the Show User Form."/>
    <put name="content" value="/jsp/show_user.jsp"/>
    </definition >
    <!-- Error -->
    <definition name=".view.error" extends=".root.layout">
    <put name="title" value="Error Message."/>
    <put name="content" value="/jsp/error.jsp"/>
    </definition >
    </tiles-definitions>
    My �struts-config.xml�: ==============================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- ========== FormBeans =================================== -->
    <form-beans>
    <form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
    </form-beans>
    <!-- ========== Action Mapping Definitions=================== -->
    <action-mappings>
    <!-- Action using normal forward syntax...
    <action path="/user"
    forward="/jsp/user.jsp">
    </action>
    -->
    <!-- Action using a "Tiles" forward syntax...
    The "forward" path mappings are defined in a file named
    "../WEB-INF/tiles-defs.xml
    -->
    <action path="/user"
    forward=".view.user">
    </action>
    <!-- Action using normal forward syntax...
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path="/jsp/show_user.jsp"/>
    <forward name="failure" path="/jsp/error.jsp"/>
    </action>
    -->
    <!-- Tiles syntax -->
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path=".view.show_user"/>
    <forward name="failure" path=".view.error"/>
    </action>
    </action-mappings>
    <!-- ============== Global Forwards ======================== -->
    <global-forwards>
    <!-- NOTE: paths with "." syntax are Tiles defined paths,
    all other paths follow conventional "/path/to/file.jsp syntax
    -->
    <forward name="user" path=".view.user"/>
    <forward name="show_user" path=".view.show_user"/>
    <forward name="error" path=".view.error"/>
    <forward name="cssBase" path="/stylesheets/common.css"/>
    </global-forwards>
    <!-- ============= Plug-ins =============== -->
    <!-- Tiles Plug-in -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
    <set-property property="definitions-parser-validate" value="true" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    </struts-config>
    My �web.xml�: =====================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
    <servlet>
    <!--
    MyController extends org.apache.struts.action.ActionServlet
    NOTE: The servlet could also be specified specifying the
    default Struts ActonServlet...
    <servlet-name>controller</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    ...I have chosen to extend here just for practice sake.
    -->
    <!--
    <servlet-name>MyController</servlet-name>
    <servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
    -->
    <servlet-name>MyController</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <!--
    Point to Struts configuration file(s)
    -->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- Tiles config -->
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <!-- This is the added Application parameter: -->
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResource</param-value>
    </init-param>
    <!-- end -->
    <load-on-startup>5</load-on-startup>
    </servlet>
    <!--
    All incoming requests that end in .do, send to MyController.
    -->
    <servlet-mapping>
    <servlet-name>MyController</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!--
    Send initial requests to the login page for this application
    -->
    <welcome-file-list>
    <welcome-file>/jsp/user.jsp</welcome-file>
    </welcome-file-list>
    <!--
    Make all of the necessary related Struts JSP custom tag libraries
    available and define where to find them.
    -->
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
    </taglib>
    </web-app>
    My �rootLayout.jsp�: ================================================
    <%@page contentType="text/html"%>
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    <html>
    <header>
    <title>
    <tiles:getAsString name="title" />
    </title>
    <body>
    <tiles:get name="header"/>
    <tiles:get name="menu"/> <tiles:get name="content"/>
    <tiles:get name="footer"/>
    </body>
    </html>

    I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
    tiles:def file:
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name=".petstore.Base" path="/common/petstorecommon.jsp">
    <put name="title" value ="${title}"/>
    <put name="header" value="/common/header.jsp"/>
    <put name="message" value="/common/message.jsp"/>
    <put name="content" value="${content}"/>
    <put name="navbar" value="/common/navbar.jsp"/>
    </definition>
    <definition name="petstore.Login" extends=".petstore.Base" >
    <put name="title" value="Login Page" />
    <put name="content" value="/Logon.jsp"/>
    <put name="test1" value="test1value"/>
    </definition>
    base tile def:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html:html>
    <head>
    <html:base/>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>pet store common (jsp)</title>
    </head>
    <body>
    <tiles:insert attribute="header">
    <%-- both of these attributes are accessible from header.jsp It works!!! --%>
    <tiles:put name="title" beanName="title" beanScope="tile" />
    <tiles:put name="test1" beanName="test1" beanScope="tile" />
    </tiles:insert>
    <%-- <tiles:get name="header" /> --%>
    <tiles:get name="message" />
    <tiles:get name="content" />
    <tiles:get name="navbar" />
    </body>
    </html:html>
    Getting access to the title value in the header.jsp file:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <html>
    <head>
    <tiles:getAsString name="title" />
    <tiles:getAsString name="test1" />
    </head>
    <body>
    </body>
    </html>

  • JSP compilation errors in weblogic 6.1

              I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              Full compiler error(s):
              error: Invalid class file format:
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:34: Class
              com.ford.redherring.model.PropertiesAttributesModel not found in import.
              import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 64]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              not found in import.
              import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 68]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              not found in import.
              import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 69]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              not found in import.
              import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 70]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:41: Class
              com.ford.redherring.model.DDValidationModel not found in import.
              import com.ford.redherring.model.DDValidationModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 71]
              

    This appears to be a CLASSPATH problem (you are missing references to
              'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
              CLASSPATH may be set in the server startup script. Hope this helps.
              Wade.
              "Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
              > I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              >
              > ----------------------------------------------------------------------------
              > ----
              > Full compiler error(s):
              > error: Invalid class file format:
              >
              >
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:34: Class
              > com.ford.redherring.model.PropertiesAttributesModel not found in import.
              > import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 64]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              > not found in import.
              > import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 68]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              > not found in import.
              > import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 69]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              > not found in import.
              > import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 70]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:41: Class
              > com.ford.redherring.model.DDValidationModel not found in import.
              > import com.ford.redherring.model.DDValidationModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 71]
              

  • How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4

    Hi There,
    I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
    When I try to see a JSP, if it has an error (compilation-time error), I get this message:
    <--->
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    <--->
    This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
    Help anyone?
    Thank You
    Pinho

    This kind of errors often come from syntax error in
    the jsp page.
    Tomcat is not very friendly with this kind of errors.
    A trick is to open the java file under the 'work'
    directory and checkIsn't there any way to show the error on a page, just like a run-time error?
    Maybe changing some log setting?

  • JSP Debbuging -Error: 'class' or 'interface' expected-

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

  • Javelin JSP compilation error

    Hello Everyone,
    I've a some JSP's that work some times and fail sometime with
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    I tried restarting the server, removing .wlnotdelete and couple of other things.
    Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
    Can anyone please help.
    ~ALAPATI

    I'm using bea weblogic 8.1 SP5.
    Java - jrockit81sp5_142_08
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO THE FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    >
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    2 errors javelin complaining is because of this.
    1) I'm trying to access MyClass.SHOW_ME_TEXT
    2) I'm trying to create an object of AnotherClass by new AnotherClass();
    Please let me know if you want more details.

  • JSP - prefix error - need resolution

    Hi all (Charles, Todd, Mike & others),
    @ the ND4 to iPlanet migration project, we have failed to get the JSP
    loaded in iPlanet. The exception displayed in the KJS follows below.
    We are not sure what this implys and how to resolve it (Does it
    require a setting in the deployment tool? or maybe something
    completely different). So, if you could help us better interprete it..
    Thanks,
    Ali..
    Consultant,
    iRise Inc.
    [25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
    Failed in compiling template:
    /aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
    Descriptor not found for prefix : {0}
    Exception Stack Trace:
    java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
    at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
    at com.netscape.jsp.JSP.parseAt(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava
    (Unknown Source)

    Thanks for the info.
    I made necessary modifications and it worked!
    Ali..
    P.S: I'd confused between /WEB-INF.. & WEB-INF...
    --- In [email protected], "Charles Beckham"
    <charles.beckham@s...> wrote:
    Ali,
    I have seen this error before, it means that it can not resolve the taglibs,
    make sure you
    are not including the jato package (which also includes the taglib
    classes)..the jato package
    should be copied to the APPS directory...also make sure you specified the
    taglib info in the
    war descriptor....the description should be uri : /WEB-INF/jato.tld and
    Loacation: /WEB-INF/jato.tld..
    and finally make sure when you added the jato.tld to the war file it is in
    the root of WEB-INF or in
    other words it should resolve to WEB-INF/...
    If you have any more questions I could have a look at you war file and give
    you some ideas...let me know
    and I'll give you an upload ftp site...
    Cheers
    Charles Beckham
    -----Original Message-----
    [Charles Beckham]
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071048">Todd.Fast@S...</a>]
    Sent: Wednesday, October 25, 2000 9:10 PM
    Subject: Re: [iPlanet-JATO] JSP - prefix error - need resolution
    Ali--
    @ the ND4 to iPlanet migration project, we have failed to get
    the JSP
    loaded in iPlanet. The exception displayed in the KJS follows below.
    We are not sure what this implys and how to resolve it (Does it
    require a setting in the deployment tool? or maybe something
    completely different). So, if you could help us better interprete it..
    >>
    [25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
    Failed in compiling template:
    /aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
    Descriptor not found for prefix : {0}
    Exception Stack Trace:
    java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
    at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
    at com.netscape.jsp.JSP.parseAt(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJavaI don't have any significant application deployment experience in iAS, but
    it looks like the taglib descriptor declared in the JSP isn't being found.
    I believe the error message should be "Descriptor not found for prefix:
    jato".
    I can't offer any specific help other than to refer you to Appendix B of
    the
    Migration Survival Guide, which has a walkthrough of deployment of an app
    in
    iAS.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...
    eGroups Sponsor
    [email protected]
    [Non-text portions of this message have been removed]

  • JSP Exception Error

    This is my Programe
    <html>
    <head>
    <title>JSP JavaMail Example </title>
    </head>
    <body>
    <%@ page import="java.util.*" %>
    <%@ page import="p1.*" %>
    <%@ page import="javax.mail.*" %>
    <%@ page import="javax.mail.internet.*" %>
    <%@ page import="javax.activation.*" %>
    <%
    out.println("hello");
    String host="smtp.gmail.com";
    String to = request.getParameter("to");
    String from = request.getParameter("from");
    String subject = request.getParameter("subject");
    String messageText = request.getParameter("body");
    out.println("hello");
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.host", host);
    props.put("mail.smtp.auth", "true");
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.starttls.enable","true");
    Session mailSession = Session.getDefaultInstance(props, "");
    mailSession.setDebug(sessionDebug);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setText(messageText);
    Transport.send(msg);
    out.println("Mail was sent to " + to);
    out.println(" from " + from);
    out.println(" using host " + host + ".");
    %>
    </body>
    </html>
    When I Run this It gives following error
    Please help me
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    MimeMessage cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message.RecipientType.TO cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Transport cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    MimeMessage cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message.RecipientType.TO cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Transport cannot be resolved
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs

    Maybe print out from the exceptions in the conexionBD directly, even do a printStackTrace. Since the exceptions are encapulated it is hard to tell. Your setup for the database looks good. Not sure about class loading this way and how it will pool. I would suggest using the JNDI capability available from the context administration of Tomcat.

  • Javax.servlet.ServletException: javax.servlet.jsp.JspException, error while doing workflow tutorial

    Hi All,
    I am getting this error at this step of tutorial. Please help.
    To apply the workflow to the Product of the Day page:
    1.Open the Product of the Day page in edit mode. If the page is still open from a previous procedure, reload it.
    2. In Sidekick, click the Workflow tab and select the Product of the Day workflow. Click Start Workflow.
    3. Open the Inbox page. (http://localhost:4502/libs/cq/workflow/content/inbox.html)
    4. Select the Step 1 item for the Product of the Day content, and click Open.The form1 page opens.
    At this step i am getting the below error.
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script body.jsp
    Please help

    Not sure which workflow tutorial you are reffering. The stack trace in log should tell you what is exactly wrong.

  • JSP Compile Error when using dynamic ID in logic:iterate and bean:size

    Hello,
    I try to create a dynamic table with logic:iterate and bean:size tag. Dynamic means the attributes are written by scriptlet. Eg.:
    <logic:iterate id="customerBean" name="<%= formName %>"  property="<%= propertyName%>" length="<%= sRowSize%>">When I replace the id Attribute with propertyName I get compile errors, such as
    the compiler doesn't know the value at runtime:
    Unable to compile class for JSP An error occurred at line: 179 in the jsp file: /pages/formContent.jsp Generated servlet error: _newCustomer.java:1046: Missing term. java.lang.Object <%= propertyName %> = null; ^
    Whats wrong ?
    Thanks for your help

    Solution: don't use a runtime expression for the id attribute.
    The id attribute is used to declare
    - an attribute in scope
    - a scriptlet variable on the page
    These are only available for the duration of the <logic:iterate> tag
    The "id" is only used in your programming. You don't need to make it dynamic.

  • Javax.servlet.jsp.JspException: Error: IOException while writing to client!

    Hi
    I have deployed a WAR file successfully on
    standalone( win os) / 10AS server Rel2 ( Linux )
    But some times I get this Error ONLY on 10AS server Rele 2
    "javax.servlet.jsp.JspException: Error: IOException while writing to client!"
    Plz can some body tell me why am i getting this error.
    Is this a J2ee Container Problem?
    with regards
    Karthik

    Hi Form
    Plz some body explain me why am i getting this error not so frequently
    with regards
    Karthik

  • Jsp:useBean error.

    Under webapps\CustSys\web-inf\classes, I have save my CIS.class file. Is this the rite way to access the java class file : doReport() is a function inside the class file.
    Inside test2.jsp:
    <jsp:useBean id="report" scope="application" class="CIS"/>
    <html>
    <%report.doReport();%>
    </html>
    the following error appear:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:41: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    CIS report = null;
    ^
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:43: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    report = (CIS) pageContext.getAttribute("report", PageContext.APPLICATION_SCOPE);
    ^
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:46: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    report = (CIS) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "CIS");
    ^
    3 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         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)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)
    pls help identify wat's the error. thanks

    You will have to put the CIS class in a package and provide the fully qualified class name pkg.CIS in your useBean defintion
    cheers,
    ram.

  • Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- nu

    When I deploy WAR files with the precompile jsp option, I receive the following error:
    Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- null
    Is there a way for me to precompile my jsp's without using this process? Once this blows up, the admin server gets hosed. This is very frustrating. Any suggestions would be appreciated.
    Regards,
    Joshua

    You need little more memory :-), use java param -mx512M.
    You can adjust it in OC Server properties
    AS > OC4J_home(demo) > Server Properties
    section Multiple VM Configuration, Command Line Options
    Java Options: -mx512M
    Zajo

  • Weblogic 9 and JSP compiler errors

    Hello everyone,
              I am having problems with my Jsps in my EAR file deployed on WL 9.0.
              I have a Jsp called upms.jsp that contains the following code snippets:
              After my import statements, I have some code that creates a resource bundle that accesses a properties file:
               <%!
                   ResourceBundle bundle = null;
                   public void jspInit() {
                   bundle = ResourceBundle.getBundle("conf.properties");
              %>
              I get an error from the above code:
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
                        import="java.util.ResourceBundle"
              ^----------------------^
              I am totally clueless as to what that error means.
              Next I declare a bean I use in the jsp:          
                   <jsp:useBean
                        id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
                   scope="session">
                   </jsp:useBean>
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              I get these errors from the above portion:
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Has anyone encountered these before?
              This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
              Is there something I am missing here? I appreciate any help.
              Cheers, :-)
              M.

    Mildred,
              Two suggestions:
              1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
              servlet's source code.
              Please paste it here.
              2) Can you create a simple reproducer(e.g. a war), and put it here, so that
              we can debug it and give more clues.
              To reproduce your issue, I write a simple a simple
              UserPreferencesManagerBean classs below :
              package controllers.beans;
              public class UserPreferencesManagerBean {
              private int p1;
              public void setP1(int p)
              p1 = p;
              public int getP1()
              return p1;
              But it works(oh, I run it under 910MP1).
              We cannot tell too much without your further information
              Thanks
              Leon
              <Mildred A> wrote in message news:[email protected]...
              I am still fighting with this issue.. Dang!
              I don't know what to change in my JSP because the WL JSP compiler errors are
              so out there..
              Here is the first portion of the JSP file:
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
              session="true"
              pageEncoding="ISO-8859-1"
              import="java.util.ArrayList"
              import="java.util.HashSet"
              import="java.util.Date"
              import="java.util.Collections"
              import="java.util.ResourceBundle"
              %>
              <%!
              ResourceBundle bundle = null;
              public void jspInit() {
              bundle = ResourceBundle.getBundle("conf.properties");
              %>
              <jsp:useBean
              id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
              scope="session">
              </jsp:useBean>
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              Below is the error I get from this section alone (after precompiling):
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
              import="java.util.ArrayList"
              ^-----------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found 'catch' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Can anyone see what I am doing wrong here? ?:| ?:|
              Cheers,
              M

Maybe you are looking for

  • Sun ONE Portal Server on Windows

    I've heard that the initial release for Sun One Portal Server will be available only in Solaris, but the Windows and Linux version are in the works and scheduled to be released during the first half of 2003. Anybody can confirm this issue? When will

  • Error in Business Object bus2000126

    Hello all, i have given a workflow issue, in customer interaction center. The issue is " When A OS Tech support case is created in business activity ( crmd_bus2000126 ), the case is open, and this case is assingned to a person ( field-assigned to) an

  • DRIVE 10 vs DISK WARRIOR. Emergency Measures

    I have a drive that I think is having a bit of an identity crisis. Not sure if the drive is the source of the problem but the symptoms are manifesting themselves on the drive. It's a 300GB Western Digital and is running on an external enclosure. I'm

  • AppStudion, Facebook intergration image is very poor.

    I think that you can see it by yourself just try to create an app with some Facebook page integration and run it on the phone. Boom! Image quality is very poor. How to improve it? It's been a year that this hasn't been fixed yet. Want to create Fanta

  • EPM server 2010 task page - "An unknown error has occurred"

    Hi All, Please note that I am using EPM server 2010. We have created various set of task in MPP and have saved and published it. Once the user login with his/her credential to EPM 2010 account. He/She can see assigned task in her timesheet. After ent