Calling ESB using Java Web Proxy

Hello Evryone,
I have a ESB which is giving output as follows:-
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body
xmlns:out1="http://www.example.org">
<out1:ProcessResponse
xmlns:out1="http://www.example.org">
<out1:RowSetCollection>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_K_DKL_NW02</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2008-07-07T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2008</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">3435</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">http://www.google.com</out1:FILE_PATH>
</out1:RowSet>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_config.txt</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2006-03-14T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2006</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">342345</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">\\01hw180464\MOTO\database_config.txt</out1:FILE_PATH>
</out1:RowSet>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_help.doc</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2008-05-12T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2005</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">555</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">\\01hw180464\MOTO\database_help.docx</out1:FILE_PATH>
</out1:RowSet>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_help.txt</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2008-07-01T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2008</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">68</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">\\01hw180464\MOTO\database_help.txt</out1:FILE_PATH>
</out1:RowSet>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_new.zip</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2008-02-01T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2000</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">1567</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">\\01hw180464\MOTO\database_new.zip</out1:FILE_PATH>
</out1:RowSet>
<out1:RowSet>
<out1:SOFTWARE_PKGS
SOFTWARE_PKGS="">database_search.txt</out1:SOFTWARE_PKGS>
<out1:CREATION_DATE
CREATION_DATE="">2007-12-03T00:00:00.000+05:30</out1:CREATION_DATE>
<out1:CREATION_TIME
CREATION_TIME="">2007</out1:CREATION_TIME>
<out1:FILE_SIZE
FILE_SIZE="">365</out1:FILE_SIZE>
<out1:FILE_PATH
FILE_PATH="">\\01hw180464\MOTO\database_search.txt</out1:FILE_PATH>
</out1:RowSet>
</out1:RowSetCollection>
</out1:ProcessResponse>
</env:Body>
</env:Envelope>
I am trying to call this ESB from Java web Proxy. But I am getting following error :-
deserialization error: XML reader error: unexpected character content: "database_K_DKL_NW02"
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:163)
     at proxyesb.proxy.types.org.example.runtime.RowSet_LiteralSerializer.doDeserialize(RowSet_LiteralSerializer.java:79)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.RowSetCollection_LiteralSerializer.doDeserialize(RowSetCollection_LiteralSerializer.java:61)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.ProcessResponse_LiteralSerializer.doDeserialize(ProcessResponse_LiteralSerializer.java:62)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._deserialize_execute(__soap_ModifyResult_execute_ppt_Stub.java:126)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._readFirstBodyElement(__soap_ModifyResult_execute_ppt_Stub.java:112)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub.execute(__soap_ModifyResult_execute_ppt_Stub.java:76)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.execute(__soap_ModifyResult_execute_pptClient.java:50)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.main(__soap_ModifyResult_execute_pptClient.java:36)
CAUSE:
XML reader error: unexpected character content: "database_K_DKL_NW02"
     at oracle.j2ee.ws.common.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:53)
     at proxyesb.proxy.types.org.example.runtime.SOFTWARE_PKGS_LiteralSerializer.doDeserialize(SOFTWARE_PKGS_LiteralSerializer.java:60)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.RowSet_LiteralSerializer.doDeserialize(RowSet_LiteralSerializer.java:79)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.RowSetCollection_LiteralSerializer.doDeserialize(RowSetCollection_LiteralSerializer.java:61)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.ProcessResponse_LiteralSerializer.doDeserialize(ProcessResponse_LiteralSerializer.java:62)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._deserialize_execute(__soap_ModifyResult_execute_ppt_Stub.java:126)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._readFirstBodyElement(__soap_ModifyResult_execute_ppt_Stub.java:112)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub.execute(__soap_ModifyResult_execute_ppt_Stub.java:76)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.execute(__soap_ModifyResult_execute_pptClient.java:50)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.main(__soap_ModifyResult_execute_pptClient.java:36)
