Error in conversion-applet class is not defined!

Hello everybody.I have created my own applet and I try to test it in a simulation world ,using the Java Card Toolkit 2.1.1.
I have declared AID of my applet in the jcwde.app file as following:
///The code in the jcwde.app file
com.sun.javacard.samples.wallet.Wallet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x6:0x1
//Declare my applet
com.sun.javacard.samples.myapplet.myapplet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x7:0x1
/////End of the code
In the first line of this file there is the AID of the installer also.
As you can see from the above file, the only difference between th wallet and myapplet is the second byte from the end.
Then I tried to compile(was successful) myapplet and then converted.When I try to convert(I also create an .opt file which has the above address of myapplet), I received the message:
error: com.sun.javacard.samples.wallet.myapplet class is not defined in package com.
sun.javacard.samples.wallet.myapplet.
conversion completed with 1 errors and 0 warnings.
I will give the .opt file also:
/////code of the opt file
-out EXP JCA CAP
-exportpath ..\api21
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x7:0x1 com.sun.javacard.samples.myapplet.myapplet
com.sun.javacard.samples.myapplet
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x7 1.0
/////End of opt file
What do you think I am doing wrong?Is any other file(like the jcwde.app file) that I have to declare the AID of myapplet?
I will apreciate any help.
Thank you.

The converter informs, that it can not find your applet in >the specified package. Have you really specified a >package in a java-file?
myapplet.java:
package com.sun.javacard.samples.myapplet
your applet code.
Try to specify parameter -classdir in the .opt file:
-classdir <the root directory of the class hierarchy>Hello and thank you for replying me.
Yes,I define the package as you wrote me.I try also to use the -classdir option.But I have this similar problem again.The DOS commmand line appears the message(After the execution of the command->jcwde -p 9025 jcwde.app):
java.lang.ClassNotFoundException: com.sun.javacard.samples.IMSIapp.IMSIapplet
jcwde terminating on receipt of SimulationException. See previous messages fo
cause.
Exception in thread "main" com.sun.javacard.jcwde.SimulationException
at com.sun.javacard.jcwde.MaskedApplets.getInstallInstance(MaskedApple
.java:233)
at com.sun.javacard.jcwde.SimPrivAccess.getROMApplet(SimPrivAccess.jav
146)
at com.sun.javacard.impl.NativeMethods.getInstallMethod(NativeMethods.
va:314)
at com.sun.javacard.impl.PrivAccess.initialize(PrivAccess.java:281)
at javacard.framework.Dispatcher.cardInit(Dispatcher.java:226)
at javacard.framework.Dispatcher.main(Dispatcher.java:63)
at javacard.framework.JCWDEDispatcher.main(JCWDEDispatcher.java:28)
at com.sun.javacard.jcwde.Main.run(Main.java:85)
at com.sun.javacard.jcwde.Main.main(Main.java:148)
It did not recognize the directory(IMSIapp is the directory of my clas,java,opt file) and IMSIappplet is the java card applet code.
What did you think is the wrong?
I am waiting for your(or any reply).
Thank you.

