How to resolve setPrefix() in SOAP(saaj API) with weblogic/webservices jar?

Hi,
I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
My environment is as below:
1) Weblogic 8.1 SP2 server
2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
3) A method is exposed as web-service
4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
     MessageFactory mf = MessageFactory.newInstance();
     SOAPMessage sm = mf.createMessage();
     SOAPPart sp = sm.getSOAPPart();
     sp.setPrefix("soapenv");
     SOAPEnvelope se = sp.getEnvelope();
     se.addNamespaceDeclaration("soapenv","http://orion:7001");
giving the following error at runtime:
Exception in thread "main" java.lang.AbstractMethodError:
weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
at Client.main(Client.java:39)
I am able to compile without any error/warning all the time.
This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
I am able to run the same application(outside Web-application as a stand-alone java program) without
any error while not using weblogic/webservices jar in the classpath.
The saaj jars needed to run without any error are:
saaj-api.jar
saaj-impl.jar
mailapi.jar
activation.jar
xercesImpl.jar
xalan.jar
dom.jar
jdom.jar
I thinks this is a compatibility issue. Please suggest to resolve it.
Thanks in advance,
pal_sk

Hi,
I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
My environment is as below:
1) Weblogic 8.1 SP2 server
2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
3) A method is exposed as web-service
4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
     MessageFactory mf = MessageFactory.newInstance();
     SOAPMessage sm = mf.createMessage();
     SOAPPart sp = sm.getSOAPPart();
     sp.setPrefix("soapenv");
     SOAPEnvelope se = sp.getEnvelope();
     se.addNamespaceDeclaration("soapenv","http://orion:7001");
giving the following error at runtime:
Exception in thread "main" java.lang.AbstractMethodError:
weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
at Client.main(Client.java:39)
I am able to compile without any error/warning all the time.
This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
I am able to run the same application(outside Web-application as a stand-alone java program) without
any error while not using weblogic/webservices jar in the classpath.
The saaj jars needed to run without any error are:
saaj-api.jar
saaj-impl.jar
mailapi.jar
activation.jar
xercesImpl.jar
xalan.jar
dom.jar
jdom.jar
I thinks this is a compatibility issue. Please suggest to resolve it.
Thanks in advance,
pal_sk

