XSLT ransform MalformedURLException: no protocol: XMLEntities.res

I have an unsigned WebStart application that is trying to transform a simple XML document using the version of Xalan bundled with with JDK 1.4.2_02. When I try to invoke the transformer, I get the following exception:
java.lang.ExceptionInInitializerError
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at org.apache.xalan.serialize.SerializerFactory.getSerializer(Unknown Source)
     at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(Unknown Source)
     at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknown Source)
     at com.ofc.jc.SmeClient.main(SmeClient.java:146)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sun.javaws.Launcher.executeApplication(Unknown Source)
     at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
     at com.sun.javaws.Launcher.continueLaunch(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(Unknown Source)
Caused by: java.lang.RuntimeException: 無法載入資源 [ XMLEntities.res ]:java.net.MalformedURLException: no protocol: XMLEntities.res
XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
     at org.apache.xalan.serialize.CharInfo.<init>(Unknown Source)
     at org.apache.xalan.serialize.SerializerToXML.<clinit>(Unknown Source)
     ... 17 more
My code is simply this:
        java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(512);
        try
            String xml = "<html><body><h1>works</h1></body></html>";
            javax.xml.transform.Transformer t =
                javax.xml.transform.TransformerFactory.newInstance().newTransformer();
            t.transform(new javax.xml.transform.stream.StreamSource(new java.io.StringReader(xml)),
                        new javax.xml.transform.stream.StreamResult(baos));
            log.info(baos.toString());
        catch (Exception e)
            log.error("Unable to transform", e);
        }

Seems that this is only broken under Windows. It works as expected under Linux.