CAUSE:
XML reader error: unexpected character content: "database_K_DKL_NW02"
     at oracle.j2ee.ws.common.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:53)
     at proxyesb.proxy.types.org.example.runtime.SOFTWARE_PKGS_LiteralSerializer.doDeserialize(SOFTWARE_PKGS_LiteralSerializer.java:60)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.RowSet_LiteralSerializer.doDeserialize(RowSet_LiteralSerializer.java:79)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.RowSetCollection_LiteralSerializer.doDeserialize(RowSetCollection_LiteralSerializer.java:61)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.types.org.example.runtime.ProcessResponse_LiteralSerializer.doDeserialize(ProcessResponse_LiteralSerializer.java:62)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
     at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._deserialize_execute(__soap_ModifyResult_execute_ppt_Stub.java:126)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub._readFirstBodyElement(__soap_ModifyResult_execute_ppt_Stub.java:112)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
     at proxyesb.proxy.runtime.__soap_ModifyResult_execute_ppt_Stub.execute(__soap_ModifyResult_execute_ppt_Stub.java:76)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.execute(__soap_ModifyResult_execute_pptClient.java:50)
     at proxyesb.proxy.__soap_ModifyResult_execute_pptClient.main(__soap_ModifyResult_execute_pptClient.java:36)
Process exited with exit code 0.
Please help me how to resolve this.

It seems like it doesn't like the underscore characters.

