JWSDP JAXR Examples

JAXRQueryByWSDLClassification Example
I ran the above example from JWSDP-1.1 against the MS Test registry and it was OK.
But against the IBM test registry I got:
run-query-wsdl:
[java] Created connection to registry
[java] Got registry service, query manager, and lifecycle manager
[java] javax.xml.registry.InvalidRequestException: Multiple Schemes matching name pattern
etc.
etc.
Any ideas?
TREVORS

sorry, i can not answer you question,but i have a question to ask you. when i run JAXRPubish example in jwsdp, i got an error, would you please tell me how to resolve this. thank you.
[java] javax.xml.registry.JAXRException: No Concept specified for this Classification
[java] at com.sun.xml.registry.uddi.UDDIMapper.classifications2Category
Bag(Unknown Source)
[java] at com.sun.xml.registry.uddi.UDDIMapper.organization2BusinessEnt
ity(Unknown Source)
[java] at com.sun.xml.registry.uddi.UDDIMapper.organizations2BusinessEn
tities(Unknown Source)
[java] at com.sun.xml.registry.uddi.UDDIMapper.saveOrganizations(Unknow
n Source)
[java] at com.sun.xml.registry.uddi.BusinessLifeCycleManagerImpl.saveOr
ganizations(Unknown Source)
[java] at com.sun.cb.JAXRPublisher.executePublish(Unknown Source)
[java] at com.sun.cb.OrgPublisher.main(Unknown Source)
[java] java.lang.NullPointerException
[java] at java.io.Writer.write(Writer.java:129)
[java] at com.sun.cb.OrgPublisher.main(Unknown Source)
[java] Exception in thread "main"
[java] Java Result: 1

