Resources for first java soap client/server endeavour?

Hello community,
Im looking for some good resources for setting up a soap server, on apache tomcat, to handle incoming soap messages and send a soap response to the client.
Any links to examples/sample code are greatly appreciated. I am completely new to webservices.
your help is appreciated, thank you.

Christ, how did I mange to make those typos?
You need a webserver to accept the requests, and something like Tomcat to run your web service. Since Tomcat has a webserver (doesn't it include Apache?) already, Tomcat is all you need, but it won't really care whether you send some XML using HTTP or HTML form data using HTTP. It's still HTTP.

Similar Messages

  • File upload in KM throws a system exception: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xtlt_Required

    Hi All,
    We are on Netweaver 7.01 SP14. (well I understand we are way behind patch levels, but a simple file upload should be working ?/)
    We are trying to upload (HTML &/ Image) a file in one of the KM's public folder.
    As and when we select folder and click on upload we get the below message:
    Below is the error trace details:
    Full Message Text
    com.sapportals.wdf.WdfException
    at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:688)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    --- Nested WDF Exception -----------------------
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xtlt_Required
    at java.util.ResourceBundle.getObject(ResourceBundle.java:327)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:324)
    at java.util.ResourceBundle.getString(ResourceBundle.java:287)
    at com.sapportals.wcm.util.resource.ResourceBundles.getString(ResourceBundles.java:55)
    at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:150)
    at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:176)
    at com.sapportals.wcm.control.edit.ResourceUploadControl.renderUploadFileContent(ResourceUploadControl.java:773)
    at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:655)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) 

    Hi Vijay,
    Thanks for the quick reply.
    I have gone through the notes 1535201  & now on 1606563  after your advise.
    Both the notes says the fix is available on 7.01 after SP 07 and we are on SP 14 already.
    Also just in case I did checked with our basis and they confirmed we are a head and we have the above notes in our release already.
    Unfortunately the notes are not the solution to the investigation till date.
    Thanks,
    Sai

  • How to get started on java applet client/server game?

    Hi,
    I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!

    well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
    Server.java
        public void init()
            runGame = Executors.newFixedThreadPool(2);
            gameLock = new ReentrantLock();
            otherPlayerConnected = gameLock.newCondition();
            otherPlayerTurn = gameLock.newCondition();
            players = new Player[2];
            currentPlayer = Player1;
            try
                server = new ServerSocket(12345, 2);
            catch (IOException ie)
                stop();
            message = "Server awaiting connections";
        public void execute()
           JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
            for(int i = 0; i < players.length; i++)
                try
                    players[i] = new Player(server.accept(), i);
                    runGame.execute(players);
    catch (IOException ie)
    stop();
    gameLock.lock();
    try
    players[Player1].setSuspended(false);
    otherPlayerConnected.signal();
    finally
    gameLock.unlock();
    Client.java
        public void init()
            startClient();
        public void startClient()
            try
                connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
                input = new Scanner(connection.getInputStream());
                output = new Formatter(connection.getOutputStream());
            catch (IOException ie)
                stop();
            ExecutorService worker = Executors.newFixedThreadPool(1);
            worker.execute(this);
        }So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks!

  • Can't find resource for bundle java.util.PropertyResourceBundle, key Summar

    While invoking a specific reprot file using JRC API, i am getting the below exception. Can you anybody tell me what jar file or properties files are requried to be placed in the lib folder? I can send the total stack trace if requried.
    - Failed to load the resource 'SummaryOnNonRecurringField' from the bundle java.util.PropertyResourceBundle@5e9d7a.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key SummaryOnNonRecurringField
         at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:311)
         at java.util.ResourceBundle.getString(ResourceBundle.java:274)
         at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalException.a(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalException.getMessage(Unknown Source)
         at java.lang.Throwable.getLocalizedMessage(Throwable.java:266)

    Hello Srinivasa,
    -Have you used any database connectivity for your report (like JDBC or ODBC)? Does your report work fine from designer ?
    -The reason you are getting this error might be that the u201Cojdbc14.jaru201D or the JDBC driver type jar file you are using might not be present in the u201CCRConfig.xmlu201D class path location.
    -For resolving this error message, please add the u201Cojdbc14.jaru201D to the CRConfig.xml file class path present in the folder u201CC:\Program Files\Common Files\Business Objects\3.0\javau201D for CR XI.
    -Also, please make sure whether you have copied the JDBC driver to the WEB-INF\lib folder.
    -Apart from this.please make sure that you have copied all the JAR files from business objects lib folder inside lib folder of your application.
    Thanks,
    Chinmay

  • Hello.war_deployed not generated for Sun Java System Application Server

    I have installed and started the Sun Java System Application Server successfully, and can access http://localhost:8080 without any problem. However, after I copied the hello.war following the below instruction in "QuickStart", the hello.war_deployed wasn't generated in the "autodeploy" directory.
    # Find<INSTALL_DIR>/samples/quickstart/hello.war.
    # Copy it to <INSTALL_DIR>/domains/domain1/autodeploy/
    Anybody knows why?
    Thanks.

    Hai
    I have installed Sun Java System Application Server 8
    I am able to create Application, Bean component, Appclient Client.
    But i dont know where to provide the JNDI name
    JNDI tab s'd be there for the Application(any)
    I have three tabs(default tabs), JNDI tab is not appearing
    I am following the J2EE1.4 pdf document
    tell me how to provide the JNDI name for any application
    Please do the favour

  • Begging for help. SSLSocket client/server

    Hello Everyone,
    At my wits end and behind my project plan. I need to secure my server.
    I have generated a keystore
    Exported certificate into CER file
    Imported this certicate into the JAVA_HOME/lib/security/cacerts file.
    I have my JBoss secured on port 8443.
    Here is m client code
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public
    class EchoClient
    public
    static
    void
    main(String [] arstring)
    try
    SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket("172.16.220.178:8443", 9999);
    InputStream inputstream = System.in;
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    OutputStream outputstream = sslsocket.getOutputStream();
    OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);
    BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);
    String string = null;
    while ((string = bufferedreader.readLine()) != null)
    bufferedwriter.write(string + '\n');
    bufferedwriter.flush();
    catch (Exception exception)
    exception.printStackTrace();
    and here is my server code
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public
    class EchoClient
    public
    static
    void
    main(String [] arstring)
    try
    SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket("172.16.220.178:8443", 9999);
    InputStream inputstream = System.in;
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    OutputStream outputstream = sslsocket.getOutputStream();
    OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);
    BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);
    String string = null;
    while ((string = bufferedreader.readLine()) != null)
    bufferedwriter.write(string + '\n');
    bufferedwriter.flush();
    catch (Exception exception)
    exception.printStackTrace();
    How can I get this client/server talking using my own keystore. ????
    I only need my server to be secured. I dont need any client authentication or anything. I just need my client to connect using Sockets to a secure server.
    Thanks.
    Desperate Joyce

    Ok, you can't secure a server, you can only sercure the connection between them. That means either the client needs who it is talking to or the server needs to know who it is talking to. You can have a ssl connection where nobody knows who they are talking to as well if you want. I'll go through it for server authentication by client. If you need it the other way around the same principle holds. Give me an hour and I'll put up the code for a connection without auth.
    Ok, if you need to authenticate the server.
    In the client you will need to have a keystore for trusted certificates (i.e. cacerts)
    You will need a trustmanager to decide whether or not to trust the server.
    And using both of these you need to create as ssl context.
    On the server, you will need a keystore containing its X509 certificates
    A keymanager to manage these certificate and again an SSL context.
    Then start the handshake. The client will connect to the server using an SSL Socket.
    On the starthandshake() method, the server will sent the client its X509 certificates from its
    keystore. The clients trust manager will then try to create a certificate chain from these certificates
    back to one of its trusted certificates (stored in its trusted keystore).
    Client should look a little like this:
    SSLContext ctx;
         TrustManagerFactory tmf;
         KeyStore ks;
         char[] passphrase = "passphrase".toCharArray();
         System.out.println("set up context, keystore and trustManagerFactory");
         ctx = SSLContext.getInstance("SSL");
         tmf = TrustManagerFactory.getInstance("SunX509");
         ks = KeyStore.getInstance("JKS");
                         System.out.println("set context to ssl, tmf to X509 and keystore to JKS");
         ks.load(new FileInputStream("testkeys"), passphrase);
         System.out.println("loading testkeys using passphrase");
         tmf.init(ks);
         System.out.println("initialise keystore using passphrase");
         ctx.init(null, tmf.getTrustManagers(), null);
         System.out.println("initialise the key manager");
         SSLSocketFactory factory = ctx.getSocketFactory();
         System.out.println("got socket factory, now trying to create socket");
                          SSLSocket socket = (SSLSocket)factory.createSocket(serverAddress, port);
                         System.out.println("starting handshake");
         socket.addHandshakeCompletedListener(new HandshakeCompletedListener()
                               public void     handshakeCompleted(HandshakeCompletedEvent event)
                   System.out.println("Handshake finished!");
                   System.out.println("\t CipherSuite:" +
                   event.getCipherSuite());
                   System.out.println("\t SessionId " +
                   event.getSession());
                   System.out.println("\t PeerHost " +
                   event.getSession().getPeerHost());
         socket.startHandshake();
         System.out.println("SSL Socket Connected");
         catch (Exception e)
              System.out.println("error along the way somewhere :" + e.getMessage());
                              e.printStackTrace();
        }The Server will look a little like this:
    //=================================================================================
    SSLServerSocketFactory ssf = null;
    try
                         SSLContext ctx;
         KeyManagerFactory kmf;
         KeyStore ks;
         char[] passphrase = "passphrase".toCharArray();
                         System.out.println("set up context, keystore and keymanagerfactory");
         ctx = SSLContext.getInstance("SSL");
         kmf = KeyManagerFactory.getInstance("SunX509");
         ks = KeyStore.getInstance("JKS");
         System.out.println("set context to ssl, kmf to X509 and keystore to JKS");
         ks.load(new FileInputStream("testkeys"), passphrase);
         System.out.println("loading testkeys using passphrase");
         kmf.init(ks, passphrase);
         System.out.println("initialise keystore using passphrase");
         ctx.init(kmf.getKeyManagers(), null, null);
         System.out.println("initialise the key manager");
         ssf = ctx.getServerSocketFactory();
         System.out.println("got the server socket factory for that context");
    catch (Exception ex)
         System.out.println("Error along the way somewhere : " + ex.getMessage());
         ex.printStackTrace();
    try
         SSLServerSocket ss = (SSLServerSocket) ssf.createServerSocket(port);
         System.out.println("created ssl server socket for port " + port);
         myServer serve = new myServer(ss);
    catch(IOException e)
               System.out.println(e.getMessage());
                 e.printStackTrace();
                 System.exit(1);
    }where myServer is this:
    import java.net.*;
    import javax.net.*;
    import javax.net.ssl.*;
    public class myServer implements Runnable {
    private ServerSocket server = null;
    public myServer(SSLServerSocket ss)
                         System.out.println("Created myServer instance with server socket");
         server = ss;
         newListener();
        private void newListener()
         System.out.println("Created new listener");
             (new Thread(this)).start();
        public void run()
         System.out.println("Listening for connections");
             Socket socket;
             try
              System.out.println("Trying to accept connection");
                                     socket = server.accept();
                                  System.out.println("Accepted Connection, starting handshake");
                                  ((SSLSocket)socket).addHandshakeCompletedListener(new HandshakeCompletedListener()
                   public void     handshakeCompleted(HandshakeCompletedEvent event)
                        System.out.println("Handshake finished!");
                        System.out.println("\t CipherSuite:" +
                        event.getCipherSuite());
                        System.out.println("\t SessionId " +
                        event.getSession());
                        System.out.println("\t PeerHost " +
                        event.getSession().getPeerHost());
                                  ((SSLSocket)socket).startHandshake();
             catch (IOException e)
                 System.out.println("Class Server died: " + e.getMessage());
                 e.printStackTrace();
                 return;
             newListener();
    }Most of this code came from the sun website, just a couple of tweaks for it to do what I wanted it to.

  • MSSQL server as data store for SUN Java system Identity server 6.1

    Hi,
    I am a new user to SUN java system Identity server 6.1. Can we use RDBMS such as MSSQL server as a datastore for IS?
    if so, what is the configuration that needs to be done on IS 6.1?
    Thanks in advance,
    Srinivaas.

    Hello All,
    Waiting for any idea for the long time. I am trying again and again by restoring my directory server zone. I have two whole root zones one i am using for sun portal and communication suite 5 and other is for directory server. They are working fine. but when i try to install the Sun Java System Identity Synchronization for Windows 6.0 on directory server zone. Some time it hangs at 97% while installing core and some time it giving error the installer cannot upload some entries in the template this error comes when i restore my directory server zone.
    Can some please give me idea why it giving these error on solaris zone.
    Thanks in Advance,
    Sikander

  • Is this bugs for Sun Java System Portal Server 6 2005Q4 (errorStoreDP) ?

    Hi,
    I installed Sun Java System Portal Server 6 2005Q4 under window xp environment.
    I used the following command to deploy war file, it worked for me (because I setup enough services and role for amadmin user), deploy/undeploy was worked very well for me.
    pdeploy deploy -u amadmin -w amAdminPassword -g -p
    amAdminPassword -v portletsamples.war
    Two months later, I did not change anything (configuration) within the two months.
    I use the same deploy/undeploy command to deploy war file again, I got the following error =>
    errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)
    Message:The user does not have permission to perform the operation.
    Why this condition happened ? is this bugs for sun portal server ?
    I uninstall this sun portal server and reinstall it again, I still got
    the same error message. why ?
    But funny thing is that I format my machine, then install window xp and
    install System Portal Server 6 2005Q4 again, then it works for me again.
    is this reasonable ?
    I really don't know why ?
    Can someone help me ?
    Thanks!

    Hello,
    It seems you are really asking how you should design your application to use portlets.
    Your approach now seems to be that you would just copy your servlets to portlets. You can use the PortletRequestDispatcher to include content from your servlet. See http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/PortletRequestDispatcher.html
    I also found the following discussion on this topic http://www.mail-archive.com/[email protected]/msg00481.html
    But I don't think I'd recommend that approach for your application. How would you maintain the application going forward? You will have both servlets and portlets to maintain when you change the applicaiton. I assume you will be keeping the servlet application and using it also? Do you want the portlet content to match the servlet content always, or will they display differently?
    Instead, what you might consider an model-view-controller approach and designing a web service (the model) for both applications (servlet and portlet, views) to consume.
    As for the basics of porlet applications, the JSPPortlet will use JSPs for presentation of hte portlet content. GenericPortlet is the default implementation of the Portlet interface. Implementing the portlet interface means you must write the implementation yourself. Here are a couple of good tutorials to get you started on the Portlet spec:
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2.html
    Also there is this JSE tutorial, but I don't know how current it is:
    http://developers.sun.com/prodtech/portalserver/reference/techart/portlets.html
    Hope that helps.

  • Resources for developing java UDFs used in XI

    I am with some Java background working in XI
    for developing Java UDFs used in XI are there any online resources or books other than from the SAP help and SAP certification material.

    Hi Kalyan
    You can get a lot of UDF already discussed in Forum and Blogs, Wiki
    As you said you are familiar with Java then you wont find any difficulty
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=xi+udf&adv=false&sortby=cm_rnd_rankvalue
    Thanks
    Gaurav

  • Good Resource for Finding Java Developer for Startup?

    Not sure if this is the appropriate to place to post but we are looking for an interested Java developer to come onboard our very small (2 man) startup to help us with our networked Java application.
    I have looked around a little online and not found much so does anybody know where is a good place to scout out such persons? Admittedly we are not flush with $ but we do have some and we would be providing equity along with ongoing cash payment. Of course we also understand we won't be getting the best Java guru out there but then we don't really need that either, just someone capable of simple socket programming, swing and basic SQL stuff. Not rocket science, and we would even consider less experienced developers with a keen interest to learn and use this as an opportunity to develop some new real-world skill so their own. We are very laid back.
    Any help appreciated.

    I'd try one of:
    Your local Entrepreneurs meetup
    - there's bound to be one, and people who go along to this sort of thing will either be able to recommend someone or you might even meet the right sort of Java dev there.
    The Joel On Software jobs board
    - because the right sort of people read Joel On Software
    Personal recommendations
    - because that's always best; if you're not asking around like crazy, you should be.

  • Java.util.MissingResourceException: Can't find resource for bundle java.ut

    Hi,
    I am using a resource bundle and reading a properties file. This is working fine for the existing one. I am getting the exception after I add the new keys in the properties file and run my application.
    Can anyone point my error?

    AnanSmriti wrote:
    Hi,
    I appreciate your response. I am using eclipse and I have compiled the classes and copied the properties files and saved in the respective package and finally prepared a jar. Only this added key is not found. The remaining keys are workingThen you haven't done it correctly. If you are actually referencing the correct properties file in the code, and the correct properties file exists in the jarfile, then it will work. If not, not. That's all there is to it.

  • Essbase Resources for a Major Financial Client, NYC

    We are looking for 1 Essbase Developer with Essbase Integration Services(EIS) 6.5.4.Pls send your Resume along with your daily rate.Thanks & Regards,RajTechnical RecruiterPinnacle Systems Inc10 Corporate Place South,Piscataway, NJ 08854 732-653-7009 (Direct Line)732-981-1400 Ext 1009

    What is the error you are getting while running it from ODI? I'm assuming that you are getting some error when you said only one is working.
    When you install EXCEL Add-in it is changing your path and abrorpath variables and that could be the reason why maxl is not working. If ODI is using a bat file why don't you set temporary variable and try.
    in you bat file add these lines (before the maxl call, i would ad them to the start)
    SET ARBORPATH=C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient
    SET PATH=%ARBORPATH%\bin;%PATH%
    Regards
    Celvin
    http://www.orahyplabs.com

  • SOAP on Sun Java System Application Server 9

    I am running the Sun Java System Application Server 9 (SJSAS). My goal is to have SOAP running on the server to handle incoming messages. I cannot find the answers to the following critical questions anywhere.
    1. Should I be creating my own soap client/server with the javax.xml.soap package, using some utility that might come bundled with SJSAS that I don't know about, or using something like Apache AXIS?
    2. Whatever I use, how should it be deployed to the application server? AXIS comes as a bunch of jar files, but to deploy a web service to SJSAS requires a war. Instructions for other application servers for using AXIS seem not to apply for SJSAS for this reason.
    3. After I get the server installed, how do I actually connect that to any of the rest of the code on my server. For instance, would I put the actual business logic to query the persistence layer in a stateless session bean and then somehow reference the methods in that bean to compose the return message to go to the client?
    If anybody knows of or is willing to create a tutorial to achieve this goal on SJSAS and has a place to post it, that would probably be a great contribution to the information available online. If I am missing such a tutorial, I apologize and would be glad to have it pointed out to me. Any assistance with actually deploying soap for SJSAS would be tremendously helpful. There is a lot of why to use it, when to use it, what the spec is, and so on online. There is precious little how to use it and even less how to deploy it. Thank you for any help.
    Ryan

    the sun java system application server 8 and 9 comes with certutil and pk12util (http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html) programes. using them you can import them
    or check on google how to conver pk12 certs to NSS format.
    another option is to open the certificate in Internet explorer and save to cer format and then convert.

  • How do I use a JDBC Resource set-up in Sun Java System Appliation Server?

    How do I use a JDBC Resource set-up in Sun Java System Appliation Server 8.2?
    I created a JDBC Resource labeled "jdbc/__PetroPool" that is backed by a Connection Pool labeled "PetroPool".
    Since this is set-up in Sun Java System Appliation Server 8.2, I am looking for suggestions, examples or guides on how I can use this connection.
    I've been browsing the developer's guide for Sun Java System Appliation Server 8.2 without much luck.
    Googling really doesn't provide a lot of useful information either...
    Any suggestions, examples or guides on how I can use this connection is greatly appreciated.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How do I use a JDBC Resource set-up in Sun Java System Appliation Server 8.2?
    I created a JDBC Resource labeled "jdbc/__PetroPool" that is backed by a Connection Pool labeled "PetroPool".
    Since this is set-up in Sun Java System Appliation Server 8.2, I am looking for suggestions, examples or guides on how I can use this connection.
    I've been browsing the developer's guide for Sun Java System Appliation Server 8.2 without much luck.
    Googling really doesn't provide a lot of useful information either...
    Any suggestions, examples or guides on how I can use this connection is greatly appreciated.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Client Server mode for time ten connection

    Hi, I am new to Times Ten and got a question for running TimesTen in Client Server Mode. When it is running in Client/Server mode:
    Does the database just run like a regular remote database ?
    Is there security for the remote application, such as userid/password ?
    Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Does it use the JDBC or it has to be the native library ?
    Thank you for your help
    Henry

    Hi,
    With regard to your questions regarding TimesTen client/server mode:
    1. Does the database just run like a regular remote database ?
    I'm not sure exactly what you are getting at here but yes, I would say that it runs like any other c/s database. If you can be more specific in your question then I can give a more precise answer.
    2. Is there security for the remote application, such as userid/password ?
    If the TimesTen instance to which you are connecting was installed with Access Control enabled then yes, normal userid/password security applies. The client application must provide a valid TimesTen userid and password in order to establish a connection.
    3. Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Subject to O/S resource limitations, a single instance of TimesTen (i.e. the TT server) supports a maximum of 9,999 concurrent client/server connections. Each individual datastore supports a maximum of 2047 concurrent connections (direct and client/server).
    4. Does it use the JDBC or it has to be the native library ?
    The TimesTen JDBC driver supports both direct modde and client/server. The TimesTen ODBC driver is provided in both direct mode and client/server versions. The JDBC driver uses the ODBC driver (it is a type 2 JDBC driver) and so the client machine requires a TimesTen client installation to use either ODBC or JDBC to access a remote datastore.
    Chris

Maybe you are looking for

  • Calling API in PLSQL

    Hi all, I need to call existing API from pl/sql. And i also need to know how can i create my own API. My backend is oracle. If u have any idea pls reply to [email protected] Thanks in advance. Sujatha

  • Error in trigger (simple)

    hi , I 've written the following trigger but unable to trace why the following errors .. All the columns are written properly as per the table ... CREATE OR REPLACE TRIGGER TRI1 AFTER INSERT OR UPDATE OR DELETE OF INL_ID,MRR_CD, REQ, MM, ML_STS, FLL_

  • Printout of Closed / TECO Main Order

    Dear Experts, I am trying to take printout of Closed / TECO Maintenance Order, but system is not allowing. We have not assign any User Status to maintenance order, only default system status assign in maintenance order. Pls advice. Thanks, Dipen

  • Power point report using LabVIEW

    Hai, i am trying to generate some kind of reports in power point tthrough labview. I have been searching in the net. i don't get the complete details like creating new slide , editing it and so on. Rather i could get details only for running the slid

  • How to configure security so users can delete their own file(s)?

    I have configured our file server so that all users can write/modify in any other user's folder. However, it seems that they cannot delete their own file(s) in another user's folder. Do I have to give all users the "Modify" but not Full permission so