First JSP in WebLogic

Can anyone answer basic troubleshooting WebLogic question?
          My simple.jsp fails. Server creates _simple.java file, but no
          _simple.class throwing the following:
          java.lang.NumberFormatException: error=2 at
          java.lang.Integer.parseInt(Integer.java:409)
          at java.lang.Integer.parseInt(Integer.java:458)
          at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
          Code)
          at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at
          weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          Perhaps it happens on the way of compiling it. Why NumberFormat though?
          But I was able to manually compile
          _simple.java and then page
          worked. Can you suggest anything?
          Boris Garubuzov,
          Published at www.atop.com/privan,
          e-mail: [email protected],
          mailing address: PO Box 715, Seattle, Wa, 98111-0715, USA,
          residential address 616 NW 89 Street (corner of Greenwood Avenue),
          telephones: 206-374-1271 (office), 206-781-1895 (home).
          

send ur simple jsp code and also check that u have made the proper setting
          in the property files,
          i.e. the path of javac is right ,also the path of the directory where ur
          jsp's are translated in servlets is not in the weblogic classpath.
          Hope this helps
          Bye
          Parag B.Bhagwat
          Boris Garbuzov <[email protected]> wrote in message
          news:[email protected]...
          > Can anyone answer basic troubleshooting WebLogic question?
          > My simple.jsp fails. Server creates _simple.java file, but no
          > _simple.class throwing the following:
          > -----------------------------------
          > java.lang.NumberFormatException: error=2 at
          > java.lang.Integer.parseInt(Integer.java:409)
          > at java.lang.Integer.parseInt(Integer.java:458)
          > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
          > Code)
          > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          4)
          >
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :99)
          >
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          >
          > at
          >
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          >
          > at
          >
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          >
          > at
          >
          >
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247
          >
          > )
          > at
          >
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          >
          > at
          > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          >
          > ---------------------------------
          > Perhaps it happens on the way of compiling it. Why NumberFormat though?
          > But I was able to manually compile
          >
          > _simple.java and then page
          > worked. Can you suggest anything?
          >
          >
          > -------------------------
          > Boris Garubuzov,
          > Published at www.atop.com/privan,
          > e-mail: [email protected],
          > mailing address: PO Box 715, Seattle, Wa, 98111-0715, USA,
          > residential address 616 NW 89 Street (corner of Greenwood Avenue),
          > telephones: 206-374-1271 (office), 206-781-1895 (home).
          >
          >
          

