JSTL 1.1 : Exception uri can not be resolved.

Hi buddy,
I'm getting the below excpetion message when i try to use JSTL 1.1
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
     org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
     org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
     org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
     org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
The below is my configuration,
1. I'm using Tomcat 5.0 web container
2. I had used servlet and jsp without any problem
3. I think to use JSTL 1.1 at first time in my small web application
4. I have copied jstl.jar which comes up with tomcat jsp-exmaples to my jspel/WEB-INF/lib directory (jspel is my aplication name)
5. I have wrriten the below servlet
JstlTestServlet.java
===============
package com.el;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class JstlTestServlet extends HttpServlet
     public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
               String [] names={"Sachin","Dravid","Dhony","Jaffer"};
               request.setAttribute("cricketers",names);
               RequestDispatcher disp=request.getRequestDispatcher("jstlview.jsp");
               disp.forward(request,response);
6. I have written the below jsp and its been placed in jspel directory (my application home directory)
jstlview.jsp
=========
<html>
<head>
<title>JSTL View</title>
</head>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<body>
<center> <u> <h2> JSTL Practice </h2> </u>
<br><p>
<table>
     <c:forEach var="names" items="${cricketers}" >
     <tr>     
               <td> ${names} </td>
     </tr>
     </c:forEach>
</table>
</body>
</html>
========================================
7. The below is my web.xml
===================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
     <servlet-name>jstlprocessor</servlet-name>
<servlet-class>com.el.JstlTestServlet</servlet-class>
     </servlet>
     <servlet-mapping>
<servlet-name>jstlprocessor</servlet-name>
<url-pattern>/jstl.do</url-pattern>
</servlet-mapping>
</web-app>
=========================================
8. I load the url in my browser: http://localhost:8085/jspel/jstl.do
9. I get the exception as mentioned in the top of the notes : "org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application"
Can you please tell me should i do any more configurayion any where, i believed taglib will be taken from WEB-INF/jstl.jar file ?
Cheers,
Saravvij.