Similar Messages

  • How to resolve hang issue in  Iphone 4s with IOS 7

    how to resolve hang issue in  Iphone 4s with IOS 7

    Hi there ECMA IPHONE,
    The article linked below provides a lot of great information and troubleshooting tips that will most likely help you resolve the issue sending emails from the specific email account on your iPhone 4s.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Ciao, 
    -Jason

  • Anyone able to run SOAP over SSL with Weblogic 5.1 and without purchasing third party tools???  If so, how???

    Anyone able to run SOAP over SSL with Weblogic 5.1??? If so, how??? And
    without purchasing third party tools??? Thanks.
    -Freddie

    Anyone able to run SOAP over SSL with Weblogic 5.1??? If so, how??? And
    without purchasing third party tools??? Thanks.
    -Freddie

  • Any issues using Apache's SOAP version 2 with Weblogic

    Hi,
    The Weblogic sever is not one in the list of servers that have been tried
    succesfully with Apache's SOAP. This is the list:
    Apache Tomcat v3.1
    IBM WebSphere v3.02
    JRun vx.y.z
    Microsoft Internet Information Server
    Has anyone tried SOAP with Weblogic?
    A recent thread mentions some problems (and solutions) with Weblogic and Xerces 1.1.2.
    SOAP requires Xerces 1.1.3. Therefore, I would also like to know if there is any issue
    using Weblogic with Xerces 1.1.3. I am using Weblogic 4.5 but I would try 5.1 if necessary
    for this.
    Thanks in advance,
    Javier

    In the apache soap binary download, there is a soap web application ( in the
    form of an exploded war file ). Just copy and paste this directory in the
    domain's "applications" directory. You will need to add a servlet-mapping
    element in the web.xml file, which could be something like this
    <servlet-mapping>
    <servlet-name>rpcrouter</servlet-name>
    <url-pattern>/rpcrouter/*</url-pattern>
    </servlet-mapping>
    Cheers
    Sandeep
    "Jan-Paul" <[email protected]> wrote in message
    news:[email protected]...
    Do you have something similar for the BEA Weblogic 6.0?
    "Sudhir Kolli" <[email protected]> wrote in message
    news:[email protected]...
    You might want to take look at this:
    David Jian <[email protected]> wrote in message
    news:[email protected]...
    Gavin:
    I did the same thing except for servlet register. soap is webapp to WLS,so
    I add:
    weblogic.httpd.webApp.soap=D:/foo/soap-2_0/webapps/soap
    to weblogic.properties. Because sopa20 has a web.xml file in
    /foo/soap-2_0/webapp/soap/web-inf, I can only edit it to registerrpcrouter
    and keep the default webapp as the same. Otherwise, how do you add thesoap
    to you myserver/public_html? Unfortunately, it does not recognize the
    URL
    when I click the Visit link on soap admin page.
    I edit my web.xml as
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>
    rpcrouter
    </servlet-name>
    <servlet-class>
    org.apache.soap.server.http.RPCRouterServlet
    </servlet-class>
    <init-param>
    <param-name>ServicesStore</param-name>
    <param-value>DeployedServices.ds</param-value>
    </init-param>
    </servlet>
    </web-app>
    Can you try this? How did you add your rpcrouter servlet to the defualt
    webapp?
    Thanks
    DJ
    "Gavin Hyde" <[email protected]> wrote in message
    news:[email protected]...
    After several painstaking hours I finally was able to get Apache Soap
    v2.0
    to work with weblogic. The version of weblogic I'm using is 4.51.
    You
    can
    get Apaceh soap from http://www.apache.org/soap. This version of Soap
    requires xerces v 1.2.1 which you can get from
    http://www.apache.org/xerces-j. To make it work with weblogic you
    have
    to
    first place the soap.jar file included with Apache soap and thexerces.jar
    file in both the classpath AND WEBLOGIC_CLASSPATH. Don't ask me why
    but
    I
    wasn't able to get it to work without it in both. Next you have to
    add
    the
    directory that your class files reside in to the classpath. Next you
    have
    to register the RCPRouter servlet in weblogic. The line to do thislooks
    like this:
    weblogic.httpd.register.rpcrouter=org.apache.soap.server.http.RPCRouterServl
    et
    where rpcrouter can be any name you want to use to call the routerservlet.
    That's all I had to do to set it up to view the stock quote example
    and
    the
    address book. The calculator is giving me a few other probems at the
    moment. Don't forget to deploy the different services but the command
    for
    that is given in the readme file for each example. For the router URL
    I
    used http://localhost:7001/rpcrouter which is that servlet you
    registered
    above.
    Gavin
    "Javier Deniz" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The Weblogic sever is not one in the list of servers that have been
    tried
    succesfully with Apache's SOAP. This is the list:
    Apache Tomcat v3.1
    IBM WebSphere v3.02
    JRun vx.y.z
    Microsoft Internet Information Server
    Has anyone tried SOAP with Weblogic?
    A recent thread mentions some problems (and solutions) with Weblogic
    and
    Xerces 1.1.2.
    SOAP requires Xerces 1.1.3. Therefore, I would also like to know if
    there
    is any issue
    using Weblogic with Xerces 1.1.3. I am using Weblogic 4.5 but I
    would
    try
    5.1 if necessary
    for this.
    Thanks in advance,
    Javier

  • How to install Oralce BPM Admin Center (Enterprise)  with weblogic 10gr3

    Hi,
    I want to do setup for the Oracle BPM Admin Center in my local with weblogic 10 , Is there any guid/pdf for this ?
    Please help .
    Thanks,
    Brijesh Kumar Singh.

    Some how i have installed this deployed one application and it was working fine. But still i want to know the correct way.
    Also, while deploying the other application it is giving the exception like this.
    Duplicate configuration name. Detail:A configuration named [Name: XXXXXAccessService; Subtype:WSCONSUMER; Type:Web Service; Properties:{transport.connector=HttpsdeveplopmentCom, project.basedir=C:\Documents and Settings\sbrijesh\OracleBPMWorkspace\ApplicationName, transport.http.path=/xxxxx-ws/services/XXXXXAccessService, exceptionPolicy=SYSTEM, binding.type=static, transport.type=HTTP, instrospect.type=introspect.direct}] already exists.
    if it is already there then it should avoid this, Should not give the exception.
    Thanks,
    Brijesh Kumar Singh

  • How to integrate Oracle Enterprise Pack for Eclipse with Weblogic Portal

    Hi
    I am following this documentation http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14252/setup_dev_env.htm#i1013214
    to setup my development environment for developing portal applications, but I cannot set it up, my eclipse does not have PORTAL perspective.
    I have downloaded the Oracle Enterprise Pack for Eclipse 11gR1 (11.1.1.5) and the Oracle WebLogic Portal 10.3 as mentioned in the documentation.
    The Oracle Weblogic Portal 10.3 includes a workshop version of eclipse, but that is not based on a recent Eclipse, that is why I would like to use the Oracle Enterprise Pack for Eclipse 11gR1 (11.1.1.5).
    It is weird int he Oracle Portal 10.3 installation that I cannot install the Weblogic Portal without the Workshop.
    Could you help me in this? How can I integrate the Oracle Enterprise Pack for Eclipse with Weblogic Portal?
    Thank you.

    For WebLogic Portal tooling you have a couple of options. For WebLogic Portal 10.3 and older, Workshop for WebLogic will be your tooling environment.
    Starting in WebLogic Portal 10.3.2, which released this year, the development tools have migrated to Oracle Enterprise Pack for Eclipse. The WebLogic Portal 10.3.2 installer will install both the runtime and the IDE configured with additional WebLogic Portal Eclipse features (Portal Project Configuration, Perspecitives, Palettes, Deployment, etc).
    If you are interest in the latest version, you can download from the WebLogic Portal OTN page - http://www.oracle.com/technology/products/weblogic/portal/index.html

  • How to resolve error "No SOAP Envelope but 1 {} PARAMETERS"

    Hi,
    I have configured an interface where the sender (SAP system) sends out a message via proxy on the Local Integration Engine, which is after XI processing supposed to be posted via HTTP (using the SOAP Adapter).
    The message is processed correctly by XI, but fails to pass the SOAP Comm Channel. The error message in the Communication Channel Monitoring reads:
    SOAP: call failed: java.io.IOException:No SOAP Envelope but 1 {} PARAMETERS; HTTP 200 OK
    Can anyone help me understand what this means and how I can resolve this? Thanks!

    Dear Johannes,
    Is the SOAP call taking place synchronously ? It looks like at the end of your SOAP channel, system is not responding as expected by XI (you seem to receive the regular HTTP 200 OK code, but it does not match SOAP protocol requirements) ...
    I've had such issues when web services were down due to web server issue (in this case, you just get, for instance, HTTP 500 response body, which not really SOAP compliant)
    Rgds
    Chris

  • How to resolve Content not allowed in prolog with PDF files

    We are using PI 7.1 to read a file and using ASMA get the file name and pass it to a target mapping and call a web service with the file name.
    We have a scenario that reads a PDF file as Binary form a folder.  Our mapper uses ASMA to get the file name and folder of the
    file to map to the target.
    Testing in mapper works fine except for the ASMA does not function (known issue).
    At runtime we drop a file and it is picked up as expected BUT from SXMB_MONI we see the following:
    Runtime exception occurred during application mapping com/sap/xi/tf/_MM_FileNotification_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog.
    This error does not happen all the time either.  When it appears it is typically only the first time a file is mapped and on subsequent retries it processes normally.  In dev we have shown that PI seems to get stuck on a few initial files u2013 process properly on the first retry and then at some point has no issues and will process files very fast.
    u201CContent not allowed in prologu201D at least from an XML perspective is related to characters appearing before the xml file declaration:
    <?xml version="1.0".encoding="UTF-8"?>
    If chars appear before this you get this error in Java parsers.  This could be related but we do not have control over how PI parsed the file content and puts into XML messages inside the mapper as we do nothing with the file content.
    The same file will go through randomly with this exception on multiple drops.  Sometimes it gets processed properly and sometime it doesnu2019t u2013 but in dev it u201Calwaysu201D gets processed properly on the automatic retry.  It does not seem to matter what PDF we drop in there either.
    Our tyoes look something like this:
    Source:
    DT_FILE - xsd:hexBinary
    Target:
    FilePath - xsd:String
    I have tried with DT_FILE as xsd:base64Binary with the same results...
    We use a UDF to get the file name from ASMA as follows:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String ourSourceFileName = conf.get(key1);
    String ourSourceDirName = conf.get(key2);
    //conf.put(key1, ourSourceDirName + "/" + ourSourceFileName);
    return ourSourceDirName + "
    ToProcess
    " + ourSourceFileName;
    Edited by: Carey Bingham on May 26, 2010 12:24 AM

    > Is using a custom adapter module the standard way to handle files when we do not want the content? 
    I would rather say this is a feasible solution
    > If so does anyone have generic code that we can use for the purposes of simply monitoring a file and passing the file name/folder out implemented as modules already?
    The questio is. What do you want to do with this information?
    Here is a sample code written for a specific purpose, you can adapt this to your needs:
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0SetAttachmentName
    > Is this a known workaround to get around the "content not allowed in prolog" issue?
    At least it is known by me

  • My bookmarks and history have disappeared, and I no longer have a FF profile which is supposed to be located in Library/Application Support. Any suggestions on how to resolve? I'm most concerned with recovering my bookmarks.

    I have tried restarting my computer, creating a new places database (there is no FF profile in Application Support so cannot create a new one), and restoring bookmark back-ups, none of which have resolved the problem.

    Problem solved! I got fed up dealing with Firefox without any history or bookmarks for 2 months and had lost hope of ever recovering my bookmarks. So I decided to uninstall Firefox and then re-install it so I could at least use Firefox properly and just start over with bookmarks. After re-installing and opening for the first time, all of my bookmarks were there!
    To uninstall drag the Firefox icon from the Applications folder into the trash. I emptied the trash (not sure if necessary). I then downloaded the latest version of firefox from mozilla.com and followed the prompts to install. After opening for the first time, all of my bookmarks were there, as well as the history up to the time the issues began two months ago.

  • Urgent: How to resolve empty error PDF while working with @section

    Hi,
    I am using <?for-each-group@section://Rowslist/row;column1?>. It works fine until there are rows inside the Rowslist. In case Rowslist section does not contain any row element. it throws an exception with the output pdf file saying that this file is empty and can not be opened.
    I tried to close this group inside an if condition to check for existence of rows inside the Rowlist, but the exception is coming even with that approach. Please help me in resolving this issue.
    Thanks and Regards,
    Aditya

    Hi
    I also have a similar problem in my bipublisher reports:
    When there are no rows found, the message is being displayed successfully in the report.
    But there is also a blank page present when there are rows found. (I presume this is caused by the section break)
    Does anybody know a way to get rid of the blank page when there is data present (then we, of course, don't need the message and the blank page)?
    Thanks!
    Edited by: 830186 on Jan 21, 2011 4:23 AM

  • How to resolve error 'The DPMRA service terminated with service-specific error Only one usage of each socket address (protocol/network address/port) is normally permitted'

    One of my exchange 2010 servers dpm agent is give the following error when the dpmra service attempts to start.
    The DPMRA service terminated with service-specific error Only one usage of each socket address (protocol/network address/port) is normally permitted..
    I have tried uninstalling/reinstalling the agent but this does not resolve the issue
    Any help would be greatly appreciated.
    Thanks
    William Hickson

    Hi
    Something has probably changed on the protected server side that affects the DPM agent. In some cases the DCOM configuration could change. Look at this blogpost and verify your DPMRA DCOM object.
    http://robertanddpm.blogspot.com/2010/08/dpm-ra-rights.html
    If this doesn't do the trick try reinstall the agent.
    Best Regards
    Robert Hedblom
    MVP DPM
    Check out my DPM blog @ http://robertanddpm.blogspot.com

  • Linkage Error when using Apache SOAP 2.2 with Weblogic 6.1

    Has anyone seen this error before? Apparently I've got some incompatible versions of xerces being loaded. I tried putting different versions of xerces.jar in the front of my classpath, and creating an XML Registry to point to org.apache.xerces.jaxp..., but I always get the same error message.
    D:\soap>java -classpath "/soap-2_2/lib/soap.jar;activation.jar;mail.jar;xerces.jar;." org.apache.soap.server.Servic
    eManagerClient http://localhost:8001/App/servlet/rpcrouter list
    Ouch, the call failed:
    Fault Code = SOAP-ENV:Server.Exception:
    Fault String = loader constraints violated when linking org/xml/sax/InputSource class

    Has anyone seen this error before? Apparently I've got some incompatible versions of xerces being loaded. I tried putting different versions of xerces.jar in the front of my classpath, and creating an XML Registry to point to org.apache.xerces.jaxp..., but I always get the same error message.
    D:\soap>java -classpath "/soap-2_2/lib/soap.jar;activation.jar;mail.jar;xerces.jar;." org.apache.soap.server.Servic
    eManagerClient http://localhost:8001/App/servlet/rpcrouter list
    Ouch, the call failed:
    Fault Code = SOAP-ENV:Server.Exception:
    Fault String = loader constraints violated when linking org/xml/sax/InputSource class

  • Want to use jdk1.4 logging api with weblogic 6.0

    Hi Everybody,
    Can anybody help me in configuring login configuration . Actually when i change the java_home in weblogic to jdk1.4, it starts throwing security exception like this:-
    java.lang.SecurityException
    at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:229)
    at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:393)
    at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate.java:76)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:167)
    at weblogic.Server.main(Server.java:35)
    if somebody can help in this regard,
    The following links can be used to refer to login configuration
    http://java.sun.com/j2se/1.4/docs/api/javax/security/auth/login/Configuration.html
    Regards,
    Neetika

    I am not sure what you mean by 'plug-in', but it sounds to me like you want to run weblogic with 1.4.
    And that probably isn't a good idea in a production system. 1.4 is still beta and there are suggestions that it still includes debugging code. And if bea hasn't certified it then you loose all support from them when running under that. This will all lead to extra time spent figuring out if the problem is in your code, in weblogic or in 1.4.

  • How to use the JRun Custom tag library with Weblogic 5.1?

    Hello,
              is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
              got an error message like:
              weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
              'jrun': T
              here is no setter method for property 'code', for Tag class
              'allaire.taglib.Serv
              letTag'
              Thank you for any info!
              Stefan
              

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

  • How do I access(read) dynamically generated reports with WebLogic WebServer

    Hello Everyone,
    In our application we are generating reports (pdf format) at run time. How do
    we read these files.....which directory should we store these files to... I am
    using Weblogic 6.0.
    These files have timestamp as part of their name so the names are not static.
    Thanks in advance.
    Ahsen

    We ran into this also. If you read the J2EE specs carefully you will see
    that your app is only guaranteed to have write-access to a single directory,
    defined by the context attribute "javax.servlet.context.tempdir" -- I can
    find the exact reference if you want.
    Here is how to get this attribute:
    File tempdir = (File) getServletContext()
    .getAttribute("javax.servlet.context.tempdir");
    log.debug("context temp dir = " + tempdir.getAbsolutePath());
    Although this may seem horribly restrictive, it makes a lot of sense on a
    secure system where applications are deployed by a specific user, and may
    have at runtime minimal filesytem priviledges -- your app can't write
    anywhere, at the exception of the context temp dir. I know this would be the
    way I'd setup my container on a Unix system for example.
    So, what's a developer to do? You can either bypass the issue and always
    generate your content dynamically, with a servlet setting the appropriate
    MIME type to the output, or write your reports to the context temp dir and
    manually serve content from there.
    Frankly I think the first option is by far the most simple, easier to
    implement, and thus attractive; if it leads to a performance problem, you
    can always solve that with a Web cache. Doing otherwise (caching the content
    yourself) opens the door to many issues, that really shouldn't be your
    problem as a Web application developer. Keep it simple!
    --Renaud
    "ahsen" <[email protected]> wrote in message
    news:173_3bc31ee1$[email protected]..
    >
    Hello Everyone,
    In our application we are generating reports (pdf format) at run time.How do
    we read these files.....which directory should we store these files to...I am
    using Weblogic 6.0.
    These files have timestamp as part of their name so the names are notstatic.
    >
    Thanks in advance.
    Ahsen

Maybe you are looking for