Adding Frames to a Java Class

Hey!
I have a class and was wondering how(if possible) is it to add a frame to the progeam...So that I can exectue the app not from fronsole but as a window(frame?)
Do I need to Create another class, or modify the original Tester Class? Is it possible to take a working class(its simple, nothing too complicated), with some defined methods, and add them to a frame?
Thanks!

Thanks for your reply.
Ill give you more insight.
See, the program displays a drawing made by invoking a setChar Method(which is defined in a separate class). Also it shows the same drawing but with predefined replaced characters invoking a Replace method(aalready defined in another class I created), and a last drawwing which removes characters from respective coordinates.
The Frame I would like to create I believe should be as simple as possible. I would like to just add a frame to the whole app. Maybe add three buttons, each representing one of the methods mentioned before, and another "Space" within the frame that shows teh output(in this case the drawing) After clicking on the respective choice.
I have the code of both the tester and the class but I dont know if it is necessary right now. If it is Ill send it in my next post.
Thanks and any insight will be appreciated!

Similar Messages

  • Problem While checkin in NWDI  adding TableSorter.java class in src of DC

    Hi
    I have added TableSorter.java class in Source folder of One Develop Component and implemented the code to sort the table.It is working fine Locally.
        While I am trying to checkin in NWDI it is throwing error messages like
    location: package tests
        private com.sap.tc.webdynpro.tests.utils.TableSorter _tableSorter;
                                              ^
    /usr/sap/GJ0/JC00/j2ee/cluster/server0/temp/CBS/149/.B/21713/t/47794B28F57C19FA453190A8074C0706/gwd/packages/com.sap.tc.webdynpro.tests.utils.TableSorter/TableBasketView.java :1851: cannot resolve symbol
    symbol  : class TableSorter
    location: package tests
        public com.sap.tc.webdynpro.tests.utils.TableSorter getTableSorter() {
                                             ^
    /usr/sap/GJ0/JC00/j2ee/cluster/server0/temp/CBS/149/.B/21713/t/47794B28F57C19FA453190A8074C0706/gwd/packages/com.sap.tc.webdynpro.tests.utils.TableSorter/TableBasketView.java :1859: cannot resolve symbol
    symbol  : class TableSorter
    location: package tests
        public void setTableSorter(com.sap.tc.webdynpro.tests.utils.TableSorter value) {
                                                                 ^
    /usr/sap/GJ0/JC00/j2ee/cluster/server0/temp/CBS/149/.B/21713/t/47794B28F57C19FA453190A8074C0706/gwd/packages/com.sap.tc.webdynpro.tests.utils.TableSorter/TableBasketView.java :1886: cannot resolve symbol
    symbol  : class TableSorter
    location: package tests
              this._tableSorter = (sap.tc.webdynpro.tests.utils.TableSorter)value;
                                                                 ^
    /usr/sap/GJ0/JC00/j2ee/cluster/server0/temp/CBS/149/.B/21713/t/47794B28F57C19FA453190A8074C0706/gwd/packages/sap.tc.webdynpro.tests.utils.TableSorter/TableBasketView.java:262: cannot resolve symbol
    symbol  : class TableSorter
    location: class sap.tc.webdynpro.tests.utils.TableSorter.TableBasketView.java
         wdContext.currentContextElement().setTableSorter((new TableSorter(table, wdThis.wdGetActSortPrice(), null)));
    Please help me.
    Thanks&Regards

    Hi,
    Where exactly did you put your TableSorter.java?
    It should be in src\packages\<your package foleders>\util
    Please also don't forget to add your TableSorter.java in the OpenActivity which you want to check in.
    I suggest there is also another way to do this but I didn't try it:
    Create new Java Project DC
    Put your TableSorter.java there
    Add all necessary DC for build
    Create two public parts (assembly and compilation)
    And use this parts in your WD DC
    Regards
    Pavel

  • Map xsd complex type to existing java class without adding JAXB annotations

    Hello
    I've got a case where I should map an xsd complex type to an existing Java class without modifying that class, i.e. without adding JAXB annotations to that class.
    Is this possible somehow?
    As far as I've understood, the <javaType> declaration (adapter, parse/print methods) can only be used for xsd simple types.
    Thanks, Tom

    It should be possible to implement an XmlAdapter<...,...> which performs the required conversion between the original type and a JAXB-annotated type. Then, at the places where the original type is used, the @XmlJavaTypeAdapter annotation would be used.
    The xjc compiler supports this for xsd simple types (xjc:javaType annotation), but not for complex types.
    Any idea why this is restricted to simple types?
    Would it be possible to implement a xjc plugin which does this for complex types?
    Thanks Tom.

  • Adding a java class code in BPEL 11g

    Hi Friends ,
    i m doing one simple example of calling a java class from bpel ,
    1. first i created a java class
    2. After that in my project i imported the jar file of the same class , and i am using JavaEmbedding
    for creating one object of that class and calling one method which return me the string result and finally i am setting the result in bpel variable.
    the application is build successfull but when i am deploying it i am getting following error
    [02:31:19 PM] Error deploying archive sca_JavaCall_rev1.0.jar to partition "OrderProcessing" on server soa_server1 [http://10.45.4.206:8006]
    [02:31:19 PM] HTTP error code returned [500]
    [02:31:19 PM] Error message from server:
    There was an error deploying the composite on soa_server1: Deployment Failed: Error occurred during deployment of component: JavaCallBPELProcess to service engine: implementation.bpel, for composite: JavaCall: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "/u04/FMW_HOME/user_projects/domains/Training_domain/servers/soa_server1/dc/soa_3e8c5747-aba0-49b7-91d4-56f74bec87b8"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of JavaCallBPELProcess
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    [02:31:19 PM] Check server log for more details.
    [02:31:19 PM] Error deploying archive sca_JavaCall_rev1.0.jar to partition "OrderProcessing" on server soa_server1 [http://10.45.4.206:8006]
    [02:31:19 PM] #### Deployment incomplete. ####
    [02:31:19 PM] Error deploying archive file:/C:/JDeveloper/mywork/Trimble/JavaCall/deploy/sca_JavaCall_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    please tell me what is the problem.

    You have to use the below value there.
    +2. After that in my project i imported the jar file of the same class ,+
    There are 2 things, if you are not going to reuse the same code, its better to use Java Embedded component.
    If you are going to reuse the same methods from the class then it make sense to import as jar file and use it.
    Thanks,
    Vijay

  • Adding More Java Classes

    Can I add my own Java classes in the Import Java Classes... (Program -> Import Java Classes...) in the Report Builder? In what path I should place my Java classes if it is possible?

    what happens if you do the following on all three different environments:
    SQL> select to_char(exp_date, 'dd-mon-yyyy hh24:mi:ss') from your_table where your_condition ;
    [pre]

  • Adding a JPanel from one class to another Class (which extends JFrame)

    Hi everyone,
    So hopefully I go about this right, and I can figure out what I'm doing wrong here. As an exercise, I'm trying to write a Tic-Tac-Toe (TTT) game. However, in the end it will be adaptable for different variations of TTT, so it's broken up some. I have a TTTGame.java, and TTTSquareFrame.java, and some others that aren't relavent.
    So, TTTGame:import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import joshPack.jUtil.*;
    public class TTTGame extends JFrame
         private Integer sides = 3;
         private TTTSquareFrame mainSquare;
         private TTTGame newGame;
         private Container contents;
         private JPanel mainSquarePanel, addPanel;
         public static void main(String [] args)
              TTTGame newGame = new TTTGame();
              newGame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public TTTGame()
              super("Tic-Tac-Toe");
              contents = getContentPane();
              contents.setLayout(new FlowLayout());
              addPanel = startSimple();
              if(!addPanel.isValid())
                   System.out.println("Something's wrong");
              contents.add(addPanel);
              setSize(300, 300);
              setVisible(true);
         public JPanel startSimple()
              mainSquare = new TTTSquareFrame(sides);
              mainSquarePanel = mainSquare.createPanel(sides);
              return mainSquarePanel;
    }and TTTSquareFrame:import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import joshPack.jUtil.Misc;
    public class TTTSquareFrame
         private JPanel squarePanel;
         private JButton [] squares;
         private int square, index;
         public TTTSquareFrame()
              System.out.println("Use a constructor that passes an integer specifying the size of the square please.");
              System.exit(0);
         public TTTSquareFrame(int size)
         public JPanel createPanel(int size)
              square = (int)Math.pow(size, 2);
              squarePanel = new JPanel();
              squarePanel.setLayout(new GridLayout(3,3));
              squares = new JButton[square];
              System.out.println(MIN_SIZE.toString());
              for(int i = 0; i < square; i++)
                   squares[i] = new JButton();
                   squares.setRolloverEnabled(false);
                   squares[i].addActionListener(bh);
                   //squares[i].setMinimumSize(MIN_SIZE);
                   squares[i].setVisible(true);
                   squarePanel.add(squares[i]);
              squarePanel.setSize(100, 100);
              squarePanel.setVisible(true);
              return squarePanel;
    }I've successfully added panels to JFrame within the same class, and this is the first time I'm modularizing the code this way. The issue is that the frame comes up blank, and I get the message "Something's wrong" and it says the addPanel is invalid. Originally, the panel creation was in the constructor for TTTSquareFrame, and I just added the mainSquare (from TTTGame class) to the content pane, when that didn't work, I tried going about it this way. Not exactly sure why I wouldn't be able to add the panel from another class, any help is greatly appreciated.
    I did try and cut out code that wasn't needed, if it's still too much let me know and I can try and whittle it down more. Thanks.

    Yea, sorry 'bout that, I just cut out the parts of the files that weren't relevant but forgot to compile it just to make sure I hadn't left any remnants of what I had removed. For whatever it's worth, I have no idea what changed, but something did and it is working now. Thanks for your help, maybe next time I'll post an actual question that doesn't somehow magically solve itself.
    EDIT: Actually, sorry, I've got the panel working now, but it's tiny. I've set the minimum size, and I've set the size of the panel, so...why won't it respond to that? It almost looks like it's being compressed into the top of the panel, but I'm not sure why.
    I've compressed the code into:
    TTTGame.java:
    import java.awt.*;
    import javax.swing.*;
    public class TTTGame extends JFrame
         private Integer sides = 3;
         private TTTSquareFrame mainSquare;
         private TTTGame newGame;
         private Container contents;
         private JPanel mainSquarePanel, addPanel;
         public static void main(String [] args)
              TTTGame newGame = new TTTGame();
              newGame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public TTTGame()
              super("Tic-Tac-Toe");
              contents = getContentPane();
              contents.setLayout(new FlowLayout());
              mainSquare = new TTTSquareFrame(sides.intValue());
              contents.add(mainSquare);
              setSize(400, 400);
              setVisible(true);
    }TTTSquareFrame.java
    import java.awt.*;
    import javax.swing.*;
    public class TTTSquareFrame extends JPanel
         private JButton [] squares;
         private int square, index;
         private final Dimension testSize = new Dimension(50, 50);
         public TTTSquareFrame(int size)
              super();
              square = (int)Math.pow(size, 2);
              super.setLayout(new GridLayout(size, size));
              squares = new JButton[square];
              for(int i = 0; i < square; i++)
                   squares[i] = new JButton();
                   squares.setMinimumSize(testSize);
                   squares[i].setVisible(true);
                   super.add(squares[i]);
              setSize(200, 200);
              setVisible(true);
    I've made sure the buttons are smaller than the size of the panel, and the panel is smaller than the frame, so...
    Message was edited by:
    macman104

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • OAAM 11g R2: Unable to load java class for custom configurable action

    Need to configure a Configurable Action to get triggered for a particular action at a given checkpoint.
    Steps Followed:
    1. Created a java class implementing com.bharosa.vcrypt.tracker.dynamicactions.intf.DynamicAction, getParameters() and execute() methods were implemented in that java class.
    2. Added necessary jars from $ORACLE_IDM_HOME\oaam\cli\lib to the build classpath.
    3. Compiled and created a jar with it.
    4. Extracted the oracle.oaam.extensions.war file into a working folder.
    5. Added the Custom Jar created in step 3 into <working folder>/WEB-INF/lib/
    6. Changed the following in MANIFEST.MF in <working folder>/META-INF/:
    Specification-Version:11.1.2.0.1
    Implementation-Version:11.1.2.0.1
    7. Rejar-ed the oracle.oaam.extensions.war from the working folder using following command:
    jar -cvfm oracle.oaam.extensions.war <working folder>\META-INF\MANIFEST.MF -C <working folder>/ .
    8. Stopped the oaam_admin_server1, oaam_offline_server1 and oaam_server_server1.
    9. Deleted the oracle.oaam.extensions deployment from the weblogic.
    10. Deployed the newly created oracle.oaam.extensions as a shared library for oaam_admin_server1 and oaam_server_server1.
    11. Started all managed servers.
    But when I tried to create an action template with the java class I just created, it was throwing following error
    +java.lang.ClassNotFoundException: *+
    Unable to load configurable action class *. Ensure the class is made available in the class path.
    Referred following documents:
    1.      http://docs.oracle.com/cd/E27559_01/admin.1112/e27207/cfgactions.htm
    2.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/cfg-action.htm
    3.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/extend.htm
    Kindly help me. Thanks in advance.
    Edited by: 917717 on Dec 12, 2012 7:16 PM

    This thread is a bit stale but I thought it might help to clarify one point about custom jar files on UCCX.
    To properly load a custom jar:
    Upload it into the classpath directory in the document repository. 
    Select it under System | Custom Classes Configuration
    Finally you need to restart the CCX Engine and the CCX Administration services.  If you have HA you need to restart them on both servers. 
    Other notes:
    When referencing your class in the CCX Editor, use the fully qualified name of the class.  Lots of other classes use things like Element or Document so you need to be explicit. The editor only knows about the 20 native classes by their object names.  If you create a Document object in the editor you are really creating a com.cisco.doc.Document object.  If you loaded jdom.jar and you wanted a jdom document then you need to create an object of type org.jdom.Document.
    When compiling your custom jar files, be sure to compile for the version of Java that the CCX Engine runs.  In general UCCX 7.X and older use Java 1.4.  UCCX 8.X and higher use Java 1.6.  Several of the core Java classes had significant changes between 1.4 and 1.6. If you ran your code on UCCX 7 or earlier and now it fails in UCCX 8.X or higher, recomplile for Java 1.6 and you classes will likely work again.
    Finally, check for security violations in UCCX 8.X or higher.  Cisco has restricted some of the things you can do.  These URL's have more information:
    http://docwiki.cisco.com/wiki/Engine
    http://docwiki.cisco.com/wiki/Troubleshooting_Tips_for_Unified_CCX_8.0
    -Steven
    Please help us make the communities better.  Rate helpful posts!

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

  • How to use java classes of DC1 in DC2

    When I was trying to use a java-class from another DC, I stumbled into an error I didn't expect:
    java.lang.NoClassDefFoundError: com/company/application/utils
    This is what I did to get this far:
    1. Created an empty Web Dynpro DC (DC1), to be used as a utilities library.
    2. Added a Java class to the webdynpro project.
    3. Added the class to a public part of type compilation.
    4. Created a second Web Dynpro DC (DC2), which is supposed to consume the class from DC1.
    5. Added a DC-usage relation, so that DC1 is in DC2's used DCs. In this usage-relation built-time and run-time were checked
    5. Used DC1's class in DC2's component controller
    6. Built both DCs and deployed them
    7. Ran the application in DC2.
    When I run the application, the application dumps a stack trace at the moment that and object is created based on the class in DC1.
    Any idea how to get this working?

    Vincenzo, here is the real error message:
    java.lang.IllegalAccessError: tried to access method nl.phoqus.pataut.Guid.getGuidString()Ljava/lang/String; from class nl.phoqus.pataut.PatientAuthorization
    I have inserted a very simple GUID generator that I used in a previous project. Please find the class file below:
    package nl.phoqus.pataut;
    import java.util.Random;
    public class Guid {
         private static Guid guidFactory = new Guid();
         static Random random = new Random();
          * Allow global replacement of the GUID generator.  Applications
          * wishing to install their own GUID generators should sub-class
          * Guid, override the getGuid() method, and use this method to
          *  install their generator.
         public static void
         setGuidImpl(Guid factory) {
         guidFactory = factory;
          * Return a GUID as a string.
         public static String getString() {
         return guidFactory.getGuidString();
          * Return a GUID as a string.  This is completely arbitrary, and
          * returns the hexification of a random value followed by a
          * timestamp.
         protected String getGuidString() {
            long rand = (random.nextLong() & 0x7FFFFFFFFFFFFFFFL) | 0x4000000000000000L;
            return Long.toString(rand, 32) + Long.toString(System.currentTimeMillis()&0xFFFFFFFFFFFFFL, 32);
    I'm calling the class using the following statements from the component controller of DC2:
    Guid x = new Guid();
    String y = x.getGuidString();
    The component controller resides in package package nl.phoqus.pataut.
    Would that be the problem?

  • Invoking a method from a java class to a jsp file

    Maybe i'm going through a very basic error, but as i've looked for in some forums and nothing found decided to post. So let's go to the problem.
    Well, i have a form in a jsp file, it's basicaly html, but as i need some select boxes populated with data from the database i decided to create some methods in java classes. This is the point.
    My method receive some attributes, like the table and colums names, the name of the select box and the HttpServletResponse object.
    So after making all the database process. The method is supposed to write the result through the out.println(); object
    It goes everything all right except that the method seems to be called first than the html code coz' my select boxes comes above the head in the begin of the page and was supposed to come in the middle.
    part of the code:
    package pacote;
    import java.packages.*
    public class Class{
    public void metodo(HttpServletResponse response, String tableName, String column name, String selectName){
    PrintWriter out = response.getWriter();
    openConnection();
    //After making the query stuff
    //caso n�o haja nada na consulta
         if(rst == null)
         out.println("N�o h� registros.");
         else{
         out.println( "<select name='" +SelectName + "' id='" +SelectName + "' class=\"input_ob\" >");
         out.println( "<option value=''>Escolha: "+objeto+"</option>");
         //fill the select body with options; A while that sweap the resultSet and use the out object to write the results          
         getSelectBody(out,rst, selectValue);
    }This method is called this way:
    <tr valign="baseline">
        <td nowrap align="right">Grupo</td>
        <jsp:useBean id="m" scope="page" class="pacote.Class" />
            <td>
              <%
              try{
                   m.metodo(response, "tabela","grupo","id_grupo);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                        %></td>I'd like to know what i'm missing here. why the answer doesn't go in the place It's supposed to go.
    any answer will be greatly apreciated

    The issue is caused because you are using the response to get the writer directly.
    The JSP has gotten the same writer, but has wrapped it in a JSPWriter class. That class has got a buffer.
    So it writes the beginning html to the JSPWriter buffer.
    You write your stuff to the response writer - gets sent to the output.
    It writes more stuff to the JSPWriter buffer, then flushes that buffer - at which point all the text written into the JSP writer now gets added to the response.
    You see how your code is coming out first?
    Solution - instead of getting the writer from the response, pass the writer into your method (maybe instead of response if you don't use response for anything else)
    public void metodo(Writer jspWriter, String tableName, String column name, String selectName){
      PrintWriter out = new PrintWriter(jspWriter);
      ...That means that you will be writing to the same writer, and the text should come out in sequence.
    Cheers,
    evnafets

  • JSP does not have visibility of java classes in simple Web Module Project

    Dear Experts
    I am developing what I thought would be a very simple Web Module Project for a simple webservice
    to allow a user to logon to Netweaver Portal with a simple logon and password.
    I have not done this in over 8 years, and am somewhat rusty.
    The webservice is package in  a .war and is deployed via an Enterprise Application project as a .ear.
    The issue I am having is that I want to enhance the presentation of the webservice through the
    provision of css and adding a couple of images. The "libraries" are visibile in the build path of web
    module project.
    At the top of my .jsp for logon form I want to import some java libraries in order
    to get String webpath = componentRequest.getWebResourcePath()"/":
    <%@ page session = "true"%>
    <%@ page import = "com.sapportals.portal.prt.resource.IResource" %>
    <%@ page import="com.sap.security.core.sapmimp.logon.SAPMLogonLogic" %>
    <%@ page import="com.sap.security.core.sapmimp.logon.SAPMLogonCertLogic" %>
    <%@ page import="com.sap.security.core.logonadmin.IAccessToLogic" %>
    <%@ page import="com.sap.security.core.logonadmin.ComponentAccessToLogic" %>
    <%  IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
    final boolean inPortal = true;
    String webpath = componentRequest.getWebResourcePath()"/";
    // todo: find layout schema...
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
    %>
    However, during runtime the libraries are unknown and I get the following SAPJ2 EE errors
    indicating the methods etc are not known to the jsp:
    Full Message Text
    application [ctxhrofm] Processing HTTP request to servlet [jsp] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation rocess: [/usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java22: package com.sapportals.portal.prt.resource does not exist
    import com.sapportals.portal.prt.resource.IResource;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:23: package com.sap.security.core.sapmimp.logon does not exist
    import com.sap.security.core.sapmimp.logon.SAPMLogonLogic;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:24: package com.sap.security.core.sapmimp.logon does not exist
    import com.sap.security.core.sapmimp.logon.SAPMLogonCertLogic;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:25: package com.sap.security.core.logonadmin does not exist
    import com.sap.security.core.logonadmin.IAccessToLogic;
                                            ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:26: package com.sap.security.core.logonadmin does not exist
    import com.sap.security.core.logonadmin.ComponentAccessToLogic;
                                            ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : class IAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : class ComponentAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                        ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable aResponse
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable IAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:63: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    String webpath = componentRequest.getWebResourcePath()"/";
                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable IResource
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
                                                      ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
                          ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable aResponse
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
    ^
    14 errors
    Exception id: [0019996862AA007E00000436000077FB0004A78CA1BA8324]
    I have added the associated DCs for classes to used DCs and they are visible on the buildpath
    of my webservice.
    What am I missing?
    Many thanks for any advice offered
    Mike

    Have you made runtime references to used libraries...?
    refer page 20 ...in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b7199b?quicklink=index&overridelayout=true

  • Running a java class from a windows shortcut?

    I am currently running a program I have written from a batch file for which I have created a shortcut. I have recently however modified my shortcut to include a variable that i pass to the main method in the program through the batch file - all this works fine.
    It did however get me thinking - why can't I do away with the batch file??
    Below is the batch file code that loads my software:
    Echo Off
    CLS
    SET CLASSPATH=.;"C:\Program Files\Java\j2re1.4.2_03\bin"
    SET Path="C:\Program Files\Java\j2re1.4.2_03\bin"
    C:
    CD\
    CD "Program Files\My App"
    start "My App" javaw My_App %1
    And the two shortcut strings that call the batch file:
    "C:\Program Files\My App\My_App.bat" var1
    "C:\Program Files\My App\My_App.bat" var2
    What I have been trying to do however, is do all of the above from the shortcut
    I have added the following code to a shortcut:
    Target:
    C:\WINDOWS\system32\cmd.exe /c SET CLASSPATH=.;"C:\Program Files\Java\j2re1.4.2_03\bin" && SET Path="C:\Program Files\Java\j2re1.4.2_03\bin" && start javaw "My App" My_App
    Start In:
    "C:\Program Files\My App"
    All of the relevant paths are set correctly, and it calls the main java class file from the directory from where it resides, but I get a popup error message stating:
    Java Virtual Machine
    Error: Could not fing Java 2 Runtime Environment.
    Has anybody got any ideas on how to fix this please??

    Either I'm misunderstanding, or ?
    You don't need to set classpath if all you need for a classpath is the directory that contains the classfile - the Start in combined with -cp . // that's -cp followed by a periodsets the classpath to that value, and Windows will create a fully qualified path to javaw.
    You entries in the shortcut shouldn't have to be any more than what I typed.

  • Auto-deployment of java classes in Weblogic 9 is not working

    I have an exploded ear in my autodeploy folder and I am updating some of the java classes inside it. But it looks like weblogic 9 is not reloading new version of them. Did anybody had any success with the similar setup?
    And yes, I am updating timestamp for my REDEPLOY file and -Dweblogic.ProductionModeEnabled=false
    Thanks,

    I think it is missing - you need to do the import on your own. I filed an ER to get this one added.
    Note however that the best practice would be to minimize the usage of scripts in your JSP - since this creates spaghetti code that mixes UI with logic and is hard to maintain.

  • How to get HttpServletResponse in a Java class?

    I have the following code:
    HttpServletResponse response = (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
    This is usually used when there is a page with a method in the backing bean.
    What I have is a Java class, with no page. I want to alter the code above with something else in the right hand side.
    JDev version: 11.1.1.5.0

    My use case is :
    I want to run a job in Weblogic Server which will run a jasper report every 30 seconds.
    The job is called in a Generic java class which implements TimerListener.
    I am following the code in http://biemond.blogspot.de/2009/09/job-scheduling-in-weblogic.html .
    I have added a code in the Batch1 class to export the pdf file at every 30 seconds.
    For that, I need to get the HttpServletResponse object to be used in this class.
    Hope it's clear.

Maybe you are looking for

  • Error while deploying a JAR-File into 8i !

    Hello to all Oracle experts, At the attempt to deploy a Jar file into the 8i the following error message comes onto Shell level: initialization complete loading : com/sun/xml/tree/XmlDocumentBuilder ORA-01536: space quota exceeded for tablespace 'PRO

  • Why is it that Firefox v.14.0.1 will not allow me to Sign In to Microsoft Answers

    Here is a copy of an email I sent to Microsoft Answers :- Why is it that Firefox v.14.0.1 will not allow me to Sign In? I have successfully signed in with Google Chrome v.21.0.1180.79 m without any problem, but when I attempt the same thing in Firefo

  • What Airport base station do I need?

    After having major problems with Linksys and Belkin routers I want to try an Airport Extreme base station. I will need to be connecting a new Macbook, Ipod Touch, PowerPC Mac Mini via wireless and a Mac Pro and Xbox 360 via ethernet. Will the current

  • Canon EOS 50D (Raw Files) in Elements 6

    I just purchased a new Canon EOS 50D and when I try to upload my images to elements 6 it keeps giving me an error message. (The file is damaged or is a format that cannot be included in the Organizer). Does anybody know that reason why?  Do I need to

  • Queries from business content

    Hi, When we install the out of the box business content queries from business content where are we able to see those queries. ( Like when we install infocube and dataflow before and we will be able to see it all in modeling area, same way where can w