Jsp program on tomcat

I am having trouble with a simple jsp program on tomcat. I have one Java bean class that the jsp cannot find. It is in the classes directory under WEB-INF. I have tried it with and without my web.xml file and I get the same error.
org.apache.jasper.JasperEXception:  Unable to compile class for JSP:
An error occurred at line: 5 in the jsp file: processFormData.jsp
The import Inn cannot be resolved
<%@page language="java"%>
<%@page import="Inn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiional//EN />"
<jsp:useBean id="inn" scope="request" class="Inn"/>
<jsp:setProperty name="inn" property="*" />Julie

Thanks. I'm not sure I understand why, but that was the problem.

Similar Messages

  • How To Run JSP program On Tomcat

    I have Installed Tomcat 6 and Jdk 6
    and have following enviroment variable as written in readme
    CATALINA_HOME = c:\apache
    JAVA_HOME = C:\java\jdk1.6.0_04
    JRE_HOME=C:\Program Files\Java\jre1.6.0_04
    CLASSPATH = c:\java\jdk1.6.0_04\bin
    PATH=C:\Java\jdk1.6.0_04\bin
    the code is following
    <%@page language="java" contentType="text/html"%>
    <html>
    <head><title>Hello World not-so-dynamic HTML</title></head>
    <body>
    Hello World!
    </body>
    </html> file name simple.jsp saved to C:\apache\webapps\ROOT
    says 404 status
    have tried index.html it works
    so please tell me where's the problem
    i think its in the enviroment variable
    Thank for Reading
    AND
    Thanks A lot For helping (In advance)

    hi,
    check your filename once..
    simple.jsp
    or
    simple.JSP
    check in url too. correctly mention or not..

  • Not able to run a JSP file in Tomcat 5.5

    Hello friends i am new to JSP programming.
    I recently designed a application to enter values of certain field in a database (Using SQL Server Database)
    i used a file name Register.jsp, so when the action is performed by clicking submit button it use to call another file named Register_DB.jsp in which database insertion is performed this 2nd file includes another .java file which is actually creating the JDBC ODBC connection drivers
    but whenever i use to run the programme using tomcat-5.5 i use to get certain error as below ------------------->
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to load class for JSP
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:591)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: org.apache.jsp.Registration_jsp
         java.net.URLClassLoader$1.run(Unknown Source)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(Unknown Source)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         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.9 logs.
    Apache Tomcat/5.5.9***********************************************************************************************************
    So can anybody tell me what should i do to resolve this error
    here is the code what i have written
    File Name Registration.jsp
    <!--     *****     File Name Test.jsp     *****     -->
    <%@ import="Login.connectionBean" %>
    <%@ language="java" %>
    <%@ import="java.io.*" %>
    <%@ import="java.sql.*" %>
    <%@ import="javax.sql.*" %>
    <jsp:useBean id="sq" scope="page" class="Login.connectionBean" type="connectionBean"/>
         <jsp:setProperty name="sq" property="*"/>
    <html>
    <!-- DW6 -->
         <head>
              <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
              <title>Registration Form</title>
         </head>
         <body>
              <form name="Test" action="Registration_DB.jsp" method="get">
                   <table width="100%" border="0">
                     <tr>
                        <td colspan="5"></td>
                     </tr>
                     <tr>
                        <td width="10%" height="250"></td>
                        <td width="90%" colspan="4"><div align="center">
                          <table width="437" border="1">
                               <tr>
                                  <td><div align="center">User ID </div></td>
                                  <td> </td>
                                  <td><div align="center">
                                         <input name="User_ID" type="text" size="25" maxlength="25" />
                                  </div></td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td> </td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td width="149"><div align="center">User name </div></td>
                                  <td width="27"> </td>
                                  <td width="239"><div align="center">
                                       <input name="User_Name" type="text" size="25" maxlength="25" />
                                  </div></td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td><div align="center"></div></td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td><div align="center">Password</div></td>
                                  <td> </td>
                                  <td><div align="center">
                                        <input name="Password" type="text" size="25" maxlength="25" />
                                       </div>
                                  </td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td> </td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td><div align="center">
                                    <input name="Button_Reset" type="reset" value="Reset Fields" />
                                  </div></td>
                                  <td> </td>
                                  <td><div align="center">
                                       <input name="Button_Submit" type="reset" value="Submit Details" />
                                                   <%
              String User_Id=request.getParameter("User_Id")
              String User_Name="";
              String Password="";
              %>
              <%
              try
              sq.connect();
              if(user_Id!==null && User_Id!="")
              ResultSet rs2.sq.execQuery("select User_Name FROM User_Login where User_Id='"+User_Id+"'");
              catch(Exception e)
                   out.println("Exception Caught" +e);
                   e.printStackTrace();
              %>
                                       </div></td>
                               </tr>
                               </table>
                        </div></td>
                     </tr>
                   </table>
              </form>
         </body>
    </html>***********************************************************************************************************
    File Name Registration_DB.jsp
    <!--     *****     File Name Test_DB.jsp     *****     -->
    <%@ language="java" %>
    <%@ import="Login.connectionBean" %>
    <%@ import="java.sql.*" %>
    <%@ import="javax.sql.*" %>
    <%@ import="java.io.*" %>
    <jsp:useBean id="sq" scope="page" class="Login.connectionBean" type="connectionBean"/>
         <jsp:setProperty name="sq" property="*"/>
    <html>
         <head>
              <title>Untitled Document</title>
         </head>
    <body>     
              <%
              String Button_Submit = request.getParameter("Button_Submit");
              String User_Id = request.getParameter("User_Id");
              String User_Name = request.getParameter("User_Name");
              String Password = request.getParameter("Password");
              %>
              <%!
              ResultSet rs1=null;
              ResultSet rs2=null;
              %>
              <%
              try
                   sq.connect();
                   if(Button_Submit!=null && Button_Submit!="")
                        String qry="INSERT INTO User_Login (User_Id, User_Name, Password) VALUES('"+User_Id+"','"+User_Name+"','"+Password+"')";
                        int i=sq.executeUpdae(qry);
                        if (i>0)
                             response.sendRedirect("Registration.jsp");
              catch(Exception e)
                   out.println("Exception Caught" +e);
                   e.printStackTrace();
    %>
         </body>
    </html>***********************************************************************************************************
    File name connectionBean.java
    package Login;
    import java.sql.*;
    public class connectionBean
         private Connection con;
         public connectionBean()
              super();
         public boolean connect() throws ClassNotFoundException, SQLException
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               con=DriverManager.getConnection("jdbc:odbc:JAVA"," "," ");
               return true;
         public void close() throws SQLException
              con.close();
         public ResultSet execQuery(String qry) throws SQLException
              Statement stmt=con.createStatement();
              ResultSet rs=stmt.executeQuery(qry);
              return(rs==null)?null:rs;
         public int execUpdae(String qry) throws SQLException
              Statement stmt=con.createStatement();
              int i=stmt.executeUpdate(qry);
              return(i==0)?0:i;
    }

    hi
    here the problem is tat the server culdnt find the class for u page,
    check u hav deployed it properly or not,
    check the tomcat installation and is it working fine,
    regards
    venkat

  • I am not able to run JSP program

    hi
    I have done some jsp programs. i have installed tomcat 5. but when i tries to
    execute jsp program it gives error as " Unable to get jstl ". it is not getting jasper-comppile.jar file.
    Please any one can tell me how to specify path for jasper-compile.jar
    thanking you

    Set the proper classpath.
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Configuration

  • Can anyone clarify my doubt in a simple JSP Program ?

    when we write a simple jsp program such as helloworld.jsp does a
    class file or servlet be created when we run the jsp program using a
    web browser and Tomcat ? if so please tell the folder(path) in tomcat
    where this class file will be located or stored .Thankq

    JSPs will (usually) be compiled into class files representing Servlets, yes. But that's something that happens internally inside the application server and shouldn't concern you.
    Why would you need to know where it resides? It seems like a code smell if you need that information.
    If you're just curious, then look into the work directory of your tomcat.

  • How to run jsp program

    is i can able to run my jsp program by using appache server..

    To get JSP working in Apache HTTP Server you have to install Apache Tomcat.
    You can either choose to run JSP's solely on Apache Tomcat, or to use mod_jk2 to link Apache HTTP Server with Apache Tomcat so that the Apache HTTP Server can forward the JSP requests to the Apache Tomcat engine, because the Apache HTTP Server really doesn't know how to compile/run JSP's.

  • Problem in running a jsp page on tomcat 5.0

    hi....
    i made a java class abc.java and then compiled it to get a java class file named abc.class in a package named pkg.
    Then i copied this package in the classes folder of the WEB-INF folder in tomcat 5.0.
    After that i created a jsp page in which i imported this class file. Now when i run the jsp page on tomcat 5.0 i get an error saying this:
    javax.servlet.ServletException: pkg/abc (Unsupported major.minor version 49.0)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.UnsupportedClassVersionError: pkg/abc (Unsupported major.minor version 49.0)
         java.lang.ClassLoader.defineClass0(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1214)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Can anyone please tell me the solution to this problem?
    thanks

    This post:
    http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200408.mbox/%[email protected]ys.com%3E
    Leads me to believe that you're compiling and targeting a java version that your tomcat installation doesn't support. What version of the JDK are you using?
    Good Luck
    Lee

  • What are the mistake in this JSP program?

    Hi,all. I am a newcomer to learn JSP, and I sincerely hope somebody help me. the following is a JSP program, and I want it extract data from my database and show them on webpage as XML. But there always have some mistakes I cann't found it. Could somebody help me find out them and tell me how to correct. Thanks veeeeeeeeeeeery much!
    <%@ page contentType = "text/xml" %>
    <%@ page language="java" %>
    <%@ page import = "java.sql.* " %>
    <%@ page import = "java.io.* " %>
    <%@ page import = "javax.xml.parsers.DocumentBuilder" %>
    <%@ page import = "javax.xml.parsers.DocumentBuilderFactory" %>
    <%@ page import = "org.w3c.dom.Document" %>
    <%@ page import = "org.w3c.dom.Element" %>
    <%@ page import = "org.w3c.dom.Node" %>
    <%@ page import = "org.w3c.dom.NodeList" %>
    <%@ page extends = "Object"%>
    <html>
    <head><title>Searching Page</title></head>
    <body>
    <p><INPUT size=22 name=T1></p>
    <p><INPUT type=submit value=OK name=B3></p>
    <% Document retailerDoc = null;
    Document dataDoc = null;
    Document newDoc = null;
         try {
         DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docbuilder = dbfactory.newDocumentBuilder();
         retailerDoc = docbuilder.parse("RetailerXmlExtract.xml");
                   //Instantiate a new Document object
                   dataDoc = docbuilder.newDocument();
                   //Instantiate the new Document
                   newDoc = docbuilder.newDocument();
              }catch(Exception e){}
              //Retrieve the root element
              Element retailerRoot = retailerDoc.getDocumentElement();
              //Retrieve the (only) data element and cast it to Element
              Node dataNode = retailerRoot.getElementsByTagName("data").item(0);
              Element dataElement = (Element)dataNode;
              String driverName = "sun.jdbc.odbc.JdbcOdbcDriver";
              String connectURL = "jdbc:odbc:Retailer";
              Connection db = null;
              try{
                   Class.forName(driverName);
                   db = DriverManager.getConnection(connectURL);
                   catch(ClassNotFoundException e){}
                   catch(SQLException e){}
              //Create the PreparedStatement
              PreparedStatement statement = null;
              //Create the Resultset object, which ultimately holds the data retrieved
              ResultSet resultset = null;
              //Create the ResultSetMetaData object, which will holds
              //information about the ResultSet
              ResultSetMetaData resultmetadata = null;
              //Create a new element called "data"
              Element dataRoot = dataDoc.createElement("data");
              try{
                   statement = db.prepareStatement("SELECT * FROM Orders");
                   //Execute the query to populate the ResultSet
                   resultset = statement.executeQuery();
                   //Get the ResultSet information
                   resultmetadata = resultset.getMetaData();
                   //Determine the number of columns in the ResultSet
                   int numCols = resultmetadata.getColumnCount();
                   //Check for data by moving the cursor to the first record(if there is one)
                   while(resultset.next()){
                        //For each row of data, create a new element called "row"
                        Element rowEl = dataDoc.createElement("row");
                        for(int i = 1; i <= numCols; i++){
                             //For each colum index, determine the column name
                             String colName = resultmetadata.getColumnName(i);
                             //Get the column value
                             String colVal = resultset.getString(i);
                             //Determine if the last column accessed was null
                             if(resultset.wasNull()){
                                  colVal = "and up";
                             //Create a new element with the same name as the column
                             Element dataEl = dataDoc.createElement(colName);
                             //Add the data to the new element
                             dataEl.appendChild(dataDoc.createTextNode(colVal));
                             //Add the new element to the row
                             rowEl.appendChild(dataEl);
                        //Add the row to the root element
                        dataRoot.appendChild(rowEl);
              catch(SQLException e){}
              finally{
                        try{
                             db.close();
                             }catch(SQLException e){}
              //Add the root element to the document
              dataDoc.appendChild(dataRoot);
              //Retrieve the root element (also called "root")
              Element newRootInfo = (Element)retailerRoot.getElementsByTagName("root").item(0);
              //Retrieve the root and row information
              String newRootName = newRootInfo.getAttribute("name");
              String newRowName = newRootInfo.getAttribute("rowName");
              //Retrive information on element to be built in the new document
              NodeList newNodesRetailer = retailerRoot.getElementsByTagName("element");
              //Create the final root element with the name from the file
              Element newRootElement = newDoc.createElement(newRootName);
              //Retrieve all rows in the old document
              NodeList oldRows = dataRoot.getElementsByTagName("row");
              for(int i=0;i<oldRows.getLength();i++){
                   //Retrieve each row in turn
                   Element thisRow = (Element)oldRows.item(i);
                   //Create the ner row
                   Element newRow = newDoc.createElement(newRowName);
                        for(int j=0;j<newNodesRetailer.getLength();j++){
                             //For each mode in the new mapping, retrieve teh information
                             //First the new information........
                             Element thisElement = (Element)newNodesRetailer.item(j);
                             String newElementName = thisElement.getAttribute("name");
                             //Then the old information
                             Element oldElement = (Element)thisElement.getElementsByTagName("content").item(0);
                             String oldField = oldElement.getFirstChild().getNodeValue();
                             //Get the original values based on the mapping information
                             Element oldValueElement = (Element)thisRow.getElementsByTagName(oldField).item(0);
                             String oldValue = oldValueElement.getFirstChild().getNodeValue();
                             //Create the new element
                             Element newElement = newDoc.createElement(newElementName);
                             newElement.appendChild(newDoc.createTextNode(oldValue));
                             //Retrieve list of new elements
                             NodeList newAttributes = thisElement.getElementsByTagName("attribute");
                             for(int k = 0;k<newAttributes.getLength();k++){
                                  //For each new attribute, get the order information
                                  Element thisAttribute = (Element)newAttributes.item(k);
                                  String oldAttributeField = thisAttribute.getFirstChild().getNodeValue();
                                  String newAttributeName = thisAttribute.getAttribute("name");
                                  //Get the original vale
                                  oldValueElement = (Element)thisRow.getElementsByTagName(oldAttributeField).item(0);
                                  String oldAttributeValue = oldValueElement.getFirstChild().getNodeValue();
                                  //Create the new attribute
                                  newElement.setAttribute(newAttributeName, oldAttributeValue);
                             //Add the new element to the new row
                             newRow.appendChild(newElement);
                        //Add the new row to the root
                        newRootElement.appendChild(newRow);
                   //Add the new root to the document
                   newDoc.appendChild(newRootElement);
              try{
                   out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                   out.ptintln("<!DOCTYPE orders SYSTEM \"RetailerXml.dtd\">");
                   out.println(newRootElement.toString());
              } catch(IOException e) {}
    %>
    </body>
    </html>

    it reminded that there were some mistakes when i run this JSP program,so it must have something wrong, but due to my weak programming skills, I can not found these mistakes out. That must give me very useful help if you tell me how to solve them. thank you vrey much!

  • Help needed in executing the java/jsp program from UCM .

    Hi ,
    I have a .jsp program running in my Jdeveloper which when executed pops a window to browse and select files and with few custom options .
    But i want to execute that Program from within UCM (create a new jsp page in UCM OR provide link ? i am not sure .... ) , could anyone help on how i can execute/run the program from UCM ?
    thanks in Advance
    Plaxman

    If your jsp makes use of jars you may want to look into using a WAR instead. You can check the WAR into content server and there is even a link on the administration page for JSP Web App Admin. Treating the JSP(s) and jar(s) as an entity may be a more successful path for you.
    You can find some jsp examples and ever a war example in this directory: <install root>\samples\JspServer
    And the briefest of help about that stuff here: [http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm|http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm]

  • How to send mail using jsp program

    am very new to jsp and doing my final year project. i need to send mails using my jsp program.can anyone say wht to do that is wht to include to send mails using jsp program. n also a sample code to send mail using jsp program.
    Thanx in advance

    Use below script.
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Properties props = new Properties();
    props.put("mail.smtp.host", "mailserver.com");
    Session s = Session.getInstance(props,null);
    InternetAddress from = new InternetAddress("[email protected]");
    InternetAddress to = new InternetAddress([email protected]");
    MimeMessage message = new MimeMessage(s);
    message.setFrom(from);
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Your subject");
    message.setText("Your text");
    Transport.send(message);
    %>{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to execute CGI Programs in Tomcat Server

    Hi,
    I am working on executing Perl Scrtipts(or CGI programs) in Tomcat Server.
    I have downloaded ActivePerl 5.8.0 6.0.3 build.I have modified some .jar files in tomcat\server\lib.
    I have changed conf\web.xml to access the CGIServlet.class that is in servlets-cgi.jar.
    My example.cgi is
    #!c:\Perl\bin\perl.exe
    print
    "Content-type: text/plain\n\n";
    foreach $var (
    sort keys %ENV) {
    print
    "$var=\"$ENV{$var}\"\n";
    @values = split(
    /&/,$ENV{'QUERY_STRING'});
    foreach $i (@values) {
    ($varname, $mydata) = split(
    /=/,$i);
    print "$varname = $mydata\n";
    and my test.html is
    <HTML>
         <HEAD>
              <TITLE>Environment Variables using GET</TITLE>
         </HEAD>
         <BODY>
              <FORM ACTION="cgi-bin/example.cgi" METHOD="POST">
                   Press submit for a list of environment variables. <BR>
                   First Name: <input type="text" name="fname" size=30><p>
                   Last Name: <input type="text" name="lname" size=30><p>
                   <input type="submit">
              </FORM>
         </BODY>
    </HTML>
    here I have changed url mapping in web.xml to cgi-bin.
    The test.html produces two text fields first and last name on submit:
    it accesses:http://localhost:8080/smalltownpapers/cgi-bin/example.cgi?fname=Tim&lname=Eden
    this should print some environmental variables but it is producing an empty page.
    Tomcat is not showing any errors or Tomcat is not at all listening.
    Can any one help me to solve this and how to execute Perl scripts in Tomcat server
    Thanks,
    Regards
    Murthy

    Sorry, I've never done this. I went to the Tomcat site and pulled down the CGI docs, which you might have seen:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
    No other help available from me. Sorry.

  • Problem on reload a JSP file in Tomcat 3.3.1

    I have a problem about Tomcat 3.3.1
    I am developing a JSP application,
    but Tomcat not recompile the JSP file after i modify it.
    I need to "wait" the tomcat recompile it, so i can see the change.
    This make the development really difficult...
    Do I miss some important step on config Tomcat 3.3.1
    how to force it to detect a newer version JSP in every request ??
    Thanks

    I believe there is a way to configure Tomcat to do this, but I don't know what it is.
    Until someone can tell you the configuration steps, here is a workaround. Tomcat keeps the Java source and class files for your JSP code somewhere under its "work" directory. Find those files and delete them, which will force it to re-compile.

  • 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?

  • How to use debug my jdevloper devloped jsp applications using tomcat 4.0?

    hello,
    how to use debug my jdevloper devloped jsp applications using tomcat 4.0?
    how to run with using tomcat path with browser?
    can any one help?
    thanks
    pullareddy

    Hi Pullareddy,
    Charles' answer will work for Servlets in Tomcat, but debugging JSPs is a bit more complicated than debugging Servlets.
    Here's what you need to do:
    (I don't have Tomcat, so I don't know the details of Tomcat configuration files and I can't guarentee that Tomcat provides the flexibility so that you can configure it for debugging JSPs. Each application server is configured a bit differently. Hopefully you can adjust the following instructions to Tomcat.)
    1. You need to replace Tomcat's JSP engine with OJSP and you need to setup debugging parameters for OJSP.
    This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
    Here are some tips:
    A. You'll probably need to specify the following jars in some Tomcat config file: ojsp.jar, ojsputil.jar, xmlparserv2.jar, ojc.jar, and jdev-rt.jar.
    B. The OJSP class name is oracle.jsp.runtimev2.JspServlet.
    C. The debug parameters are:
    debug_mode = true
    developer_mode = true
    encode_to_java = true
    emit_debuginfo = true
    jspjavacompiler = oracle.jdevimpl.jsp.JspOjcCompiler
    2. You need to make Tomcat start the Java command with debugging options. (This is what Charles was talking about. One of the debug options is -XXdebug). This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode". Please read that documentation help topic.
    3. You need to delete any old .java or .class files which were created in the past for your JSP. If you leave old .java or .class files around, then the debugger may not be able to stop at breakpoints in your JSPs. So, be sure to clean up old files.
    4. Set your project settings for remote debugging. This is on the Debugger - Remote panel in the Project Settings dialog box. You probably want either Attach to OJVM or Attach to JPDA. Which radio button you choose depends on what command line options you specified in step 2.
    -Liz

  • How to call EJB deployed on websphere from JSP running on Tomcat?

    I am trying to establish communication between two app servers. I have a sample EJB deployed on Websphere and wish to call its business methods from a JSP page which is running on Apache Tomcat server. (ie) Tomcat is client to websphere. Is it possible to do? If so, what are the client Jar files of websphere that I should make available to JSP page on Tomcat? Do I need to set any Jars in Tomcat environment variables? Lood forward for your immediate help. Thanks in advance

    Please see the thread
    http://forum.java.sun.com/thread.jspa?threadID=514536.
    Hope that helps..

Maybe you are looking for

  • Published message could not be routed because no subscribers

    I have avery basic BT application , very simple Orchestration, Receiveshape, Transform shape and send shape. the schema is validated and generated an instance. Compiled the application, created 1 receive port and 1 send port which are bound tp the 2

  • Standby Database with Standard Edition

    Hi All, I'm attempting to setup a Standby database with Oracle 10g Standard Edition. I must manually copy over the archive logs to my Standby database server because i'm using Standard Edition. Once my primary database archive logs have been copied o

  • Using comments toolbar

    I cannot underline or highlight my pdf's. I have Windows 7 and Acrobat 9 Pro free trial.

  • DDR records in ddm.box not processing and i see sql errors in log.

    Recently i notice that in my lab after CU2 was applied, No new DDR records are being processed. I get the error below in the ddm.log. Looks like a sql DB issue but I am still able to create collections and apply policies to existing client with out a

  • Xwin with solaris 10 installed in core mode

    Hello, I've installed the Solaris 10 in core mode. The problem is that I need to use the Xmanager software but i don't know which packages must be installed to run the Xmanager . Could someone help me. Thank you in advance Huy Nguyen