XML - JTree RMI

Hi Friends,
I am a beginner in RMI. I am trying to develop a JTree with following functionalities for XML file reading and writing
1) generating TreeNode from String
2) generating String from TreeNode
Both of this functions I want to keep at Server and want to invoke using RMI.
Following is the code:
public interface XTreeIF
    extends Remote {
    public DefaultMutableTreeNode createTreeNode(String xmlText)
            throws RemoteException;
   public String createXmlString(DefaultMutableTreeNode rootNode)
            throws RemoteException;
public class RemoteXTree
     extends UnicastRemoteObject
     implements XTreeIF {
  public DefaultMutableTreeNode createTreeNode(String text)
            throws RemoteException {
                     DefaultMutableTreeNode treeNode;
     treeNode = createTreeNode(parseXml(text));  //function for creating treenode
     return _treeNode;
   public String createXmlString(DefaultMutableTreeNode treeNode)
            throws RemoteException {
     StringBuffer xml = new StringBuffer();
     xml.append("<?xml version=\"1.0\" ?>");
     xml.append(createXmlNodes(treeNode));  //function for creating xml nodes
     return xml.toString();
}I am getting error on the client side as:
java.rmi.UnmarshalException: Error unmarshaling return header;
Can anyone please suggest what may be the problem and how to sort it out.

Hi Mr.Nitin,
print the stak trace and I can you help.
Bye.

Similar Messages

  • XML - JTree  in JBuilder environment

    Basically, my task is to create an basic java-xml based forum for part of my school project. My code has to be able to compile and run in JBuilder 7 Enterprise (Windows) without installing any extra APIs or XML Parsers [ :( ]. How do I do basic xml manipulations with JTree (i.e. read write) in this limited environment? Also I would love to see some sample codes on how to load xml into JTree. I haven't seen one around. Please advice. Thanks in advanced.

    try this:
    http://java.sun.com/j2ee/1.4/docs/tutorial/examples/jaxp/dom/samples/DomEcho02.java

  • XML and RMI

    Hi
    I want to invoke a method on a remote server using RMI. The method has to make use of data in an XML file. Hence I have to pass it to the method...
    Is this possible in RMI, if so can anyone throw some more light on it....

    You can pass any data you like as argument(s) to a remote method. You need to read up on RMI if you want to use it.

  • Elegant XML -- JTree

    Problem:
    To build an XML editor -> an elegant way to refelct changes in the Jtree to the XML on the file system.
    Is there anyother way other than what is done in the tutorial by sun (reating an Adaptor Object inheriting from defaultMutableTreeNode )?
    any leads/ links?

    ...well i eventullay came up with a sulution ..
    1) Create Your Object(MyObject) with ref to a node in the XmlTree.
    2) add MyObject as Userobject in the DefaultmutableTree of the JTree node.
    3) So for every tree selection /Manupulation u have the org ref of the XML node in the tree which u can manupulate too.
    works great for me!

  • Trouble to invoke BPEL from Java Client following rmi example

    I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi .
    I created my Java class within NetBeans IDE. And the following line of code return null for url,
    java.net.URL url = ClassLoader.getSystemResource("context.properties");
    I think that I need to have SystemResource set up somewhere, how should I do that?

    if you using oc4j.. then please make a small change in oc4j_context.properties
    from
    java.naming.provider.url=[java.naming.provider.url]
    to
    java.naming.provider.url=ormi://hostname/orabpel
    And please make sure the context.properties file which gets copied to classes/context.properties has this above entry. For more details please refer to build.xml under rmi folder.
    Please do let me know if you face any issue.

  • JMX RMI Plugin

    Hi All,
    I have a login application using JSP Struts and Spring. XML is used in the backend to validate the username/password.This is working fine.
    Now I need to change the backend from xml to RMI object that should be able to set the value on an JMX MBean deployed on a separate JBOSS server.
    Any help would be very much useful.
    Thanks in Advance.

    Hi,
    I am not sure which kind of help you're asking for.
    If what you need is to learn a bit about JMX and JMX Remote API, then
    here is where to start from:
    http://java.sun.com/docs/books/tutorial/jmx/
    Additional links to JMX docs & tutorial can be found here:
    http://blogs.sun.com/jmxetc/entry/looking_for_jmx_overview_examples
    If your main concern is about security issues then here is where to look
    for:
    http://blogs.sun.com/lmalventosa/entry/jmx_authentication_authorization
    hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • Error: Java trying to grab DTD and I don't want it to

    I have a problem. For my class we are writing a SAX application that reads in an Amazon.com XML file and tries to find the lowest price. The Amazon file is the result of a query to Amazon's database which has been saved to the hard drive (so it's not being grabbed in Java over the web). We are using SAX for this project and I started out by writing a very basic program that simply just notifies when it reaches the beginning/end of a tag just to make sure it's reading the XML file just fine. It runs great when I'm connected to the internet. However, when I'm not connected to the net I get the following error.
    ======================================================================
    java.net.UnknownHostException: xml.amazon.com
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
         at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
         at Test.main(Test.java:22)
    Exception in thread "main"======================================================================
    I think it's trying to grab the DTD, but I'm not sure. Anyway, my code is extremely basic. Here's what I have:
    ======================================================================
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    public class Test extends DefaultHandler
      public static void main(String args[]) throws Exception
        if (args.length == 0)
          System.err.println("Usage: Test <xmlfile>");
        return;
        SAXParserFactory factory = SAXParserFactory.newInstance();
        factory.setNamespaceAware(false);
        factory.setValidating(false);
        SAXParser parser = factory.newSAXParser();
        Test t = new Test();
        parser.parse(new File(args[0]), t);
      public void startDocument()
        System.out.println("At the start of the document");
      public void startElement(String uri, String name, String qName, Attributes attrs)
        System.out.println("Found start element: " + name);
      public void endElement(String uri, String name, String qName)
        System.out.println("Found end element: " + name);
      public void endDocument()
        System.out.println("At the end of the document");
    }======================================================================
    I cannot turn to the teacher for help as he is just a GTF and doesn't really understand this stufff himself. He just shrugs and says it works on his machine. Anyway, how do I get it so that it will work when not connected to the internet? All I want it to do is read through the XML file. I don't need any validation or anything like that.
    If it makes a difference I am using JDK 1.4.

    Here's a sample file from an Amazon query:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ProductInfo PUBLIC "-//Amazon.com //DTD  Amazon Product Info//EN" "http://xml.amazon.com/schemas/dev-lite.dtd">
    <ProductInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xml.amazon.com/schemas/dev-lite.xsd">
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0672321815">
          <Asin>0672321815</Asin>
          <ProductName>Building Web Services with Java: Making Sense of XML, SOAP, WSDL and UDDI</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Steve Graham</Author>
             <Author>Simeon Simeonov</Author>
             <Author>Toufic Boubez</Author>
             <Author>Glen Daniels</Author>
             <Author>Doug Davis</Author>
             <Author>Yuichi Nakamura</Author>
             <Author>Ryo Neyama</Author>
          </Authors>
          <ReleaseDate>12 December, 2001</ReleaseDate>
          <Manufacturer>Sams</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0672321815.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0672321815.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0672321815.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$32.49</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0596001975">
          <Asin>0596001975</Asin>
          <ProductName>Java & XML, 2nd Edition: Solutions to Real-World Problems</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Brett McLaughlin</Author>
          </Authors>
          <ReleaseDate>September, 2001</ReleaseDate>
          <Manufacturer>O'Reilly & Associates</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0596001975.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0596001975.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0596001975.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$44.95</ListPrice>
          <OurPrice>$31.47</OurPrice>
          <UsedPrice>$31.00</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/1861004370">
          <Asin>1861004370</Asin>
          <ProductName>Beginning Java Databases: JDBC, SQL, J2EE, EJB, JSP, XML</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Kevin Mukhar</Author>
             <Author>Todd Lauinger</Author>
             <Author>John Carnell</Author>
          </Authors>
          <ReleaseDate>August, 2001</ReleaseDate>
          <Manufacturer>Wrox Press Inc</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/1861004370.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/1861004370.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/1861004370.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$39.99</ListPrice>
          <OurPrice>$27.99</OurPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0789725037">
          <Asin>0789725037</Asin>
          <ProductName>Special Edition Using Java 2 Enterprise Edition (J2EE): With JSP, Servlets, EJB 2.0, JNDI, JMS, JDBC, CORBA, XML and RMI</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Mark Wutka</Author>
          </Authors>
          <ReleaseDate>08 May, 2001</ReleaseDate>
          <Manufacturer>Que</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0789725037.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0789725037.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0789725037.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$12.85</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0789722755">
          <Asin>0789722755</Asin>
          <ProductName>Domino 5 Web Programming with XML, Java, and JavaScript</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Randall A. Tamura</Author>
             <Author>Randy Tamura</Author>
          </Authors>
          <ReleaseDate>08 August, 2000</ReleaseDate>
          <Manufacturer>Que</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0789722755.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0789722755.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0789722755.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$7.47</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0130851353">
          <Asin>0130851353</Asin>
          <ProductName>Enterprise Applications Integration with XML and Java</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>JP Morgenthal</Author>
          </Authors>
          <ReleaseDate>31 July, 2000</ReleaseDate>
          <Manufacturer>Prentice Hall PTR</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0130851353.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0130851353.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0130851353.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$44.99</ListPrice>
          <OurPrice>$31.49</OurPrice>
          <UsedPrice>$3.75</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0596002785">
          <Asin>0596002785</Asin>
          <ProductName>Java and XML Data Binding</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Brett McLaughlin</Author>
          </Authors>
          <ReleaseDate>May, 2002</ReleaseDate>
          <Manufacturer>O'Reilly & Associates</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0596002785.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0596002785.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0596002785.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$34.95</ListPrice>
          <OurPrice>$24.47</OurPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0764516582">
          <Asin>0764516582</Asin>
          <ProductName>Java & XML for Dummies</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Barry Burd</Author>
          </Authors>
          <ReleaseDate>15 June, 2002</ReleaseDate>
          <Manufacturer>John Wiley & Sons</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0764516582.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0764516582.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0764516582.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$29.99</ListPrice>
          <OurPrice>$20.99</OurPrice>
          <UsedPrice>$20.46</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0201770040">
          <Asin>0201770040</Asin>
          <ProductName>XML and Java: Developing Web Applications (2nd Edition)</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Hiroshi Maruyama</Author>
             <Author>Andy Clark</Author>
             <Author>Makoto Murata</Author>
             <Author>Naohiko Uramoto</Author>
             <Author>Kent Tamura</Author>
             <Author>Yuichi Nakamura</Author>
             <Author>Ryo Neyama</Author>
             <Author>Kazuya Kosaka</Author>
             <Author>Satoshi Hada</Author>
          </Authors>
          <ReleaseDate>13 May, 2002</ReleaseDate>
          <Manufacturer>Addison Wesley Professional</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0201770040.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0201770040.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0201770040.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$25.00</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/186100401X">
          <Asin>186100401X</Asin>
          <ProductName>Professional Java XML</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Kal Ahmed</Author>
             <Author>Sudhir Ancha</Author>
             <Author>Andrei Cioroianu</Author>
             <Author>Jay Cousins</Author>
             <Author>Jeremy Crosbie</Author>
             <Author>John Davies</Author>
             <Author>Kyle Gabhart</Author>
             <Author>Steve Gould</Author>
             <Author>Ramnivas Laddad</Author>
             <Author>Sing Li</Author>
          </Authors>
          <ReleaseDate>April, 2001</ReleaseDate>
          <Manufacturer>Wrox Press Inc</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/186100401X.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/186100401X.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/186100401X.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$59.99</ListPrice>
          <OurPrice>$41.99</OurPrice>
          <UsedPrice>$41.00</UsedPrice>
       </Details>
    </ProductInfo>

  • How to compile java servlet

    this the error i encounter.. i have read some of the posted topics on it but i dont understand how i can create my own classpath..where should i do that..what should i write...how i have to save it...pls help me...
    C:\currentyaazmin1\java>javac login2.java
    login2.java:9: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    login2.java:11: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    login2.java:16: Superclass HttpServlet of class login2 not found.
    public class login2 extends HttpServlet
    ^
    3 errors
    i have already installed jdk1.3 an jsdk2.1...i also copied javax folder from jsdk2.1 and pasted in c:....still i encouter the same thing... pls help

    Download j2ee is recommended to solve any compling such as servlets and swing
    http://java.sun.com/j2ee/download.html
    Once done all you do is include j2ee.jar and you have xml, servlets, rmi the works!! :)
    However since you download the servelet component only, search in you hard drive for ".jar" file.
    You can open the .jar file with a WinZip and you can check if it as javax.servlet.http.* by looking at the far right for javax/servlet/http
    Once you know the jar file to include. Next is to put it in the classpath. The most simple way using NT example, how Windows 95/98 is similar. Go to:
    Control Panel -> Double Click on System -> Click on Environment tab
    Type below in Variable: CLASSPATH
    Type in Value: PATH TO SERVLET;.;
    Don't forget the ;.; (the dot for currnet path to run)
    If you need to add more to the classpath, seperate by classpath.
    Log off and log back in as your user. No need to reset the machine.
    The system will pick the new CLASSPATH.
    Test on dos as "echo %CLASSPATH%" to see what its set to.

  • Good books on Designer 6i

    Can anyone recommend a good book on Designer 6i ?
    All the books I have come across are for Designer/2000.
    thanks

    Either this was a difficult question or no one wants to share their favorite books :-)
    For now I settled for the German book "Masterkurs Client/Server-Programmierung mit Java: Anwendungen entwickeln mit JDBC, Sockets, XML-RPC, RMI und JMS - Kompakt und praxisnah - Zahlreiche Programmbeispiele und Aufgaben". But I'm still very much interested in other titles on the choices, trade-offs, architecture, when to use web-services, etc.

  • Good Books on Netweaver BI

    Hi All,
    Does anyone know where i can get good materials and books that i can use to learn Netweaver BI, I will prefer a book that has good grahics and step by step on how to archieve  any goal or aim. Please if anyone know i will appreciate

    Either this was a difficult question or no one wants to share their favorite books :-)
    For now I settled for the German book "Masterkurs Client/Server-Programmierung mit Java: Anwendungen entwickeln mit JDBC, Sockets, XML-RPC, RMI und JMS - Kompakt und praxisnah - Zahlreiche Programmbeispiele und Aufgaben". But I'm still very much interested in other titles on the choices, trade-offs, architecture, when to use web-services, etc.

  • Javax.naming.NamingException: when deploying to OC4J using admin.jar

    Additional details to posting (Problem Deploying to OC4J from Jbuilder8)
    Jul 8 2003 @3:27
    enter:-
    java -jar "\ora9ias\j2ee\home\admin.jar" ormi://myhost:23791 admin password
    and you get the error message:-
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectionException: Connection refused: connect
    My server.xml contains entry &lt;rmi-config path="./rmi.xml" /&gt;
    and my rmi.xml reads:-
    &lt;?xml version="1.0" standalone="yes" ?&gt;
    &lt;!DOCTYPE rmi-server (View Source for full doctype...)&gt;
    - &lt;rmi-server port="23791" host="[ALL]"&gt;
    - &lt;log&gt;
    &lt;file path="../log/rmi.log" /&gt;
    &lt;/log&gt;
    &lt;/rmi-server&gt;
    I have repeatedly checked my hostname port user name and password
    along with the statements in the server.xml and rmi.xml as above, but with no
    success.
    Regards
    Gary.

    I am facing the same problem from this morning. I was able to start oc4j jvm without any problem today in the morning and i could deploy the war file and was able to test the web pages. But due to some unavoidable reasons i had to restart my machine and ever since then i am running into the following error.
    My server.xml has a reference to rmi.xml.
    Any help is highly appreciated.
    Regards
    Kiran
    D:\Java\JDev9i\j2ee\home>java -jar oc4j.jar
    Node started with id=647722646
    Error initializing web-site at ./http-web-site.xml: default-web-app not specifie
    d for Oracle9iAS Containers for J2EE HTTP Web Site
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized

  • Java.lang.ClassLoader.defineClass0

    Hi
    I have JDK1.3 installed in Windows NT4.0 with Service Pack. I am trying to compile a small RMI code I have three files in
    C:\xml
    1. IHelloRmi.java // This is the remote inteface.
    2. HelloRmi.java // This is the implementation
    3. HelloRmiClient.java // This is the client
    All files have "package rmi" statement at top.
    I compiled em succesfully. Now I want to create a stub.
    I give following commands
    C\xml> rmic rmi.HelloRmi
    C\xml\rmi> rmic rmi.HelloRmi
    but it gives following error
    Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/java/Constants
    at java.lang.ClassLoader.defineClass0(native method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    etc.....
    Any help will be appreciated

    Hi,
    I am assuming that you have C:\xml in your classpath. Create a sub directory called rmi and put these 3 files in this sub -directory. You should not have any problem in compiling and creating stubs.
    Check whether your .jar files has been placed in classpath .
    Hope this will help you.
    Anil.
    Developer Technical Support
    Sun Microsystems Inc,
    http://www.sun.com.developers/support

  • Webservices Architectures

    Where can I get information now real world examples of webservices in action, and then high level modeling designs or implementation for the examples?
    There seem to be so many different uses of webservices. I would like to get practical knowledge on the most powerful and useful methods.
    (I'm interested from a Java backend perspective.)
    For example, one client of mine currently processes data entered mainly through a webapp. A developer has given them a way to upload CSV files of data into the system for processing. We've had more that one issue of commas in the values. XML would be a much better way serialize. I understrand how using XSLT, or just xml digester, I can read in and validate the data. But, how do the users create XML from csv files? Do I need to build a client side app? Or am I missing something here?
    Thanks
    jdkGene

    Either this was a difficult question or no one wants to share their favorite books :-)
    For now I settled for the German book "Masterkurs Client/Server-Programmierung mit Java: Anwendungen entwickeln mit JDBC, Sockets, XML-RPC, RMI und JMS - Kompakt und praxisnah - Zahlreiche Programmbeispiele und Aufgaben". But I'm still very much interested in other titles on the choices, trade-offs, architecture, when to use web-services, etc.

  • Problem with Jtree to xml tranform..how to set/get parent of a node?

    Hi,
    I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
    It is workin fine.
    I got stuck with removal of selected node and save it as a new xml.
    I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
    thanks
    -bala
    Edited by: r_bala on May 9, 2008 4:44 AM

    there's no way anyone can help you without seeing your code.

  • Java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException

    Hi, I created a webservice using weblogic8.1 sp3 workshop. On my desktop, I tested the webservice with a java client and it worked fine. When I deployed webservice application on UNIX production server, it deployed successfully and it displayed WSDL file too. But, when I run java client from desktop to access this webservice on UNIX server, it is throwing the following exception.
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    Detail:
    <detail>
    null </detail>; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:31)
    at SoapClient.main(SoapClient.java:17)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.webservice.core.ClientDispather.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:26)
    can somebody please help me. This is very critical for me.
    Thanks in advance.

    Hi, I created a webservice using weblogic8.1 sp3 workshop. On my desktop, I tested the webservice with a java client and it worked fine. When I deployed webservice application on UNIX production server, it deployed successfully and it displayed WSDL file too. But, when I run java client from desktop to access this webservice on UNIX server, it is throwing the following exception.
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    Detail:
    <detail>
    null </detail>; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:31)
    at SoapClient.main(SoapClient.java:17)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.webservice.core.ClientDispather.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:26)
    can somebody please help me. This is very critical for me.
    Thanks in advance.