Similar Messages

  • Call ESB from java or unix

    Dear All,
    Due to project requirement, I have a customer who wants to call ESB from java/unix
    i am aware of java calling BPEL but I have never seen a java calling ESB ?
    does any body about it ?
    Is it possible ?
    Appreciate your response.
    Best Regards
    Arc

    Hi, for BPEL there is a really good API to invoke processes externally. For ESB there is not (as far as I know). But each ESB process is just invokable like any other web service. So it would be an option to use javax.xml.rpc package and create Service and Call objects. You can then make use of DII (Dynamic invoking) and there is no need to specify parameters as long payload for the ESB process is valid XML for the Routing Service.
    Jos Baan

  • Issue with Sun Java Web Proxy Server

    I am using Sun Java Web Proxy Server to test my webservice in https mode.(SSL mode).When i test the webservice in http mode,its working fine,but when I test it in SSL mode ,it is giving the following error:
    Unable to tunnel through localhost:8082. Proxy returns "HTTP/1.1 403 Proxy denies fulfilling the request"
    When I am requesting the webservice using the following parameters:
    a)-Dcom.yodlee.soap.services.url=https://localhost:1080/yodsoap/services
    b)-Dyodlee.sdk.https.proxyHost=localhost
    c)-Dyodlee.sdk.https.proxyPort=8082
    d)-Dcom.yodlee.soap.client.http11Enabled=1
    this parameters is used to set the client http connection to HTTP1.1 by setting the HTTP_TRANSPORT_VERSION.
    Detailed error message is as follows:
    Caused by: java.io.IOException: Unable to tunnel through localhost:8082. Proxy returns "HTTP/1.1 403 Proxy denies fulfilling the request"
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2492)
         at org.apache.axis.client.Call.invoke(Call.java:2481)
         at org.apache.axis.client.Call.invoke(Call.java:2176)
         at org.apache.axis.client.Call.invoke(Call.java:2099)
         at org.apache.axis.client.Call.invoke(Call.java:1622)
         at com.yodlee.soap.core.login.CobrandLoginSoapBindingStub.loginCobrand(CobrandLoginSoapBindingStub.java:225)
         at com.yodlee.soap.core.login.CobrandLoginSoapClientProxy.loginCobrand(CobrandLoginSoapClientProxy.java:119)
         ... 1 more
    Caused by: java.io.IOException: Unable to tunnel through localhost:8082. Proxy returns "HTTP/1.1 403 Proxy denies fulfilling the request"
         at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:197)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
         ... 12 more
    This error message shows that its not able to get the socket connection to the server.Can anyone tell me the reason of it.
    If you need any more info do let me know.
    Regards,
    Somendra

    First of all, is there a reason why you are using jRockit?
    Since the issue appeared after upgrading the windows, the issue would potentially be in the interaction between JVM and OS.
    Also, there were some issues related to memory leak that were fixed in AS 8.2.
    May be you should try with a Sun JVM and AS 8.2.

  • Unable to run my application using java web start

    i have created one application and use java web start to download the application. all the files are succesfully downloaded but when i try to run the application an expected error occur. this only happen in my machine but not in other machine i'm currently using
    -jsdk1.4.2
    -windows 2000 professional 5.00.2195 service pack 3
    -pentium III 870 Mhz
    -x86-based PC
    -RAM 256 Mhz
    Anyone knows why, plz help me with this puzzle

    Please post the information from the Web Start "Exception" and "Wrapped Exception" tabs when the error occurs (I assume the error was in fact unexpected ;-)
    A blind stab in the dark would be that you don't have write permission to the cache directory on the second machine. Also worth checking that the proxy settings on the second machine are the same as the first (if they are on the same network).

  • JVM - Microsoft JScript.dll Memory Leak when using Java Web Start

    I have posted before a topic related to this matter, although now I have a lot more information about what is going on (although still no fix for it). This is the link to the earlier post, containing JVM HOTSPOT EXCEPTION_ACCESS_VIOLATION
    http://forum.java.sun.com/thread.jspa?threadID=5116970&messageID=9402346#9402346
    The issue is that after deploying on Windows XP a multi threaded, memory consuming (40 Mb) Java Swing application using Java Web Start, and the standard web page (IE6) reference to the jnlp file to launch the installation from Tomcat, each time this application gets executed by double clicking on the desktop icon (with no IE6 interaction at all), calls start being made between jvm.dll (sun) and jscript.dll (Microsoft IE), these interactions never release the memory they consume, so after a period of using the application it crashes unavoidably. If I execute exactly the same application launching it from command line (no Web Start nor IE6 browser involved), the application works nicely all the time, no problem at all.
    My question is: does anyone know why these calls to jscript.dll are even being made during web start application execution? As said, it's a desktop Swing app, it does not need the browser at all, and jscript.dll is a IE dll. Anyone can advice on how these interactions can be eliminated?
    I've worked with Microsoft support for two weeks on this issue and all they have said is that it is a Sun problem and they can not help further.
    Thanks
    Jes�s

    Microsoft suggested (among others) two test.
    1- Install IE7 and run the application
    2-Install Firefox and run the application
    Results were:
    For 1: The application does not crash, apparently IE7 has a newer version of Jscript.dll that, in Microsoft words, handles better 'bad software', refering to 'bad software' to the java virtual machine I guess. Looking at the performance manager you can see memory goes down as with IE6, but at some point memory is released and the app. does not crash. Anyway is still is uncertain to me why Jscript.dll is getting involved at all. Although this solves the problem is not a viable solution for us, because I work in a corporation where changes such as upgrading the IE version on a large number of desktop can not be justified just because one app. is crashing, and it would take a long validation time anyway before the upgrade can proceed.
    For 2: I did install Firefox in a machine and the application still crashed, but it is true I did not uninstall IE6, so the conflictive Jscript.dll was still sitting at system32. Quite possibly the crash would not happen if that dll wasn't there at all.
    Thanks
    Jes�s

  • Call ESB from Java Class

    Hi, I want to call a BPEL process through the ESB using java. How can i do it? And if my BPEL process is synchronous, how can i route the reply back to the java class that is waiting for the response?

    I have a struts project that calls a BPEL process and waits for the response.
    IDeliveryService svc =
    (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    NormalizedMessage msg = new NormalizedMessage();
    HashMap properties = new HashMap();
    //Add properties for instance lookup
    properties.put("conversationId", reservationId);
    msg.addPart("payload", message);
    msg.setProperties(properties);
    processName = "BPELProcessSeguros";
    if (operation.equals("Claim")){
    operation = "claim";
    NormalizedMessage resp = svc.request(processName, operation, msg);
    Map payload = resp.getPayload();
    org.w3c.dom.Element result = (org.w3c.dom.Element) payload.get("payload");
    System.out.println("@@output payload ["+result+"]");
    Now, i want to change this call for another one that call the BPEL process trough the ESB.

  • Deploying no java applications using Java Web Start

    Hi,
    I am new to java web start. Is it possible to distribute non java applications using java web start. I have an APP which can run on a desktop in standalone mode. The app has jusy HTML and Java script files. Is it possible to package this app and deploying using java web start? I am assuming If it is possible, I can make updates to the packaged app in the web servers and the updates will be downloaded next time the app is used provided configurations are correct?
    thx

    The app has jusy HTML and Java script files. Is it possible
    to package this app and deploying using java web start? Not really. Resources for JWS need to be zipped,
    while this HTML/JS app. will (I guess) not work from
    inside the depths of a Jar (or Zip) archive.
    Note that you can organise for those files to be
    downloaded and expanded onto a known place
    on the user's disk, by using an 'installer' element,
    but..
    ...I am assuming If it is possible, I can make updates to the
    packaged app in the web servers and the updates ..installers are only called once, and do not 'update'.

  • Sun Java Web Proxy Server 4.0.12 is supports Websense Web Security

    Hello All,
    I am using Sun Java Web Proxy 4.0.12 server and installed in RedHat Linux 5.0 OS and I can found software for Websense Web Security aoftware to protect my users and filter the traffic.
    How can I integrate with Websense Web Security
    Thanks & looking forward hear from you guys
    Ifthekhar Javed
    Riyadh.

    We have migrated several reverse and acl proxy from 3.6 to 4.0.6 and have hit a few issues. If anyone has encountered these we would appriate input.
    First, we thought we had caching disabled in the GUI but the server.xml still have it set to "true" in the FILECAHE entry. Will changing the entry to "false" totally disable chaching?
    When we started the migrated proxy instances the server hit memory issues with swap being eaten up very quickly.
    Second issue is MaxProcs in the magnus.conf. In 3.6 MaxProcs set the number of processes to start and it now for determening the number of processors in the server for threading. We are currently on a server with 6 processors. Should MaxProcs be set to six?
    We will be migrating to Solaris 10 and then to a T2000 so we assume the setting will have to change for each of those migigrations.
    The third issue is, has anyone run 3.6 on Solaris 10 and then migrated to 4.0 later? Sun site shows 3.6 not tested on Solaris 10 but I am sure some one has tried it.

  • Difference between reverse proxy plugin and java web proxy server

    Hello
    Can anyone please let me know what exactly is the difference between the reverse proxy plugin available with java system web server and the
    java web proxy server.
    Thanks
    Manik Gupta.

    The features are very closely related. The most notable and obvious difference is that The Web Proxy Server reverse proxy makes use of a content cache, while the reverse proxy of the Web Server does not cache results.
    Message was edited by:
    JoeMcCabe

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

  • Sun Java Web Proxy Server Routing to another Proxy Server

    hello every body
    i have installed Sun java web proxy server and we are get internet services from anotyher proxy server.
    how route SOCKS (Ports) to another proxy server)
    I mean 8080 web browsing is ok but my socks applicaiton like outlook is not working. how to Route my Sun Java Web proxy Server Socks Server to another Proxy Server.
    Please reply
    best regards
    Aamir Mughal
    [email protected]

    Dear ahmad@bzu,
    I suspect that your download is corrupted. Check the file size ( for me it shows up 89,328KB(and the installation went smooth). So a possible solution should be to download again and try the installation.

  • Custom classloader fails when using Java Web Start

    Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows:
    1. The classloader is configured to access a plugin components jar file downloaded by jws.
    2. The plugin components jar file contains other jar files which contains the actual plugin code to be loaded using my own classloader.
    3. Upon initialization - my classloader extracts all jar files contained in the plugin components jar file into temporary files.
    4. These temporary files are used by my classloader when defining plugin classes.
    The classloader works fine when not using java web start. Then I launch the application using java web start with security policy in .jnlp file set to:
    <security>
    <all-permissions/>
    </security>
    After a while (it was able to load some of the classes) it fails with the following stack-trace:
    Regards,
    Terje
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\TEOES\LOCALS~1\Temp\activity61102.jar read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.util.zip.ZipFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at my.plugin.ActivityClassLoader.getJarFileEntry(ActivityClassLoader.java:258)
         at my.plugin.ActivityClassLoader.search(ActivityClassLoader.java:244)
         at my.plugin.ActivityClassLoader.loadClass(ActivityClassLoader.java:99)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Does anyone have source code for implementing a simple class loader that can be used with Java Web Start (preferrably with all jar files to be used by the classloader wrapped into a jar file)

    If you implement your own classloader, and then still run with a SecurityManager installed, then your ClossLoader is responsible for asigning the permissions to the code it loads.
    You need your ClassLoader to extend SecureClassLoader, and implement the method :
    SecureClassLoader.getPermissions(CodeSource cs) to return the PermissionCollection you want.
    /Andy

  • Dynamic JNLP - displaying using java web start

    Hi,
    I am creating a dynamic JNLP in a servlet at the server side. Please see below.
    String someJnlpString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n" +
                                                "<jnlp .....    >    </jnlp>";       
            String attachment = "inline; filename=\"launch.jnlp";           
            String ct = "application/x-java-jnlp-file";
            OutputStreamWriter out = new OutputStreamWriter(response.getOutputStream());
            response.setContentType(ct);
            response.setHeader("Cache-Control", "max-age=30");
            response.setHeader("Content-disposition", attachment);
            out.write(someJnlpString);{code}
      Then in my JSP, I am trying to open this JNLP  by using the following code
    {code}        window.open('servlet/DisplayImage?arg=first-arg");The exception that I am getting is JNLParseException could not parse launch file. Error at line 0. If I open the downloaded file then its working.
    Can somebody please advise me how can I directly open that JNLP from the servlet by using java web start?
    Thanks a ton,
    Subhash

    I am able to run it now after clearing the java cache

  • First Timer Need Help using Java Web Start

                        The following Error Message was thrown when I tried to launch an app
              using Java Web Start...
    An error occurred while launching/running the application.
    Title: Swing Application - Hello World
    Vendor: Ramanujam
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http:\\localhost:8000\test/SimpleExample.jnlp - text/html
              My JNLP file
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for SimpleExample Application -->
    <jnlp codebase="http:\\localhost:8000\test" href="SimpleExample.jnlp">
         <information>
              <title>Swing Application - Hello World</title>
              <vendor>Ramanujam</vendor>
              <description>Test JWS</description>
              <description kind="short">Test JWS</description>
              <offline-allowed/>
         </information>
         <resources>
              <j2se version="1.4"/>
              <jar href="test.jar"/>
         </resources>
         <application-desc main-class="JWSTest"/>
    </jnlp>
                   The exception thrown :
    NLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:536)
    Also, How to configure MIME mapping for .jnlp files on J2EE server (I do not have another server) and if there is a need, how do i deploy the jar and the jnlp file on J2EE server?
    Kindly help.....

    Hi,
    I have the same problem, but I do have configured the webserver (Apache 2) correctly and the server is NOT returning a 404 error.
    To check this I used the a tcp monitor (Apache Axis).
    The error message in Java Webstart is identical to the one discribed above.
    In the tcp monitor I see the following :
    HTTP/1.1 200 OK
    Date: Tue, 19 Nov 2002 15:16:57 GMT
    Server: Apache/2.0.43 (Win32)
    Last-Modified: Tue, 19 Nov 2002 15:13:58 GMT
    ETag: "44eb-300-bebdba39"
    Accept-Ranges: bytes
    Content-Length: 768
    Keep-Alive: timeout=15, max=97
    Connection: Keep-Alive
    Content-Type: application/x-java-jnlp-file
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://ns003:88/ns" href="jviews.jnlp">
    <information>
    <title>JViews TWD Demo Applicatie</title>
    <vendor>Cap Gemini Ernst & Young</vendor>
    <homepage href="default.html"/>
    </information>
    <resources>
    <j2se version="1.3"/>
    <jar href="jviewsapplet.jar"/>
    </resources>
    <application-desc main-class="JViewsClient"/>
    </jnlp>
    Any idea?
    Cheers, Joost

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

Maybe you are looking for