Well there goes the theory that you had JSTL1.0 installed.
It was a nice theory while it lasted.
The interesting thing is when I open the .jar I doesn't see a Manifest directory there is just the .mf file.Depending on the zip tool you are using, the screen shows up differently. It should be in a PATH of "META-INF" though, which amounts to the same thing.
If the tld files are NOT in the META-INF path, that would be the cause of the issue.
There are jstl.jar and standard.jar in the webapps\examples\WEB-INF\lib directory, but this should not affect my webapp since it is in a different
context root right?You are correct. They won't affect your web app as they are a different context.
Just as an experiment, try copying those versions into your webapp and see if it makes any difference. Its just an alternative source of the JSTL libraries.
You don't have other copies of jstl lying around do you? In the [TOMCAT]/lib directory for instance?
One other thing that might be the cause. According to [Tomcat context configuration|http://tomcat.apache.org/tomcat-6.0-doc/config/context.html] you can set the processTlds attribute to "false" and it won't process tlds. Check the server.xml and the relevant context.xml files to see if this option has been set. The default is "true" so it would have to have been explicitly disabled- something unlikely to have happened, but possible.
Cheers,
evnafets

Similar Messages

  • ORA-29534 error for Class can not be resolved

    HI,
    I am trying to load and resolve a third party jar file which has some JMS classes. But while using the loadjava utility,
    "loadjava -u scott/tiger@dbname -r -v -genmissing weblogic.jar"
    i get "ORA-29534: referenced object <Class Name> could not be resolved" error for most of the classes.
    This Jar file has around 15000 classes definitions and it takes almost a complete day to load and resolve it. Even after taking so much of time it is unable to resolve all the classes and give a runtime exception Class can not be resolved for some class.( i have created the oracle java stored procedure successfully)
    I need a help on this very urgently...
    Thanks in advance....
    Sachin

    Sachin,
    There are many possible causes for the error you are getting, for example:
    1. The DBMS_JAVA package is corrupt.
    (Have you previously successfully loaded JARs -- or even java classes -- into the database?)
    2. A java version mismatch.
    (What Oracle database version are you using, and what java version is your JAR file compatible with?)
    You say,
    Surely they are loaded but not resolvedIs this a question, or a statement? Have you verified that the classes are loaded and not resolved? I use the following query for this:
    select DBMS_LONGNAME(OBJECT_NAME), STATUS
      from USER_OBJECTS
    where OBJECT_TYPE like 'JAVA%'The value for the STATUS column should be 'VALID'.
    I'm only guessing, but you may find more information (regarding the error you are getting) in the Oracle log files. Have you checked them?
    Have you tried searching the MetaLink Web site?
    http://metalink.oracle.com
    (Search for "ORA-29516", perhaps.)
    Good Luck,
    Avi.

  • After i update my ipad 2(wifi 3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    after i update my ipad 2(wifi+3g/64g) to ios 5.0.1..everything works ok except 3g  can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok

    i am at SAUDI ARABIA and the Service Provider is (STC) i found that the APN setting has to change from (jawalnet.com.sa ) to (afaqwireless.com).. NOW 3G OK

  • Prefix: 'q1' can not be resolved to a URI

    We are trying to import a WSDL whihc is provided by the client in Informatica using Web Service consumer, the WSDL is using SOAP12. While importing it gives erros like below.. has any one encountered a similar issue? @schema5, line 5, char 112 ): Prefix: 'q1' can not be resolved to a URI.@schema5, line 5, char 112 ): Schema Representation Constraint: Namespace '' is referenced without <import> declaration.@schema3, line 5, char 174 ): Prefix: 'q1' can not be resolved to a URI.@schema3, line 5, char 174 ): Prefix: 'q1' can not be resolved to a URI.@schema3, line 5, char 174 ): Prefix: 'q1' can not be resolved to a URI.@schema3, line 5, char 174 ): Type not found in :PropertyChangedEventHandler.@schema1, line 88, char 173 ): Prefix: 'q2' can not be resolved to a URI.@schema1, line 88, char 173 ): Prefix: 'q2' can not be resolved to a URI.@schema1, line 88, char 173 ): Prefix: 'q2' can not be resolved to a URI.@schema1, line 88, char 173 ): Type not found in :CustomerResponse.StatusCode.@schema1, line 36, char 181 ): Prefix: 'q1' can not be resolved to a URI.@schema1, line 36, char 181 ): Prefix: 'q1' can not be resolved to a URI.@schema1, line 36, char 181 ): Prefix: 'q1' can not be resolved to a URI.@schema1, line 36, char 181 ): Type not found in :CustomerResponse.StatusCode.@schema1, line 118, char 206 ): Prefix: 'q3' can not be resolved to a URI.@schema1, line 118, char 206 ): Prefix: 'q3' can not be resolved to a URI.@schema1, line 118, char 206 ): Prefix: 'q3' can not be resolved to a URI.@schema1, line 118, char 206 ): Type not found in :Response.

    쉐라톤워커힐카지노 る【QWAS888。COM】る/카지노사이트≤/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/바카라사이트に/온라인바카라ト/카지노사이트つ/

  • Please, help .. return not working. string can not be resolved to a variabl

    Greetings..
    I am writing a Java code that encrypt a String using DES. After encryption, I want to return the String, but I get error that says: variable can not be resolved. Please, help me to find out what is the problem ?? Thanks in advance.
    Here is the code:
    import javax.crypto.*;
    import java.security.*;
    public class Client {
         public String DESEncrypt(String cardnum)
              try{
              //create cipher object for DES
              Cipher c=Cipher.getInstance("DES");
              // craete the symmetric key for DES
              KeyGenerator kg=KeyGenerator.getInstance("DES");
              Key key=kg.generateKey();
              // DO the ecryption steps then display the result
              c.init(Cipher.ENCRYPT_MODE, key);
              //Dofinal accepts byts only. Thats why we use getbytes method.
              byte[] cardNoBytes=cardnum.getBytes("UTF8");
              //get the encrypted bytes
              byte[] encryptedCardNoBytes=c.doFinal(cardNoBytes);
              //convert bytes to string
              String cardNoString=new String(encryptedCardNoBytes);
              } catch(Exception e){ System.out.print("Error");
              return cardNoString;
         } //end the DESEncrypt method
    public static void main (String[] args) {
    try{
         Client cl=new Client();
         String x2=cl.DESEncrypt("123");
         System.out.println("The Encrypted text using DES is: " + x2+'\n');
    } catch(Exception e){ System.out.print("Error");
    }//end main
    }

    Next time, paste in the exact, complete error message and indicate clearly exactly which line is causing it.
    Your problem is that you declare cardNoString inside the try block, but you try to return it outside. Local variables only exist in the narrowest block in which they're declared. Once you exit try, that variable does not exist.
    You also have a logical problem. If an error occurs, you're just printing out :"Error", but you're not actually handling it. You're going on as if everything is fine. Catching an exception doesn't fix the error. If you can't fix it, don't catch it.
    What do you think your method will return if an exception occurs before you set cardNoString? What do you think it will do to the caller to have some arbitrary, meaningless value returned when he thinks everything went fine and he got a valid result?

  • Exception color can not display at another key figure in BEx query desinger

    I have a report requirement, the user want to display the average price on each month ,such as:
    Jan.   Feb. Mar.  Apr. etc.
    100    105    104   95   ....
    and the user want to compare each other months with Jan's price.
    they want to display the exception color when the rise or down rate greater or less than 5%.
    Now ,I can only change the output structure such as:
    Jan.  Feb. Rate2-1                 Mar.  Rate3-1                 etc.
    100   105   (105-100)/100=5%  104    (104-100)/100=4%  ....
    Now I can set Exception on the formula Rate2-1 Rate3-1....
    But the Exception color can only display on Rate2-1,Rate3-1...
    and Not the Keyfigure Feb. Mar...
    I am using the BI 7.0 and the new Query Designer.
    Who can help me to solve this question .
    Thanks.
    Yours Youming.Zhao

    Hi,
    its simply not supported for BEx Analyzer. Exception reporting on another key figure is only possible for Web Reporting.
    Check this actual SAP Help Link:
    [Restrictions in the BEx Analyzer|http://help.sap.com/saphelp_nw70/helpdata/en/45/5038f28cce08d2e10000000a11466f/content.htm]
    Sorry that i dont have a better answer
    Cheers

  • Exception --- Value can not be converted to requested type.Error Code: 0

    Inside my query, I try to use function,like
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    sometimes query works fine and sometimes got following exception, can anyone here help me out..
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at com.cad.report.data.DocumentReturnedDataGenImpl.loadData(DocumentReturnedDataGenImpl.java:130)
         at com.cad.report.data.AbstractDataGen.getReport(AbstractDataGen.java:96)
         at com.cad.report.command.ProcessReportRequestOnMessage.run(ProcessReportRequestOnMessage.java:74)
         at com.cad.registration.command.AbstractCommand.execute(AbstractCommand.java:106)
         at com.cad.flow.core.Run.run(Unknown Source)
         at com.cad.flow.core.WorkflowComponent.run(Unknown Source)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:238)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:135)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl.execute(WorkflowManager_uh667k_EOImpl.java:132)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_1001_WLStub.execute(Unknown Source)
         at com.cad.util.WorkflowProxy.runWorkflow(WorkflowProxy.java:128)
         at com.cad.kbd.messenger.listener.mdb.ReportRequestMDB.onMessage(ReportRequestMDB.java:84)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:988)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:780)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:562)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:791)
         at oracle.toplink.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:518)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:965)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:878)
         at com.cad.persistence.toplink.TopLinkPersistenceBrokerImpl.executeQuery(TopLinkPersistenceBrokerImpl.java:420)
         at com.cad.report.data.DocumentSys.getSummitedDocumentNumber(DocumentSys.java:332)
         at com.cad.report.data.DocumentSys.loadData(DocumentSys.java:110)
         ... 24 more
    Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BaseData.getTimestamp(Unknown Source)
         at weblogic.jdbc.base.BaseResultSet.getTimestamp(Unknown Source)
         at weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet.getTimestamp(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:1038)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:942)
         ... 45 more

    Here is my code
    ExpressionBuilder builder = new ExpressionBuilder();
    ReportQuery query = new ReportQuery(RegistrationDetailImpl.class, builder);
    query.addArgument("startTime");
    query.addArgument("endTime");
    query.addArgument("lro");
    Expression lroCol = builder.get("lro");
    Expression regDateCol = builder.get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_NUMBER_COL).get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_DATE_COL);
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    Expression timeExp = regDateCol.between(builder.getParameter("startTime"), builder
    .getParameter("endTime"));
    Expression lroExp = lroCol.equal(builder.getParameter("lro"));
    query.setSelectionCriteria(timeExp.and(lroExp));
    query.addCount();
    query.addAttribute("regDate", formattedRegDateCol);
    query.addGrouping(formattedRegDateCol);
    query.addOrdering(formattedRegDateCol.ascending());
    descriptor.getDescriptorQueryManager().addQuery("testquery", query);

  • Default JSTL URI can't be resolved

    I have the following as the first line of my JSP:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    When I access the page I get the following error message from Tomcat (version 5.5):
    The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
    Can anyone suggest what I should do to get around this? What might be the problem? All references I've seen show this to be the right thing to do if you want to use JSTL.
    Thanks in advance for any insight!
    --James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Probably you have added jstl.jar library
    to your project but forgotten to add standard.jar
    library.You hit the nail on the head Jorge, this was exactly my problem. Thanks for your input.
    --James                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can not be resolved session, folder ,store, message[]

    i dont have a clue on what i am missing here. Any nice explanation on the why would be great
    Session cannot be resolved
    Session cannot be resolved or is not a type
    Store cannot be resolved or is not a type
    Folder cannot be resolved
    folder cannot be resolved or is not a type
    Message[] cannot be resolved or is not a type
    import javax.mail.*;
    import javax.mail.internet.*;
    public class fetch_mail {
         public static void main (String args[])
          throws Exception {
         Properties props = new Properties();
         Session session = Session.getDefaultInstance(props, null);
         Store store = session.getStore("pop3");
        store.connect("smtp.host.com", "user", "pwd");
        Folder inbox = store.getFolder("INBOX");
        inbox.open(Folder.READ_ONLY);
        try {
        Message message[] = inbox.getMessages();
        for (int i=0, n=message.length; i<n; i++) {
        String subject = message.getSubject().toString();
    if (subject.startsWith("[test]")) {
    System.out.println("\r" + i + ": "
    + message[i].getFrom()[0]
    + "\t" + message[i].getSubject());
    String content =
    message[i].getContent().toString();
    if (content.length() > 200) {
    content = content.substring(0, 200);
    System.out.print(content);
    catch (IOException e) {
    System.err.println("Caught IOException");
    // Close connection
    inbox.close(false);
    store.close();
    System.exit(0);

    I got it figured out..
    Altho i did inlude the jar files into the Eclipse, i actually need to put them in the jdk jre lib ext folder to get it all to work right.
    mail.jar and activation.jar

  • Can not parse the xml in orion server.

    Hi, can anyone help me on this.
    I have some configuration file which should be parsed when start the server. It works fine in tomcat , JRun, and some other server, now when I test it using the orion server, It throws out the
    org.apache.commons.digester.xmlrules.XmlLoadException: Relative URI "digester-rules.dtd"; can not be resolved without a document URI.
    I put the dtd and xml together in web-root and specify the location using
    <!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "digester-rules.dtd">
    can anyone tell me how to resolve this.
    following is a code snippet of init the digester
    Digester ruleDigester = new Digester();
    ruleDigester.setUseContextClassLoader(true);
    System.out.println(ruleURL);
    FromXmlRuleSet ruleSet = new FromXmlRuleSet(ruleURL, ruleDigester);
    Digester digester = new Digester();
    digester.setUseContextClassLoader(true);
    ruleSet.addRuleInstances(digester);
    rules = digester.getRules();

    I think you'd better ask this question in apache user mailing list
    http://jakarta.apache.org/site/mail2.html#Commons

  • Can not transfer WMA audio books to new iPhone 4S

    I got a new 4S and went to sync it in iTunes and got a message saying I had to load the latest version of iTunes and went ahead and did it and it worked fine.  No issues and all synced and got all of my apps music and pictures!!  Then i went to transfer a WMA audio book using OverDrive Media and all functioned same as with my 3G phone except I can not find the books on my iPhone.  They are not in the iPod app now called Music.  Also not in the books app or in OverDrive.  Even asked Siri to find the book and she could not
    Any suggestions would be appreciated

    Hi
    Sorry to disagree whist Audible might have recorded the books Apple puts it's own protection on the Audible files they sell in their iTunes Store unless they changed that policy quite recently.
    They are dearer from iTunes at least in Australia, I will go out on a limb and say they are also in the US store
      As an example I picked the fist 2 best sellers off of iTunes Australian Audio Book Store as an example,
    I can only assume that either you are not an Audible Member and thus not seeing the Audible member price.
      AUDIOBOOK                           
      Steve Jobs: The Exclusive Biography UNABRIDGED By                                                     Walter Isaacson
    Regular Price:$22.92
    Audible Member Price:$16.04 or 1 Credit 
    Audible Sale Price:$12.84
      On Apple's Australian site its currently $26.99
                                    AUDIOBOOK                             
                                                                  Scarecrow and the Army of Thieves UNABRIDGED By                                                                                                                                                                                                                                                                                                                               Matthew Reilly                                                                                                                                                                                                                         
    Regular Price:$34.96  
    Audible Member Price:$24.47 or 1 Credit
    Audible Sale Price:$19.58
    On Apple's Australian site its currently $33.99
    Sorry if i misunderstood, but when you started talking about Audible files I assumed ( obviously incorrectly) that they were Audible files purchased from Audible. 
    Audible existed before Apple had an Audio store and Audible has it's own format. In order to use Audible files purchased from Audible you need to Authorize iTunes to do so, under the advanced menu under Authorize Audible Account.
    Your 4S i Assume has IOS 5 so i assumed it was the same issue i was having with my iPad 2 once i installed IOS 5. . . everything was working fine until i did
    I will delete my reply if Apple will let me, because my answer has obviously upset you
    I apologize for any inconvenience my post caused, i was only trying to help
    Kelvin

  • Can not import Outlook 2007 .CSV or .PST files into Outlook 2013 on Win 8.1 64 bit

    I have a new computer (Sony VAIO Pro 11 Ultrabook) with a brand new install of Win 8.1 - 64 bit and MS Office 2013 Professional Plus.  Everything works fine EXCEPT I can not import my contacts or calendar from Outlook 2007 Win 7 - 32 bit into the
    .msn folders in each case.  I can open .pst files in Outlook 2013 but they open in a local file and when I copy and paste them into the Exchange ActiveSync .msn contact and calendar files so that they will sync with Outlook.com Outlook 2013 crashes. 
    It can't even be reopened unless the wireless is turned off, and then you have to create a new data file as a default and then delete the old account and re-establish it.  I have tried using the import functions as well with both
    .CSV and .PST files that were exported from Outlook 2007 and an error message stating that this is not supported comes up.  I have also tried to turn on sync with my iPhone to see if the files will sync from the phone through Outlook.com and nothing happens
    there either - no sync on the web and nothing at the PC.  Email works fine after adding the account again etc.
    None of the procedures on the forums work (open PST file in the local folder then copy/paste, drag/drop, or move the files) so please don't respond with those links.  All result in crash.  Does anyone at MS know what's up with their latest
    and greatest SW? 
    Thank you for your assistance.

    Import the calendar and contacts in Outlook.com. For contacts, export from Outlook as csv and import into Outlook by choosing the Other option (https://people.live.com/import/other?biciid=ImportCatalog) 
    You'll need to save the calendar as an ics file to import it. Select the calendar folder, the File, Save as an save as an ics. 
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Schema Parser - Can not build Schema

    I keep getting the following exception error:
    "Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
    This is the Code which throws the error :
    Reader r = cvcontext.Request.getReader();
    InputSource in_src = new InputSource(r);
    try {
    schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
    }catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
    writeError("three");*/
    DOMParser dp = new DOMParser();
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(r);
    But the following lines of code works perfect:
    try{
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    }catch(Exception e){System.out.println("there is error"+e.getMessage());}
    The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
    The xml document has the xsd reference as http url.
    null

    I keep getting the following exception error:
    "Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
    This is the Code which throws the error :
    Reader r = cvcontext.Request.getReader();
    InputSource in_src = new InputSource(r);
    try {
    schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
    }catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
    writeError("three");*/
    DOMParser dp = new DOMParser();
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(r);
    But the following lines of code works perfect:
    try{
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    }catch(Exception e){System.out.println("there is error"+e.getMessage());}
    The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
    The xml document has the xsd reference as http url.
    null

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Package can not resolve

    Hi I have this import package
    import java.util.regex.*;
    Now this package is only in 1.4 api not 1.3 api.
    I am using websphere 5.1 with follwoing jre
    IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\jre.
    but error message is coming import can not be resolved.
    now at installation time websphere uses 1.3 but i changed wverywhere from 1.3 to 1.4 but problem still persisting
    thanxs and regards

    use base_v51 not base_v5.
    solved

Maybe you are looking for