Java exercises and solutions

Hi all,
Iam newbie to this forum and java too.Iam doing studying on java as beginner.I would like to do more programming exercises in order to understand more on java language.Iam looking for the site or link where I could get exercises and solutions.Can anyone help me?.
Thank you in advance
Udd

> I have > searched through google didn't get good
materials.
Thanking again for your help
The first hit I got from
[url=http://www.google.com/search?num=20&hl=en&safe=of
f&q=%22java+exercises%22&spell=1]Google when
searching for "java exercises" is this page:http://www.cafeaulait.org/books/jdr/exercises/
The answers to the exercises are also available there.
Of Course it's a matter of personal taste.
However to my mind the best 'exercise' based tutorials are the MageLang
ones you can find on this site , once you figure out how to download them.
http://java.sun.com/developer/onlineTraining/GUI/
http://java.sun.com/developer/onlineTraining/index.html

Similar Messages

  • Exercise / Assignment and Solution

    Hello Friends,
    Can any one tell me where can I find the best exercise and solutions for practicing Java.

    Yup, in here in about 60% of all threads. First post is theassignment and the answers might be the solution ;)

  • Working fine with JAVA code and Error Occured while using in JSP

    Hi.....
    When initiating a BPEL process from JAVA the code is working fine and the Process is getting initiated.But while using that code in J2EE project as a java code and while calling that method Error is occuring.....
    Here by i am attaching my JAVA Code which runs as an applicateion and package which runs in Server....
    JAVA Code (Run as Application) Working Fine:
    package bo;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    import java.util.Map;
    import java.util.Properties;
    import oracle.xml.parser.v2.XMLElement;
    /*import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest ;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession; */
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class processit {
         public static void main(String args[]){
              String input = "TATA";
              String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
              String xml="<ns1:BPELProcess1ProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/BPELProcess1\">";
              xml=xml+"<ns1:input>"+input+"</ns1:input>";
              xml=xml+"</ns1:BPELProcess1ProcessRequest>";
              try{
              Properties props=new Properties();
              props.setProperty("orabpel.platform","ias_10g");
              props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
              props.setProperty("java.naming.provider.url","opmn:ormi://157.227.132.226:6003:home/orabpel");
              props.setProperty("java.naming.security.principal","oc4jadmin");
              props.setProperty("java.naming.security.credentials","oc4jadmin");
              props.setProperty("dedicated.rmicontext", "true");
              Locator locator = new Locator("default", "bpel", props);
              System.out.println("After creating the locator object......");
              IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
              System.out.println("Before creating the NormalizedMessage object......");
              NormalizedMessage nm = new NormalizedMessage();
              System.out.println("After creating the NormalizedMessage object.*.*.*...");
              nm.addPart("payload", xml);
              System.out.println("Before creating response object......");
              NormalizedMessage res = deliveryService.request("BPELProcess1", "process", nm);
              System.out.println("After calling the BPELProcess1 .*.*.*...");
              Map payload = res.getPayload();
              System.out.println("BPEL called");
              XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
              String replyText=xmlEl.getText();
              System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
              catch (Exception e) {
              System.out.println("Exception : "+e);
              e.printStackTrace();
    JSP and Java Method Used:
    JSP Code:
    ===============
    <%@ page import=" bo.callbpel" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>FEATT - I30</title>
    </head>
    <body>
    <%
    String input=request.getParameter("dnvalue");
    callbpel p=new callbpel();
    String Output=p.Initiate(input);
    out.print("The Input Given to the BPEL Process is : "+input);
    %>
    <BR><BR><BR><BR><BR><BR>
    <%
    out.print("The Reply from BPEL Process is : "+Output);
    %>
    </body>
    </html>
    Java Code:
    package bo;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    import java.util.Map;
    import java.util.Properties;
    import oracle.xml.parser.v2.XMLElement;
    /*import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest ;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession; */
    //import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class callbpel {
         public String Initiate(String value){
              String replyText=null;
              String input = value;
              System.out.println(input);
              String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
              String xml="<ns1:BPELProcess1ProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/BPELProcess1\">";
              xml=xml+"<ns1:input>"+input+"</ns1:input>";
              xml=xml+"</ns1:BPELProcess1ProcessRequest>";
              try{
              Properties props=new Properties();
              props.setProperty("orabpel.platform","ias_10g");
              props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
              props.setProperty("java.naming.provider.url","opmn:ormi://157.227.132.226:6003:home/orabpel");
              props.setProperty("java.naming.security.principal","oc4jadmin");
              props.setProperty("java.naming.security.credentials","oc4jadmin");
              props.setProperty("dedicated.rmicontext", "true");
              Locator locator = new Locator("default", "bpel", props);
              String uniqueBpelId = com.collaxa.cube.util.GUIDGenerator.generateGUID();
              //System.out.println(uniqueBpelId);
              //java.util.Map msgProps = new HashMap();
              System.out.println("After creating the locator object......");
              IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
              System.out.println("Before creating the NormalizedMessage object......");
              NormalizedMessage nm = new NormalizedMessage();
              System.out.println("After creating the NormalizedMessage object.*.*.*...");
              //msgProps.put("conversationId",uniqueBpelId);
              //nm.setProperty("conversationId",uniqueBpelId);
              nm.addPart("payload", xml);
              System.out.println("Before creating response object......");
              NormalizedMessage res = deliveryService.request("BPELProcess1", "process", nm);
              System.out.println("After calling the BPELProcess1 .*.*.*...");
              Map payload = res.getPayload();
              System.out.println("BPEL called");
              XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
              replyText=xmlEl.getText();
              System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
              catch (Exception e) {
              System.out.println("Exception : "+e);
              e.printStackTrace();
              return replyText;
    While Creating and Object for the Class callbpel and Whilw Calling that Method
    callbpel p=new callbpel();
    String Output=p.Initiate(input);
    Its throwing an Error:
    Error Occured is:
    After creating the locator object......
    Before creating the NormalizedMessage object......
    After creating the NormalizedMessage object.*.*.*...
    Before creating response object......
    Apr 24, 2008 9:12:00 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at bo.callbpel.Initiate(callbpel.java:55)
         at org.apache.jsp.output_jsp._jspService(output_jsp.java:55)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    For Running JSP i am Using Eclipse 3.2.0 and apache-tomcat-5.5.25
    Please Provide me a Solution......
    Thanks in Advance.....
    Regards,
    Suresh K

    A JSP is not the same as a Java application. A Java application has package statment, import statements, try/catch block, a JSP doesn't.

  • HT5493 Java update and reverting to 1.6 plug in.

    Good afternoon.
    After installing the java update this week I've realised it makes my Macbook useless for work. I regularly rely on a Corporate Information System at my University to access student records. This system is incompatible with Java 7, upon installing the update it directs me to install the plug in from Oracle (for which only java 7 is available) When trying to access the system it comes up with the following error, "requires jinitiator 1.1.8.2 or higher" Which I assume is a change between Java 6 and 7.
    Spent a long time with the Universities tech support who couldn't help only to confirm that Java 7 is not supported (and even directed me to several .exe windows programs to update jinitiator, as well as to some malware). Apple Tech suport had no solution to the problem either other than to time machine back to before the update.
    I have now used time machine to restore to prior to the update (which took 48 hours for 300GB!!!!!)
    So ideally I would like to install the update (for various reasons, including security) but still have access to University system.
    Can anyone provide any advice how I can do so?
    Alternatively I suppose I will have to avoid this update, but I assume it is forever going to remind me. If that is the case then is there a way to permanently tell my macbook to ignore this update?
    Any help greatfully received?
    Kind regards
    Josh

    So ideally I would like to install the update (for various reasons, including security) but still have access to University system.
    It doesn't sound like you can. If this is a web-based Java applet, there is no Java 6 applet plug-in anymore. Apple has removed it in this update, so you have no choice but to use Java 7 for web applets. If it is not a web applet, rolling back should work fine, but the system may be incompatible with the changes in the latest version of Java 6 as well. If you can't use the latest versions of Java, you will be forced to use a version of Java that is not only vulnerable to attack, but that the hackers of the world have now gotten a road map to (in the form of the update). Just because a vulnerability is patched does not mean that it stops being exploited... many vulnerabilities continue to be exploited for years, due to people who are unable or unwilling to install security updates.
    Honestly, you shouldn't have to be forced to compromise the security of your system to use this software. You need to speak to people at your university at a higher level than just the techs, and explain to them how this system is compromising both university security and the individual security of every person who uses it. Scare them, and they'll light a fire under the techs to get this fixed.

  • Workflow step (Approve Action) calling custom Java Service and "passing params"

    Good Afternoon, Fellow Coders!
    Normally I research and do proof of concepts until I find a solution but given super tight deadlines, I just don't have time - so I need your help.
    I am trying to have an Workflow Approve Action (Workflow Exit Event idocScript call) call a Custom Component (Java Service) AND "pass" some kind of parameters (bare minimum dDocName)
    In a perfect world it would be as simple as:    processContentInfo(String dDocName, String xMyCode1, String xMyCode2);
    But since I am calling the Java Service from idocScript (via executeService) I cannot directly pass params via the API.
    Is there a simple way to do this??
    It seems like if you can't directly pass params you could at least set them in the managed container (m_binder) and just know to pick them up on the Java side via some DataBinder like m_binder.getLocal(
    Am I missing a simple idocScript function that will let you do this?
    Note: I am NOT executing the Service from a URL so the normal ?param1&param2 -> m_binder.getLocal  solution is no good.
    Also, Bex's book warns about Service Classes "not easily being able to call other UCM Services"....  My Custom Service needs to do exactly that (as well as JDBC and other stuff). Is this really an issue??
    Seems like as long as I have dDocName I could use RIDC to hit whatever I want as long as I know how to use a binder, etc - is there some mystic nuance that prevents this?  Or was he just saying it's hard UNLESS you know RIDC well??
    Any and all quality advice is appreciated!  And please, try to give me a detailed answer as opposed to something vague like "try a Service Handler", I need something I can quickly digest.
    Thanks in advance!

    You can set parameters for the service call by setting Idoc Script variables before you call executeService.
    <$dDocName="TEST12345"$>
    <$param1="09876"$>
    <$param2="ABCDEFG"$>
    These variables are then available via the service DataBinder.
    Here is information about how to execute a service from a custom component. There should not be any issues doing this.
    http://www.redstonecontentsolutions.com/5/post/2012/05/executing-a-service-from-aservicehandler.html
    http://jonathanhult.com/blog/2012/06/execute-a-service-from-a-java-filter/
    Jonathan
    http://jonathanhult.com

  • XMP Java Set and Get Question

    I am investigating the potential to set and read XMP metadata on TIFF, PDF, and EPS files for a workflow.
    I am a Perl/Java person, and upon investigating solutions found the Java XMP Parser. As I read, it appears that I need to create a RDF file. It looks to me that the RDF file is the file that contains the metadata to be inserted. Is there a specification for the RDF?
    Also, the SW (java class) says it can only embed into files which have the XML packet already. Any insight here.
    In summary, I own the Adobe Graphics Server (Not Document Server), and before pursuing the above ... I welcome validation that I am on the correct path.

    S_Szenthilkumar wrote:
    Actually my requirement is like that.What do you mean by "like that".
    What is your requirement?
    Is it possible to do this or can not perform this operation?Define "this operation".
    It might be that you actually want to use the [Preferences API|http://java.sun.com/javase/6/docs/api/java/util/prefs/Preferences.html] for storing settings. But it's hard to tell what you actually want, since you didn't describe your goal, but only a possible solution.

  • Updated Java today and now I can't print from Paypal

    Ok, I just did the java update and I can no longer print postage from Paypal.  This is kind of critical for my business. I am running 10.7.5
    I get the "missing plug in" message on the print page.
    Please help!
    Thanks.

    Hi there @PhatPhreddy , welcome to the forums
    I saw your post about your laptop showing the printer is offline and will not print.
    Please let me know which operating system you're running on your laptop and I will look into this for you.
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Have a great day!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • JAVA beans and JAVA related services require Oracle client to be installed?

    Can you please advice whether an application server that make use of JAVA beans and JAVA related services require Oracle client to be installed? For an example if the solution build based on Java and JBOSS to be used as application server, do we still require oracle client to be installed and configure the tnsnames in order to communicate to database server?

    SHANOJ wrote:
    Can you please advice whether an application server that make use of JAVA beans and JAVA related services require Oracle client to be installed? For an example if the solution build based on Java and JBOSS to be used as application server, do we still require oracle client to be installed and configure the tnsnames in order to communicate to database server?Oracle client is not required when JDBC is used to connect to the remote DB

  • Java sha1 and PHP sha1

    Hello to everyone.
    When encoding with PHP using sha1 i do not get the same result as Java's sha1 encoding.
    For example encoding letter 'e' in PHP produces:
    58e6b3a414a1e0[b]90dfc6029add0f3555ccba127f
    whereas in Java it produces:
    58e6b3a414a1e0[b]3fdfc6029add0f3555ccba127f
    Below is the code i am using for both Java and PHP
    String password=pass;
              java.security.MessageDigest d =null;
              try {
                   d = java.security.MessageDigest.getInstance("SHA-1");
              } catch (NoSuchAlgorithmException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              d.reset();
              d.update(password.getBytes());
              String secret = new String (d.digest());
              secret.getBytes();
              StringBuffer sb = new StringBuffer(secret.getBytes().length * 2);
            for (int i = 0; i < secret.getBytes().length; i++) {
                 int b = secret.getBytes() & 0xFF;
    sb.append(HEX_DIGITS.charAt(b >>> 4)).append(HEX_DIGITS.charAt(b & 0xF));
    return sb.toString();     
    PHP Code:
    $str = 'e';
    $str2=sha1($str2);
    echo $str2;Anyone had similar problems and found a solution to them? I cannot see any mistake in the code so any help would be much appreciated.
    P.S: I am running Java 1.4 and PHP 5.1.6 configuration
    Kind Regards
    Christophoros

    Hi,
    I found your reply regarding "Java sha1 and PHP sha1" on the forum and would like to ask another related question.
    I use the following statement to insert username/password to the database:
    INSERT INTO [db_Report].[dbo].[tblLogin]
    ([USERNAME]
    ,[PASSWORD])
    VALUES
    ('test'
    ,HashBytes('MD5', 'password'))
    GO
    In my Java code, however, the following method always return false. I noticed that in the database
    HashBytes('MD5', 'password') returns "0x5F4DCC3B5AA765D61D8327DEB882CF99"
    while
    The the encrypted login password is "[B@13d93f4" in the Java code.
    In this case, how should I check the password, using MessageDigest or not ?
    Many thanks.
    ===============
         {code}private static boolean authenticateUser(String username, String loginPassword){
              boolean authenticate = false;
              Connection con = getDatabaseConnection();
              if (con != null){
                   StringBuffer select = new StringBuffer("");
                   select.append("SELECT password from [db_MobileDetectorReport].[dbo].[tblUserLogin] where username = '"+username+"'");
                   String strSelect = select.toString();
                   try {
                        PreparedStatement ps=con.prepareStatement(strSelect, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
                        ResultSet rsResult = ps.executeQuery();
                        byte[] passBytes = loginPassword.getBytes();                    
                        MessageDigest md = MessageDigest.getInstance("MD5");               
                        byte[] encryptedLoginPWD = md.digest(passBytes);
                        System.out.println("encryptedLoginPWD="+encryptedLoginPWD.toString());
                        if (rsResult.next()) {
                             byte[] databasePWD=rsResult.getBytes(1);
                             authenticate=MessageDigest.isEqual(encryptedLoginPWD,databasePWD);
                   } catch (Exception e) {
                        //TBD
              } else {
                   //TBD
              return authenticate;
         }{code}
    Edited by: happy_coding on Dec 21, 2009 1:39 PM{code}{code}
    Edited by: happy_coding on Dec 21, 2009 1:40 PM

  • Java 2D and 3D issue

    Hello everyone,
    I'm new to Java graphics and have been trying to figure out the best way to improve my particular application. It is dynamic and refreshes at about 75Hz. It contains lots of data points and seems to flicker a lot.
    I've concluded that rendering the data may be the problem as I am currently using BufferedImage types, which renders in software if I'm not mistaken.
    Now, I've been researching on ways to improve performance by delegating the rendering on VRAM and take advantage of hardware acceleration. What I've discovered is that a new image type has been introduced in Java 1.4 I believe, and this is called VolatileImage, check this link out: java.sun.com/products/java-media/2D/perf_graphics.html and scroll to the section "Hardware Acceleration for Offscreen Images", it has a brief explanation. It apparently takes advantage of hardware acceleration.
    I have also discovered that hardware acceleration can also be achieved using OpenGL Java bindings or something along those lines and you can have a look here: http://www.opengl.org/resources/java/. Of course OpenGL mainly deals with 3D graphics so hence I'm confused as to what direction I should take.
    Either use VolatileImage or OpenGL. VolatileImage is for 2D graphics and the OpenGL is for 3D graphics. I'm confused because OpenGL can also be used for 2D and I'm not sure which one I should use for my application. I'd like to use the most efficient solution possible. Any ideas. Your feedback would be much appreciated.
    Cheers,
    Mitch.

    Personally (for me...) I think it be bether you'd say in more detail what you wanna achieve. (What do you "put on screen"?)
    For me, just using BuferedImage(s) for my picture image editor works fine for me (when I switched from "new BufferedImage(...)" for every frame (flickered much more for me too) to reuse BufferedImage(s)). Of course, for that (use) I don't have a refresh rate of 75 Hz, and I don't really "render" (only ... draw...Image(...), ...).
    But J3D I only use for my 3D "virtual universe". (Might you wanna check out "OpenGL" on Wikipedia?)
    I must confess, I don't know that much about "2D(!) rendering" (can one really say that?) myself.

  • HT5493 Java update and reverting to 1.6

    Good afternoon.
    After installing the java update this week I've realised it makes my Macbook useless for work. I regularly rely on a Corporate Information System at my University to access student records. This system is incompatible with Java 7, upon installing the update it directs me to install the plug in from Oracle (for which only java 7 is available) When trying to access the system it comes up with the following error, "requires jinitiator 1.1.8.2 or higher" Which I assume is a change between Java 6 and 7.
    Spent a long time with the Universities tech support who couldn't help only to confirm that Java 7 is not supported (and even directed me to several .exe windows programs to update jinitiator, as well as to some malware). Apple Tech suport had no solution to the problem either other than to time machine back to before the update.
    I have now used time machine to restore to prior to the update (which took 48 hours for 300GB!!!!!)
    So ideally I would like to install the update (for various reasons, including security) but still have access to University system.
    Can anyone provide any advice how I can do so?
    Alternatively I suppose I will have to avoid this update, but I assume it is forever going to remind me. If that is the case then is there a way to permanently tell my macbook to ignore this update?
    Any help greatfully received?
    Kind regards
    Josh

    Sounds like we are at the same University!
    My solution has been to use a virtual Windows machine to access the application under Parallels. A bit like cracking nuts with a sledgehammer, I know, but it works.

  • EP and Solution Manager Via Webdispatcher

    Solution Manager Via Webdispatcher
    Dear All,
    We have installed the Webdispatcher 7.4 and did the SSL setup and maintained necessary parameters to  access our Portal and ECC systems from internet and its working fine for indepedent Java and ABAP stack.
    Now when we are trying to access the solution manager via webdispatcher using webgui, it opens but when its calling the webdynpros like solman_setup, the page is not openning. The same case is in our portal system also, when its calling the webdynpro of backend system its not openning.
    During our analysis we found the urls are called from the local machine to the backend host (ABAP)  directly and there is no where its communicating the webdispatcher.
    Can you please guide me what kind up setup can be done to access the Portal and solution manager complete functionality via webdispatcher.
    I have checked many posts on the forum and was totally confused on the solution approches. So trying to filter it down to do a proper setup which is feasible to our landscape and infra team.
    FYI Our Solman is on 7.1 SPS10 and portal is on 7.4, OS windows
    Looking forward for your valuable inputs
    Thanks & Regards,
    Satyabrat

    Thanks Samuli,
    I tried it..its working for solman but in my ECC (NW 7.31) its not working for web dynpros. Its going to hostname:8001 port and not redirecting to webdispatcher.
    Pleae let me know if I am missing something.
    Thanks & Regards,
    Satyabrat

  • Managed System configuration for SAP NW Java system in Solution Manager 7.1 SP10

    Hi All,
    I am doing Managed system configuration for my SAP NW 7.01 Java system and getting below error in step 6 create users SAPSUPPORT & SM_COLL_SID.
    "An unexpected error occured. An error occured while processing the UME command READ_USER from agent <hostname> : Server returned: 302 Found "
    I have checked my DAA as well as host agents are up and running fine. My Solution Manager is 7.1SP10.
    Please suggest.
    Regards,
    Manish

    Manish,
    Which UME you are using? portal/ABAP/LDAP
    Are you using the SOLMAN_ADMIN user while configuring.
    Also check the below forum.
    https://scn.sap.com/thread/1167282
    Regards,
    Raja. G

  • Question about Java,XSLT and XML

    I am new to Java and XML. I'm not quite clear the relationship between Java,XSLT and XML.
    To exercise, I am going to write a Java program that makes embedded calls to an XSLT processor(XALAN), to produce results for several constrained transformations from a given XML document(x.xml) such as:
    1.Transform the x.xml (which satisfies d1.dtd) in such a way that it now conforms to the DTD d2.dtd. Output the resulting xx.xml document.
    2.query some information from the x.xml and then form an Html output.
    3.summary some information, do some statistics from the x.xml and then form an Html output.
    I don't konw which java classes and XSLT functions might be used.(Actually I don't know how/where to start).
    Can anyone give me some clue ?
    thanks a lot!

    You must provide XSLT stylesheeds to specify transformations (1), (2),
    and (3); let's call those stylesheets task1.xsl and so on.
    The following code will transform x.xml into xx.xml according to task1.xsl. It gives you an idea which packages and classes to use, but it doesn't teach you proper Java programming technics :)
    import java.io.File;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Test
        public static void main(String[] args) throws Exception
            TransformerFactory factory = TransformerFactory.newInstance();
            Source config = new StreamSource(new File("task1.xsl"));
            Transformer transformer = factory.newTransformer(config);
            Source source = new StreamSource(new File("x.xml"));
            Result result = new StreamResult(new File("xx.xml"));
            transformer.transform(source, result);
    }To read about XSLT, see:
    http://www.w3.org/TR/xslt
    there is a tutorial on using XSLT with Java:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/index.html.

  • The JNI defines a mapping of Java types and native (C/C++) types.

    As per the tutorial
    The JNI defines a mapping of Java types and native (C/C++) types.Does the above sentence mean that I can use dll written in C/C++ only and not dll written in Pearl.
    Could anyone please give me the solution.

    Please do tell me how can I call a dll file created in Perl ....And I will point out again that I doubt that it is possible to create a dll that has the following characteristics
    1. Is in fact a dll.
    2. Is in fact intended to run anywhere outside of the perl engine.
    Step 2 means that you run perl, not a "perl dll" via C.
    You can do that or at least in the past you could. And that has nothing to do with java nor JNI. So you would learn about it on a perl site.
    And I can only note that when I did that a number of years ago it was very difficult. Certainly much harder than getting JNI to work. And you had better have quite a bit of C/C++ experience before you attempt it.

Maybe you are looking for

  • Theatrical Trailers no longer showing up

    Hello all, Just got back from vacation and fired up iTunes to get updated apps and such. I opened the Trailers page and saw posters across the top, but nothing in the two panes below. Anyone else seeing this same behavior? iTunes 10.6.3 I've tried re

  • Win 7 Touchpad driver is not working on Satellite C855-21V

    Hello everybody! I have an Satellite C855-21V and it came with Windows 8. After one week of desaster Im sure I want never again a Windows 8 on my Computer! So I installed Windows 7 and can find all the drivers somewhere in the internet. The only thin

  • G/L accounts with quantities

    Hello experts, I would like to select all G/L accounts which have posted quantities. Could you give me advice how to do it in the most performant way. There are two tables where I have to search: BSEG(?) and COSP. Thank you in advance. Best regards P

  • Double Byte hyphen appear as "?" pls Help

    HI, I have deployed my app on websphere6.0 on solaris machine. I am retriving from database and dispalying the data containing doublebyte hyphen (�|) in jsp but it appear as "?". Same app deployed on windows machine works fine... i have also deployed

  • If i have lost my iphone can i retrieve my pics and messages using icloud

    if i have lost my iphone can i retrieve my pics and contacts using icloud?