Maybe you are looking for

  • Movies in itunes but not playing on IPOD

    Movies are in itunes and in the proper format. Movies play great using itunes. Movies are transferred to IPOD, but when I go to play them using the ipod, the screen freezes and the movies do not play. When I play the movies from the IPOD using the co

  • Cookies turned off and cleared, but 3rd party cookies are still being shared after Firefox v16.0.1 update

    after firefox updated from v15.0.1 to v16.0.1 on Friday (10/19/12), collusion v0.22 shows 3rd party cookies being shared, and a lot of them. I have firefox in "always use private browsing mode", with cookies not allowed, in addition there are no entr

  • Wine and Intel HD 3000 with lib32-intel-dri

    I have a HP ProBook 4530s with Intel HD 3000 graphics. Wine doesn't find the graphics card. Usually lib32-intel-dri has solved this, however this time it didn't. fixme:d3d:wined3d_guess_card No card selector available for GL vendor 0x4 and card vendo

  • Solaris 8 version 1/01

    I have a Solaris 8 1/01 server that I would like to move into a Solaris 8 container. I've read the minimum requirement is a server running Solaris 8 2/04. Has anyone had any experience creating containers for older OS's? Thanks.

  • Can I use Java Creator 2 with old JRE/JDK 1.4.2_07??

    I am planning to install new Java Creator 2 but I am having JRE and JDK 1.4.2_07 and I am using mysql 3.23.55 and I want to integrate it. Currently my OS is Windows XP SP2 platform with processor Intel Centrino 1.4 and RAM 256 MB... I know the ram is