Deploying an rich client (Applet and main method)in iPlanet.

I would like to know how to deploy an applet client and a main() method client in the iPlanet Application Server. Adv. thnax for your replies.

Dear punit,
Thanx for ur reply.
but then where will i mention the JNDI name which we usually supply in DD during the deployment of a WAR file.
When i try to run the standalone appln. i get an error, because i have not supplied a jndi name in the server. where will client find out the jndi name from, because nothing is specified in the server(but in the case of servlet we spcify the JNDI name in DD XML file.)
R u working currently on iAS6.0.
Thanx and see if u can reply me ASAP.

Similar Messages

  • Servlet with dopost and main() methods

    I have pre-existing servlet code for maintenance purposes.
    It received a request by POST action from the client. This class also has main() method where class is instasiated and processed.
    Can anyone help me understand reason for having dopost and main() methods.
    TIA

    Before the days of JUnit developers would write a main method for a class as a way to test the class. Some older developers still do it. I know because I am dealing with the problem now.

  • Client Applet and EJB Server problem

    Hi,
    I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
    ic = new InitialContext(environment);
    Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
    Thanks for any hints!
    Peter
    Error I get
    JAR cache enabled.
    Opening http://pete/gateway/clientmanagement.jar no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
    Creating an initial context
    Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
    CacheHandler file name: null
    null

    Hi,
    I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
    What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
    Thanks for any hints...
    Peter
    JAR cache disabled.
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/test/Client.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
    Opening http://pete/Gateway/test/Client$1.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
    Creating an initial context
    Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
    Opening http://pete:80/_RMProxyURL_ no proxy
    Naming exception!
    [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
    at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
    at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at test.Client.initializeEJB(Client.java:104)
    at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
    at test.Client$1.actionPerformed(Client.java:55)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    null

  • Packages and Main method.

    What is the reason for the following. When you explicitly specify a package name for a class that contains the main method, why do you have to specify the fully qualified class name when you invoke the JVM?
    For example:
    package Exercises.Chp8.ExerciseTwo;
    import Exercises.Chp8.Interfaces.*;
    class Exercise2 implements myInterface {
         public void method1() {
              System.out.println("method 1 implemenmted");
         public void method2() {
                   System.out.println("method 2 implemenmted");
         public void method3() {
                   System.out.println("method 3 implemenmted");
    public class testExercise2 {
         public static void main(String[] args) {
              Exercise2 ex = new Exercise2();
              ex.method1();
              ex.method2();
              ex.method3();
    I would have to issue the following command:
    java Exercises.Chp8.ExerciseTwo.testExercise2
    for the java to run. If I specify java testExercise2, it displays a stack trace of the classLoader and an error messages reads regarding "wrong name". Can someone explain why this is?

    Hi,
    Please refer the following URL.
    It is very well documented in the java site.
    Please refer these URL's
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
    http://java.sun.com/docs/books/tutorial/java/interpack/createpkgs.html
    http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
    http://java.sun.com/docs/books/tutorial/java/interpack/managingfiles.html
    Also please refer this URL, which has a discussion about packages.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=151016
    I hope this will help you.
    Thanks
    Bakrudeen

  • Blocking the applet and main threads ?

    The thread that runs the Applet callback methods like init() and start() is a thread named �applet-your.package.your.classname.class�.
    If I am doing a blocking method call, i.e. a method call that does not return immediately like doing I/O read on a socket connection, is it ok to do it on the thread mentioned above ? In other words, is it ok to hang/suspend/block the applet thread ?
    What about blocking the �main� thread that calls
    public static void main(String args[]) {�}
    Thanks.

    eminformatics, thanks for the reply.

  • Can Eclipse Rich Client Platform embedded javaFX script?

    My application is based on Eclipse Rich Platform Application (RCP), and rcp includes the SWT_AWT bridge,
    which allows RCPs to integrate Swing components as:
    Composite swtAwtComponent = new Composite(parent, SWT.EMBEDDED);
    java.awt.Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
    javax.swing.JPanel panel = new javax.swing.JPanel( );
    frame.add(panel)
    First, I create a JavaFX project, where a subclass of the Scene creates, let's look at the code:
    * Rect.fx
    public class Rect extends Scene {
    init {
    content = [
    Rectangle { width: 200 height: 200 fill: Color.BLUE },
    Text { x: 20 y: 20 content: "Greetings Earthling!" fill: Color.WHITE }
    public function run(args : String[]) {
         Rect {}
    Then, another Plug-in Project has been created a rich client application, and rcp includes the SWT_AWT bridge,
    which allows RCPs to integrate Swing components as:
    Composite swtAwtComponent = new Composite(parent, SWT.EMBEDDED);
    java.awt.Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
    javax.swing.JPanel panel = new javax.swing.JPanel( );
    frame.add(panel)
    There are two lines to create the JavaFX scene to be loaded into a JFrame:
    String sceneClass = "test.Rect";
    JComponent myScene = SceneToJComponent.loadScene(sceneClass);
    The SceneToJComponent class comes from the JFXtras project.
    Its loadScene() method loads a JavaFX Scene class and returns a JComponent object,
    which can be used as a normal Swing JComponent.
    String sceneClass = "test.Rect"; // the main class of the javafx script
    JComponent theScene = SceneToJComponent.loadScene(sceneClass);
    In Rcp application, when try the load the class, this code compiling,
    running and trowing exceptionon console I have the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jfxtras/scene/SceneToJComponent
    also if this class is present in the classpath of the java project.
    Then I've tried to place this code in simple java application (not eclipse rcp) and all went ok.
    Has anyone tried to include this code in eclipse rich client platform (rcp)?
    Thanks in advance, Best regards
    Shanti

    I have download Java FX2.0 to emebed a scene in a Swing component inside a view of a rcp application, setting the classpath with jfxrt.jar.
    See the following code:
         public void createPartControl(final Composite parent) {
    SwingUtilities.invokeLater(new Runnable() { 
              public void run() { 
    jfxPanel = new JFXPanel();
    createScene();
    but my problem is unresolved, the eclipse console shows the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at test2zero.FxView$1.run(FxView.java:59)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(Unknown Source)
    Has anyone ever tried to integrate javafx in eclipse rcp application ?
    Thanks
    Shanti

  • Init and main

    can anybody help me understand the difference between init and main methods.
    I am a beginner,so please take it easy if thequestion seems stupid.
    thank you
    saumya

    init() comes into picture only in servlets !??That isn't what he said, that was just an example. The init() method is used by a lot of APIs, but all for the same basic principal:
    The class will be instantiated (the constructor will be called), but the process the class represents may run right away. There may be more initialisation needed. The init() method is called after all initialisation is done, and before the process begins to run. Thus, if you want to prepare your class you use the init() method (so you know it will always occur after full initialisation and before execution).
    but you mean,if i am developing an applet then no
    need to right main() ?That is correct. You do not need a main() unless your app is a stand-alone application.
    and if i am developing a stanalone application
    suppose in swing i need not right init() ?That depends. Generally no. But some classes/APIs may require you to.

  • TP4 / ADF Rich client demo just downloaded from otn / 41 compiling errors !

    I just downloaded ADF Riche client demo and installed it jdev tp4.
    Rebuild causes 41 compilation errors and the application is not runnable.
    Is it a way to solve this ?
    Some of the errors:
    Error: cannot read: C:\JDeveloper\myWork\adf-richclient-demo\adf-richclient-demo\public_html\WEB-INF\classes\.jsps\_components\_inputComboboxListOfValues_jspx.java
    Error: cannot read: C:\JDeveloper\myWork\adf-richclient-demo\adf-richclient-demo\public_html\WEB-INF\classes\.jsps\_components\_queryToggle_jspx.java
    Error(57): "rows" is not a valid attribute name.
    Error(57): "maxColumns" is not a valid attribute name.

    Forget about it ... downloading again and reinstalling it without any errors ... may be i downloaded from an older link or do some bad copy ... sorry disturbing you !

  • Corba error when running rich clients in 3-tier mode.

    Hello
    I am dealing with an Error when running Rich Clients (WebI and DeskI) with 3-tier ODBC connection to the server.
    The client does come up and I'm able to create the query but when the data in refreshed I do get the error:
    A database error occured. The database error text is: (CS) "CORBA Initialization failed". (WIS 10901).
    I have a test server which I'm able to do this kind of connection without a problem but when I try to connect to the Prod server in 3-tier data connection mode throught the server I get this error.
    My setup is:
    BO XI R 3.1 FP. 2.1
    Clients are also updated with FP 2.1
    The data sources are Oracle and Teradata.
    Best regards,
    Hjortur.

    Hi Guys,
    I am facing same error when I run the report from CMC. Error is like u201CThe database error text is: (CORBA) "Error on Executeu201D. (WIS 10901)u201DEven I have re-started the connection server but bad luck.
    I would like to appreciate if someone help me out for the same.
    Thanks in advance..!!
    Thanks & Regards,
    Keyur Modi | Functional Consultant Enterprise Solutions
    TATA Technologies, Pune
    m: +91-9769855899
    website: www.tatatechnologies.com

  • Rich client frameworks

    Hello,
    I am looking for a framework to develop rich client application quickly or easily. I have found the following frameworks:
    1. TikeSwing: I have read it is a good choice, but it has not enough documentation.
    2. SpringRCP: It can be another choice, but I think It is not matured.
    3. With EclipseRCP or NetbeansRCp.
    Anybody knows something about them? Any opinion?
    Thanks in advance.

    I also want to develop a rich client application and I decided to use NetBeans platform. The reason why I did this decision is that NetBeans IDE has a very nice templates which will guide you through the creation of your first RCP application. However, the documentation is not very good, but getting better each day...
    Hope this opinion helps.
    Miso

  • Rich client access server for data

    Hi
    I have a Rich client application and it need to access a web server via http protocol to access large amount of data.
    Any idea what is the best way to do this?
    im think of writing some server side code to generate the data object into XML files and then the client can retrieve the file. (either that or a plain text file...)
    Please advise me what is the best/common practice because this is the first time im doing this.
    thx

    XML can be a good idea, but remember that XML can bloat your data because of all the added tag information. so if you are working with large amounts of data, it can become a huge amount of data. Still you can use SAX to parse the XML on the fly in stead of parsing it into one large DOM tree structure first, which at least is efficient in the resources.
    If you can access the data in small parts, a webservice system might be a better, cleaner and more portable solution.

  • Swing Rich Client Framework

    Are there any good swing rich client development and server integration framework?

    jwenting wrote:
    You're thinking too much about one thing, the client and user interface.
    Don't. Think about the entire system.
    What you're looking for is classic subscriber/publisher systems, where a client subscribes to updates from a publisher and the publisher pushes updates to published clients.
    The client has to do nothing after subscribing to actually receive updates, but will of course have to actually handle the incoming data, for example by reading out a queue of incoming messages at regular intervals.Yes subscribe/publish is one type of communication which is the asynchronous messages I referred to, another is session-like communication when users chat (a user may have multiple chat session going and may also go out of band for some types of communication, that is not relayed via server) and then theres request-response communication when the client logs into the server (the client goes through 6-13 steps for authentication and data synchronization which is what I expect to use the statemachine for). You could say the client works autonomously while logging in, and is driven by user and server input the rest of the time. I should mention the protocol is well established and massive, Im not looking to design that.
    So basically my design has an network IO thread that queues incoming messages to a protocol parser that turn xml messages into java objects. Then I have a BIG GRAY box that uses the java object to decide how to interact with the datamodel and other parts of the system.
    The BIG GRAY box is the hole in my design (well I put some homemade design there but I dont like reinventing the wheel if there some principles or client design catalog somewhere that I just havent found using google). The example of updating the datamodel optimistically is just one example of the type of issues I have to deal with when the model is acted upon by both a user and a server.

  • How To Pass A Value Read By A Loop To Main Method

    Hey everybody,
    I'm at this with my code.I'm reading the values of a text file in a loop.I want to pass these values to main method.The importhant point is I want to do this without using a field. The code is below. Thanks.
    //Main
    public static void main(String[] args)throws FileNotFoundException
              DoubleClass AvgScore=new DoubleClass();
    IntClass Messenger=new IntClass();
              PrintWriter writer1=new PrintWriter("D:\\JavaExercises\\CH07EX14out.txt");
              Scanner scan1=new Scanner(new FileReader("D:\\JavaExercises\\CH07EX14data.txt"));
         //1 ogrencinin notlarini okut ve ortalamasını hesaplat
         while(scan1.hasNext())
              writer1.print(scan1.next()+" ");
    calcAvg(AvgScore,scan1,Messenger);
    //AvgScore formatlanarak yazdirilacak
    writer1.print(""+AvgScore+" ");
    writer1.print(""+calcGrade(AvgScore)+"\n");
    writer1.close();
    //calcAvg
    public static void calcAvg(DoubleClass x,Scanner y,IntClass z)
         int counter=0;
         double TotalScore=0;
    int NumTests=1;
    int Score=0;
    //Bir ogrenci icin toplam notu ve test sayisini bul.
         while(counter<=4)
              Score=y.nextInt();
    TotalScore+=Score;
    counter++;
    NumTests++;
    //Bir ogrenci icin not ortalamsi bul.
    x.setNum(TotalScore/NumTests);
              }

    Malkavian187 wrote:
    Guys please pay attention,
    I already said I can't use a field(class scoped variable)and can't use a return type method.
    I ve heard that it can be done by passing a reference or primitive variable to my calcAvg method.And than assignin the read values back to this variable.
    But I can't figure out how to make it. I need a complete solution.Including modifications to calcAvg and main method.
    Take care,Malkavian187,
    Maybe you haven't seen other posters asking homework to be done for them, so here is basically what we tell them: DO IT YOURSELF.
    And we realize that very possibly you could fail your class from that and have to drop out. This may be a good thing because it will help keep the demand for technical workers up, and thus, keep the pay high.
    On the other hand, if you choose to actually do the assignment then we will be happy to give comments on your code. Please post it when you have some and until then, best wishes with what ever you choose to do.
    BTW: the solution you allude to requires a field also... and in reality, you already gave the answer--just implement it. If you do not know how: well, maybe you should do one of the following:
    1-read and study the Java Tutorial
    2-pay more attention to class
    3-read your textbook for your class
    4-go to class
    5-stay awake in class
    6-pay attention in class
    7-talk to your teacher
    8-withdraw from the class
    9-change your major

  • SocketPermissions for Chat Server/Client Applet

    Hi,
    I've coded a chat server/client applet and found that I need to set socketpermissions when using over the net.
    I put the following line in my java.policy file under my jdk
    permission java.net.SocketPermission ":6288", "connect,accept, listen";
    but it still tells me:
    java.security.AccessControlException: access denied(java.net.SocketPermission 217.0.0.1:6288 connect, resolve)
    any ideas? or am I doing something wrong?
    Also I havent set anything for my applet, and wouldnt know how to? if you do have to set permissions for that, do you put the permissions in with the code or something?
    Thanks in advance.
    Matt.

    ah, dont worry, I've got it fixed.
    that 217.0.0.1 address is because I typed the error by the way, usually it would have my IP.
    problem was I had forgot to recompile with my new assigned IP, d'oh!

  • SCCM Client Agent Deployment - Internet based client scenario

    Hi There,
    I need to deploy SCCM 2012 client agent and certificate to the machines not connected to the corporate LAN. I know that SCCM agent and certificate needs to be installed manually on them ( or via Group Policy ).... but here I'm talking about 2000 internet
    based machines.
    Can you please let me know the enterprise level best practice to capture those 2000 internet based machines.
    50% of these machines may not come on corporate network for very long time....so cannot capture them by Group Policy... How to capture those machines.... Has anyone worked on a solution to create some kind of portal etc...whose link we can provide to the
    users via email for them to just click and that installs both SCCM client agent and certificate....just a thought.
    Regards,
    Sam

    There is no best practice as that would imply that every organization is the same and should do it the same way.
    Ultimately, this challenge is unique to your organization -- not the specific ConfigMgr details, but how best to get it done within the resources and security posture of your organization.
    If your users are local admins and you have a VPN solution, then you can potentially just send them batch files to run (that install a cert and install the client agent) when they are connected via VPN. You could potentially expose both via an HTTP download
    and the CA web issuance pages also or using certutil (assuming the user has local admin permissions again). There simply are too many variables that are unique and specific to your environment to be able to describe any sort of complete solution.
    Ultimately, it comes down to two parts, neither of which is overly complicated (or magic):
    1. Request and install client auth certificate.
      - Must be done as local admin
      - Can be automated using certutil and PowerShell
    2. Install ConfigMgr client agent
      - Must be done as local admin
      - Must be initiated by running ccmsetup (with appropriate switches and properties)
      - Must have access to rest of client setup files either locally, via the Internet DP, or Internet MP
      - Must be able to communicate with MP
    I have seen folks publish scripts for this and web pages even so a little web searching may turn one of these up.
    Jason | http://blog.configmgrftw.com

Maybe you are looking for