Problems invokin j2ee.bat

setenv.bat in the bin directory of the j2sdkee1.3 installation tries to set execute
following lines of code:
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
Each line produces a syntax error. Besides the file jaas.policy can't be found in the
%J2EE_HOME%\lib\security directory.
Furthermore setenv.bat tries to set the following environment variables:
set SYSTEM_LIB_DIR=%LIBDIR%\system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%\cloudscape.jar;%SYSTEM_LIB_DIR%\tools.jar
but in %SYSTEM_LIB_DIR% a file namde "tools.jar" can't be found after installation.
Is this a failure from Sun during creation of the setup package?
This causes three syntax error when trying to run j2ee.bat!!
What can I do to make it run?
Please notify me using [email protected]

By the way: I'm have installed Windows98 on my system.

Similar Messages

  • Problem in j2ee.bat

    When i tried to run j2ee1.3 server from the command prompt i received the following error .
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.
    i found that the following part of the j2ee.bat is throwing this error.
    rem @echo on
    %JAVACMD% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
    can anyone please help me in finding out what went wrong in this segment ? i have winxp profeesional edition installed in my machine and jdk1.5 installed in my macchine.

    Hi ,
    I am also facing the same problem for compiling JSP Pages.
    If the Flow of J2EE logic is HTM->JSP page then this works fine after deployement.
    But if the presentation starts from JSP page then SUN Application Server8 is showing -
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
    ..............................................----(manymore)....
    Can anyone kindly help in this ?
    (expecting a reply from User Profile: sbodoff)
    Thanks in advance,
    Regards,
    Bhaskar.

  • Urgent! Serious problem with J2EE Classloader!

    Hi all,
    I'm having a serious problem with j2ee Classloading.
    I have "inherited" a J2EE application where all business classes (invoked by the EJB) are placed in the Application's Server classpath (Weblogic 8.1.4).
    Very bad because every time a class is changed the a.s. must be restarted.
    So I re-enginereed the package putting the business classes in a jar that is referenced by the EJB's MANIFEST file.
    This way all the classes would be loaded by the EJB classloader and no need to start/stop weblogic.
    Unfortunately it's not such !! I discovered that all business classes are loaded via REFLECTION
    Object objCommand = objClass.newInstance();
    Object[] param = new Object[1];
    param[0] = aDataContainer;
    objDataContainerReturn = (DataContainer) objMethod.invoke(objCommand,param);
    and the application server cannot find them using the standard J2EE Classloader mechanism.
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at irma.business.Dispatcher.callService(Dispatcher.java:70)
    Caused by: java.lang.NoClassDefFoundError: irma/utility/log/LogPrintStream
    at irma.business.service.LoginService.login(LoginService.java:79)
    On the other hand they're found if I put the classes on the application server classpath.
    Has anybody got advice for this ? Should I refactor the application giving up reflection ?
    Thanks a lot in advance.

    Reflection uses the classloader as well so it should work fine.
    A common cause of a NoClassDefFoundError is something in a parent classloader that refers to something only available in a child loader.
    For instance, do you have any of your application classes which are in the $CLASSPATH but reference something that is only (now) in the business.jar in your ear?
    -- Rob
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problem About J2EE RI and PetStore Demo

    Hello ^^
    I have a problem about j2ee & petstore.
    I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
    Everything run ok. But when I changed web port 8000 to any port (included
    80),
    j2ee ri server showed the error message below :
    java.net.ConnectException: Connection refused: connect
    java.security.PrivilegedActionException: javax.servlet.ServletException:
    An error occurred while evaluating custom action attribute "items" with
    value "${catalog.categories.list}": An error occurred while getting
    property "categories" from an instance of class
    com.sun.j2ee.blueprints.catalog.client.CatalogHelper
    I used root to start j2ee & cloudscape on linux,
    and changed database to postgresql, too.
    but the error is the same.
    How to solve this problem ??
    Thank you ~~
    Jovi

    Hi,
    I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
    If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
    One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
    Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
    Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
    Change those urls and redeploy the ears.
    Hope this solves the problem.
    Regards,
    Archit

  • Shared folder access problem in j2ee application

    Hi,
    We are using SAP Netweaver 04s JAVA system.
    In our j2ee application we are trying to access shared resource(file), but ejb is giving exception. Our code is as follows:
    File srcDir = new File("\machine_namefolder");
    if(!srcDir.exists())
    {throw new Exception("directory does not exist", srcSys);
    It gives expection "FileNotFoundException".
    The same j2ee application is working fine when deployed on IBM Websphere.
    We trired to access same shared path from windows, it is also working.
    Please help us. Thanks in advance.
    --sagar

    Hi,
    Please follow Shared Folder acess problem in J2ee application.
    -Vladimir

  • Error while starting J2EE.bat, Server running??

    Hello,
    after shutdown the j2ee server with j2ee.bat -stop and rebooting the system it won't start anymore. it says
    C:\j2sdkee1.3\bin>j2ee.bat -verbose
    J2EE server listen port: 1050
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:134)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:222)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:134)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:222)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause could be another instance of the server already running.
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    J2EE server reported the following error: Could not initialize j2ee server. Possible cause could be another instance of the serv
    er already running.
    Error executing J2EE server ...
    If I try to stop it, it says:
    C:\j2sdkee1.3\bin>j2ee.bat -stop
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:66)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:154)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:122)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:788)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:876)
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:66)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:154)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:122)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:788)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:876)
    Unable to shutdown the J2EE server.
    Thank you for help.
    Thomas

    Hi Thomas,
    Can you tell us what Operating System you are using?
    BTW: The error that you see when running j2ee -stop just seems to confirm that j2ee isn't already running.
    Thanks
    Amanda
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers

  • Problem starting j2ee RI

    I've got a problem starting j2ee RI. I've got a NumberFormatException
    Does anyone has an idee?
    j2ee -verbose
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: For input string: ""
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: For input string: ""
    Error executing J2EE server ...

    It appears that there is a file that is @ $J2EE_HOME/lib/security/secure.seed that is corrupted or empty. THE RI doesn't check if the file is valid. The solution is to delete the file and allow the RI to recreate the file.

  • WebSAPconsole - problem with J2EE

    I am trying to install WebSAPconsole (GUI 6.40), but I have some problems with J2EE (SAPJ2EE620C_39-10001433.sar). OS is Win XP Pro Polish.
    After instalation of J2EE I've tried to start dispatcher and server, and next check HTTP service - but there is no listening on 80 port, and there is no listening on p4 port (3011 - because of this no possibility to start visual administrator).
    Dispatcher and server are listening on ports 2055 and 2077, and I have 2 java.exe processes in Task Manager...
    No any other software occupying 80 and 3011 ports.
    Any suggestions?

    Hello vjara,
    I' new to SAP.Could you please tell me where I can find jstartup/trimming_properties = standard in the instance profile.I try to install WS 6.4 sneak preview and I'm getting error,Unable to start SAP J2EE Engine at step 22.I would appreciate for your help and guidance
    Thanks
    Subha

  • Crystal Report problem with J2EE - OutOfMemory

    Dear All,
    I am having a problem about generating PDF from J2EE (Tomcat, Java 1.4)  WebApplication by Crystal report.
    When generating a PDF it sometimes got an out of memory error.
    However the Web Application is still working fine, just when regenerate the same crystal report the out of memory error occur again. when i generate the other report it works fine.
    Please help .
    Many Thanks

    Hi,
    It's a good idea to set the minimum and maximum heap size to the same value. In any case, don't let the minimum heap size exceed the maximum.
    Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.
    Look at the file tomcat-install/bin/catalina.sh or catalina.bat for how this variable is used.
    For example,
    set CATALINA_OPTS="-Xms512m -Xmx512m"  (Windows)
    export CATALINA_OPTS="-Xms512m -Xmx512m" (ksh/bash)
    setenv CATALINA_OPTS "-Xms512m -Xmx512m"  (tcsh/csh)
    In catalina.bat or catallina.sh, you may have noticed CATALINA_OPTS, JAVA_OPTS,
    or both can be used to specify Tomcat JVM options.
    What is the difference between CATALINA_OPTS and JAVA_OPTS?
    The name CATALINA_OPTS is specific for Tomcat servlet container,
    whereas JAVA_OPTS may be used by other java applications (e.g., JBoss).
    Since environment variables are shared by all applications, we don't want Tomcat to inadvertently pick up the JVM options intended for other apps. I prefer to use CATALINA_OPTS.
    You have specified size by a capiital "M" ?(3072M) use "m".
    Please let me know the results.
    Regards,
    Neeraj

  • Problem with J2EE

    Hi, I am new to Java Enterprise Edition. I am trying to install J2EE 1.3.1 on Win 2000 with service pack 4, and I am getting the following error
    16 bit Windows Subsystem
    c:\WINNT\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MSDOS and Microsoft Windows applications. Choose 'Close' to terminate the application.
    Plz help me to solve this problem.

    Open that autoexec.nt and check if it matches with this:
    @echo off
    REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
    REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
    REM different startup file is specified in an application's PIF.
    REM Install CD ROM extensions
    lh %SystemRoot%\system32\mscdexnt.exe
    REM Install network redirector (load before dosx.exe)
    lh %SystemRoot%\system32\redir
    REM Install DPMI support
    lh %SystemRoot%\system32\dosx

  • Problem reinstalling J2EE 1.4 on Windows XP

    Hi everyone,
    I installed once the j2ee 1.4 package without any problems, but I had to uninstall it.
    Now during the last 3 days I've been trying to reinstall it, but everytime I try I got the same error during the installation process:
    ERROR - default domain creation returned following exception: abnormal subprocess termination: Detailed Message:> was unexpected at this time.
    was unexpected at this time.---------------------------------------------------------------------------------------
    Can someone help me with this?
    P.S.:
    Everytime I have unistalled it, I have deleted the folder (C:\Sun) delete the "productregistry" and nothing seems to work.. Please help me!

    Check your PATH environment variable - it is likely that > character referenced in the error message is coming from there. So, clean up that entry from the PATH and rerun the installation.

  • Problem with build_samples.bat in java_card_kit-2_1_2

    Hi,
    I have installed jdk1.3.1_20 and have setup java_card_kit-2_1_2. Following the website, I could compile Wallet.java. But some reason the build_samples.bat is not working properly. Looking through the code, when i reach to the line:
    %JAVA_HOME%\bin\jar -xvf %JC21_HOME%\lib\api21.jar (line 46 of the build_samples.bat) it gives me this error:
    java.io.FileNotFoundException: c:\Java\java_card_kit-2_1_2 (Access is denied)
    at java.io.FileInputStream.open (Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:91)
    at java.io.FileInputStream.<init>(FileInputStream.java:54)
    at sun.tools.jar.Main.run(Main.java:181)
    at sun.tools.jar.Main.main(Main.java:899)
    The system cannot find the file specified.
    Why is this happening:
    FYI this is my javacard_env.bat (the file that I start the javacard environment):
    set classpath=.;
    set JAVA_HOME=C:\Java\jdk1.3.1_20
    set path=C:\Java\jdk1.3.1_20\bin;
    set JC21_HOME=c:\Java\java_card_kit-2_1_2
    set path=%path%;%JC21_HOME%\bin;
    set classpath=%classpath%;%JC21_HOME%\lib\api21.jar;
    Can someone please help.
    Regards,
    Zeallous

    I'm actually ok with that part now,
    I'm now having problems with converting Samples section:
    once it reaches the line (whilst running build_samples.bat):
    call %JC21_HOME%\bin\converter -config ..\src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt
    it gives me this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: \lib\apduio/jar;C:\Java\java_card_kit-2_1_2
    I have already put in this as my javacard_env.bat before i ran everything:
    @echo off
    set classpath=.;
    set JAVA_HOME=C:\Java\jdk1.3.1_20
    set path=C:\Java\jdk1.3.1_20\bin;
    set JC21_HOME=C:\Java\java_card_kit-2_1_2
    set path=%path%;%JC21_HOME%\bin;
    set classpath=%classpath%;C:\Java\java_card_kit-2_1_2\lib\api21.jar;%CLASSPATH%;
    set classpath=%classpath%;C:\Java\jdk1.3.1_20\jre\lib\ext\apduio.jar;%CLASSPATH%;
    What is wrong with this?
    Regards,
    Zeallous

  • Problem creating j2ee web service

    Hello. I'm having an issue deploying a given java class as a web service. I believe that problem is caused because, in the generated WSDL, the target namespace is set via the package name (i.e. http://myapplication.mycompany.com ), which is not a valid host. I tried changing every occurrence of that URL, in the WSDL, to the context root of my local host, but it still can't resolve the bindings. Given the following deployment message, what should my target namespace be:
    (from OC4J startup):
    Target URL -- http://localhost:8988/myApp-myProject-context-root/MyWebServiceSoapHttpPort
    06/06/12 13:34:17 Web service MenuWebService has been started on the embedded server
    06/06/12 13:34:17 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Any help would be appreciated. Thanks. Take care.

    here are the classes:
    service class:
    package com.test.service
    public class MenuService {
        public MenuService() {
        public String echo(String payload) {
            return payload;
        public ViewRight echoViewRight(ViewRight viewRight) {
            return viewRight;
    }view right class:
    package com.test.service
    public class ViewRight {
      private Integer id;
      private String name;
      private String description;
      private String members;
        public ViewRight() {
      //setters/getters
    }Here's the exception I get (if I just try to inovke the string echo method):
    java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
         javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:100)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.<init>(MenuWebServiceSoapHttpPortClient.java:19)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.main(MenuWebServiceSoapHttpPortClient.java:27)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)
         at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
         at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:713)
         at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:673)
         at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:664)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:201)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:77)
         ... 2 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)
         ... 9 more
    Message was edited by:
    sean_m_flannery

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Intermittend connection problem from J2EE (separate) engine to ABAP

    When i run the test report FP_CHECK_DESTINATION_SERVICE the first time it works and returns the number of bytes transmitted. The second time it does not . The third time it works , the fourth time it does not etc etc etc  No matter how long I wait in between the attempts so not random.
    Any ideas would be helpfull.
    The error i get on the java side is :
    com.adobe.ads.destination.DestinationException: IO error detected while opening DEST connection: http://servername.domain.nl:4100/sap/bc/fp/form/layout/FP_TEST_00.XDP?fp-language=DE
            at com.adobe.ads.destination.Destination.readUrlStream(Unknown Source)
            at com.adobe.ads.destination.Destination.readTemplate(Unknown Source)
            at com.adobe.ads.data.DestURLData.setData(Unknown Source)
            at com.adobe.ads.data.DestURLData.<init>(Unknown Source)
            at com.adobe.ads.data.PDFData.createFromURL(Unknown Source)
            at com.adobe.ads.data.PDFData.create(Unknown Source)
            at com.adobe.ads.request.Template.setPDFData(Unknown Source)
            at com.adobe.ads.request.Template.initialize(Unknown Source)
            at com.adobe.ads.request.Renderer.initializeTemplates(Unknown Source)
            at com.adobe.ads.request.Renderer.execute(Unknown Source)
            at com.adobe.BaseADSRequest.doWork(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.processRender(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
            at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
            at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
            at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
            at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
            at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
            at SoapServlet.doPost(SoapServlet.java:51)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
            at java.security.AccessController.doPrivileged1(Native Method)
            at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: org.w3c.www.protocol.http.HttpException: org.w3c.www.protocol.http.HttpException: <b>Unable to contact target server servername.domain.nl:4100 after 1 tries.</b>
            at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.a(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            ... 41 more
    p.s. I changed the real server name for servername.domain.nl in the output

    After restarting the entire J2EE engine, this strange problem disappeared.

Maybe you are looking for

  • Variable to display data from Current Fiscal Year to the MONTH entered

    Hi Friends, In the Quey Designer I require a CHARACTERISTIC VARIABLE for the 0CALMONTH which should have the following features:- 1.Input Month(e.g JUN 2008) 2.Mandatory 3.Ready for Input The query should show the following OUTPUT:- The data should b

  • How come the "on my iphone" tab won't appear at the top

    I'm using a iPhone 5c and I have been trying to get the tab to appear by uninstalling it and then re installing it. This happened after I updated to the 11.3.0.54 version. Please someone help. Thanks in advance I'm using Windows 8.

  • FD31/FD32/FD33

    Hi Gurus,              Could any one let me know what is the logic used to calculate arrear in FD31/FD32/FD33 transactions.How arrear is calculated  in these transactions. Regards, Ashok...

  • Is there a reliable way to determine if the content of a page is a jpeg image?

    I have a need to readily detect that the content of a particular page is a JPEG image....... Is there a way to ascertain this as I am processing each page ?

  • Self-noding on a G5 Quad

    I have a strange issue - wondering if anyone else has had this happen: I had 4gb of ram in my machine and it would self-node fairly consistently. Node buttons lit up green and I could look at the dock and see that the node icon had changed from 2 dim