Similar Messages

  • Problem JSP and WebLogic 5.1

    Hi!!!
    I have a problem that I�m trying to show some results of a table of a DB with a JSP...but I don�t obtain nothing like result,....I don�t know why...I would hope to see the information of my table, like a select of SQL.
    My code is:
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:Mypool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    stmt.execute("select * from cat_employee");
    ResultSet rs = stmt.getResultSet();
    while (rs.next()) {
    System.out.println(rs.getInt("key_1") + " - " + rs.getInt("key_2") + " - " + rs.getString("employee"));
    stmt.close();
    conn.close();
    %>
    Where cat_employee is the table name,
    key_1, key_2 are fields of cat_employee table, of type numeric
    employee is a field of cat_employee table, of type String
    I think that with getInt() method, I obtain a number and with getString() method, I obtain a string....but I haven�t the complete API documentation, only the following API link:
    http://www.weblogic.com/docs51/classdocs/javadocs/index.html
    And the information about getString() ang getInt() is very incomplete there, if somebody have information about a API complete I would be very thankful with you. I�m using weblogic 5.1 in my development enviroment.
    Thank you....

    Hi!!!
    (Your email direction doesn�t correct.....because my mail was returned to me....could you answer me to the following email: [email protected] please)
    Thank you to answer me......I was really worried.....because nobady had done that.....
    My problem is that I wish to do some queries to a table of a Municipalities DB, I have read about that....and according with the exemples....my JSP...should be running and executing very well....but I haven�t had success with that...:(
    My JSP file is:
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    stmt.execute("select * from cat_municipio");
    ResultSet rs = stmt.getResultSet();
    while (rs.next()) {
    System.out.println(rs.getInt("cve_municipio") + " - " + rs.getInt("cve_sepomex") + " - " + rs.getString("desc_municipio"));
    stmt.close();
    conn.close();
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>
    My result obtained is the following:
    Municipalities List
    Please call Mary with any updates ASAP!
    Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    I don�t obtain nothing.....is like DB table were without information......but in reality the DB table has information.....and I can obtain it with the following JSP:
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    // Fetch all records from the database in a TableDataSet
    DataSet dSet = new TableDataSet(conn, "cat_municipio").fetchRecords();
    TableElement tE = new TableElement(dSet);
    tE.setBorder(1);
    out.print(tE);
    } catch (SQLException sqle) {
    out.print("Sorry, the database is not available.");
    out.print("Exception: " + sqle);
    } catch (Exception e) {
    out.print("Exception occured: " + e);
    } finally {
    if(conn != null)
    try {
    conn.close();
    } catch(SQLException sqle) {}
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>
    and with this JSP I obtain all the following information:
    Municipalities List
    CVE_MUNICIPIO CVE_SEPOMEX DESC_MUNICIPIO
    1 1 ACAJETE
    2 2 ACATENO
    3 3 ACATLAN
    4 4 ACATZINGO
    5 5 ACTEOPAN
    Now...I need that the first JSP work very well, because...with that way...I can do queries and obtain the needed results for showing them in the Browser......
    So...I hope you understand me, and you could help me please, because I don�t have idea why I don�t obtain the results of a simple query that I am trying to do...thanks.....
    Mary
    P.D. I also attempted with the following JSP...but the result is the same....I don�t obtain none result...
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select CVE_MUNICIPIO, CVE_SEPOMEX, DESC_MUNICIPIO from cat_municipio");
    while (rs.next()) {
    System.out.println(rs.getInt(1) + " - " + rs.getInt(2) + " - " + rs.getString(3));
    rs.close();
    stmt.close();
    conn.close();
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>

  • Error while precompiling the JSP using weblogic 7.0

    Hi
    I am trying to precompile jsp file which is there in a war.Main jsp file code includes one more jsp which is there in other folder under defaultweb directory.
    While deploying the war i am getting the following error.Can any bosy help me in this regard
    <Nov 23, 2002 5:01:28 PM IST> <Error> <HTTP> <101045> <[ServletContext(id=464413
    3,name=ArkinTestWeb,context-path=/ArkinTestWeb-3)] translation of /Admin/account
    _access.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException
    : antlr.TokenStreamException: Could not include ./../includes/sessionStatusPage.
    jsp>
    <Nov 23, 2002 5:01:28 PM IST> <Error> <Deployer> <149201> <The Slave Deployer fa
    iled to complete the deployment task with id 1 for the application ArkinTestWeb.
    weblogic.management.ApplicationException: Prepare failed. Task Id = 5
    Module Name: ArkinTestWeb, Error: Could not load ArkinTestWeb: weblogic.utils.Ne
    stedException: ArkinTestWeb:ArkinTestWeb Failure while Precompiling JSPs: weblog
    ic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamExcepti
    on: Could not include ./../includes/sessionStatusPage.jsp - with nested exceptio
    n:
    [weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStream
    Exception: Could not include ./../includes/sessionStatusPage.jsp]
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:657)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:548)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:1026)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:700)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    >
    Regards
    Anand Mohan

    Hi
    All jsp pages are under one web application only.Can you help more on this.
    Regards
    Anand

  • Step by step details to deploy jsp in weblogic

    Hi,
    can any one give me a step by step details to deploy jsp in weblogic 7..
    i am abs new to EJBs and weblogic...
    thnx
    sai.

    sai krishna wrote:
    Hi,
    can any one give me a step by step details to deploy jsp in weblogic 7..
    i am abs new to EJBs and weblogic...
    thnx
    sai.Sai if you are completely new to this on WLS I would recommend reading:
    http://edocs.bea.com/wls/docs70/programming/index.html
    Then Possibly:
    http://edocs.bea.com/wls/docs70/webapp/index.html &&
    http://edocs.bea.com/wls/docs70/jsp/index.html
    You can also find more programming information here:
    http://edocs.bea.com/wls/docs70/programming.html
    HTH
    ~Ryan

  • Urgent. Unable to set up JSP in Weblogic server

              Hi,
              I wish to enable JSPs in the weblogic server. i went thru the bea documentation and
              added the following lines in hte weblogic.properties file :
              weblogic.httpd.documentRoot=XXX (The root directory for the jsps.
              weblogic.httpd.register.*.jsp=\ weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=1,\
              compileCommand=/opt/java1.2/bin/javac,\
              workingDir=XXX,\
              verbose =true
              After this, i started the weblogic. But apparently, it says that all the above properties are undeclared.
              I am not able to go further on this. Could anyone help me out on this.
              I am working on a HP machine.
              thanks in advance. prashant
              

    Hi,
              It is really hard to tell exactly what is going on without more information. If all you are using are JSPs, try
              removing the servlet classpath altogether. Put any helper classes into the weblogic classpath.
              Can you get one of the example JSPs working in your environment? This would be a good place to start just to verify
              that your environment is set up correctly.
              Can you post your JSP file that is not working?
              Hope this helps,
              Robert
              prashant wrote:
              > Good Morning.
              >
              > I just changed the path as you had said. now it stands as :
              >
              > weblogic.httpd.documentRoot=/sclNewArch/weblogic/pgupta/jsp
              >
              > workingDir=/sclNewArch/weblogic/pgupta/jspworkingdir
              >
              > weblogic.httpd.servlet.classpath=/sclNewArch/weblogic/pgupta/jspclass
              >
              > But still it gives the same error : javax.servlet.ServletException: Servlet class: could not be loaded - the reques
              > ted class wasn't found in the classpath
              >
              > Pleae help.
              >
              > Prashant
              >
              > Robert Patrick <[email protected]> wrote:
              > >1.) Do not make the working directory the same as the document root (or a subdirectory of the document root
              > >hierarchy).
              > >2.) Do not put the working directory in the servlet classpath.
              > >
              > >prashant wrote:
              > >
              > >> Hi,
              > >> Sorry, that was an error on my part while writing to this forum. i had actually done it correctly.
              > >> To tell you in more details, among other things, i have set the following parameters :
              > >>
              > >> weblogic.httpd.documentRoot=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> workingDir=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> weblogic.httpd.servlet.classpath=/sclNewArch/weblogic/pgupta/jsp
              > >>
              > >> Now, a small jsp that i made is in the same directory. When i try to run the directory with the following :
              > >> http://localhost:8013/a.jsp, it gives the error as given below. I am not able to understand what is the
              > >> problem, since my jsp is in the same directory where the class file is to be made.
              > >>
              > >> Please help.
              > >>
              > >> Thanks,prashant
              > >>
              > >> Fri Jan 05 17:31:45 CST 2001:<E> <ServletContext-General> Servlet failed with Ex
              > >> ception
              > >> javax.servlet.ServletException: Servlet class: could not be loaded - the reques
              > >> ted class wasn't found in the classpath
              > >> /sclNewArch/weblogic/pgupta/jsp
              > >> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              > >> mpl.java:299)
              > >> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > >> java:164)
              > >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > >> pl.java:99)
              > >> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > >> textImpl.java:742)
              > >> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > >> textImpl.java:686)
              > >> at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > >> ContextManager.java:247)
              > >> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > >> a:361)
              > >> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >>
              > >>
              > >> "Tamilselvan Ramasamy" <[email protected]> wrote:
              > >> >"\" means that property continue in the next line.
              > >> >
              > >> >so your changes as follows
              > >> >
              > >> >weblogic.httpd.documentRoot = /opt/app1/jspdir
              > >> >
              > >> >weblogic.httpd.register.*.jsp=\
              > >> > weblogic.servlet.JSPServlet
              > >> >weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=1,\
              > >> >compileCommand=/opt/java1.2/bin/javac,\
              > >> > workingDir=XXX,\
              > >> > verbose =true
              > >> >
              > >> >/selvan
              > >> >Captura Software Inc
              > >> >
              > >> >"prashant" <[email protected]> wrote in message
              > >> >news:[email protected]...
              > >> >>
              > >> >> Hi,
              > >> >>
              > >> >> I wish to enable JSPs in the weblogic server. i went thru the bea
              > >> >documentation and
              > >> >> added the following lines in hte weblogic.properties file :
              > >> >>
              > >> >> weblogic.httpd.documentRoot=XXX (The root directory for the jsps.
              > >> >>
              > >> >> weblogic.httpd.register.*.jsp=\ weblogic.servlet.JSPServlet
              > >> >> weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=1,\
              > >> >> compileCommand=/opt/java1.2/bin/javac,\
              > >> >> workingDir=XXX,\
              > >> >> verbose =true
              > >> >> After this, i started the weblogic. But apparently, it says that all the
              > >> >above properties are undeclared.
              > >> >>
              > >> >> I am not able to go further on this. Could anyone help me out on this.
              > >> >>
              > >> >> I am working on a HP machine.
              > >> >>
              > >> >> thanks in advance. prashant
              > >> >
              > >> >
              > >
              

  • How to modify JSP on Weblogic without restarting a server

    Hello,
    Could someone explain how to modify JSP on Weblogic without restarting a server?
    We use WL 10.2.
    I search and modify required jsp on a server, but nothing happens on a Web Browser. I run in Development mode.
    Please advice,
    Thanks,
    Yuri

    Hi Yuri,
    As you are in Development mode you have one options to use the Auto Deploy folder which can be found in the following path (domain_name/autodeploy).
    More information on Auto Deployment check the below link:
    http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/autodeploy.html#wp1021626
    Other option is to use the following parameter "*page-check-seconds*" in your weblogic.xml file
    For more information check out the below link
    Topic: jsp-descriptor
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1038491
    Hope this helps you.
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Middleware Magic | Come, Join Us and Experience The Magic…

  • Upon refreshing the page, why always first.jsp  is displayed ?

    Hi all,
    In case of multipage portlet (jpdk example), why always the first.jsp is displayed upon clicking the refresh button of the page containing the multipage portlet even when we are viewing the second.jsp. Can we avoid this?
    Best regards,
    Omer

    Hi,
    As it's visible here Struts 1 doesn't have this component. Although this is 1.3.8 struts version but I doubt if in 1.3.10 TabbedPanel is already implemented. So nothing unusual that it's not working.
    To use this component (class) You've to download the latest Struts version (it would be Struts 2 of course) and migrate Your project from Struts 1 to Struts 2. I don't know Struts 1 very well but I read several articles about migration to the latest version and this migration was worth it. Is see this article as very helpful in this case.
    And 'struts-tags' is not a class. This a tag library directive that names the library which contains the tags. This uri is declared in a tld file (tag library descriptor) which is special descriptor for the whole library.

  • Problems configuring jsp and weblogic.

    Hi,
              can anyone tell me what all things i need to configure if i have to test jsp
              on weblogic. what things i need to include in web.xml and weblogic.xml. Also
              do i need to create weblogic.properties. I m using weblogic 6.0. I do have
              a jar file which is deployed on weblogic.
              Any help will be appreciated.
              Thanks
              -Shree
              

    Hi,
              I m trying to test a html page on weblogic 6.0. when i type the url
              http://localhost:7001/mytest.html i get following errors. I m not able to
              test any of my jsp pages. I m getting the following error....
              <Jul 23, 2001 5:04:04 PM EDT> <Error> <HTTP> <HttpServer(6962399,null
              default ct
              x,localhost) found no context for "GET /mytest.html HTTP/1.0". This should
              not h
              appen unless the default context failed to deploy.>
              can any one tell me what are the steps / things i should consider for
              testing a jsp (web.xml, weblogic.xml...etc...)using weblogic 6.0 i do not
              want to deploy it i want to test using exploded directory format. My Jsps
              are in turn retrieving information from EJB's.
              I did read quickstart guide in e-docs.bea.com.
              Any help in this matter is appreciated.
              Thanks
              -Shree
              "Shree Unde" <[email protected]> wrote in message
              news:[email protected]...
              > Thanks.
              > -Shree
              > "Kumar Allamraju" <[email protected]> wrote in message
              > news:[email protected]...
              > > http://e-docs.bea.com/wls/docs60/quickstart/quick_start.html
              > >
              > > Shree Unde wrote:
              > >
              > > > Hi,
              > > > can anyone tell me what all things i need to configure if i have to
              test
              > jsp
              > > > on weblogic. what things i need to include in web.xml and
              weblogic.xml.
              > Also
              > > > do i need to create weblogic.properties. I m using weblogic 6.0. I do
              > have
              > > > a jar file which is deployed on weblogic.
              > > >
              > > > Any help will be appreciated.
              > > >
              > > > Thanks
              > > > -Shree
              > >
              >
              >
              

  • Calling property file inside jsp in weblogic.

    In JSP file, sometimes, we use the following code in the jspInit()
              <%!
              ResourceBundle resouce =null;
              public void jspInit() {
              resource = ResourceBundle.getBundle("resources");
              %>
              The resources.properties is the file to have the name value pair, which is
              easy to get a list of something.
              Can I still use properties file in my JSP in weblogic? where should I put
              properties? is it weblogic\myserver\under public_html ?
              Thank you for any help.
              li
              

    Can I still use properties file in my JSP in weblogic? where should I          put
              > > properties? is it weblogic\myserver\under public_html ?
              >
              > yes, put the properties file in your java classpath.
              I mean to say, put properties file in a directory, which is in Java class
              path.
              thanks,
              -ramu
              "Ramu" <[email protected]> wrote in message
              news:3a6623c0$[email protected]..
              > "li" <[email protected]> wrote in message
              > news:3a661a8c$[email protected]..
              > > In JSP file, sometimes, we use the following code in the jspInit()
              > > <%!
              > > ResourceBundle resouce =null;
              > > public void jspInit() {
              > > resource = ResourceBundle.getBundle("resources");
              > > }
              > > %>
              > > The resources.properties is the file to have the name value pair, which
              is
              > > easy to get a list of something.
              > >
              > > Can I still use properties file in my JSP in weblogic? where should I
              put
              > > properties? is it weblogic\myserver\under public_html ?
              >
              > yes, put the properties file in your java classpath.
              >
              > -ramu
              >
              >
              >
              > >
              > >
              > > Thank you for any help.
              > >
              > > li
              > >
              > >
              > >
              > >
              >
              >
              

  • Head  first jsp

    hello
    i need this book as a soft copy :
    head first jsp & servlet.
    thanx

    To avoid having to use the classpath over and over add it to your system environment variables:
    Right click 'My Computer' > Properties > Advanced > Environment Variables
    Under 'System Variables' if you don't already have have a 'CLASSPATH', create one. If you do, append the path to your servlet-api.jar ( e.g. c:\Tomcat\common\lib\servlet-api.jar ). Remember, different entries into the classpath must be separated by semi-colons (;).
    Save and open a fresh console window ( the changes don't reflect in consoles that were already open ).
    Of course, you should still learn how to work with the classpath variable: http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/classpath.html
    This is what your command should be:
    javac -classpath c:\Tomcat\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java

  • Treat jnlp like jsp in weblogic

    I´m trying to treat a jnlp file like a jsp in oracle weblogic. I did this in tomcat, it´s so easy, i need only put a servlet-mapping like that in my web.xml:
    <servlet-mapping>
      <servlet-name>jsp</servlet-name>
      <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    But in weblogic it don´t works. First, he force me remove this servlet-mapping because he don´t have the same servlet that tomcat and i don´t have a servlet named jsp in my web xml. I wana know if exists any other way to configure my web.xml to treat my jnlp files like a jsp files.
    Thanks a lot.

    Hello,
    this forum is dedicated for questions about migrations of non-Oracle databases to Oracle using the Oracle SQL Developer Migration Workbench. Your question can much better be answered in an appropriate forum. Please go to there:
    Application Server
    There you should find a better forum to post your question.
    Best regards
    Wolfgang

  • Pre-compile jsp in Weblogic

    Hello all,
              I have been trying to add following tags in weblogic.xml to precompile my all jsps at Deployment time, but it gives me error as follows. [I am pasting messages from the console....]
              I am using WL express 7.0 and jdk1.3 that comes along with the server.
              Here is my tag:
              <jsp-descriptor>
                   <jsp-param>
                        <param-name>precompile</param-name>
              <param-value>true</param-value>
                   </jsp-param>
              </jsp-descriptor>
              What is the wrong here ? Is there any special configuration in weblogic server that I am ignoring here ?
              =======================================
              <Nov 9, 2004 9:33:32 AM EST> <Debug> <HTTP> <101211> <ppdm:jsp Precompiling JSPs at startup with JSP config [JspConfig: verbose=true,package
              Prefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\bea\user_projects\icmgdomain\.\icmgone\.wlnotdelete\icmgone_ppdm_jsp,pageChec
              kSeconds=1,superclass=weblogic.servlet.jsp.JspBase,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,
              defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false,debugEnabled=false,printNulls=true]>
              log4j:WARN No appenders could be found for logger (org.apache.struts.util.MessageResourcesFactory).
              log4j:WARN Please initialize the log4j system properly.
              <Nov 9, 2004 9:33:52 AM EST> <Error> <Deployer> <149233> <Unexpected error was encountered during the deployment process.>
              <Nov 9, 2004 9:33:52 AM EST> <Error> <Deployer> <149201> <The Slave Deployer failed to complete the deployment task with id 11 for the appli
              cation ppdm.
              java.lang.ExceptionInInitializerError: java.lang.NullPointerException
              at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
              at org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:94)
              at java.lang.Class.forName0(Native Method)

              And make sure you don't have any other patches installed!
              The generated servlet specifically checks to make sure that the servlet is running
              on the same EXACT setup (service pack, patches, etc.) that was used to generate
              it from the original JSP.
              Tim
              "Eric Ma" <[email protected]> wrote:
              >
              >Upgrade to WebLogic 6.1 SP3.
              >
              >Eric Ma
              >
              >Charley Chu <[email protected]> wrote:
              >>Did you figure out how to do it?
              >>
              >>I use weblogic.jspc in the Ant script to compile all my JSP and target
              >>the output to the WEB-INF\classes directory. Package the app into war
              >>and ear. But the server still generates the class for jsp when the jsp
              >>page is accessed on the first time.
              >>
              >>I could use deployment descriptor in weblogic.xml to pre-compile jsp
              >>when the server starts but I'd rather do it in Ant script.
              >>
              >>Any hint?
              >>
              >>Thanks!
              >
              

  • Error while parsing JSP with WebLogic 5.1/SP9/JDK 1.2.2

    Hello everybody,
              I get the error given below when calling a JSP in a WebLogic
              application which seems to work fine in all other (non-JSP) parts:
              java.lang.NullPointerException:
                   at weblogic.servlet.jsp.JspLexer.addSetPropertyValue(JspLexer.java:1432)
                   at weblogic.servlet.jsp.JspLexer.mXML_SET_PROPERTY(JspLexer.java,
              Compiled Code)
                   at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1726)
                   at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java, Compiled Code)
                   at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled
              Code)
                   at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code)
                   at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code)
                   at weblogic.servlet.jsp.JspParser.parse(JspParser.java:159)
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java,
              Compiled Code)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
              Code)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              I know that this error has been reported more than once in these
              discussion groups, and all people who solved it say
              - that it occurs only wen running WebLogic 5.1 with JDK 1.3 instead of
              1.2.2
              - that it may also be caused by bad jsp code
              But in my case, it has to be another reason, because
              - I am using jdk 1.2.2
              - the same JSP file is running withour errors on WebLogic 6
              I wonder if it could have something to do with the operating system:
              the parsing error is produced on a Windows version of WL 5.1, while my
              WL 6 which doesn't cause errors is running with Linux.
              Many thanks in advance for any help,
              Eckhard Beisswenger
              

    Once again me!
              After a long time, I stumbled by accident across the answer that solves the problem I described above. It is explained at
              http://support.bea.com/application;JSESSIONID_WLCS_DEFAULT=2R2lzQfEBxFRMX2z0AxeU1Un3N1522I9fCIUI7GfjnjsiSYkPscz
              The clue is that weblogic complains about corresponding get and set methods, when the type of the set methods parameter is different from the return type of the corresponding get method. Unfortunately, the weblogic lexer class gives only a NullPointerException without any hint.
              

  • How can I pass a variable  value from first jsp page to thired jsp page

    In my program ,threr are three jsp pages . I want the first pages's variable value in to thired page .How can I acess.
    I used the request.getparameter() ,but when I print the value , null value is getting .

    request parameters only last for one request.
    To save them longer than that you need to save them somewhere.
    Couple of alternatives
    1 - store them to session
    session.setAttribute("username", request.getParameter("username");
    2 - create a hidden field on page 2 and store the value from page 1 there. When you submit page2, you can get it on page3 with request.getParameter again.
    <input type="hidden" name="username" value="<%= request.getParameter("username") %>">

  • Calling a java class in JSP in Weblogic 5.1

    Hi
    I am trying to call a java class in a jsp page. But it is giving an error:
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_knet\_buy.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_knet\_buy.java:79: cannot access jsp_servlet._knet.e24PaymentPipe
    probably occurred due to an error in /knet/buy.jsp line 25:
    e24PaymentPipe pipe = new e24PaymentPipe();
    Is this a problem bcos of the wrong path of the class file which i am calling?
    Please help this is urgent

    Hello All
    As I tried to deploy the easiest project (dummy.war) on WebLogic 8.1.5, There is only one class (without package) Login.class
    *********** Listing of the dummy WAR ***********
    META-INF/
    META-INF/MANIFEST.MF
    WEB-INF/
    WEB-INF/classes/
    WEB-INF/classes/Login.class
    WEB-INF/web.xml
    index.jsp
    login.jsp
    ************ Output of deployment from Admin Console****************
    Log:     
         A log of the task's activities.
    [Deployer:149033]preparing application dummy on intranetAdmin
    [Deployer:149033]prepared application dummy on intranetAdmin
    [Deployer:149033]activating application dummy on intranetAdmin
    [Deployer:149033]failed application dummy on intranetAdmin
    [Deployer:149034]An exception occurred for task [Deployer:149026]
    Deploy application dummy on intranetAdmin.:
    Exception:weblogic.management.ApplicationException: start() failed.
    Module: dummy Error: weblogic.management.DeploymentException:
    [HTTP:101216]Servlet: "index" failed to preload on startup in Web application:
    " dummy ".
    weblogic.servlet.jsp.CompilationException: Compilation of D:\apps\wlsapp\
    INTRAN~1\.\intranetAdmin\.wlnotdelete\extract\intranetAdmin_ dummy _ dummy
    \jsp_servlet\__index.java failed.
    D:\apps\wlsapp\INTRAN~1\.\intranetAdmin\.wlnotdelete\extract\
    intranetAdmin_dummy_dummy\jsp_servlet\__index.java:22: '.' expected
    import Login; //[ /login.jsp; Line: 8]
    ^
    1 error
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.
    java:3430)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.
    java:3387)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext
    .java:3373)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3356)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:
    6208)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2134)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2175)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
    activateContainer(SlaveDeployer.java:2520)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer
    .java:2438)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2155)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2254)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2149)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.
    java:2401)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:
    883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
    ... 22 more
    - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]
    I put this class into a dummy package named sample, changed package declaration within this class and changed import statement within jsp pages like this :
    <%@ page import="sample.Login " %>
    <jsp:useBean id="logUsr" scope="session" class="sample.Login" />
    When I did like this, everything is ok. No more exception.
    If my application has so many java classes under WEB-INF/classes/ without creating package, it may be so inconvenience.
    Please kindly let me know why this exception (class not found exception) occurred.
    And what is the solution? I cannot deploy the application successfully yet.
    many thanks,
    Zin Ko Win

Maybe you are looking for

  • FRM-41383 No such property for Set_Item_Instance_Property

    Hi I am getting the above error message when I am calling this from the form. set_item_instance_property(block_name.item_name',current_record,visual_attribute,'CUSTOM'); where CUSTOM is the visual attribute.

  • Error while creating Function.

    Hii All, I'm currently working on 10gR2 .I'm trying to dynamically pass a column and parse it but I've encountered following error.Please help me. Create or replace Function r_return_col                      p_table_name          in          varchar2

  • I have Adobe Reader on my computer & want Adobe X Standard - Do I need to buy upgrade or full?

    I have Adobe Reader on my computer and want to install Adobe X Standard - Do I need to purchase an upgrade or full version?

  • Automation: open in itunes, one by one

    I've never used automator before, but today I got an idea for a workflow that might be useful to me. I sort most of my itunes music by date added, and I like to see the tracks in the order they are on the album. But when I import an album from a fold

  • Cannot connect to Tengo Internet at KOA

    I just rolled into the Santa Fe KOA and they use TENGOINTERNET.COM to provide WiFi services for guests. You first connect to their WiFi router and then when you access the Internet, you are moved to a special TENGOINTERNET.COM login screen where you