HSQLDB Queries fail only from JSP

I am new to Servlets and JSP and have encountered a weird problem when trying to query HSQLDB from JSP pages. If I write a small servlet and deploy it from the same web application with the same classpath, the connection succeeds and queries return. If I make the connection from JSP under either Tomcat or Jetty I get a failure like:
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
at org.apache.jsp.index_jsp._jspx_meth_sql_query_0(index_jsp.java:125)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169)
at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312)
at org.mortbay.jetty.servlet.Default.service(Default.java:232)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
at org.mortbay.http.HttpServer.service(HttpServer.java:956)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Every previous question I have seen about this has been resolved by a classpath problem, but I have verified that the hsqldb.jar is getting loaded in my classpath, and the servlet works fine in the same webapp. Just not the JSP page. Any ideas? This is really frustrating. Thanks!
Karl

First of all let me say thanks for your help! I think at this point it's just a matter of getting to work because it should and I want to know what I am doing wrong. To test things out, I wrote a JSP in the same directory as the one which is failing. Instead of using the JSTL sql tags I just wrote a scriptlet inline which uses the java JDBC code directly. This should have the same classpath and access as the JSTL code, right? Anyway, it works fine. So maybe I am running into a bug in the JSTL of some kind? Here is the working code:
<%@ page import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
<html>
<body bgcolor="#FFFFFF">
<h1>People</h1>
<%
try {
     Class.forName("org.hsqldb.jdbcDriver");
     Connection conn = DriverManager.getConnection(
          "jdbc:hsqldb:hsql://localhost:9001/",
          "mrfoo",
          "foo"
     Statement stmt = conn.createStatement();
     ResultSet rs = stmt.executeQuery("SELECT first, middle, last FROM people");
%>
     <table border="1">
          <tr>
               <th>First</th>
               <th>Middle</th>
               <th>Last</th>
          </tr>
<%
     while(rs.next()) {
               out.print("<tr>");
               out.print(
                    "<td>" + rs.getString("first") + "</td>"
               out.print(
                    "<td>" + rs.getString("middle") + "</td>"
               out.print(
                    "<td>" + rs.getString("last") + "</td>"
               out.print("</tr>");
%>
     </table>
<%
     rs.close();
     stmt.close();
     conn.close();
catch (SQLException se) {
     System.out.println( "SQL Exception:" ) ;
     // Loop through the SQL Exceptions
     while( se != null ) {
          System.out.println("State : " + se.getSQLState() );
          System.out.println("Message : " + se.getMessage() );
          System.out.println("Error : " + se.getErrorCode() );
          se = se.getNextException();
%>
</body>
</html>
Here, on the other hand, is the not working code:
<%@ page import="org.hsqldb.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
<html>
<body bgcolor="#FFFFFF">
     <sql:setDataSource var="datasource"
          driver="org.hsqldb.jdbcDriver"
          url="jdbc:hsqldb:hsql://localhost:9001/"
          user="mrfoo" password="foo" />
     <sql:query var="people" dataSource="${datasource}">
          SELECT first, middle, last FROM people
     </sql:query>
     <table>
     <tr><td>First Name</td><td>Middle Name</td><td>Last Name</td></tr>
     <c:forEach var="row" items="${people.rows}">
          <tr>
               <td>${row.first}</td>
               <td>${row.middle}</td>
               <td>${row.last}</td>
          </tr>
     </c:forEach>
     </table>
</body>
</html>
I'm starting to think JSTL<->HSQLDB bug... Any help is appreciated. Thanks!!
Karl

Similar Messages

  • SSIS 2012 ETL is failing only at one server (No BIDS) but running successfully from BIDS on different sever . In this ETL, I have used Stored Procedure in OLEDB Source.

    Hi Guys,
    SSIS 2012 ETL is failing only at one server (No BIDS) but running successfully from BIDS on different sever . In this ETL, I have used Stored Procedure in OLEDB Source.
    Note: I have couple of ETLs developed in 2005 using same logic and upgraded to 2012, working perfectly.
    I am getting Error Message:
    SSIS
    Error Code
    DTS_E_OLEDBERROR. 
    An OLE DB
    error has occurred.
    Error code: 0x80004005.
    An
    OLE DB
    record is available. 
    Source: "Microsoft OLE DB Provider for SQL Server" 
    Hresult: 0x80004005 
    Description: "Error converting data type varchar to datetime.".
    Unable
    to retrieve
    column information
    from the data
    source. Make
    sure your target
    table in
    the database is
    available.
    "OLE DB Source"
    failed validation
    and returned
    validation status
    "VS_ISBROKEN".
    I tried below word around and found It is working perfectly.
    I loaded data into a table (dbo.TEMP) using Stored procedure and then I used this dbo.TEMP table in OLEDB source and then found no issue.
    MY SP Details: (This SP I am calling in OLEDB source of ETL) and when I run it from one server IT is working fine and when I run from ETL dedicated Server getting error:   Guys Help me out.
    USE
    [TEST_DB]
    GO
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    ALTER
    PROCEDURE  [DBO].[SP_TEST]
    --EXEC [DBO].[SP_TEST] '2014-09-30','2014-10-01'
    @FROMDATETIME
    DATETIME,
    @TODATETIME
    DATETIME
    AS
    SET
    NOCOUNT ON
    BEGIN
    DECLARE
    @FROMDATEKEY INT,
    @TODATEKEY INT,
    SET
    @FROMDATEKEY=
    CONVERT(VARCHAR(10),@FROMDATETIME,112)
    SET
    @TODATEKEY=
    CONVERT(VARCHAR(10),@TODATETIME,112)
    IF 1 = 1
    BEGIN
    SELECT
    CAST(NULL
    AS DATETIME) 
    AS TXN_DATE
    , CAST(NULL
    AS DATETIME
    ) AS PROCESS_DATE     
    , CAST(NULL
    AS money)
    AS  S1_AMT
    , CAST(NULL
    AS money)
    AS  S2_AMOUNT
    , CAST(NULL
    AS money)
    AS  S2_INVALID_AMOUNT
    , CAST(NULL
    AS money)
    AS  INVALID_MOVED_IN_VALID_S2_AMOUNT
    , CAST(NULL
    AS VARCHAR(20))
    AS SYSTEM_ID
    , CAST(NULL
    AS money)
    AS  S3_AMT
    END
    SELECT
    TXN_DATE
    ,PROCESS_DATE
    ,S1_AMT
    ,S2_AMOUNT
    ,S2_INVALID_AMOUNT
    ,INVALID_MOVED_IN_VALID_S2_AMOUNT
    ,SYSTEM_ID
    S3_AMT
    FROM
    DBO.TABLE_1
    WHERE TNX_DATE_KEY
    BETWEEN @FROMDATEKEY
    and @TODATEKEY
    UNION
    ALL
    SELECT
    TXN_DATE
    ,PROCESS_DATE
    ,S1_AMT
    ,S2_AMOUNT
    ,S2_INVALID_AMOUNT
    ,INVALID_MOVED_IN_VALID_S2_AMOUNT
    ,SYSTEM_ID
    S3_AMT
    FROM
    DBO.TABLE_2
    WHERE TNX_DATE_KEY
    BETWEEN @FROMDATEKEY
    and @TODATEKEY
    UNION
    ALL
    SELECT
    TXN_DATE
    ,PROCESS_DATE
    ,S1_AMT
    ,S2_AMOUNT
    ,S2_INVALID_AMOUNT
    ,INVALID_MOVED_IN_VALID_S2_AMOUNT
    ,SYSTEM_ID
    S3_AMT
    FROM
    DBO.TABLE_3
    WHERE TNX_DATE_KEY
    BETWEEN @FROMDATEKEY
    and @TODATEKEY
    END
    Data Source Mode: SQL Command for Variable
    "EXEC [DBO].[SP_TEST]  '"+ (DT_WSTR, 24) @[User::V_EXTRACT_FROM_DT]  +"','"+ (DT_WSTR, 24) @[User::V_EXTRACT_TO_DT]  +"'"
    Where variable @[User::V_EXTRACT_FROM_DT] and @[User::V_EXTRACT_TO_DT] is defined as DATETIME 
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi,
    Yes you are right. At one sever where I was getting error, DateTime was in USA format and Where It was running successfully was in AUS format.
    I changed from USA to AUS and I did another changes:
    Data Source Mode: SQL
    Command
    EXEC  [DBO].[SP_TEST] 
    @FROMDATETIME = ?,
    @TODATETIME = ?
    and It is working fine.
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • ODBC fails but only from ASP page (12154)

    I have a working Win2k/MDAC 2.6 box, that can connect perfectly to an Oracle 8.1.7 on another machine. I can TNS ping this host, I set up an ODBC DSN and I can connect from the Oracle ODBC Test program. I wrote a simple script (see below) to test the connection, and run it as a Windows script (i.e. double click on the file) and it runs perfectly. All is great.
    BUT, when I copy the exact same script into an ASP file (surround the script the the "<%" and "%>" delimiters) and run it, I get this:
    ORA-12154 TNS could not resolve service name.
    Anyone have any ideas why this script fails but ONLY from ASP??
    Here is my simple script:
    dim rs, conn
    set conn = CreateObject("ADODB.Connection")
    conn.open "ora817"
    Thanks very much,
    Marc Fairorth

    I am using asp connecting an oracle 8.1.5
    Using this :
    Set Conn=Server.CreateObject("ADODB.Connection")
    Set RS=Server.CreateObject("ADODB.RecordSet")
    Conn.Open Connection
    RS.open SQL1, Conn
    The only difference to your script is the server option
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Marc Fairorth ([email protected]):
    I have a working Win2k/MDAC 2.6 box, that can connect perfectly to an Oracle 8.1.7 on another machine. I can TNS ping this host, I set up an ODBC DSN and I can connect from the Oracle ODBC Test program. I wrote a simple script (see below) to test the connection, and run it as a Windows script (i.e. double click on the file) and it runs perfectly. All is great.
    BUT, when I copy the exact same script into an ASP file (surround the script the the "<%" and "%>" delimiters) and run it, I get this:
    ORA-12154 TNS could not resolve service name.
    Anyone have any ideas why this script fails but ONLY from ASP??
    Here is my simple script:
    dim rs, conn
    set conn = CreateObject("ADODB.Connection")
    conn.open "ora817"
    Thanks very much,
    Marc Fairorth<HR></BLOCKQUOTE>
    null

  • Iisproxy.dll causes "DLL initialization routine has failed" when serving JSPs

              Hi,
              We are experiencing problems with the Weblogic ISAPI plug-in. Often the webservers
              are giving the following error:
              "A dynamic link library (DLL) initialization routine has failed"
              when trying to serve JSP requests (the only ones that are using this plug-in),
              without crashing the IIS service. Which causes our load-balancers to hit the affected
              webservers as the IIS service is running, but the clients (browsers) only seen
              this error.
              Our configuration is the following:
              - 2 WLS 4.5.1 SP11 on Solaris 2.5.7 boxes running in a cluster
              - 3 IIS4 using the iisproxy.dll from WLS 4.5.1 SP14 on NT4 SP6a boxes.
              Our iisproxy.ini is the following:
              WebLogicCluster=10.194.34.32:7005,10.194.34.34:7005
              ErrorPage=http://212.0.161.16/media/site_down.htm
              ConnectTimeoutSecs=15
              ConnectRetrySecs=2
              DebugConfigInfo=ON
              Debug=ON
              The plug-in is registered to only serve JSP requests and the "Run in separate
              memory space" is checked. Does anyone knows what's the problem? I'm also attaching
              the plug-in log from one of the affected webservers.
              Thanks in advance.
              [Wlproxy.zip]
              

    Thanks, JLS.
    We figured it out. There's an entry in the registry that lvanyls.dll points to specifying the location of the LV shared directory (and therefore the MKL directory). If it's not found in that exact location, the dll load aborts.
    We're trying to not include the runtime installer in our application installer because of the size, so we're figuring out our own workaround (and trying to CYA in the meantime ).
    -Scott

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • Crystal report from JSP using the JRC

    Hi, I am trying to call crystal report from JSP using the JRC.
    But i am getting the Error as 'Logon Failed'. my web.xml entry is
    <env-entry>
    <env-entry-name>jdbc/Test</env-entry-name>
    <env-entry-value>!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@//10.0.0.1:1521/TestDB</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    i am setting the userid and password in the code. Please see the below code for your reference. Please help me to solve the issue.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSource" %>
    <html>
    <head>
    <title>Crystal Report with Database Logon information</title> </head>
    <body bgcolor="#ffffff">
    <%
    try
    String report = "/TEMPLATE.rpt";
    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    JPEReportSource reportSource = (JPEReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setHasRefreshButton(true);
    IConnectionInfo newConnInfo = new ConnectionInfo();
    newConnInfo.setUserName("TEST");
    newConnInfo.setPassword("TEST");
    ConnectionInfos newConnInfos = new ConnectionInfos();
    newConnInfos.add(newConnInfo);
    viewer.setDatabaseLogonInfos(newConnInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    out.println("Connection Information: "+viewer.getDatabaseLogonInfos().getConnectionInfo(0).getAttributes().toString());
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    viewer.dispose();
    catch(Exception e)
    throw new JspException( e);
    %>
    </body>
    </html>

    I never really had much luck with this approach.
    Mind you I was using Crystal Reports 10, and as far as I recall it didn't allow setting/changing of database at this level.
    Things to check
    - can you create a database connection on your page with this URL/username/password?
    - what server are you using? Tomcat? WebLogic?
    I found this in your other post:
    Connection Information: {Server Name=ee6rpt, Connection String=DSN=s(ee6rpt);User ID=s(ee62test);Password=;UseDSNProperties=b(false), Database Name=, Database DLL=crdb_odbc.dll}That would indicate it is using odbc to connect to the database (crdb_odbc.dll). ODBC is a bad idea with java.
    The way I have got it to work for me (after much trial and error) was to in Crystal Reports to connect using the Oracle Driver, and specifying a tnsname - eg define REPORT_DS in tnsnames.ora.
    When running through the JRC, it looked for a JNDI datasource under that same name "REPORT_DS".
    Don't know if that will help you or not.
    Good luck,
    evnafets

  • Error while calling bpel process from jsp page

    Hi,
    I am trying to access bpel process from a jsp page..i could successfully deploy bpel and run it from bpel console.however accessing the bpel from a jsp gives an error. I have attached the code and error. I am using jdev10.3.1 with SOA suite.Any help is greatly appreciated.
    Thanks,
    p
    Hashtable env = null;
    env = new Hashtable();
    env.put("java.naming.factory.initial", "oracle.j2ee.naming.ApplicationClientInitialContextFactory");
    env.put("java.naming.provider.url", "opmn:ormi://fs-sys-414:6005:home/orabpel");
    env.put("java.naming.security.principal", "oc4jadmin");
    env.put("java.naming.security.credentials", "xxxxx");
    try{
    String xml = "<input xmlns=\"http://xmlns.oracle.com/Pr_Bpel_Process\">" + "HELLO" + "</input>";
    Locator locator = new Locator("default","bpel",env);
    System.out.println("locator object" +locator);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    System.out.println("delivery service name="+IDeliveryService.SERVICE_NAME);
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload",xml);
    System.out.println("adding payload to nm");
    deliveryService.post("Pr_Bpel_Process", "initiate", nm);
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: com.collaxa.common.util.NonSyncStringWriter
         Dependent class: com.oracle.bpel.client.ClientResources
         Loader: current-workspace-app.web.pra_appln-pra_proj-webapp:0.0.0
         Code-Source: /C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
         Configuration: <classpath> in C:\jdev10131SOA\jdev\mywork\pra_appln\pra_proj\public_html
    The missing class is not available from any code-source or loader in the system.
    06/11/23 14:33:29      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [C:/jdev10131SOA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at com.oracle.bpel.client.ClientResources.sanitizeArgs (ClientResources.java:123) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.ClientResources.getString (ClientResources.java:93) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean (BeanRegistry.java:293) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean (DeliveryService.java:250) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.post (DeliveryService.java:174) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at com.oracle.bpel.client.delivery.DeliveryService.post (DeliveryService.java:149) [C:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from <classpath> in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\public_html), by current-workspace-app.web.prashant_appln-pra_proj-webapp:0.0.0]
         at testbpel.jspService (_testbpel.java:79) [C:/jdev10131SOA/jdev/mywork/prashant_appln/pra_proj/classes/.jsps/ (from *.jsp in C:\jdev10131SOA\jdev\mywork\prashant_appln\pra_proj\classes\.jsps), by current-workspace-app.web.prashant_appln-pra_proj-webapp.jsp27809090:0.0.0]
         at com.orionserver.http.OrionHttpJspPage.service (OrionHttpJspPage.java:59) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspPageTable.service (JspPageTable.java:453) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspServlet.internalService (JspServlet.java:591) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.jsp.runtimev2.JspServlet.service (JspServlet.java:515) [C:/jdev10131SOA/j2ee/home/lib/ojsp.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at javax.servlet.http.HttpServlet.service (HttpServlet.java:856) [C:/jdev10131SOA/j2ee/home/lib/servlet.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by api:1.4.0]
         at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:711) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:368) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:866) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:448) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:216) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:117) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:110) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:239) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700 (ServerSocketAcceptHandler.java:34) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:880) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:298) [C:/jdev10131SOA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\jdev10131SOA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]

    Hi,
    Now i am getting different kind of exception::
    06/11/24 08:11:06 java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NamingException: META-INF/application-client.xml not found (see J2EE spec, application-client chapter for requirements and format of the file)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getRequiredClasspathResource(ApplicationClientInitialContextFactory.java:239)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getArchive(ApplicationClientInitialContextFactory.java:161)
         at oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:111)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:277)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
         at _testbpel._jspService(_testbpel.java:79)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    06/11/24 08:11:06      at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    06/11/24 08:11:06      at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    06/11/24 08:11:06      at testbpel.jspService(_testbpel.java:79)
    06/11/24 08:11:06      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    06/11/24 08:11:06      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    06/11/24 08:11:06      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    06/11/24 08:11:06      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    06/11/24 08:11:06      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    06/11/24 08:11:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    06/11/24 08:11:06      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    06/11/24 08:11:06      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    06/11/24 08:11:06      at java.lang.Thread.run(Thread.java:595)

  • Urgent-how to access custom tag from jsp tag

    I have a problem accessing a custom tag from a jsp expression.
    Details: I have a custom tag that returns a string variable. I need to access that variable from jsp expression <%%>.
    Can any body help me?

    Tags don't "return" values as in the normal sense.
    They can only support TEI (Tag Extra Information) that just stuffs a declared variable into the page's state.
    For example, if the tag class had a public method called getValue(), you could do the following:
    <xmp:mytag id="foo"/>
    <%
    out.println("value is " + foo.getValue());
    %>

  • App Fails Moving from Development to Prod for Identical Environments

    All,
    I know everyone says* this but, we really need resolution to this problem ASAP. We are in a situation wherein APEX Applications are thoroughly QAed and then, only after being delivered to Production, the same JavaScript calls that succeeded in Dev are Failing in production.
    Some Facts:
    1. APEX Version  4.1.1.00.23 Both Environments
       A. Dev was taken to 4.1.1.00.23 via two patches (12920544 and 13331096)
       B. Production was installed as 4.1.1.00.23 directly
    2. DB Versions
        A. Dev - 11.2.0.1
        B. Prod - 10.2.0.4
    3. PL/SQL Web Toolkit
       A. Dev - 10.1.2.0.8
       B. Prod - 10.1.2.0.6 (Upgraded from 10.1.2.05 using supplied owa in APEX install media)
    4. Both using the Oracle HTTP Server from FUSION MIDDLEWARE 11g with mod_plsql plugin.
    The Issue:
    Using Internet Explorer 9 (works for Chrome, Safari and FireFox), the following is an example of a JavaScript call that fails only in Production.
    dropDownMenuDiv = document.getElementsByClassName("dropDownMenu") [0];I am sure someone will respond to this post stating that it just isn't possible that the same code is failing in one environment and not in the other. Therefore, to explicitly test this, I wrapped the above code in this "if" block:
    If (document.getElementsByClassName)
       dropDownMenuDiv = document.getElementsByClassName("dropDownMenu") [0];
    else
       alert( 'getElementsByClassName is NOT Supported' );
    }The EXACT same code executed in Dev and Prod (app export/import). In Dev, it works fine. In Production, it produces the "getElementsByClassName is NOT Supported" message box.
    I know that there are some IE Specific workarounds for just this sort of thing but, I also know that IE9 should support this method. In fact, it is supporting this very method when the application is invoked in the Dev environment.
    Can anyone please provide a reason/work around for this issue?
    -Joe

    I have done the comparison and the only thing that I see that differs is the session ID.
    -Joe
    Compare: (<)C:\Users\jupshaw\Documents\ICE\Development\APEX\Tars\ProdHome.htm (17746 bytes)
       with: (>)C:\Users\jupshaw\Documents\ICE\Development\APEX\Tars\DevHome.htm (17758 bytes)
    41c41
    < <input type="hidden" name="p_flow_id" value="103" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="1" id="pFlowStepId" /><input type="hidden" name="p_instance" value="1336247602420901" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="635587708508801" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />
    <input type="hidden" name="p_flow_id" value="103" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="1" id="pFlowStepId" /><input type="hidden" name="p_instance" value="207998464920901" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="1083997427580101" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />59c59
    <               <li><a href="apex_authentication.logout?p_app_id=103&p_session_id=1336247602420901">Logout</a><a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:329:707446719564001::::P329_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:73415238390460653,103,1');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></li>
    <li>Logout<a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:329:2230081660932901::::P329_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:73415238390460653,103,1');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></li>74c74
    <     <h1> <a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:374:707446719564001::::P374_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:4372219419031534,103,1');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></h1>
    <h1> <a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:374:2230081660932901::::P374_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:4372219419031534,103,1');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></h1>116c116
    < <input type="hidden" name="p_md5_checksum" value=""  /><input type="hidden" name="p_page_checksum" value="D81402650ED441C2021395E802190BE7"  /></form>
    <input type="hidden" name="p_md5_checksum" value="" /><input type="hidden" name="p_page_checksum" value="0325A8D06FBD9216E3B7107FD2405550" /></form>145,152c145,152
    < <li ><a class="apex-toolbar" title="Application Express Home Page" href="f?p=4500:1000:707446719564001">Home</a></li>
    < <li ><a class="apex-toolbar" title="Application 103" href="f?p=4000:1:707446719564001::NO:1,4150,RP:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Application 103</a></li>
    < <li ><a class="apex-toolbar" title="Edit Page 1" href="f?p=4000:4150:707446719564001::NO:1,4150:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Edit Page 1</a></li>
    < <li ><a class="apex-toolbar" title="Create" href="f?p=4000:336:707446719564001::NO::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Create</a></li>
    < <li ><a class="apex-toolbar" title="Session" href="javascript:popupSessionInfo();">Session</a></li>
    < <li ><a class="apex-toolbar" title="Caching" href="f?p=4000:14:707446719564001::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Caching</a></li>
    < <li ><a class="apex-toolbar" title="View Debug" href="javascript:popupViewDebug();">View Debug</a></li>
    < <li ><a class="apex-toolbar" title="Debug" href="f?p=103:1:1336247602420901::YES">Debug</a></li>
    <li ><a class="apex-toolbar" title="Application Express Home Page" href="f?p=4500:1000:2230081660932901">Home</a></li>
    <li ><a class="apex-toolbar" title="Application 103" href="f?p=4000:1:2230081660932901::NO:1,4150,RP:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Application 103</a></li>
    <li ><a class="apex-toolbar" title="Edit Page 1" href="f?p=4000:4150:2230081660932901::NO:1,4150:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Edit Page 1</a></li>
    <li ><a class="apex-toolbar" title="Create" href="f?p=4000:336:2230081660932901::NO::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Create</a></li>
    <li ><a class="apex-toolbar" title="Session" href="javascript:popupSessionInfo();">Session</a></li>
    <li ><a class="apex-toolbar" title="Caching" href="f?p=4000:14:2230081660932901::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:103,1,103,1,1">Caching</a></li>
    <li ><a class="apex-toolbar" title="View Debug" href="javascript:popupViewDebug();">View Debug</a></li>
    <li ><a class="apex-toolbar" title="Debug" href="f?p=103:1:207998464920901::YES">Debug</a></li>158,159c158,159
    < function popupSessionInfo(){var w = open("f?p=4000:34:707446719564001:PAGE:NO:34:F4000_P34_SESSION,F4000_P34_FLOW,F4000_P34_PAGE,FB_FLOW_ID:1336247602420901,103,1,103","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}
    < function popupViewDebug(){var w = open("f?p=4000:19:707446719564001:::RIR,19:IR_APPLICATION_ID,IR_PAGE_ID:103,1","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}
    function popupSessionInfo(){var w = open("f?p=4000:34:2230081660932901:PAGE:NO:34:F4000_P34_SESSION,F4000_P34_FLOW,F4000_P34_PAGE,FB_FLOW_ID:207998464920901,103,1,103","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}
    function popupViewDebug(){var w = open("f?p=4000:19:2230081660932901:::RIR,19:IR_APPLICATION_ID,IR_PAGE_ID:103,1","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}

  • Is ti possible to label a set of tape with a specific media family. For eg. I want media family'xyz' to use tape only from location '1-6'. Is this possible in OSB

    -Is it possible to label a set of tape with a specific media family. For eg. I want mediafamily 'abc' to use tape only from location '1-6' and media family 'xyz' to use tapes from location '7-12'. Is this possible in OSB.
    -If not through media family, is there any other way to label tapes with customized lablels.
    -Is it possible for a backup job to use the tapes from a set of tapes and backup should fail if the tapes are not found from the set. Even if the library has empty tapes.
    I have read about Volume set, but I believe its something that is created automatically when the backup spans to the next volume after current volume is full.

    -Is it possible to label a set of tape with a specific media family. For eg. I want mediafamily 'abc' to use tape only from location '1-6' and media family 'xyz' to use tapes from location '7-12'. Is this possible in OSB.
    -If not through media family, is there any other way to label tapes with customized lablels.
    -Is it possible for a backup job to use the tapes from a set of tapes and backup should fail if the tapes are not found from the set. Even if the library has empty tapes.
    I have read about Volume set, but I believe its something that is created automatically when the backup spans to the next volume after current volume is full.

  • Problem for ResourceBundle calling from jsp file

    Hi, I am using WebLogic 5.1 in Solaris 8
              I use java.util.resourceBundle to get the information from a .properties
              file
              I put the properties file in /opt/weblogic/myserver/serverclasses
              When I call the properties file from EJB, It seems to be OK
              But when I call the properties file from JSP using the same script, It said
              the properties files not found
              The Error message is:
              <ServletContext-General> Servlet fail
              ed with Exception
              java.util.MissingResourceException: Can't find bundle for base name
              test.dbini,
              locale zh_TW
              at
              java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
              .java:707)
              at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
              at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
              at
              jsp_servlet._test._global_95_variable._jspService(_global_95_variable
              .java:85)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              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)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              PLease Help!!
              Regards,
              Fannie
              

    Hi,
    open dataset file for input in text mode.
    check sy-subrc = 0.
    while sy-subrc = 0.
      read dataset file into wa.
      if sy-subrc = 0.
      append wa to itab.
      else.
        exit.
      endif.
    endwhile.
    close dataset file.
    regards
    Siggi
    PS: check also the F1-help for open, read and close statements!

  • How to catch ClassCastException from JSP page?

    I get a ClassCastException within my JSP page and I know where my bug is. However, this classcastexception message is displayed in the browser and I want to catch this exception to also log it into my log file. But I can't find the place where to catch it: in my servlet's doPost() method I can't catch it - i tried it by enclosing the method body with try/catch but it isn't catched. I wonder if I can catch it at all or if this error is handled internally in the servlet engine?

    It should only be displayed in the browser if you're not catching the exception in the jsp itself. If the exception is happening in the jsp, then there's no point in trying to catch it in the servlet.
    What happens if you put a try-catch just around the actual code in the jsp? You could put it around the entire jsp, but that's not necessary.
    One problem I've encountered in catching exceptions is if there are escape sequences within the try block, for example:
    try{
       //java code
    %>
       <!--html -->
    <%
    //java
    catch (Exception e)I'm not sure if that works or not, but to be safe, make sure you're not escaping from jsp within the try block.

  • Need to create PAR files from JSP

    Hi,
    In my project we are creating portal archives from JSP iviews .
    Using NWDS we can easily create par files by going to Enterprise Portal workspace  .But in my project we are not using NWDS or any other JSP editor .
    Can anybody tell me how to create par files if i am using only notepad to develop my JSP .
    Thanks a lot .

    Hi
    here is the link how to create a par file without using any editor
    http://support.sas.com/rnd/itech/doc9/portal_dev/tasks/dg_portlet_parfile.html
    all the best..
    thanks Regards ,
    Boopalan.M

  • SQL from JSP

    Hi everybody,
    i started to program in JSP only from yesterday and i'd like to execute a statement SQL from my JSP page....
    My code is
    <%Class.forName("oracle.jdbc.driver.OracleDriver");%>
    <%java.sql.Connection c = java.sql.DriverManager.getConnection("ora817", "protocs", "protocs");%>
    <% try {
    Statement dbst = c.createStatement();
    ResultSet rs;
    rs = dbst.executeQuery("update upload_status set stato= 4;");
    c.close ();
    catch (SQLException e) {
    out.println("Non riesco a fare l'update "+e);
    return;
    %>
    So when i use use JDeveloper and i run the project i obtain the following error
    500 Internal Server Error
    java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(DriverManager.java:532)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at untitled1.jspService(untitled1.jsp:17)
         [untitled1.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    I hope that some one can help me

    Let's see.
    You don't have the Oracle JDBC driver JAR in the CLASSPATH. Put it in WEB-INF/lib in your Web app's WAR file.
    Your Oracle database URL is totally wrong. It should look something like this:
    jdbc:oracle:thin:@host:1521:database
    You should separate out that JDBC code and test it in a separate object on the command line before you try sticking it into a JSP. At least make sure that you know how to connect to the database.
    Sounds like you need these:
    http://java.sun.com/docs/books/tutorial/jdbc/
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    MOD

  • Permitting user to choose value for a field only from F4

    Hi all,
       I have the following requirement in table maintenance generator.
       There is a custom field in the Z table for which table maintenance is generated to which a search help is attached.
       Now in the maintenance screen(SM30) i get a F4 value help for this field and also user can input values in this field. But the requirement is that the user should be able to select values only from F4 and should not be able to input any values.List box is not accepted.
    Thanks & Regards,
    Shafiq

    Hi Jon,
       Thank you once again. The issue is solved using the 'DYNP_VALUES_UPDATE' function module.
    I will put the code here for others to refer.
    ****ON THE SCREEN FLOW LOGIC*****
    PROCESS ON VALUE-REQUEST.
      FIELD /rb05/wwr_cr_t-mvgr4 MODULE value.  "Field on which F4 is required
    ****MODULE IMPLEMENTATION********
    *&  Include           /RB05/LYBW_WWRTTTI01
      DATA:
        l_fldval            LIKE help_info-fldvalue,
        l_repid             LIKE sy-repid,
        l_repid1            LIKE d020s-prog,
        l_dynnr             LIKE sy-dynnr,
        l_dynnr1            LIKE d020s-dnum,
        lt_return           LIKE ddshretval OCCURS 1,
        ls_return           LIKE ddshretval,
        ls_dynpread         LIKE dynpread,
        lt_dynpread         LIKE dynpread OCCURS 1,
        cnt                 TYPE i VALUE 0.
    MODULE value INPUT
      MODULE value INPUT.
        GET CURSOR LINE cnt.
        l_repid = sy-repid.
        l_dynnr = sy-dynnr.
        l_repid1 = sy-repid.
        l_dynnr1 = sy-dynnr.
        CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = space
            fieldname         = space
            searchhelp        = '/B05/OWWRW58'
            shlpparam         = '/B05/S_WWRW58'
            dynpprog          = l_repid
            dynpnr            = l_dynnr
            dynprofield       = '/RB05/WWR_CR_T-MVGR4'
            stepl             = 0
            value             = l_fldval
            display           = 'F'   "Force
          TABLES
            return_tab        = lt_return
          EXCEPTIONS
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            OTHERS            = 5.
        IF NOT sy-subrc IS INITIAL.
          MESSAGE s398(00) WITH 'Call to Searchhelp failed'
            space space space.
          EXIT.
        ENDIF.
        CLEAR : ls_dynpread, lt_dynpread, ls_return.
        BREAK-POINT.
        READ TABLE lt_return INTO ls_return WITH KEY retfield = '/RB05/WWR_CR_T-MVGR4'.
        IF sy-subrc EQ 0.
          ls_dynpread-fieldname  = '/RB05/WWR_CR_T-MVGR4'.
          ls_dynpread-stepl      = cnt.
          ls_dynpread-fieldvalue = ls_return-fieldval.
          APPEND ls_dynpread TO lt_dynpread.
        ENDIF.
        READ TABLE lt_return INTO ls_return WITH KEY retfield = 'TXTSH'.   "Filling the related field
        IF sy-subrc EQ 0.
          ls_dynpread-fieldname  = '/RB05/WWR_CR_T-GB'.
          ls_dynpread-stepl      = cnt.
          ls_dynpread-fieldvalue = ls_return-fieldval.
          APPEND ls_dynpread TO lt_dynpread.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
              dyname               = l_repid1
              dynumb               = l_dynnr1
            TABLES
              dynpfields           = lt_dynpread
            EXCEPTIONS
              invalid_abapworkarea = 1
              invalid_dynprofield  = 2
              invalid_dynproname   = 3
              invalid_dynpronummer = 4
              invalid_request      = 5
              no_fielddescription  = 6
              undefind_error       = 7
              OTHERS               = 8.
        ENDIF.
      ENDMODULE.                    "value INPUT
    P.S: Points alloted.
    Message was edited by:
            Shafiq

Maybe you are looking for

  • Link Between Pages in a PDF Report

    It would be great to be able to make a link between different pages in a DIAdem report, and have those links carry over into a PDF version of the report. For example, if I had a very large report, it might be useful to be able to create a Table of Co

  • My iPad screen is cracked and I'm not sure if its out of warranty, how much does it cost?

    I

  • Airport express suddenly lost range

    Hello, My airport express was working fine for a long time ago. Suddenly it started blinking amber. I unplugged and plugged back with no success. Did hard reset, nothing. But, when I plug it closer to the time capsule it works! This is really strange

  • T440 - Problem booting from Win7 USB drive

    Dear Forum I have a wonderful new T440 here and am wishing to load Windows 7 x64 from a bootable usb memory stick, which I've always used and works fine on other computers (tested again this morning).However when I try to boot my T440 from this drive

  • Qemu+kqemu+winxp = crash

    WinXP without kqemu works, but slow. With kqemu it hangs on logo. I boot it this way: qemu -hda /dev/sda (or file copied from /dev/sda)