Help needed..Unable to acess JSP page..

          Hai!
          I started Admin Server and Managed Server. When i tried to acess jsp page that
          is deployed in the default webapplication of Managed server , In the log file
          of Managed Server It is adding AdminServer to the Client list and application
          hangs(Nothing will be displayed in browser..Neither error message nor Desired
          page ). I am wondering why this is happening as Admin server is neither participating
          in a cluster nor is the Target for default webapplication of Managed server .
          Any help?
          TIA
          Rgds
          Manohar
          

First check whether a simple jsp file with just "Hello World" is running or not.
If it is running than my guess is that the library you are importing in JSP is not getting imported.
This could be because your library is not in your classpath when you are deploying the application, check that in you ear file, WEB-INF/lib folder for this.
Basically you will try several things out to get to source of error.
all the best.

Similar Messages

  • Unable to Acess JSP Page

    Hi,
    I am new to NWDS. I have created a webapplication and accesning the web service in my jsp code.
    i deployed the application in Server. I am getting the following exception.
    Details:   com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
      Error compiling [/Myjsp.jsp] of alias [sampleweb] of J2EE application [sap.com/samplewebEAR].
    Exception id: [001A4B4A48CE0046000003AD00001BE400045B8C3C2C589C]
    Could you please let me know the why it so.
    I got the result in webservice. I need to print the same in web application.
    The code i mensioned in jsp is
    <%@ page language="java" import = "com.intelli.ess.proxy.*" %>
    try
                        Testessws service = new TestesswsImpl();
                        TestesswsViDocument stub = service.getLogicalPort();
                        stub._setProperty(TestesswsViDocument.USERNAME_PROPERTY,"j2ee_admin");
                        stub._setProperty(TestesswsViDocument.PASSWORD_PROPERTY,"Intelli1");
                        out.write("-result-"+stub.details("1691"));
                   }catch(Exception e)
                        out.write("ErrorMessageIn"+e.getMessage())
    I have added all the supported jar files in lib directory.
    Please let me know the solution.
    Thanks in advance.
    Thanks,
    Ram

    First check whether a simple jsp file with just "Hello World" is running or not.
    If it is running than my guess is that the library you are importing in JSP is not getting imported.
    This could be because your library is not in your classpath when you are deploying the application, check that in you ear file, WEB-INF/lib folder for this.
    Basically you will try several things out to get to source of error.
    all the best.

  • Need help passing variables to another jsp page

    I am working in a shopping cart with multiple lines and I am wanting to pass 2 variables to another page which is accessed from a link.
    What I have so far is the following:
    This is on the shopping cart JSP page with the link
    <input type="hidden" name="shopCartReqDate1<%=i%>" id="shopCartReqDate1<%=i%>" value="<%= retVals[9] %>">
    <input type="hidden" name="shopCartExpDate1<%=i%>" id="shopCartExpDate1<%=i%>" value="<%= retVals[10] %>">
    Need it Earlier?
    I am wanting to pass it to the HAC_Help_Text_Need_it_Earlier.jsp page
    Right now on the HAC_Help_Text_Need_it_Earlier.jsp page I have the following code:
    String shopCartReqDate1 = IBEUtil.nonNull(request.getParameter("shopCartReqDate1"));
    String shopCartExpDate1 = IBEUtil.nonNull(request.getParameter("shopCartExpDate1"));
    Do I need to create a function and do a document.getElementById?
    Thanks for the help!

    As far as I understand your question You don't have to use document.getElementById. Just submit the form and then on the next page You'll just pull the variables out from the request object.

  • Need Dynamic Table in JSP page

    Hi Friends,
    I need to build table dynamically in my JSP page.
    My requirement like:
    I have a Button in my JSP page when i click that it should go to another jsp where it will ask me the row and column counts, after i entered some values then i have a button to say OK it should go to the first page again there i want the table for the rows and columns dynamically.
    (like MS- Word when u create table it will ask the row count and column count after that its building a table)
    Please help me....

    Make use of JSTL's c:forEach.

  • Help fowarding data to a jsp page

    I know your not meant to double post but i was told it would be better if i post this message in here so:
    I am trying to create a bean that will connect to a database and bring back data depending on what a user typed into a html form. However i need some help, if the database does not find any data i want to send a message saying something like "no results" to a jsp page which then be displayed, if results are found i then want to pass on these results to another jsp page.
    My question is how would i pass on this data / message to a jsp page? Also if more then one piece of data is returned from the database how would i be able to make sure everything is sent to the jsp?

    In the above code a Servlet, a JavaBean, JDBC and everything else is combined into just one class. That is not how it is.
    A Servlet is a Servlet --- it is not a JavaBean ---- So create a dedicated class that is purely a Servlet and does what a Servlet is supposed to do. Taking the tutorial on Servlets will help you understand them better.
    A JavaBean is a JavaBean ---- it is not a Servlet --- Create a JavaBean class.
    Move the Database Connection code to the Data Access Layer --- this means create separate classes that are meant to only access data.
    It is better to learn each individual concept before attempting something more complex.
    Also build small code into your class, ---- understand what it's doing then compile it frequently.
    I'll give you hints on how you should properly implement an MVC pattern.
    JSP Page
    This page contains an HTML form , with form fields and a submit button.
    In the action attribute of the form you will specify the URL-pattern for the Servlet.
    The URL-pattern for the servlet will be defined in web.xml , for example
    <form action="/MyFirstServlet" method="post" >
    </form>Then create a Servlet , in its package , so for example
    com.myapp.servlet.MyFirstServlet.java
    Place the servlet file in a proper folder structure in the Java source folder.
    When the Servlet it compiled it needs to go under the corresponding folder structure under your applications /WEB-INF/classes/ folder.
    Your servlet will look something like this:
    package com.myapp.servlet.MyFirstServlet;
    //All import statements go here
    public class MyFirstServlet extends HttpServlet{
       public void doGet(HttpServletRequest request, HttpServletResponse response) throws ......... exceptions {
            doPost(request, response);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ......... exceptions {
            //Process the request here
    request.getAttribute("someFormField");
    //similarly get all form fields
    //Store all fields into a JavaBean
    //Then call a method that saves the data to database
    saveToDatabase(pass the javabean here);
    private void saveToDatabase(SomeJavaBean someJavaBean){
        //Over here call a DataAccessObject -- DAO that saves the data
       // to the database.
    /WEB-INF/web.xml
    When you write a servlet you need to define it in web.xml and define a URL mapping also for it in web.xml
    JavaBean example
    com.myapp.beans.Person.java
    package com.myapp.beans.Person;
    //whatever import statements (if any) go here
    public class Person{
    private int age;
    private String firstName;
    public Person(){} //Every JavaBean must have a default constructor
    //Write the Getters and Setters for the private fields above.
    //in proper JavaBeans notation as follows
    public void setAge(int age){
      this.age = age;
    public int getAge(){
       return this.age;
    //Similarly write getter and setter for firstName
    }You would then use the above JavaBean to transport data between the database layer and JSP layer via the Servlet.
    If you are Saving to the Database , you read the HTML form's data and save it into one JavaBean and then pass the JavaBean to the database layer to be saved. In the Database layer you write JDBC code to save the data.
    If you are Reading from the database, you create an ArrayList of JavaBean objects in the database layer using JDBC code and then pass the ArrayList to the Servlet which stores it in the Request, then the servlet forwards control to the JSP which then reads the data from the request.
    Most of the above is pseudo code, it is just there to give you an idea about how do this properly in MVC --- you can then read tutorials on each of the above --- for example tutorial on Servlet, tutorial on JDBC, tutorial on Java Classes and then understand them more.

  • Cant connect jsp with mysqlserver..help needed from person in jsp on linux

    hii,
    I have installed mysql on linux 7.x.This was installed during installation of linux.From the shell prompt i can go inside mysql and can successfully execute all query statements.
    Now have downloaded mm.mysqljdbc driver(i.2c) and installed it,set the classpath in .bash_profile,sh file
    Everything ,including Tomcat Apache server is running fine
    But i am unable to connect a jsp page to mysql database.
    A error message "server configuration denies access to datasource " is coming .
    My code is like this
    <%
    String username-"root"
    String password="sdctest"
    %>
    <% try
    class.forname("org.gjt.mm.mysql.Driver");
    java.sql.Connectioncon= java.sql.DriverManager.getConnection("jdbc:mysql://localhost/products"username,password);
    then opening recordset ....
    Error is coming in the second line while establishing connection.
    Here i would like to mention that username and password is the username and password of the root user in LInux.
    Now i mm confused what username and password will have to be used in JSP.Because i did nt have to specify any username or password while entering mysql.
    If my problem is clear,somebody please help...all jobs stuck.

    Try doing it without the username and password, otherwise create a new user in MySQL.

  • Need to create a JSP page that informs user how many SMSes are sent.

    Hello again ,
    My project , which is based on a web-based group SMS module is working , but unfortunately when I send out the group SMS to the selected group , the notification of the sending of SMS is only made visible in the Apache Tomcat status screen . For every SMS sent , the Apache Tomcat screen will display that the SMS is sent to this phone number and recipient number out of the maximium number of recipients.
    How can I make a JSP page that would allow me to display these messages instead ? Any help and advice would be welcomed .
    Cheers
    Seiferia

    The simple way would be to just write a simple jsp that takes the output of the class and displays it. A JSP is nothing more than a servlet class, so you can use your existing classes inside it. If you want to do it the correct way, you should use taglibs to build the JSP. It's up to you.
    I suggest buying a good book about JSP's and read that first, else you may be a little overwhelmed.

  • Need to refresh the jsp page

    Hello Everyone,
    I am not sure if I can tackle the below issue with just html or I need to control it throught my servlet, so posting it on this forum, in case it is a pure html issue, please let me know.
    So here is the current situation:
    My jsp page gets data from servlet and displays it in a html table. The fields are criteria, median, average...cells of average, median etc are color coded, green, yellow or red, depending on whether the criteria is met or not.
    on wish list:
    I want the column "criteria" to be of text type so that the user can change the criteria value and see what effect does it have on the colors of columns "average", "median" etc. I do not want to write this changed criteria value back to db, I just want my jsp page to refresh every time user changes value in criteria text box and recalculate the color code for the rest of the columns.
    Here is what my jsp page looks like
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib uri="http://paginationtag.miin.com" prefix="pagination-tag"%>
    <html>
    <body>
      <table border="1">
        <c:forEach items="${sheetDataList}" var="releaseData">
        <tr>
          <td align="center"><input type="text" name="newcriteria" value="${releaseData.releasecriteria}" size="25"></td>
          <c:set var="yellowmark" value="${0.25*releaseData.releasecriteria+releaseData.releasecriteria}"/>
          <c:choose>
            <c:when test="${releaseData.average lt releaseData.releasecriteria}">
              <td bgcolor="green" align="center"><c:out value="${releaseData.average}"/></td>
            </c:when>
            <c:when test="${releaseData.average lt yellowmark}">
              <td bgcolor="yellow" align="center"><c:out value="${releaseData.average}"/></td>
            </c:when>
            <c:when test="${releaseData.average gt yellowmark}">
              <td bgcolor="red" align="center"><c:out value="${releaseData.average}"/></td>
            </c:when>
          </c:choose>
      </table>
    </body>
    </html>Thanks.

    I don't know what you are doing wrong in your code, but it seems like you are calling the JS function correctly. My feeling is there is some JS error occurring, maybe use a javascript debugger or some alerts to see where the problem is. I made as close a copy of your code I could (with some improvised improvements for keeping track of row counts and accessing the the values for the first 2 columns of the table). At the top I filled to Lists with data so I could cycle through the rows and columns. Then I do the JavaScript and the CSS, followed by the table generation.
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%
        java.util.List<java.util.List<luke.steve.RowObject>> sheetDataList = new java.util.ArrayList<java.util.List<luke.steve.RowObject>>();
        for (int r = 0; r < 10; r++) {
            java.util.List<luke.steve.RowObject> userActionData = new java.util.ArrayList<luke.steve.RowObject>();
            for(int c = 0; c < 5; c++) {
                 userActionData.add(new luke.steve.RowObject());
            sheetDataList.add(userActionData);
        request.setAttribute("sheetDataList", sheetDataList);
    %>
    <html>
      <head>
        <script type="text/javascript">
        <!--
          function setAllColors() {
            var currentRow = 1;
            var row = null;
            while((row = document.getElementById("row"+currentRow)) != null) {
              setColors(currentRow);
              currentRow++;
          function setColors(currentRow)
            var criteria = document.forms[currentRow-1].criteria.value;
            var yellowLine = 1.25 * criteria;
            var row = document.getElementById("row"+currentRow);
            var currentCol = 2;
            do {
              var col = row.cells[currentCol];
              var colValue = col.innerHTML * 1;
                   if (colValue <= criteria)  col.className = "green";
              else if (colValue < yellowLine) col.className = "yellow";
              else                            col.className = "red";
              currentCol = currentCol + 1;
            } while(row.cells[currentCol] != null);
        //-->
        </script>
        <!-- Make the clock look the way you want it to. -->
        <style type="text/css">
          .green
           background-color: green;
          .red
            background-color: red;
          .yellow
            background-color: yellow;
        </style>
        <title>Color Switcher</title>
      </head>
      <body onload="setAllColors();" onunload="">
        <table border="1">
          <tbody>
            <c:forEach var="userActionData" items="${sheetDataList}" varStatus="rowCounter">
              <tr name="row${rowCounter.count}" id="row${rowCounter.count}">
                <td>${userActionData[0].userAction}</td>
                <td><form onsubmit="setColors(${rowCounter.count}); return false;"><input name="criteria" type="text" value="${userActionData[0].releaseCriteria}"/></form></td>
                <c:forEach var="releaseData" items="${userActionData}" varStatus="colCounter">
                  <td>${releaseData.ninetyPercentile}</td>
                </c:forEach>
              </tr>
            </c:forEach>
          </tbody>
        </table>
      </body>
    </html>I made a dummy class called luke.steve.RowObject to hold the data (represents on releaseData object). The class just generates a bunch of random numbers for this test:
    package luke.steve;
    public class RowObject {
         public Integer getReleaseCriteria() {
              return Double.valueOf(Math.random()*500.0).intValue();
         public Integer getNinetyPercentile() {
              return Double.valueOf(Math.random()*500.0).intValue();
         public String getUserAction() {
              return "Action "+Double.valueOf(Math.random()*10.0).intValue();
    }In this example it works in FF3 and IE7 (though it looks nicer in FF3).

  • Urgent: Unable to run JSP pages(using JRun Custom Tags) in Weblogic 5.1

    Hi,
    I am using JRun Custom tags to bulid JSP pages.
    Could not run the jsp page on Weblogic 5.1.
    I could run the same on JRun Server but not on Weblogic?.
    Had placed JRuntags.jar in the web_inf directory.
    What/where i need to update in properties file?.
    Please reply..
    Best Wishes.
    Satish k.Yalamaddi.

    javax.servlet.ServletException: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)
    This is your problem either your tomcat or eclipse is pointing to a wrong jre
    here the problem is you are trying to run a code that was compiled using j2sdk1.5 in j2sdk1.4

  • Help with Jtext fields on JSP page?

    Hi All,
    How can I collect an integer on a JSP page from user input?
    I am looking to vallidate the user input also thought about vallidating using HTML then passing/casting the input to a Java variable for further manipulation on the page.
    I cannot use response.encodeUrl for this.
    Effectively what I would like to do is replicate what a JTextField with an action listener would do to retrieve user input in a desktop Java application.
    Any ideas and help would be welcome.
    regards
    Jim Ascroft

    Hi All ,
    I propbably didnt put my questions all that well.
    So I wil try to be more specific.
    1.How can I collect an integer on a JSP page from user input?
    I am looking to vallidate the user input. I thought about vallidating using HTML then passing/casting the input to a Java variable for further manipulation on the page.
    I cannot use response.encodeUrl for this.
    2.I understand that my Java helper classes are compiled into .class files and then used by the JSP page as required. Also the Java code within the <% %> Java tags is recognised and runs .
    So if the java between the <% %> tags can be compiled and used why can other Java components eg Swing or AWT not be used in the same way?
    Effectively what I would like to do is replicate what a JTextField with an action listener would do to retrieve user input in a desktop Java application.
    Any ideas and help would be welcome.
    regards
    Jim Ascroft

  • Any body help me in writing a JSP page

    I want to write a JSP page through which i can store the downloaded file in to client machine please help me fast

    Hi,
    Thanks, My question i can't do that thing by using a JSP file, I am not getting that any body can give me the code for a JSP file. I am not getting by using this code-------
    s1=request.getParameter("text");
    URL url = new URL("s1");
    URLConnection connection = url.openConnection();
    InputStream stream = connection.getInputStream();
    BufferedInputStream in = new BufferedInputStream(stream);
    FileOutputStream file = new FileOutputStream("result.txt");
    BufferedOutputStream os = new BufferedOutputStream(file);
    int i;
    while ((i = in.read()) != -1) {
    os.write(i);
    Its giving some Internal error
    When I am specifying some url like "http://www.sun.com" in the place of s1 its not showing any error but its not opening that page.
    Pleaseeeeeeeee give me some solution for this
    Thanks In advance

  • Help need to know about JSP-RMI connection

    Hi All...
    Can anyone send me any tutorial/link about JSP-RMI connection. I need to access a RMI server object from JSP page.Is it possible?
    Looking for your responds.....

    Hi ...
    I didn't get any reply from any one....
    Is it possible to make Java Server Pages and RMI work
    together -sure, jsp's can make requests to servlets which can then talk to remote objects, then a response can be sent back down to the jsp
    to invoke a method on a server object from a JSP? And
    if, does
    someone know of a good tutorial, article etc., on
    this matter?hmm, Google, JSP Tutorial, RMI Tutorial, etc.

  • Help with buttons on a JSP Page

    Hi All,
    I have a HTML page , that has certain text fields.... on entering values into the text fields, it is directed to a servlet.
    The servlet(puts the values into the database) then directs to a jsp with the values entered in the form.
    I would like to know whether on the jsp page i can have 2 buttons like "edit" and "OK".
    (how do I code it???)
    The "edit" button edits the information on the initial HTML page and
    The "OK" button just confirms the inputted information.
    I hope I have asked a clear question.It would be great if someone directs me in the right direction.
    Thanking everyone in advance
    AS

    I hope I've understood your question correctly. Let
    me see if I got it right. So the first page is the
    form, where the user inputs the information, the
    second page will display this information that they
    inputted from the previous page and then have two
    buttons, one that says edit and the other that says
    ok. Upon hitting edit they're sent back to the form
    with the values already filled out, if they hit OK,
    the data is inserted into the database. If this is
    correct, this is how I would do it.
    You will have 3 files
    parameters.jsp
    <%
    String firstname =
    = request.getParameter("firstname");
         String lastname = request.getParameter("lastname");
    %>form.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
              <form action="confirmation.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit">
              </form>
         </body>
    </html>confirmation.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
    <!-- the action of this form will be the page that
    at inserts the data into the database -->
              <form action="insertintodb.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="OK">
              </form>
              <form action="form.jsp" method="post">
    <input type="hidden" name="firstname" value="<%=
    <%= firstname %>">
    <input type="hidden" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="Edit">
              </form>
         </body>
    </html>
    Hi,
    Thanks a lot for the information.I will try to do as you have suggested.Will post when i go into problems...
    Many thanks
    AS

  • Help With Integrating Servlet and JSP Page?

    Hello There
    --i made jsp page that contain name and description fields and add button
    --and i made servlet that contain the code to insert name and description in the database
    --and i want to make that when the user hit the add button
    -->the entered name and description is sent to the servlet
    and the servlet sent them to database?
    here's what i 've done:
    the jsp code:
    <html:html locale="true">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>
            Categories Page
           </title>
            <html:base/>
        </head>
        <body style="background-color: white">
        <form action="jpage.jsp" method="get">
            <h1>
                <center>
    categories Operations
                </center>
            </h1>
            <h3>
                 <label>Name</label>
            <input type="text" name="name" value="" size="10" />
                 <label>Description</label>
             <input type="text" name="description" value="" size="10" />
             <input type="submit" value="Add" name="button" />
           </h3>
       </form>
        </body>
    </html:html>the servlet code:
    import java.io.*;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.net.*;
    class NewServlet1 extends HttpServlet{
         Connection conn;
         private ServletConfig config;
    public void init(ServletConfig config)
      throws ServletException{
         this.config=config;
    public void service (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
       HttpSession session = req.getSession(true);
       res.setContentType("text/html");
    try{
         Class.forName("com.mysql.jdbc.Driver");
       conn = DriverManager.getConnection("jdbc:mysql://localhost/struts", "root", "");
         PreparedStatement ps;
       ps = conn.prepareStatement ("INSERT INTO categories (Name, Description) VALUES(?,?)");
          ps.setString (1, "aa");
          ps.setString (3, "bb");
          ps.executeUpdate();
          ps.close();
          conn.close();
      }catch(Exception e){ e.getMessage();}
      public void destroy(){}
    }

    The JSP Code:
    <html:html locale="true">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>
            Categories Page
           </title>
            <html:base/>
        </head>
        <body style="background-color: white">
        <form action="actionServlet.do?action=Additem" method="*post*">
            <h1>
                <center>
    categories Operations
                </center>
            </h1>
            <h3>
                 <label>Name</label>
            <input type="text" name="name" value="" size="10" />
                 <label>Description</label>
             <input type="text" name="description" value="" size="10" />
             <input type="button" value="Submit">
           </h3>
       </form>
        </body>
    </html:html>The Servlet Code:
    import java.io.*;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.net.*;
    public class NewServlet1 extends HttpServlet implements SingleThreadModel {
        public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException {
            doPost(request,response);
        public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException {
              String action = request.getParameter("action"); // action = "Additem"
              if (action.equals("Additem")) {
                   String name = request.getParameter("name");
                   String description = request.getParameter("description");
                         RequestDispatcher reqDisp = null;
                   try{
                  Connection conn;
                  PreparedStatement ps;
         Class.forName("com.mysql.jdbc.Driver");
       conn = DriverManager.getConnection("jdbc:mysql://localhost/struts", "root", "");
       ps = conn.prepareStatement ("INSERT INTO categories (Name, Description) VALUES(?,?)");
          ps.setString (1, name);
          ps.setString (3, description);
          ps.executeUpdate();
          ps.close();
          conn.close();
          reqDisp= request.getRequestDispatcher("./index.jsp");
          reqDisp.forward(request, response);
                   catch (Exception ex){
                        System.out.println("Error: "+ ex);
    }The web.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <init-param>
                <param-name>debug</param-name>
                <param-value>2</param-value>
            </init-param>
            <init-param>
                <param-name>detail</param-name>
                <param-value>2</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
            </servlet>
        <servlet>
            <servlet-name>NewServlet1</servlet-name>
            <servlet-class>NewServlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>NewServlet1</servlet-name>
            <url-pattern>/NewServlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
            </welcome-file-list>
            <servlet>
         <servlet-name>actionServlet</servlet-name>
         <servlet-class>com.test.servlet.NewServlet1</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>actionServlet</servlet-name>
         <url-pattern>*.do</url-pattern>
    </servlet-mapping>
        </web-app>

  • Appserver unable to Compile JSP pages

    Hello
    I have deployed a webapplication on SunONE application server installed on a SunOS 5.8 box. When I try to access any page , I keep getiing errors indicating that the page could not be compiled. An attempt to compile the page seperately using the javac installed with the App server however succeeds.
    The errors I get are as shown. The same webapp runs fine when installed on SunONE application server installed on Windows 2000 machine. Any help would be greatly appreciated
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 175 in the jsp file: /filesfolders/process_parameters.jsp
    Generated servlet error:
    /actu01/appserver7/appserv/instances/server1/generated/jsp/j2ee-modules/ap/_jasper/_filesfolders/_index_jsp.java:1962: Variable jbs may not have been initialized.
    bFilter = jbs.isDocChanFiltersEnabled();
    ^
    An error occurred between lines: 175 and 176 in the jsp file: /filesfolders/process_parameters.jsp
    Generated servlet error:
    /actu01/appserver7/appserv/instances/server1/generated/jsp/j2ee-modules/ap/_jasper/_filesfolders/_index_jsp.java:1970: Variable bFolders may not have been initialized.
    boolean bEmptyRS = !(bFolders || bExecutables || bDocuments);
    Thanks
    -Aniruddha

    I am having a similar problem on Windows 2000. Servlets run but jsp's all hit this error. Here is a copy of the log:
    [15/May/2003:07:40:16] INFO ( 1924): CORE1116: Sun ONE Application Server 7.0^M
    [15/May/2003:07:40:20] INFO ( 1924): CORE5076: Using [Java HotSpot(TM) Server VM
    , Version 1.4.1_01] from [Sun Microsystems Inc.]^M
    [15/May/2003:07:40:35] INFO ( 1924): JMS5023: JMS service successfully started.
    Instance Name = domain1_server1, Home = [C:\tools\as7se\imq\bin].^M
    [15/May/2003:07:40:40] INFO ( 1924): JTS5014: Recoverable JTS instance, serverId
    = [100]^M
    [15/May/2003:07:40:41] INFO ( 1924): RAR5060: Install JDBC Datasources ...^M
    [15/May/2003:07:40:41] INFO ( 1924): RAR5059: Binding [JDBC DataSource Name: jdb
    c/jdbc-simple, Pool Name: PointBasePool]^M
    [15/May/2003:07:40:42] INFO ( 1924): JMS5015: Install JMS resources ...^M
    [15/May/2003:07:40:44] INFO ( 1924): WEB0100: Loading web module [webapps-simple
    ] in virtual server [server1] at [webapps-simple]^M
    [15/May/2003:07:40:48] INFO ( 1924): HTTP3072: HTTP listener http-listener-1 [ht
    tp://LINDENBERGR-LT01:80] ready to accept requests^M
    [15/May/2003:07:40:48] INFO ( 1924): CORE3274: successful server startup^M
    [15/May/2003:07:40:48] INFO ( 1924): CORE5053: Application onReady complete.^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: java.lang.ClassFormatE
    rror: sun/tools/java/Parser (Illegal constant pool index)^M
    [15/May/2003:07:42:53] SEVERE ( 1924): StandardWrapperValve[jsp]: Servlet.servic
    e() for servlet jsp threw exception^M
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322
    )^M
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)^M
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)^M
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(St
    andardWrapperValve.java:720)^M
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrap
    perValve.java:118)^M
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperVa
    lve.java:278)^M
    at java.security.AccessController.doPrivileged(Native Method)^M
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:274)^M
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)^M
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:212)^M
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)^M
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:203)^M
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)^M
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProce
    ssor.java:157)^M
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)^M
    ^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.defineClass0(Native Method)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.defineClass(ClassLoader.java:502)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
    .SecureClassLoader.defineClass(SecureClassLoader.java:123)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.defineClass(URLClassLoader.java:250)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.access$100(URLClassLoader.java:54)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader$1.run(URLClassLoader.java:193)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
    .AccessController.doPrivileged(Native Method)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.findClass(URLClassLoader.java:186)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClass(ClassLoader.java:299)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.misc.Laun
    cher$AppClassLoader.loadClass(Launcher.java:265)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClass(ClassLoader.java:255)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClassInternal(ClassLoader.java:315)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.defineClass0(Native Method)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.defineClass(ClassLoader.java:502)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
    .SecureClassLoader.defineClass(SecureClassLoader.java:123)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.defineClass(URLClassLoader.java:250)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.access$100(URLClassLoader.java:54)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader$1.run(URLClassLoader.java:193)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
    .AccessController.doPrivileged(Native Method)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
    lassLoader.findClass(URLClassLoader.java:186)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClass(ClassLoader.java:299)^M
    @[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.misc.Laun
    cher$AppClassLoader.loadClass(Launcher.java:265)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClass(ClassLoader.java:255)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
    ssLoader.loadClassInternal(ClassLoader.java:315)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.tools.jav
    ac.BatchEnvironment.parseFile(BatchEnvironment.java:453)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.tools.jav
    ac.Main.compile(Main.java:486)^M
    [15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at org.apache.ja
    sper.compiler.SunJavaCompiler$JavacTask.run(SunJavaCompiler.java:240)^M
    Thanks,
    Bob

Maybe you are looking for

  • How can i use my iPod Touch as an External drive on my mac?

    Hi, I was trying to copy some videos form my mac to my ipod touch but the videos were to big to email. Any ideas? Thanks

  • Syncing from an iPod

    I have 2 iPods and 1 iTouch, and they were initially synced to other computers that I legitimately owned but that are now dead (crashed). Is there a way I can sync them to my present computer so that I can have the music that I purchased from the iTu

  • Functions in File ring popup position should be improved

    Hello, one of the welcome new features of CVI2013 is the ring control Functions in File in the toolbar allowing to quickly jump to a function. Unfortunately, if there are several functions in a file, "quickly" is limited: In this case the ring contro

  • When are Redolog files reset to zero size? Manual reset possible?

    As far as I know redolog files contain all stuff which is changed during operation of an Oracle database. However I wonder if there are events when these files are AUTOMATICALLY reset to zero. I guess it is when I do a full offline backup. Is this co

  • Anybody know where the default templates are stored?

    I'd like to access the location where the default templates are stored. I've checked in: "Macintosh HD/Library/Application Support/Logic" but did not find anything. I see that user templates are in: "Macintosh HD/Users/PROFILE/Library/Application Sup