Similar Messages

  • JSP : Tiles Error �tag.getAsString� : component context is not defined

    JSP : Tiles Error �tag.getAsString� : component context is not defined
    I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
    My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:

    javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax

    I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
    What am I missing???
    I have created a series of �mostly� empty JSP files, for simplicity sake.
    JSP FILES:
    -     header.jsp
    -     footer.jsp
    -     menu.jsp
    -     rootLayout.jsp
    -     user.jsp
    -     show_user.jsp
    -     error.jsp
    -     defaultContentPage.jsp
    All JSP files contain:
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    and

    <title>
    <tiles:getAsString name="title"/>
    </title>

    My �tiles-defs.xml�: =================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <!-- ================ RootLayout ======================= -->
    <definition name=".root.layout" path="/jsp/rootLayout.jsp" >
    <put name="title" value="Default title"/>
    <put name="header" value="/jsp/header.jsp"/>
    <put name="menu" value="/jsp/menu.jsp"/>
    <put name="content" value="/jsp/defaultContentPage.jsp"/>
    <put name="footer" value="/jsp/footer.jsp"/>
    </definition>
    <!-- ================ Extentions ======================= -->
    <!-- User -->
    <definition name=".view.user" extends=".root.layout">
    <put name="title" value="Welcome to the User Form."/>
    <put name="content" value="/jsp/user.jsp"/>
    </definition >
    <!-- Save -->
    <definition name=".view.save" extends=".root.layout">
    <put name="title" value="Welcome to the Show User Form."/>
    <put name="content" value="/jsp/show_user.jsp"/>
    </definition >
    <!-- Error -->
    <definition name=".view.error" extends=".root.layout">
    <put name="title" value="Error Message."/>
    <put name="content" value="/jsp/error.jsp"/>
    </definition >
    </tiles-definitions>
    My �struts-config.xml�: ==============================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- ========== FormBeans =================================== -->
    <form-beans>
    <form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
    </form-beans>
    <!-- ========== Action Mapping Definitions=================== -->
    <action-mappings>
    <!-- Action using normal forward syntax...
    <action path="/user"
    forward="/jsp/user.jsp">
    </action>
    -->
    <!-- Action using a "Tiles" forward syntax...
    The "forward" path mappings are defined in a file named
    "../WEB-INF/tiles-defs.xml
    -->
    <action path="/user"
    forward=".view.user">
    </action>
    <!-- Action using normal forward syntax...
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path="/jsp/show_user.jsp"/>
    <forward name="failure" path="/jsp/error.jsp"/>
    </action>
    -->
    <!-- Tiles syntax -->
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path=".view.show_user"/>
    <forward name="failure" path=".view.error"/>
    </action>
    </action-mappings>
    <!-- ============== Global Forwards ======================== -->
    <global-forwards>
    <!-- NOTE: paths with "." syntax are Tiles defined paths,
    all other paths follow conventional "/path/to/file.jsp syntax
    -->
    <forward name="user" path=".view.user"/>
    <forward name="show_user" path=".view.show_user"/>
    <forward name="error" path=".view.error"/>
    <forward name="cssBase" path="/stylesheets/common.css"/>
    </global-forwards>
    <!-- ============= Plug-ins =============== -->
    <!-- Tiles Plug-in -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
    <set-property property="definitions-parser-validate" value="true" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    </struts-config>
    My �web.xml�: =====================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
    <!--
    MyController extends org.apache.struts.action.ActionServlet
    NOTE: The servlet could also be specified specifying the
    default Struts ActonServlet...
    <servlet-name>controller</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    ...I have chosen to extend here just for practice sake.
    -->
    <!--
    <servlet-name>MyController</servlet-name>
    <servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
    -->
    <servlet-name>MyController</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <!--
    Point to Struts configuration file(s)
    -->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- Tiles config -->
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <!-- This is the added Application parameter: -->
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResource</param-value>
    </init-param>
    <!-- end -->
    <load-on-startup>5</load-on-startup>
    </servlet>
    <!--
    All incoming requests that end in .do, send to MyController.
    -->
    <servlet-mapping>
    <servlet-name>MyController</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!--
    Send initial requests to the login page for this application
    -->
    <welcome-file-list>
    <welcome-file>/jsp/user.jsp</welcome-file>
    </welcome-file-list>
    <!--
    Make all of the necessary related Struts JSP custom tag libraries
    available and define where to find them.
    -->
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
    </taglib>
    </web-app>
    My �rootLayout.jsp�: ================================================
    <%@page contentType="text/html"%>
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    <html>
    <header>
    <title>
    <tiles:getAsString name="title" />
    </title>
    <body>
    <tiles:get name="header"/>
    <tiles:get name="menu"/> <tiles:get name="content"/>
    <tiles:get name="footer"/>
    </body>
    </html>

    I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
    tiles:def file:
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name=".petstore.Base" path="/common/petstorecommon.jsp">
    <put name="title" value ="${title}"/>
    <put name="header" value="/common/header.jsp"/>
    <put name="message" value="/common/message.jsp"/>
    <put name="content" value="${content}"/>
    <put name="navbar" value="/common/navbar.jsp"/>
    </definition>
    <definition name="petstore.Login" extends=".petstore.Base" >
    <put name="title" value="Login Page" />
    <put name="content" value="/Logon.jsp"/>
    <put name="test1" value="test1value"/>
    </definition>
    base tile def:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html:html>
    <head>
    <html:base/>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>pet store common (jsp)</title>
    </head>
    <body>
    <tiles:insert attribute="header">
    <%-- both of these attributes are accessible from header.jsp It works!!! --%>
    <tiles:put name="title" beanName="title" beanScope="tile" />
    <tiles:put name="test1" beanName="test1" beanScope="tile" />
    </tiles:insert>
    <%-- <tiles:get name="header" /> --%>
    <tiles:get name="message" />
    <tiles:get name="content" />
    <tiles:get name="navbar" />
    </body>
    </html:html>
    Getting access to the title value in the header.jsp file:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <html>
    <head>
    <tiles:getAsString name="title" />
    <tiles:getAsString name="test1" />
    </head>
    <body>
    </body>
    </html>

  • Class type not defined for this object type

    Hi Friends,
    Could u please guide me ?..We have a requirement to extract some data from classification system.
    This is related with class type 023 - Batch
    I want to use the following parameters in CTBW.
    basis datasource :Z_BATCH_ATTR
    class type : 023
    object table :MCHA
    Datasource type : ATTR
    I am getting an error "Class type not defined for this object type" when i enter the above entries in CTBW.
    The only way I'm being able to make this work is changing object table from MCHA to MCH1.
    This solution does not fit me bacause MCH1 table dont have Plant as Key, and I need it.
    Do you know what should I do to solve this?
    Thanks in advance

    Hi,
    I believe we have to use the list of standard "Basis DataSource", as I'm also stuck with the same issue. Let me know what Basis Data source you selected in this case.
    As I'm trying to extract Batch attributes from "AUSP" Table.
    I have given class type= 023
    Obj Table= AUSP
    But not sure which "basis datasource" I need to select.
    Thanks,
    Satish

  • HELP! flash error code #1065 variable TCMText is not defined

    Hi,
    Im doing a project for uni and trying to create a search bar throughout the flash document for people to find what they are looking for.
    Followed a tutorial online step by step and then i get this error. #1065 variable TCMText is not defined.
    I'm really a beginner, any help would be so greatly appreciated!
    stop();
    var i:int = 0;
    var names:Array = new Array("Annual Report","annual report");
    var frames:Array = new Array("2","2");
    text_in = "..."; /*what is wrong with you */
    searchbutton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
      findInArray(text_in.text);
      gotoAndStop(frames[i]);
    function findInArray(str:String):int
      for(i = 0; i < names.length; i++)
      if(names[i] == str)
      return i;
      return 0;
    it says the issue is on line 7 where i have commented out "what is wrong with you"!
    Ive read a lot of things online and i have got it as classic text, which everyone is telling them to do. So quite confused.
    If you can, please help me.
    Thanks!!!

    Sorry for a delay in reply.
    Here is what the error says...
    ReferenceError: Error #1065: Variable TCMText is not defined.
    Scene 1, Layer 'Actions', Frame 1, Line 7
    1067: Implicit coercion of a value of type String to an unrelated type flash.text:TextField.
    If you could help in away that would be great cheers!

  • Error in ME59N- Internal number assignment not defined

    Dear Gurus,
    I am getting error while creation automatic PO In ME59N. Below error shows
    Error Name                                                                                          Massage Class          Msg No.
    PO header data still faulty                                                                            MEPO                         2
    Internal number assignment not defined (please enter number)                 06                              243
    I have done all the setting in Material Master & Vendor Master for Automatic PO Genration.
    Aslo I maintain the source list & Info Record for two vendors.
    I assign the source of supply in PR .
    After this when I exicute in ME59N by entering Purchasing Group,Purchasing Org,Vendor,Plant
    and selected the Per Requisition , per contract tab.
    After this above two error is showing in SAP.
    Kindly give us solution to resolve this.
    Regards.
    Abhijit
    Subject changed to reflect the issue-  by: Jürgen L

    Hi
    The error is probably caused because T161-NUMKI = <BLANK>.  Please fill in the valid T161-NUMKI.
    This needs to be done in customising
    Transaction SPRO:
    Material Management -> Purchasing -> Purchase Order -> Define Document types
    Number range in the case of internal number assignment
    Hope this information is of help.
    Kind regards,
    Lorraine

  • Error saying 'Posting period 000 is not defined for fiscal year variant K4'

    Hi All,
       When I try to add a new entry in the transaction OB52, I get an error message saying 'Posting period 000 is not defined for fiscal year variant K4'. The entry that I add is,
    Variant           :  0001
    Account Type: +
    From Period    : 1
    Year               : 1995
    To Period        : 12
    Year               : 2010
    From Period2  : 13
    Year               : 2000
    To period2      : 16
    Year               : 2010
    Please let me know what customising needs to be done to solve this issue.
    Thanks a ton.
    Best Regards,
    Jeff

    Hi,
    Hava you checked in OB52 screen, by default 0001 posting period variant will be there for +, A, D, K, S account types.
    If it is already existed in your OB52 screen, you won't create one more record with the same name. You have to edit the existing 0001 posting period with new values.
    Thanks
    Chandra

  • Error as unit of measure PC not defined for language RO while creation ofPO

    Hi GUYS,
    When am trying to create a PO in ME21N transaction i got error as below,
    unit of measure PC not defined for language RU
    Message no. 06079
    Table 006A contains no entry for this unit of measure
    Please let me know what action to be taken from my side to over come this issue.
    Note: If i check the related vendor i could able to view that the language maintained as RU.
    Cheers,
    Kumar.S

    Hi Jurgen,
    Thanks for your reply once again.
    As mentioned by you earlier i have tried to login with languae RU in Q system but unfortunately i got an error saying taht language not installed.
    Also we found for Language - EN and UOM - PC has been maintianed in T006A table.But if i check for lanugage - RU and UOM PC combinatoin has not manintaned in T006A table.
    Please let me know how to maintain the values in this table T006A for combination Lang - RU and UOM - PC.
    Please revert back with your soilution.
    Note: I have tried in SM30 but failed due to below error
    The maintenance dialog for T006A is incomplete or not defined
    Cheers,
    Kumar.S

  • Jco error RFC adapter field PT F not defined

    Hi Experts,
    I am in a strange situation as I have become clue less on this issue
    It is a file to XI to RFC scenario.. runs fine in dev environment
    When I change the parameters in teh rfc communication channel  to point to QAS it throws
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling Z_TRAX_PO_CHG_IV in remote system (RfcClient[CC_QAS]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Field selection PT F not defined:
    There is no such field as PT F and besides the version of the bapi in QAS is in sync with the dev..
    pls help me ou ton this
    Edited by: Ravindra Teja on Feb 27, 2011 8:45 AM

    Hi,
    First of all, can you please elaborate what you want?
    secondly, why don't you transport your developments to QAS?
    Third, what is the reason behind changing the receiver RFC adapter parameter to QAS?
    4th, do you want to post data to QAS, if yes, did you transported the RFC to QAS ? Please re import the rfc to your swcv from QAS system.
    Please check communication channel if you getting any error?
    Regards
    Aashish Sinha

  • Requirements class is not defined

    Hi,
    if I try to add a new item to a contract, I receive the message "Requirements class y1 is not defined".
    I double checked the whole requirement customizing and y1 is there and also assigned to the item category determined.
    Does anyone know what's the problem?
    Best Regards,
    Florian

    Well, mysterious but I deleted and recreated the whole requirement class and it works.

  • Error in IS-AFS "Class Type not Active"

    Hiii,
    I am getting an Error while doing GR for batch (023) managed material "Class Type not active: Error ID: VK 663.
    Please throw some light.
    Regards,
    Kumar

    Hi Kumar,
    We are also facing the same problem.
    Have you fixed it? if so could you please pass-on the solution/useful informtion..
    Thanks in advance..
    Regards,
    Siva

  • Error message: Ship-to party 1111 not defined for sales area 1000 01 50

    Hi friends,
    I created a new division 50 reference the one available. I maintained all the combination in sales area as far as I know.
    When created SO, I got a error message saying "  Ship-to party 1111 not defined for sales area 1000 01 50". Message No VP210
    Please advise where I missed configuration.
    Thanks,
    Linda
    Edited by: LindaSAP on May 25, 2010 5:40 PM

    Hi,
    Please check the below links
    Ship-to party not defined for sales area
    "SHIP TO PARTY NOT DEFINED FOR SALES AREA "
    Ship to party is not defined for sales area..
    Ship-to party not defined for sales area
    Ship-to party 147 not defined for sales area US DS 20
    ship to party -sales area error
    Regards
    Senya

  • Error msg 'Tax category UTX2 is not defined for country US' in RMDATIND

    Hello,
      We just upgraded our system from 4.6C to ECC 6.0 and have been using RMDATIND (BMV0) to load new materials into SAP. This worked fine in 4.6C, but now we keep getting the error 'Tax category UTX2 is not defined for country US'. It is error msg M3019.
      I'm assuming that there is some configuration change we must make, but have not found the correct one so far.
      Can someone guide us as to what changes we must make to be able to load new materials into our SAP system without getting this error message?
      Thank-you,
      Rick

    I wanted to delete this message as I felt it was in the wrong section, but I cannot find out how to delete a message.

  • Error with signed applet "class can't be instantiated"

    hi,
    I developed an applet to make a ftp connexion to upload files from the local disk and the applet is already signed. At first I compiled it with the 1.4 version and I got (from other computers) the error "class not found". Then I used the target 1.1 option and now I get the error "class can't be instantiated"
    Do I need any additional code?
    I am using all these imports
    import java.applet.Applet;
    import java.applet.AppletContext;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.JComponent;
    import javax.swing.JProgressBar;
    import javax.swing.*;
    Thanks

    go to
    Tools->Internet Options->Advanced
    Look for "Java (Sun)" (normally near Microsoft VM). I uncheck all the Microsoft VM options but am not sure if that is really necessary.
    Also play with Control Panel, you should see "Java Plug-in" in there and be able to configure browsers a bit with that.

  • String.format()   error (works in a class file , not in jsp)

    Hello all,
    I am using Java 5 and am trying to use the String.format() method in a jsp but am getting the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /ajax.jsp
    Generated servlet error:
    C:\Documents and Settings\gforte\.netbeans\5.0beta2\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\agi\org\apache\jsp\ajax_jsp.java:50: cannot find symbol
    symbol : method format(java.lang.String,java.util.Date,java.util.Date)
    location: class java.lang.String
    String dateString = String.format("%tb%td",date,date);
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9
    The code I am using is working fine in a class file but wont work in my jsp.
    <%@page import="java.util.*,java.lang.String"%>        
    Date date = new Date();
    String dateString = String.format("%tb%td",date,date);
    System.out.println(dateString);Any ideas?

    I get excactly the same problem.
    If compile the the JSP in Netbeans it works fine, however when Tomcat attempts to compile it into a servlet at runtime, I get the same error as described.
    This is the line in JSP that fails:
    <code>Some more text <%= String.format("%s","Bizarre") %> </code>However this one works OK:
    <code>Some more text <%= "Bizarre".substring(3) %> </code>Its almost as if Tomcat is compiling under JDK 1.4.2 or something but I don't have any other JDK or JRE installed; only 1.5.
    I suspect it may be a Tomcat setting that's causing a 1.4 code compliance.
    In Netbeans, if I go to the project properties -> Sources, at the bottom is the "Source Level" drop down list. If I change this to 1.4 and clean and build the whole project I get the same error when the jsp (or any class with this construct) is compiled by NetBeans.
    Note: I am using the Netbeans 5.0 and Tomcat and 5.5.9 co-bundle which I downloded from the Sun website.
    Can anyone help?
    Heres the splurge from the browser output:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 55 in the jsp file: /login.jsp
    Generated servlet error:
    C:\Documents and Settings\Peter\.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\SuperStruts\org\apache\jsp\login_jsp.java:105: cannot find symbol
    symbol  : method format(java.lang.String,java.lang.String)
    location: class java.lang.String
          out.print( String.format("%s","Bizarre") );
                           ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    Note also that when I run this JSP page:
    <%@page import="java.util.*"%>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%
            Properties p = System.getProperties();
            Enumeration keys = p.keys();
            Object key;
            while (keys.hasMoreElements()) {
                key = keys.nextElement();
                out.println("key: " + key + " - " + p.getProperty((String)key) + "<br/>");
    %>     ... I get this browser output:
    key: java.runtime.name - Java(TM) 2 Runtime Environment, Standard Edition
    key: sun.boot.library.path - C:\Program Files\Java\jdk1.5.0_06\jre\bin
    key: java.vm.version - 1.5.0_06-b05
    key: shared.loader - ${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
    key: java.vm.vendor - Sun Microsystems Inc.
    key: java.vendor.url - http://java.sun.com/
    key: path.separator - ;
    key: tomcat.util.buf.StringCache.byte.enabled - true
    key: java.vm.name - Java HotSpot(TM) Client VM
    key: file.encoding.pkg - sun.io
    key: user.country - GB
    key: sun.os.patch.level - Service Pack 2
    key: java.vm.specification.name - Java Virtual Machine Specification
    key: user.dir - C:\Program Files\netbeans-5.0\enterprise2\jakarta-tomcat-5.5.9\bin
    key: java.runtime.version - 1.5.0_06-b05
    key: java.awt.graphicsenv - sun.awt.Win32GraphicsEnvironment
    key: java.endorsed.dirs -
    key: os.arch - x86
    key: java.io.tmpdir - C:\Documents and Settings\Peter\.netbeans\5.0\jakarta-tomcat-5.5.9_base\temp
    key: line.separator -
    key: java.vm.specification.vendor - Sun Microsystems Inc.
    key: java.naming.factory.url.pkgs - org.apache.naming
    key: java.util.logging.manager - org.apache.juli.ClassLoaderLogManager
    key: user.variant -
    key: os.name - Windows XP
    key: sun.jnu.encoding - Cp1252
    key: java.library.path - C:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\db_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\CVSNT\
    key: java.specification.name - Java Platform API Specification
    key: java.class.version - 49.0
    key: sun.management.compiler - HotSpot Client Compiler
    key: os.version - 5.1
    key: user.home - C:\Documents and Settings\Peter
    key: catalina.useNaming - true
    key: user.timezone - Europe/London
    key: java.awt.printerjob - sun.awt.windows.WPrinterJob
    key: file.encoding - Cp1252
    key: java.specification.version - 1.5
    key: catalina.home - C:\Program Files\netbeans-5.0\enterprise2\jakarta-tomcat-5.5.9
    key: java.class.path - C:\Program Files\Java\jdk1.5.0_06\lib\tools.jar;C:\Program Files\netbeans-5.0\enterprise2\jakarta-tomcat-5.5.9\bin\bootstrap.jar
    key: user.name - Peter
    key: java.naming.factory.initial - org.apache.naming.java.javaURLContextFactory
    key: package.definition - sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
    key: java.vm.specification.version - 1.0
    key: java.home - C:\Program Files\Java\jdk1.5.0_06\jre
    key: sun.arch.data.model - 32
    key: user.language - en
    key: java.specification.vendor - Sun Microsystems Inc.
    key: awt.toolkit - sun.awt.windows.WToolkit
    key: java.vm.info - mixed mode
    key: java.version - 1.5.0_06
    key: java.ext.dirs - C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
    key: sun.boot.class.path - C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_06\jre\classes
    key: server.loader - ${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
    key: java.vendor - Sun Microsystems Inc.
    key: catalina.base - C:\Documents and Settings\Peter\.netbeans\5.0\jakarta-tomcat-5.5.9_base
    key: file.separator - \
    key: java.vendor.url.bug - http://java.sun.com/cgi-bin/bugreport.cgi
    key: common.loader - ${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/lib/*.jar
    key: sun.io.unicode.encoding - UnicodeLittle
    key: sun.cpu.endian - little
    key: package.access - sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
    key: sun.desktop - windows
    key: sun.cpu.isalist - demonstrating (I think) that the correct JDK and JDK are in use by Tomcat.

  • Realized conversion differences account is not defined

    Good morning to all
    I have this problem when trying to make a payment received
    and review all accounts, but there is no account with that name.
    is appreciated all the help.
    I have the version 9.0 PL 10 HF 1

    This means that you don't provide a mandatory security information in your code, so called 'Account' - on accounts read http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#BGBDIFIJ
    As always, try to go through a scenario that you want to implement in an integration code from GUI first. I'd also recommend to use RIDC, as CIS has been deprecated.

Maybe you are looking for