Similar Messages

  • XML : Transform DOM Tree to XML String in an applet since the JRE 1.4.2_05

    Hello,
    I build a DOM tree in my applet.
    Then I transform it to XML String.
    But since the JRE 1.4.2_05 it doesn't work.
    These lines failed because these variables became final:
    org.apache.xalan.serialize.CharInfo.XML_ENTITIES_RESOURCE = getClass().getResource("XMLEntities.res").toString();
    org.apache.xalan.processor.TransformerFactoryImpl.XSLT_PROPERTIES = getClass().getResource("XSLTInfo.properties").toString();The rest of the code :
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document domXML = builder.newDocument();
    // I build my DOM Tree
    StringWriter xmlResult = new StringWriter();
    Source source = new DOMSource(domXML);
    Result result = new StreamResult(xmlResult);
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT,"yes");
    xformer.transform(source,result);Is there any other way to get an XML String from a DOM tree in an applet ?
    I'm so disappointed to note this big problem.

    Does anyone have an idea why I get this error message when try to use transform in an applet?
    Thanks...
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at org.apache.xalan.serialize.SerializerFactory.getSerializer(Unknown Source)
         at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(Unknown Source)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknown Source)
         at matrix.CreateMtrx.SaveDoc(CreateMtrx.java:434)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at thinlet.Thinlet.invokeImpl(Unknown Source)
         at thinlet.Thinlet.invoke(Unknown Source)
         at thinlet.Thinlet.handleMouseEvent(Unknown Source)
         at thinlet.Thinlet.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
    XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
         at org.apache.xalan.serialize.CharInfo.<init>(Unknown Source)
         at org.apache.xalan.serialize.SerializerToXML.<clinit>(Unknown Source)
         ... 28 more

  • Is it possible to use JAXP in Applet? Really urgeng.

    I need to get String output from a DOM Document using JAXP in Applet. I want the entire XML document in one string .I write the code as following,but it doesn't work. Would you help me to point out the mistake I made in it?
    Any help would be appreciated,
    Thanks.
    import java.awt.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import javax.xml.transform.dom.DOMSource;
    import java.io.*;
    import java.io.IOException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import java.util.*;
    public class XMLTest extends JApplet {
         String str;
         public void init()
         str="hello";
    try
    DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
    DocumentBuilder db =factory.newDocumentBuilder();
    Document m_dDoc = db.newDocument();
    Element e1=m_dDoc.createElement("first");
    Text tx;
    tx=m_dDoc.createTextNode("hi");
    e1.appendChild(tx);
    m_dDoc.appendChild(e1);
    DOMSource doms = new DOMSource(m_dDoc);
    Writer out = new StringWriter();
    StreamResult result = new StreamResult(out);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer();//wrong
    transformer.transform(doms,result);
    str=result.toString();
    catch(Exception e)
    e.printStackTrace();
         public void paint(Graphics g)
              g.drawString(str, 50, 60 );
    }

    The problem is that using the transformer in an applet results in the exception:
    The exception is as following:
    org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not loa
    d output_xml.properties (check CLASSPATH)
    at org.apache.xalan.templates.OutputProperties.getDefaultMethodPropertie
    s(OutputProperties.java:364)
    at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.j
    ava:130)
    at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(Transform
    erIdentityImpl.java:104)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
    sformerFactoryImpl.java:804)
    at XMLTest.init(XMLTest.java:36)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I am still unclear to the cause, when I create a copy of the output_xml.properties file and put it somewhere in your classpathe (I put mine in a jar that the applet loads) you get:
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:131)
         at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
         at com.thalesgroup.mss.infrastructure.xml.SOAPMessage.domDocToString(SOAPMessage.java:180)
         at com.thalesgroup.mss.applets.filemanager.XmlMessages.getFileList(XmlMessages.java:246)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.getFileList(FileManagerFrame.java:575)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.access$2(FileManagerFrame.java:29)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame$fileList.run(FileManagerFrame.java:847)
    Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
    XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
         at org.apache.xalan.serialize.CharInfo.<init>(CharInfo.java:202)
         at org.apache.xalan.serialize.SerializerToXML.<clinit>(SerializerToXML.java:292)
         ... 10 more
    Which leads me to some questions:
    What is XMLEntities.res, and how do I get one?
    Does anyone know which version of Xalan and JAXP comes with J2SE 1.4.1?
    Why the package "org.apache.xalan.Version" is not in the J2SE 1.4.1 release (and should it be?)

  • Error in XML Parsing  through Schema doc.MalformedURLException

    Hi,
    I need to validate xml file before parsing it through XML schema validation. My XML file and schema files are in the same directory and I need am validation it using below code.
    Java Code_
    String rbBasePath = ConfigurationFactory.getInstance().getConfigurations("ConfigParam").get("config.rb.properties", DEFAULT_RB_PATH);
    InputSource xmlInputSource = new InputSource (rbBasePath + ConfigConstants.XML_FILE_NAME);
    File schemaFileObj = new File (rbBasePath + ConfigConstants.XML_SCHEMA_FILE_NAME);
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema (schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    But, I am getting following error.
    java.net.MalformedURLException: unknown protocol: c_
    After some google, I found there may be some bug which does not read the file if file path contains some space in between. But in my case schema path does not contain any space in between.
    Please help to figure out this issue.
    Edited by: Jaykishan on Jul 20, 2011 12:17 PM
    Edited by: Jaykishan on Jul 20, 2011 12:18 PM

    Error occurs at below line of code.
    validator.validate (source);
    Error message: MalformedURLException. java.net.MalformedURLException: unknown protocol: c
    My xml and xsd file is located at: C:\config\resources\AlertData.xml, C:\config\resources\AlertDataSchema.xsd.

  • Call webservice from PJC over https protocol

    Hello!
    I have problem calling webservice from PJC.
    The webservice is on https server so I must declare the keystore and truststore...
    I have generated java classes from wsdl file with SOPAUI and axis 1.0...
    Then I have made a code which integrate axis library, jsee ...
    On the client side all works fine (with jdk 1.3 compiler)
    When I deploy it on oracle forms server and call it from oracle form I get the error:
    java.net.MalformedURLException: unknown protocol: https
    in this way I register the certificate..
    private void registrirajCertifikat(String direktorij, String password,
            String keyStore, String trustStore) {
           System.out.println("keystore: " + direktorij + keyStore);
            System.out.println("trust: " + direktorij + trustStore);
            System.out.println("========================================");
            System.setProperty("javax.net.ssl.keyStore", direktorij + keyStore);
            System.setProperty("javax.net.ssl.keyStorePassword", password);
            System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
            System.setProperty("javax.net.ssl.trustStore", direktorij + trustStore);
            System.setProperty("javax.net.ssl.trustStorePassword",   password);
            System.setProperty("javax.net.ssl.trustStoreType", "jks");
            System.out.println("========================================");
            System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );     
        }I have my kestore and truststore located on http server..
    Every time the bean is initializzed I download the keystore and truststore to my java.tmp.dir
    The same code in Jdeveloper works fine.. also in cmd prompt.. but in oracle forms I can't get it to run..
    anybody can help me?
    this is my console output when running a form:
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\peterv.IN2SLO
    Proxy Configuration: no proxy
    JAR cache enabled
         Location: C:\Documents and Settings\peterv.IN2SLO\Oracle Jar Cache
         Maximum size: 50 MB
         Compression level: 0
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    q:   hide console
    s:   dump system properties
    t:   dump thread list
    x:   clear classloader cache
    0-5: set trace level to <n>
    Loading http://dekani:7777/forms/java/frmall_jinit.jar from JAR cache
    Loading http://dekani:7777/forms/java/images.jar from JAR cache
    Cached copy of http://dekani:7777/forms/java/in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean                     **
    zacetek
    http://10.1.2.235/in2/asarh.pfx
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    3794 byte(s) copied
    http://10.1.2.235/in2/arhaskeystore.jks
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    3800 byte(s) copied
    Registriramo nastavitve za SSL
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    --> napaka: *java.net.MalformedURLException: unknown protocol: https*
    java.net.MalformedURLException: unknown protocol: https
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at in2.mikrocop.Test.dokumenti(Test.java:94)
         at in2.mikrocop.Test.testiranje(Test.java:66)
         at in2.mikrocop.Test.<init>(Test.java:49)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.ui.VBean.instantiateBean(Unknown Source)
         at oracle.forms.ui.VBean.setProperty(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I have tryed tu run my example with Jinitiator "java" like
    c:\java -jar c:\in2kartica.jar
    and all works fine..
    I don't know why the same example won't run inside oracle form as javabean?!?
    this is my cmd console
    C:\jdk\bin>java -jar c:\in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean            **
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    unknown attr1.3.6.1.4.1.311.17.1
    Dolzina: 91  <------------ this is the result from webservice located on address above

  • MalformedURLException on re-direct

    I open a connection to a URL, try to get the content type, and
    get a MalformedURLException.
    It appears to me that the sun.net followRedirect function really
    doesn't like the location: (redirect) field in the HTTP: header.
    The location field returned by the server is:
    location: /digits?COUNT=13893&STYLE=6&ACCOUNT=1634283RFC 2616 specifies that the location response-header consists of
    a single absolute URI, but Mozilla (for example) accepts a
    relative URI happily.
    I'm writing a polite little webcrawler, and trying to accept
    roughly the same range that your typical web-browser would accept.
    Is there a workaround? I don't want to skip the "non-conforming"
    page, and I'm loath to write my own redirect-follower.
    The URI I'm connecting to is http://fastcounter.linkexchange.com/fastcounter?1634283+3268573
    The code snippet, from ScanNode.scan:
                /* uri is a java.net.URI */
                /* urlConn is a java.net.URLConnection */
                /* contentType is a String */
             urlConn = uri.toURL().openConnection();
             contentType = urlConn.getContentType();The stack trace:
    java.net.MalformedURLException: no protocol: digits?COUNT=13890&STYLE=6&ACCOUNT=1634283
         at java.net.URL.<init>(URL.java:579)
         at java.net.URL.<init>(URL.java:476)
         at java.net.URL.<init>(URL.java:425)
         at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:1081)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:675)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
         at java.net.URLConnection.getContentType(URLConnection.java:381)
         at ScanNode.scan(ScanNode.java:146)
         at Spider1.main(Spider1.java:72)And, finally, the headers of the page in question:
    urlConn.getHeaderFields().toString() = "{Connection=[close], null=[HTTP/1.1 302 Found], Date=[Fri, 24 Oct 2003 16:45:52 GMT], Server=[Apache/1.3.6 (Unix)], Content-Type=[text/html], Transfer-Encoding=[chunked], Location=[digits?COUNT=13893&STYLE=6&ACCOUNT=1634283]}"
    Michael

    HttpURLConnection.setInstanceFollowDirect and
    setFollowDirect might be used to suppress the
    automatically tried redirection. You should then have
    to do it yourself by reading the header and correcting
    it with protocol and host before "/digits."Hi,
    I got the same problem as Michael.
    Could you plz write a litte more about how to read and set the header. And once that is done - do I then have to do a connect() on the HttpURLConnection again?
    Brgds,
    \Thomas

  • OSB proxy secured with message level protection - No Protocol error

    I have an OSB business service that calls a JAX-WS service protected by OWSM policy wss11_message_protection_service_policy. The business service is protected by the corresponding client policy. The proxy service is secured by wss11_message_protection_service_policy. Business service works fine but the proxy doesn't. It runs into this "no protocol" error below on the outbound. The system is a windows 8 64 bit PC and uses IPV6. The domain path has no spaces (I read online on an unrelated forum that spaces can cause this 'no protocol' error). This error occurs only with the message protection policy. UserName token works fine from proxy->business svc->webservice.  There are no issues with the certificates because I am able to call the webservice using a jax-ws client using the certificates in keystore.
    Caused By: java.net.MalformedURLException: no protocol: /OSBProject/proxy/HelloS
    erviceProxySvc
            at java.net.URL.<init>(URL.java:583)
            at java.net.URL.<init>(URL.java:480)
            at java.net.URL.<init>(URL.java:429)
            at oracle.wsm.security.identity.WSMIdentityReaderValidator.getHostname(W
    SMIdentityReaderValidator.java:200)
            at oracle.wsm.security.identity.WSMIdentityReaderValidator.getIdentity(W
    SMIdentityReaderValidator.java:149)
            at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor
    .fetchIdentity(SecurityScenarioExecutor.java:488)
            at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor
    .initialize(SecurityScenarioExecutor.java:455)
            at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor
    .init(SecurityScenarioExecutor.java:347)
            at oracle.wsm.security.policy.scenario.executor.Wss11AnonWithCertsScenar
    ioExecutor.init(Wss11AnonWithCertsScenarioExecutor.java:97)
            at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populate
    AssertionExecutors(WSPolicyRuntimeExecutor.java:259)
            at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.populate
    AssertionExecutors(WSPolicyRuntimeExecutor.java:282)
            at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.init(WSP
    olicyRuntimeExecutor.java:165)
            at oracle.wsm.policyengine.impl.PolicyExecutionEngine.getPolicyExecutor(
    PolicyExecutionEngine.java:137)
            at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExec
    utionEngine.java:101)
            at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)
            at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)
            at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvo
    ker.java:374)
            at com.bea.wli.sb.security.wss.wsm.WsmOutboundHandler$1.run(WsmOutboundH
    andler.java:217)
            at com.bea.wli.sb.security.wss.wsm.WsmOutboundHandler$1.run(WsmOutboundH
    andler.java:215)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAs(JpsSubject.java:213)
            at com.bea.wli.sb.security.wss.wsm.WsmOutboundHandler.processRequest(Wsm
    OutboundHandler.java:214)
            at com.bea.wli.sb.test.service.wss.WssHandler.processRequest(WssHandler.
    java:279)
            at com.bea.wli.sb.test.service.ServiceMessageBuilder.buildMessage(Servic
    eMessageBuilder.java:468)
            at com.bea.wli.sb.test.service.ServiceMessageBuilder.buildMessage(Servic
    eMessageBuilder.java:116)
            at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessage
    Sender.java:261)
            at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMe
    ssageSender.java:79)
            at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessage
    Sender.java:137)
            at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessage
    Sender.java:135)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    146)
            at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityCo
    ntextService.java:55)
            at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageS
    ender.java:140)
            at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.
    java:454)
            at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
            at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceE
    JBBean.java:167)
            at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(
    Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(Ses
    sionRemoteMethodInvoker.java:40)
            at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unkno
    wn Source)
            at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invok
    e(Unknown Source)
            at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:17
    4)
            at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
    .java:345)
            at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
    .java:259)
            at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_1036_WLStub.
    invoke(Unknown Source)
            at com.bea.alsb.console.test.TestServiceClient.invoke(TestServiceClient.
    java:174)
            at com.bea.alsb.console.test.actions.DefaultRequestAction.invoke(Default
    RequestAction.java:117)
            at com.bea.alsb.console.test.actions.DefaultRequestAction.execute(Defaul
    tRequestAction.java:70)
            at com.bea.alsb.console.test.actions.ServiceRequestAction.execute(Servic
    eRequestAction.java:143)
            at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:431)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201
    (PageFlowRequestProcessor.java:97)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunn
    er.execute(PageFlowRequestProcessor.java:2044)
            at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors.wrapAction(ActionInterceptors.java:91)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processAct
    ionPerform(PageFlowRequestProcessor.java:2116)
            at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.processAct
    ionPerform(SBConsoleRequestProcessor.java:91)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:236)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInt
    ernal(PageFlowRequestProcessor.java:556)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(Pa
    geFlowRequestProcessor.java:853)
            at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.process(SB
    ConsoleRequestProcessor.java:191)
            at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(A
    utoRegisterActionServlet.java:631)
            at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageF
    lowActionServlet.java:158)
            at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionSe
    rvlet.java:262)
            at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
            at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServ
    let.java:134)
            at com.bea.alsb.console.common.base.SBConsoleActionServlet.doGet(SBConso
    leActionServlet.java:49)
            at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlow
    Utils.java:1199)
            at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlow
    Utils.java:1129)
            at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.exec
    uteAction(ScopedContentCommonSupport.java:687)
            at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.proc
    essActionInternal(ScopedContentCommonSupport.java:142)
            at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.processAction(St
    rutsStubImpl.java:76)
            at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiAct
    ionHandler.java:111)
            at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedActi
    on(NetuiContent.java:181)
            at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedActi
    on(NetuiContent.java:167)
            at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackD
    ata(NetuiContent.java:225)
            at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:324)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:334)
            at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
            at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
            at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
            at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java
    :388)
            at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
            at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
            at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileS
    ervlet.java:251)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:301)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:32
    4)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
    il.java:460)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav
    a:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
    71)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:16
    3)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:56)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
    ilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.wrapRun(WebAppServletContext.java:3730)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3696)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2273)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2179)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1490)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

    Replied offline as forum was down. Issue sorted.
    Many thanks for detailed analysis.

  • Problem with protocol.jar with weblogic

    atg10.0.3 and weblogic 11g on 64bit linux.
    I've been plagued by this problem with ATG's protocol jar. While it loads the jar when starting up startWeblogic.sh it does not get loaded when starting a managed server thus i get the following errors:
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403444 / Unable to start service "/atg/scenario/ScenarioManager": atg.nucleus.ServiceException: The configuration file XMLFile(/atg/scenario/scenarioManager.xml) could not be read: java.net.MalformedURLException: unknown protocol: dynamosystemresource
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403544 /atg/scenario/ScenarioManager Unable to combine messaging information from the process manager component /atg/scenario/ScenarioManager. The process manager has not been classified yet so it cannot be determined if global messages should be listened for. This error indicates a problem with component startup order - the /atg/scenario/ScenarioManager component has been started before the /atg/dynamo/messaging/MessagingManager component
    **** Error Fri Jun 15 15:56:43 MDT 2012 1339797403583 /atg/dynamo/messaging/MessagingManager An exception occurred while trying to parse XML definition file "XMLFile(/atg/dynamo/messaging/dynamoMessagingSystem.xml)" java.net.MalformedURLException: unknown protocol: dynamosystemresource
    Following instructions has led me to place the protocol.jar from DAS/lib to the root of my domain directory and then apply the classpath entry in startWeblogic.sh script. protocol.jar shows up at the top of this scripts SDTOUT. But I cannot seem to get it included in the production.out logs when starting the managed server.
    Any ideas?
    Thanks!
    -Kip

    Yes I figured this out. The problem was the version of weblogic. I was using 1.3.6 when it should have been 1.3.5. After changing out the version, I no longer had problems with protocol.jar.
    Thanks!
    -Kip

  • Protocol error when connecting to a site...

    I have a chunk of code that is attempting to connect to a web-site and retrieve the file they are returning. What is happening is that when I send the request, I get the following error back:
    java.net.MalformedURLException: no protocol: Cache/17396275_1_1.PDF
    I am calling an asp page that is supposed to return me the PDF. ALl they are doing is sending a re-direct to the file. I am using the java.net.URL class to access the site and then trying to poen a stream since I need to write the file to disk.
    Any help would be greatly appreciated.
    Jorge.

    Seems like the protocol(http) must be specified for the relative (redirected) URL: Cache/17396275_1_1.PDF ...

  • Protocol Support

    We would like to use our own internal protocol inside our application to access resources via a URLConnection. For example th:///fop.xconf would provice access to a input stream. We have added the System Property (-Djava.protocol.handler.pkgs=com.thunderhead.protocol) to the startup arguments of the server, however when we try access this we get
    <BEA-000000> <unknown protocol: th
    java.net.MalformedURLException: unknown protocol: th
    at java.net.URL.<init>(URL.java:574)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    The startup parameter is listed in the log file :
    <Jan 23, 2009 4:57:07 PM> <Info> <NodeManager> <Starting WebLogic server with command line: C:\bea\jdk160_05\bin\java -Dweblogic.Name=heatwave –
    Djava.security.policy=C:\bea\WLSERV~1.3\server\lib\weblogic.policy -Dweblogic.management.server=http://192.168.2.51:7001 -Djava.library.path=C:\bea\JROCKI~1\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\bea\patch_wlw1030\profiles\default\native;C:\bea\patch_wls1030\profiles\default\native;C:\bea\patch_cie660\profiles\default\native;C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\bea\modules\ORGAPA~1.5\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\OpenManage\oma\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program Files\Dell\OpenManage\oldiags\bin;C:\Program Files\Dell\OpenManage\Array Manager;C:\Program Files\Java\jdk1.6.0_11\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci920_8 -Djava.class.path=.;C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar; -Dweblogic.system.BootIdentityFile=C:\bea\user_projects\domains\thunderheadDomain\servers\heatwave\data\nodemanager\boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xmx1024m -XX:MaxPermSize=256m -Dcom.thunderhead.config=C:\\ThunderheadEnterpriseV5\\ThunderheadServer\\config\\thunderheadEJB.cfg -Dorg.apache.commons.logging.LogFactory=weblogic.logging.commons.LogFactoryImpl -Djava.security.auth.login.config=C:\\ThunderheadEnterpriseV5\\ThunderheadServer\\config\\ThunderheadJAAS.cfg -Djava.protocol.handler.pkgs=com.thunderhead.protocol weblogic.Server >
    Later on in the log the packages are listed, which also seems correct
    java.protocol.handler.pkgs = com.thunderhead.protocol|weblogic.utils|weblogic.utils|weblogic.utils|weblogic.net
    Any suggestion on how this can be resolved.
    Thanks in advance

    Does anybody had similar problems?
    Edited by: user10874535 on Feb 26, 2009 12:54 AM

  • MalformedURL : No Protocol

    I have some problems either with the configuration of the weblogic or
    webgain. I get the exception of malformed URL when I try to run the client
    application trying to use an EJB or weblogic server.
    I have tried reinstalling all the things that I could.
    The message is as follows
    [Root exception is java.net.MalformedURLException: no
    protocol: ]javax.naming.ConfigurationException
    at
    weblogic.jndi.toolkit.ExceptionTranslator.toNamingException(ExceptionTransla
    tor.java:30)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialCon
    textFactoryDelegate.java:417)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java, Compiled Code)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:771)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
    at javax.naming.InitialContext.<init>(InitialContext.java:146)
    at TestClient.getInitialContext(TestClient.java:56)
    at TestClient.main(TestClient.java, Compiled Code)

    This can happen when X is started with the argument to ignore tcp requests, and you're not forwarding through ssh. It is usually default behavior. I can fix it when using KDM, by removing `nolisten -tcp` from /usr/share/config/kdm/kdmrc. After this, `xhost + whatever` will work.
    Others have disabled this behavior with GDM using these tricks : https://bbs.archlinux.org/viewtopic.php?id=105546 .. they don't work for me though.
    I also wonder what causes some X programs to fail to open a display on what should be a local X session that shouldn't need tcp.
    Last edited by meop (2010-12-24 06:23:12)

  • GP: MalformedURLException

    Hello all.
    I m trying to do 'My First Process' in GP. In this, I ve got stuck at one point. Its when I have to create a callable object of the type 'Interactive Form'. please refer this <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/71/f0944279c0c66ae10000000a155106/frameset.htm">link</a> .
    I have followed all the instructions told in ' Checking System Configuration' but still when I test this callable object I m gettin this following exception.
    Technical exception
    Details: Service call exception; nested exception is:
    java.net.MalformedURLException: no protocol: : Service call exception; nested exception is:
    java.net.MalformedURLException: no protocol: : Service call exception; nested exception is:
    java.net.MalformedURLException: no protocol: 
    Please help me, if any one of you has idea about this problem.
    Regards
    Kapil

    Hi,
    Did u manage to solve this. I am also getting same error.
    Pls advise.
    Regards
    Jayesh

  • JMF - unkown protocol exception

    I'm a new jmf developer. In my Linux box i have a
    Exception in thread "main" java.net.MalformedURLException: unknown protocol: v4l
    at java.net.URL.<init>(URL.java:544)
    at java.net.URL.<init>(URL.java:434)
    at java.net.URL.<init>(URL.java:383)
    My video in card is correctly configured with jmfinit.
    Do you help me?
    Thanks!

    Could this problem be caused by some multi-threading issues? The problem only occurs on a html page which uses two frames. Both frames execute sql/jdbc statements. The jdk1.2.2, uses green threads whereas the jdk1.3 uses native threads. So the errors does not happen for green threads, only for native threads.
    Regards,
    Andrej

  • Unknown protocol: classpath when SOA server parses WSDL of ADF Web Services

    We used ADF 11.1.1.4 to create synchronous web services (via Application Module Service Interface). Everything worked fine, we were able to created SOA composites that references those ADF web services and deploy them to SOA server successfully.
    However, since last weekend, all SOA composites that reference the ADF web services started to give the following exception when loaded during SOA server startup:
    [2012-01-17T14:27:35.373-05:00] [soa_server1] [ERROR] [SOA-20003] [oracle.integration.platform] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@39ed0f9] [userId: <anonymous>] [ecid: 0000JJh8SfNFg4aPXMg8xb1F5Sgf000001,0] [APP: soa-infra] Unable to register service.[[
    oracle.fabric.common.FabricException: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/deployed-composites/default/MainOrch100000000002001Composite_rev1.0/SOAAMServiceRef.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/deployed-composites/default/MainOrch100000000002001Composite_rev1.0/SOAAMServiceRef.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
    at oracle.fabric.composite.model.CompositeModel.loadImports(CompositeModel.java:379)
    at oracle.fabric.composite.model.CompositeModel.getWSDLManager(CompositeModel.java:198)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.getDefinition(WebServiceEntryBindingComponent.java:240)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.load(WebServiceEntryBindingComponent.java:147)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.load(WebServiceEntryBindingComponent.java:98)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployServices(CompositeDeploymentConnection.java:161)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:92)
    at oracle.integration.platform.blocks.deploy.CompositeDeployerImpl.deploy(CompositeDeployerImpl.java:149)
    Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:932)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:808)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:708)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:656)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:368)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:911)
    ... 32 more
    Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:929)
    ... 37 more
    Caused by: java.net.MalformedURLException: unknown protocol: classpath
    at java.net.URL.<init>(URL.java:574)
    at java.net.URL.<init>(URL.java:465)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:901)
    ... 37 more
    Any suggestion about what might be causing this issue?
    Thanks,
    Fang

    Just thought to put the solution here, in case anyone else that uses SOA encounter the same issue.
    It turns out the setDomainEnv.cmd file for SOA server was corrupted, so that the list of PROTOCOL_HANDLERS are bad. It should have
    set PROTOCOL_HANDLERS=%PROTOCOL_HANDLERS%;oracle.fabric.common.classloaderurl.handler;oracle.fabric.common.uddiurl.handler;oracle.bpm.io.fs.protocol
    But something changed it to be only have oracle.mds.net.protocol, Therefore the classpath protocol could not be recognized by SOA server. Once we corrected the PROTOCOL_HANDLERS, this issue is gone.

  • Wsdl2java protocol error

    I have configured axis and Java environment no problems.
    A wsdl file has been provided with which I want to use the utility to generate the Java stubs and classes with which to test against.
    However when running the utilty against the wsdl file I get the following error:-
    java.net.MalformedURLException: no protocol: AccountingIF.wsdl
    Below is the relevant sections from the wsdl document :-
    <wsdl:portType name="AccountingIF">
    <wsdl:operation name="getAccountingResponse" parameterOrder="req">
    <wsdl:input name="getAccountingResponseRequest" message="impl:getAccountingResponseRequest"/>
    <wsdl:output name="getAccountingResponseResponse" message="impl:getAccountingResponseResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="AccountingIFSoapBinding" type="impl:AccountingIF">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getAccountingResponse">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getAccountingResponseRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://external.aaa.base.vas"/>
    </wsdl:input>
    <wsdl:output name="getAccountingResponseResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://external.aaa.base.vas"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="AccountingIFService">
    <wsdl:port name="AccountingIF" binding="impl:AccountingIFSoapBinding">
    <wsdlsoap:address location="http://localhost:8080/axis/services/AccountingIF"/>
    </wsdl:port>
    </wsdl:service>
    Many thanks in advance to anyone with wizdom to share.

    My guess is the WSDL file is being referred to via its filename, whereas the utility is expecting a URI, hence the "MalformedURLException: no protocol". The protocol here refers to the URI protocol, e.g., http, file. If I'm right, you'll need to pass in the URI, e.g., "file:///c:/temp/AccountingIF.wsdl".
    Hth.

Maybe you are looking for

  • Short dump while executing info package in 3.5 data flow?

    Hi, i am getting short dump while executing info package while executing info package. it was working perfectly 2 days back suddenly it is giving this problem. it is a full load for info object text data and i have only 600 records. when i tried with

  • Smartcard and Sun Blade: How to use it

    Hello, We have received some Sun blade 100, with smartcard reader. Does someone know how to program this reader ? I have found include files in /usr/include name samrtcard.h and a directory with the same name, but source code is a little bit fuzzy fo

  • Browser Background Color

    I am new to iWeb and have searched the archives, but can't seem to figure this one out. I am using one of the themes to do a quick webpage, but have stumbled on an issue. When I use a browser background color, it bleeds over the page. I have tried to

  • Unique Infinite Loop Problem

    Been using iTunes for awhile now and have learned to deal with some of its "quirks" but there is one issue which I am at my ends with. I have this issue where after a set amount of time iTunes will crash and studder indefinitely (infinite loop). It s

  • 16gb or 32gb iPad mini?

    I'll put up to 100 songs, 2,000 photos and a few 5-minute videos. I'll put about 100+ apps.