Similar Messages

  • Run JWSDP tutorial JAXR  example problem

    Dear all:
    I'm running examples from JWSDP 2.0 tutorial
    I use sjsas-9_1
    my location is jwstutorial20/examples/jaxr/simple
    my registry server is http://localhost:8080/RegistryServer as default
    asant run-publish
    I got following errors:
    javaee-home-test:
    init:
    prepare:
    build:
    run-publish:
    [java] Created connection to registry
    [java] Got registry service, query manager, and life cycle manager
    [java] Sep 30, 2007 1:39:56 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
    [java] SEVERE: SAAJ0008: Bad Response; Not Found
    [java] javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
    [java] at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
    [java] at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
    [java] at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    [java] at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    [java] at JAXRPublish.executePublish(Unknown Source)
    [java] at JAXRPublish.main(Unknown Source)
    [java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:146)
    [java] ... 7 more
    [java] Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
    [java] ... 7 more
    [java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:323)
    [java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
    [java] ... 9 more
    BUILD SUCCESSFUL
    can anyone help?
    thanks

    Hi Scott,
    Thank you any way.
    Last time, I met it and carried the tutorial on by compiling and copying manually. Then, I came back to set the ant.jar into path&classpath, and it worked.(ant build)
    Today, I'm trying on "hello1" example, but can't get though.
    Maybe it's still classpath and path issue, as I can't compile two servlet classes by javac from command line, but from Forte, it passed.
    Cheers!
    Zhan

  • (newbie)JWSDP JAXR Browser Authentication Failure

    Hi All,
    I've installed JWSDP 1.1. When using the JAXR Browser to add a company to the UDDI registry, it asks for a userid/password when I click the "Submit" button. No matter what I type in (or don't), the error is the same.
    Error Authenticating User
    java.xml.registry.SaveException: UDDI Disposition Report: Error Code = E_UNKNOWNUSER; Error Message = XMLDBUserAuth.getAuthentication(...); Error Number = 10500
    If I retry, the Error Code changes to E_FATALERROR.
    I'm sure there's a step that I've left undone, but I can't see what it is. Could someone please point me in the right direction? Where/How do I define the userid/password it wants?
    Thanks in advance
    Troy Rudolph
    Computer Associates

    Well, verify you have requested a publishing username & password..
    (however, I did that, but still got same message. I assume it might be due to proxy settings, however, I can query... weird)

  • Accessing JAXR registry from within web service

    Hi I'm having trouble accessing the registry from within a web service running in the tomcat server.
    The service should register with the registry at startup, but in the logs from the tomcat server I can see that a JAXRException is thrown:
    javax.xml.registry.JAXRException: Unable to create ConnectionFactory: Provider com.sun.xml.registry.common.ConnectionFactoryImpl not found
         at javax.xml.registry.ConnectionFactory.newInstance(Unknown Source)
    If I run the program from outside the tomcat server as a standalone program, it registers perfectly.
    I believe the problem is that it is missing one or more jars.
    I have tried to put the jaxr-jars under shared/libs but that hasn't solved the problem.
    Has anyone an idea of what I'm doing wrong?
    Help is greatly appreciated!
    / Bo

    Hi swatdba
    I know that the build file states alle the packages that I need, and as I said, if I run my program like the regular JAXR examples, it works fine.
    The thing is, the JAXR examples are not web services on their own. They are merely Java programs that access the registry.
    In my case I am building a web service that should run in the tomcat server. When it initialises, it should register with the register, and also be able to search for other web services.
    I thought this would be possible per default, ie. the jars that the web service needs should already be available in the tomcat server, but it doesn't work. I have tried to put the jars that I've found in the build script in the folder C:\jwsdp-1.3\shared\lib, which according to the tomcat manual should be used to put jars that you want to share between your web services.

  • JWSDP and J2EE Integration: Doesn't work. What's the point?

    My problems involve the integration of JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    It looks like a long one, but it�s really not that bad. All comments are appreciated.
    I�ve numbered each line-paragraph-section for easy reference later.
    (1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
    (2) I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    (3) On MyWebServer I installed the following:
    Java 2 Standard Edition (J2SE)
    Java 2 Enterprise Edition (J2EE)
    Java Web Services Developer Pack (JWSDP)
    The JWSDP tutorial
    Apache HTTP Server
    (4) The files I downloaded and installed are as follows:
    j2sdk-1_4_0-rc-win.exe
    j2sdkee-1_3_1-win.exe
    jwsdp-1_0-ea1-win.exe
    jwsdp-1_0-ea1_01-tutorial.zip
    apache_1.3.23-win32-x86-no_src.exe
    (5) After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    J2EE_HOME = c:\j2ee
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
    (6) I checked to see that Apache is running as a service. It is.
    On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
    (7) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
    (8) I then enter this address in IE:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
    (9) I then enter this address in IE:
    http://10.10.1.1:8000
    This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
    (10) So far so good. Now I want to test JWSDP as a container for JSP pages.
    (11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
    (12) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1:8080/gs
    The converter app works perfectly.
    (13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
    http://10.10.1.1
    I then click on the link to the converter app and it works perfectly.
    (14) Question: Is this the best way to display JSP pages without having to enter the port number?
    (15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    (16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
    I start Tomcat.
    (17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
    http://10.10.1.1:8000
    The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
    (18) Now I shutdown Tomcat and start J2EE.
    From MyClientPC and use Internet Explorer to test the various relevant addresses:
    (19) http://10.10.1.1:8080
    Displays the JWSDP default home page.
    (20) http://10.10.1.1:8080/gs
    The page cannot be displayed. The converter app no longer works.
    (21) From MyWebServer and use Internet Explorer to test localhost:
    http://localhost:8080
    This displays the J2EE default home page.
    (22) Question: Why does localhost give me a different page than the IP address?
    (23) Question: What was the point of integrating JWSDP and J2EE?
    (24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
    http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
    (25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
    I then type:
    jar cvf converter.war .
    A .war file is created.
    (26) I open the deploytool: File, New, Application, and I name it �converter�.
    I attempt to add the .war file: File, Add to Application, Web WAR.
    (27) When I attempt to add the converter.war file I get this error:
    �converter.war does not appear to be a valid web JAR.�
    I tried a few different attempts, all with the same result. I�m stuck.
    (28) I ask again, What was the point of integrating JWSDP and J2EE?
    (29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
    Please help!!!

    The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
    Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
    I typed this command:
    jar cvf c:\jaxmservices\converter.war .
    In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
    added manifest
    adding: index.jsp(in = 921) (out= 525)(deflated 42%)
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
    Didn�t work. Same error as before.
    Attempt 2 from the same folder:
    I typed this command as you suggested (I tried it with and without the final dot):
    jar tvf converter.war
    Here is the output:
    java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:185)
    at sun.tools.jar.Main.main(Main.java:904)
    I tried a few other variations on these attempts with no luck. I�m stuck.
    I�m attempting to create a .war file out of two files: index.jsp and converter.class.
    Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
    By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
    Forever grateful,
    Logan

  • JWSDP with JBoss

    Does JBoss support JWSDP (JAXP-RPC, WDSL, etc.)?

    Hi,
    JBOSS is only the EJB engine who are using.
    JWSDP depends on the servlet/jsp engine you'll switch infront of JBOSS.
    So if you can successfully connect JWSDP (--> Tomcat4.10) with JBOSS - what I guess is possible - you can use JBOSS with JWSDP.
    We are using JWSDP for example with BES5.1.
    Olver

  • JWSDP / ANT Headaches

    I have tried unsuccessfully build the JWSDP Tutorial examples, using the accompanying documentation as a guide. All of my environmental variables have been set accordingly (with the newer settings placed at the front of my CLASSPATH).
    This is what I'm entering at the prompt:
    C:\jwdsp-1_0-ea2\docs\tutorial\examples\gs>ant build
    Despite what I thought was a careful reading of the setup instructions, I am receiving the following error:
    taskdef class org.apache.catalina.ant.InstallTask cannot be found.
    I tried to "backtrack" the class, based on the path, but could not find it. I then assumed that maybe I needed to include catalina.jar in my CLASSPATH, which I did. Still no luck.
    I did read through everything closely a second and third time, to ensure that I wasn't missing anything. Do I need to set CATALINA_HOME? If so, what would that setting be (I'm running WINNT 4.0 SP 6).
    Any help would be greatly appreciated!
    Thank You,
    SM

    Thanks again for your help. I still had to do some "tweaking" to get things to work, but you put me on the right track. (Going over the build.xml file didn't hurt either.)
    In case you're interested, these are the changes I made to the Environmental Variables settings (WINNT 4.0 SP 6). I'm listing them here, since they aren't documented elsewhere (at least not anywhere I could find).
    CLASSPATH:
    %JWSDP_HOME%\common\lib;%JWSDP_HOME%\server\lib\catalina-ant.jar;
    PATH:
    %SystemRoot%\system32;%SystemRoot%;%JWSDP_HOME%\bin;%JAVA_HOME\bin;%ANT_HOME%\bin;
    This is the strange one, since the same files needed to run ANT are in %JWSDP_HOME%\bin, which is already in the PATH. It shouldn't be necessary to have it listed twice, but it won't work otherwise (?!)
    ANT_HOME:
    Directory where ANT is installed (such as C:\jakarta-ant-1.4.1
    (The documentation makes no mention of this setting.)
    Since I made these changes, there haven't been any problems. I awarded you the 5 Duke Dollars for putting me on the right track (and saving me from a mega-migraine).
    ~ Sheila

  • How to attach XML file in the response of Web Services

    Hi
    I am new to the WEB SERVICE. this my requirement.
    I need to make a class file a web service. and i need to get data from the data base and attach it in the response. I need to use SOAP MEssaging for this. so how to call the service from the JSP and how to get the data from the response,Before that which technology i need to use for this requirement. Plz let me know how to accomplish this task. I have gone thur lot of tech stuff and i am confused a lot, what to use and how to use. Will any one help me out.
    Thanks
    Vidya

    Hey VP, thanks for replyng.
    I have read the codes from a book and havesome code for client. The server side is yet to be done....but I have problems in compiling them as I am Unable to import javax.xml.soap.*;
    This is basically a request to the Server asking it to find the match of the word "Mickey" from the XMLfile at the server...JAXRPC is involved(I Presume:) There are some supporting files.........hey But it doesn't compile only here. Hope it does in yrs
    *******The client..........**********
    * Client
    package com.aby.jwsdp.soap.client;//the package
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import com.aby.jwsdp.soap.client.Fault;//supporting file
    import com.aby.jwsdp.soap.client.RequestMessage;//supporting file
    public class Client {
         static final string SERVICE_ENDPOINT="http://localhost:8080/chap/servlet/chap.RecieveServlet";
         public static void main(String args[]) {
              if(1!=args.length) {
                   System.err.println("Usage: java "+"com.aby.jwsdp.soap.client.Client <name>");
              } else {
                   new Client(args[0]);
         public Client(String name) {
              try{
                   URLEndpoint endpoint = new URLEndpoint(SERVICE_ENDPOINT);
                   SOAPConnectionFactory scf=SOAPConnectionFactory.newInstance();
                   SOAPConnection connection = scf.createConnection();
                   RequestMessage reqMsg = new RequestMessage();
                   reqMsg.setName(name);
                   SOAPMessage replySOAP = connection.call(reqMsq.getMessage(),endpoint);
                   if(Fault.hasFault(replySOAP)) {
                        Fault fault = new Fault(replySOAP);
                        System.err.println("Recieved SOAP Fault");
                        System.err.println("Fault Code: "+fault.getFaultCode());
                        System.err.println("Fault string: "+fault.getFaultString());
                        System.err.println("Fault detail: "+fault.getFaultDetail());
                   }else {
                        ResponseMessage respMsg = new ResponseMessage(replySOAP);
                        String responseValue = null;
                        try{
                             responseValue = respMsg.getValue();
                             System.out.println("Response: "+responseValue);
                        }catch(SchemaException e) {
                             System.err.println("Parsing error");
                   connection.close();
              }catch(EXception e) {
                   System.err.println(e/toString());
    /*@author Aby
    *Fault.java
    package com.aby.jwsdp.soap.client;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPFault;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.Detail;
    import javax.xml.soap.DetailEntry;
    import java.util.Iterator;
    public class Fault {
         protected SOAPFault soapFault;
         public Fault(SOAPMessage msg) throws SOAPException {
              SOAPPart soapPart = msg.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody soapBody = envelope.getBody();
              soapFault = soapBody.getFault();
         public static boolean hasFault(SOAPMessage msg) throws SOAPException {
              SOAPPart soapPart = msg.getSOAPPart();
              SOAPEnvelope envelop = soapPart.getEnvelop();
              SOAPBody soapBody = envelop.getBody();
              return soapBody.hasFault();
         public String getFault() {
              return soapFault.getFaultCode();
         public String getFaultString() {
              return soapFault.getFaultString();
         public String getFaultDetail() {
              String ret = null;
              Detail detail = soapFault.getDetail();
              if(null!=detail) {
                   Iterator it = detail.getDetailEntries();
                   if(it.hasNext()) {
                        DetailEntry detEntry = (DetailEntry)it.next();
                   ret = detEntry.getValue();
              return ret;
    * RequestMessage.java
    package com.aby.jwsdp.soap.client;
    import com.aby.jwsdp.soap.client.Client;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPException;
    public class RequestMessage {
         protected SOAPMessage soapMessage = null;
         public RequestMessage()
         throws SOAPException {
              MessageFactory mf = MessageFactory.newInstance();
              soapMessage = mf.createMessage();
         public void setName(String name)
         throws SOAPException {
              SOAPPart soapPart = soapMessage.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody body = envelope.getBody();
              SOAPElement requestElement;
              requestElement = body.addChildElement(envelope.createName("GetValueByName","myns","www.syngress.com/JWSDP/soap-example"));
              SOAPElement paramElement;
              paramElement = requestElement.addChildElement("name");
              paramElement.addTextNode(name);
         public SOAPMessage getMessage() {
              return soapMessage;
    check this out then we will see

  • Sign XML document without KeyPairGenerator

    Hi everyone -----> System.out.println("HEEEELP!");
    I have a problem for signing and validating an XML document, using the Apache toolkit and JWSDP.
    Example :
    XMLSignature signature = fac.unmarshalXMLSignature(valContext);
    boolean coreValidity = signature.validate(valContext);
    When I genreate keys with KeyPairGenerator, everything works fine (The KeyPairGenerator uses crt coefficient). But If I use my own RSA keys (modulus, private and public exponent), I can sign but not validate the XML document, ie the signature value of the signedInfo. Strange thing : I'm sure the keys are correct. I can encyrpt and decrypt messages using my own validation program with these keys.
    Does anyone know how to sign and validate XML documents with its own keys ?
    I can reply more details if necessary ...
    Any help would be very very appreciated :)

    You're putting words in my mouth, I never mentioned DOM.
    What I'm saying is that JAXB is not of concern to your requirements. Whatever happens to the objects after they are created from XML is up to you. It has done its job, the XML has been transformed into object set A. Perhaps at some point in time it can do some more work for you, when you have an object set B that need to be written to an XML structure. How you get from A to B, that's up to you.
    But perhaps there is a more suited tool for the job that actually deals with XML transformations (hint hint). You could probably hack something together with basic SAX. Heck, if all you want to do is replace easy to identify lines of data with other lines of data a BufferedReader/BufferedWriter could already work.

  • Java.lang.UnsupportedOperationException

    Hi,
    I am trying to run JAXR Examples but its showing the following when i try to publish organization in IBM UDDI registry
    Created connection to registry
    Got registry service, query manager, and life cycle manager
    got registry authorizations
    javax.xml.registry.JAXRException: java.lang.UnsupportedOperationException
    at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
    at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
    at com.sun.xml.registry.uddi.Processor.processRequest(Unknown Source)
    at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    at JAXRPublish.executePublish(JAXRPublish.java:212)
    at JAXRPublish.main(JAXRPublish.java:54)
    Caused by: java.lang.UnsupportedOperationException
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:52)
    Its throwing the exception when executing connection.setCredentials(creds);
    Does anyone have any idea why this is happening..everything was fine and the organization was being published successfully but all of a sudden the code has started throwin this exception which i am unable to resolve...i am using JDK1.4 on windows 2000 on LAN.
    Thanks.

    No there has been no changes in the code but i was working in windows 2000 before when the programs were working, when i switched to windows XP and none of the JAXR programs would work on any of the systems..i have tried switching my computer back to windows 2000 but all invain..the programs are still throwing the same exception ... plz help :(

  • Calendar created by name doesn't correspond.

    HI,
    After checking, I cannot find a response to the following:
    My wife creates, on her device, a calendar entry, but it displays that it was created by me.  My wife deletes or amended an entry and it indicates on the notification message on my device that it was deleted by me.
    How is this happening and how do I rectify this error?
    Any advice welcomed.

    I experienced the same problem when trying to run the examples in the Web Services Developer Pack 1.0_01. I found out that there seems to be a bug in the UDDI registry when using a different locale then en_US.
    When I use sv_SE as locale I dont get any hits when querying the registry by name, querying by classification works. Also ; if I get a hit the name and description fields are empty (this causes a NullPointerException in the JWSDP portal example)
    If I switch to en_US locale both querying by name and retrieving description works fine.
    There seems to be two bug-reports regarding this, see http://developer.java.sun.com/developer/bugParade/bugs/4711368.html and http://developer.java.sun.com/developer/bugParade/bugs/4779503.html

  • Search by name doesn't work

    search by name doesn't work
    I want to search a registry (local Registry Server) for organizations by name using the Registry
    Browser. But I get the message No organizations found. When doing a search by classification the
    object is found and has the name i was searching for.
    Then I've try the search with this one:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/jaxrws/ (to run it you have to
    correct the code). But there is the same result: Serach by classification works and search by name
    not.
    Can anybody tell me what's wrong?

    I experienced the same problem when trying to run the examples in the Web Services Developer Pack 1.0_01. I found out that there seems to be a bug in the UDDI registry when using a different locale then en_US.
    When I use sv_SE as locale I dont get any hits when querying the registry by name, querying by classification works. Also ; if I get a hit the name and description fields are empty (this causes a NullPointerException in the JWSDP portal example)
    If I switch to en_US locale both querying by name and retrieving description works fine.
    There seems to be two bug-reports regarding this, see http://developer.java.sun.com/developer/bugParade/bugs/4711368.html and http://developer.java.sun.com/developer/bugParade/bugs/4779503.html

  • JWSDP - Where can I find 1.0 example apps?

    Hi,
    I'm trying to learn J2EE so I downloaded the JWSDP 1.3 exe. Unfortunately, the bookstore examples use JSP 2.0, which we aren't using in our environment. We are old school.
    I have downloaded the 1.0 tutorial in PDF but I can't find the corresponding examples anywhere on the SUN site. It's frustrating.
    Anyone know where I can find them?
    Thanks,
    Ed

    http://java.sun.com/webservices/downloads/1.0/webservicestutorial_1.0.html

  • JWSDP Tutorial - Servlet Example

    I am trying to run the bookstore example in the Servlet section of the JWSDP on Red Hat 7.3.I am also getting confused over ANT and the Tomcat Manager.
    I need to build the bookstore example and the instructions read: (for those who know the tutorial)
    1. In a terminal window, go to /docs/tutorial/examples/web/bookstore1
    2. Run ant build - The build target will spawn any necessary compilations and copy files to the docs/tutorial/examples/web/bookstore1/build directory.
    3. Make sure Tomcat is started.
    4. Run ant install - The install target notifies Tomcat that the new context is available.
    5. Start the Pointbase database server and populate the database if you have not done so already
    6. Open the bookstore URL http://localhost:8080/bookstore1/enter
    On the command line I can run ANT BUILD fine, but ANT INSTALL fails. (It also fails in Tomcat Manager...but not sure whether I can use this instead of ANT INSTALL?)
    I know this is sketchy but does anyone have any idea?
    Regards
    Scott

    Hi Scott,
    Thank you any way.
    Last time, I met it and carried the tutorial on by compiling and copying manually. Then, I came back to set the ant.jar into path&classpath, and it worked.(ant build)
    Today, I'm trying on "hello1" example, but can't get though.
    Maybe it's still classpath and path issue, as I can't compile two servlet classes by javac from command line, but from Forte, it passed.
    Cheers!
    Zhan

  • JWSDP 2.0 JAX-RPC example problem Fast Infoset

    Hi,
    I installed JWSDP 2.0 and and Tomcat 5.0 for JWSDP. The server runs fine and the example HelloWorld is accessible (I can see the WSDL file in my browser: http://localhost:8080/jaxrpc-HelloWorld/hello?WSDL).
    The Problem is that I can not run the client: I tried "ant run-client". The error occurs while trying to create a stub in the file "HelloClient.java" with the following line of code:
    stub = (HelloIF_Stub) (helloWorldService.getHelloIFPort());
    This is the error I get:
    [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jvnet/fastinfoset/FastInfosetSource
    [java] at hello.HelloWorldService_Impl.getHelloIFPort(HelloWorldService_Impl.java:59)
    [java] at hello.HelloClient.setUp(HelloClient.java:68)
    [java] at hello.HelloClient.main(HelloClient.java:45)
    [java] Java Result: 1
    I am not sure about the structure of the application, so I don't know where to look for the "FastInfosetSurce" file.
    Thanks for any help.
    Best regards.

    Hi,
    I reselved the problem by just copying the FastInfoset to the jaxrpc\lib directory (I am sure this should work in a different way).
    Well, the next problem I am getting is that the "XMLStreamWriter" class cannot be found. This class is contained in jsr173_api.jar.
    I guess my main question is the following:
    Which projects are necessary to get this simple helloWorld example to work?
    I did set the JWSDP_HOME varible. Is there another setting I have to make to have all necessary jar-files available and to be able to run the samples?
    Could anybody point me to a tutorial that does not only show a few lines of code (as the HelloWorld sample in the JWSDP-Tutorial) but that would instead lead me through a step-by-step sample application that I write by myself and actually runs at the end? The example in the JWSDP-Tutorial uses all kinds of existing config files which are not explained.
    Thanks for your help.

Maybe you are looking for

  • Not creating inspection lot for STO

    Hi , I have two plants X(Supplying) and Y (Receiving). In material master in quality 01 and 08 (inspection type) for plant Y active. Process as folllow: 1)STO with U (acc assignment) created. 2)VL10B ,created delivery. 3)Vl02n PGI 4)Migo GR for STO d

  • Servlet with a database QueryString

    Does anybody knows howto make a servlet that can connect to database and return the PDF to the browser ? I have some session variables that has to be part of the querystring and be hidden ! Thanks anyone !

  • Re-sorting order...a little goofy

    Hello all, Re-sorting your picture order seems to act differently depending on how your viewing in the Library. Looking at a grid under a keyword, you can not re-sort your picture order? Looking at a grid under "picks only", when you drag and drop ev

  • Lack of budget journals in R12 Vision

    Hi All I am getting to grips with EBS GL data, and have been able to reconcile Actual journals to Balances 100%. When I now look at 'B' balances in Vision I cannot see any journals for any year apart from 1997, despite large numbers of budget balance

  • Different errors for similar conditions

    I have two similar code snippets: String testString = null; double testDouble = Double.parseDouble(testString); AND String testString = null; int testInt = Integer.parseInt(testString); However different exceptions are thrown when compiled and run. T