Isssue in publishingWSDL for @WebServiceProvider

I wrote an simple JAX-WS webservice for @WebServiceProvider. After deploying it as war while accessing the WSDL i am facing below error.
:/GPSProxy spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at weblogic.wsee.jaxws.WLSServletAdapter.publishWSDL(WLSServletAdapter.java:239)
at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:166)
at weblogic.wsee.jaxws.HttpServletAdapter.get(HttpServletAdapter.java:193)
at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:93)
at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99
Why is it gives NullPointerException - - Can any one help us ..
WebService code looks like
package gpsproxy;
import java.io.ByteArrayOutputStream;
import javax.xml.ws.BindingType;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
@WebServiceProvider(
portName="GPSProxyPort",
serviceName="GPSProxyService",
targetNamespace="http://services.mymclportal.com/SOA/GPSProxyService",
wsdlLocation="/WEB-INF/wsdl/GPSProxyService.wsdl"
@BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http")
@ServiceMode(value=javax.xml.ws.Service.Mode.MESSAGE)
public class GPSProxy implements Provider<SOAPMessage> {
public GPSProxy() { super(); }
public SOAPMessage invoke(SOAPMessage req){
System.out.println("Method invoked ");
System.out.println("invoke: Request: " + getSOAPMessageAsString(req));
return null;
private String getSOAPMessageAsString(SOAPMessage msg)
ByteArrayOutputStream baos = null;
String s = null;
try {
baos = new ByteArrayOutputStream();
msg.writeTo(baos);
s = baos.toString();
} catch(Exception e) {
e.printStackTrace();
return s;
And the web.xml is
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
     <filter>
          <filter-name>JpsFilter</filter-name>
          <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
          <init-param>
               <param-name>enable.anonymous</param-name>
               <param-value>true</param-value>
          </init-param>
     </filter>
     <filter-mapping>
          <filter-name>JpsFilter</filter-name>
          <url-pattern>/*</url-pattern>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>REQUEST</dispatcher>
          <dispatcher>INCLUDE</dispatcher>
     </filter-mapping>
     <servlet>
          <servlet-name>GPSProxyPort</servlet-name>
          <servlet-class>gpsproxy.GPSProxy</servlet-class>
          <load-on-startup>1</load-on-startup>
     </servlet>     
     <servlet-mapping>
          <servlet-name>GPSProxyPort</servlet-name>
          <url-pattern>/GPSProxyPort</url-pattern>
     </servlet-mapping>
</web-app>

Hi Kalyan,
I changed the version to 2.4 also did few changes...
Now , I am facing some weird issue. Able to see service address http://localhost:7001/GPSProxy-001/GPSProxyService .... But if i open WSDL in browser i get 404 error .... I am not getting any info... no exception in the logs also .....
WSDL ( http://localhost:7001/GPSProxy-001/GPSProxyService?wsdl)
I am deploying this in WebLogic 11g . Would there be any reason with @WebServiceProvider to WebLogic 11g. Because this is too simple Webservice . but not working properly.
Pls . helpe me for this...
Updated web.xml looks like below.
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<description>GPSProxy Service</description>
<display-name>GPSProxy Service</display-name>
<servlet-name>GPSProxyService</servlet-name>
<servlet-class>gpsproxy.GPSProxy</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>GPSProxyService</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>

Similar Messages

  • My web browser is not working

    Dear sir,
    I'm using blackberry 9320.. Now the problem is facebook is not work properly in my web browser.. This problem is only for facebook site.. Other sites is work well.. When I open facebook my web browser is showing error like this ..( Destination could not be reached. (com.nokia.warlock.protocolstack.exceptions.UnresolvedHostException: http://m.facebook.com/)..
    So pls help to solve this problem ..

    Try heading to this thread.
    http://supportforums.blackberry.com/t5/BlackBerry-World/solution-on-isssues-with-Facebook-for-BlackB...
    Good luck
    Click " Like " if you want to Thank someone. If Problem is resolved accept it as a "Solution ", so that others can make use of it.
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • Facebook and twitter

    Hi admin,I did upgrading to facebook and twitter applications on my blackberry 9800 tourch,since then I can use them cus I keep having this message uncaught exception,I can see that of facebook icon and that of twitter is no where to be found.what is it I can do to resolve this.help me!!!!
    Solved!
    Go to Solution.

    Hi! Welcome to the forums.
    Follow this thread for Facebook http://supportforums.blackberry.com/t5/BlackBerry-World/solution-on-isssues-with-Facebook-for-BlackB...
    For your twitter app, try downloading it again and see if it prompts you to replace existing app, click replace.
    Good luck
    Click " Like " if you want to Thank someone. If Problem is resolved accept it as a "Solution ", so that others can make use of it.
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • Rescheduling of Third party Items

    Hi,
    I have a strange scenario in our project, when availability check ikon is selected for the TAS line item, system is recalculating the confirmed date even though Purchase order is created and Goods has been supplied to the customer.
    To make more complicated, this isssue is happening for only for the sales orders created in two sales organization only and rest of the sales organizations system is not DOING the availability check when purchase order is slected.
    All the sales organizations use same item category/sales order/Requirement Class/Requirement type and the Fixed qty and date indicator is selected for all sales organizations.
    I do not have any clue to analyze this strange behavior. I kindly reqeust all of you to proive your opinion in this case.
    Thanks in advance.
    Warm Regards,
    Sridhar B

    Dear Prakash,
    I am thankful for your reply.
    I have checked Materials for sales orders belong to both the sales org (working and not working) but Availability check indicator is marked for materials in both the sales organizations.
    We are using CS as schedule line category for both the sales org, and it is not marked for availability check.
    I kindly reqeust you to proive me your advice in this regard.
    Warm Regards,
    Sridhar B

  • BC Open RFC session problem

    Hi,
    I have the following issue with business connector Version 4.0.
    My scenario goes like this:
    BC flowservice is triggered from an external application, and passes header details to BC, which maps it to a SAP FM and invokes the FM using OutboundRFC step in SAP package.
    Usually the external appln sends sequence of data & BC sends back the acknowlegement in synchronuous mode.
    The first call to BC goes fine, in sense the application gets back the acknowledgement data but when the next sequential data is placed, it fails.
    When we observe in the BC logs, we found that the session opened by BC with SAP was open till the second call which actually disturbs the process flow.
    I would like to know if there's flowservice to close the session once after the data tranfer or any other way to combat this isssue.
    Thanks for all your ideas,
    Shanthi

    Hi,
    try using function module RFC_CONNECTION_CLOSE to close the connection to the other system (after the call for BAPI_TRANSACTION_COMMIT).
    Regards,
    Sreenivas

  • Go to Java Class Error

    When I highlight a keyword or class and right click to
    'Go to Declaration' or 'Browse Javadoc' I get:
    Go to Java Class Error
    Unable to determine browse target.
    Help
    Thanks

    Hi! Welcome to the forums.
    Try reading this post.
    http://supportforums.blackberry.com/t5/BlackBerry-World/solution-on-isssues-with-Facebook-for-BlackB...
    Cheers!
    Click " Like " if you want to Thank someone. If Problem is resolved accept it as a "Solution ", so that others can make use of it.
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • Quotation line items

    Hi
    I have a scenerio in contract manufacuring where quotation has to be isssued to customer for a material which contain other sub componants(BOM),all these sub componants has to be mentioned in quotation.It is not certain that the client will win quotation or not.This may vary between customer to customer
    These componants may run from 50-100
    Is there any process to create quotation without material master and the same will be created once they win quotation
    regards

    hi
    u can create a quotation with out materials and can save.
    but what is the use by doing so.
    in sap u can crete a quotation with one item(will not explode at quotation level) when u refer this quotation to order system will automatically explode bom for order
    for this u need not do any special just do item catgory determiation with material item catagory gorup to order, and quotation also.
    ex:- qterla  --  --agn
           orerla --  --taq
           ornorm  taqtap
    so ur requiremetnt will satisfie
    thanks and regards
    kranthi

  • Override Ease Of Access to keep text size within APP as is

    Hi Friends,
    It's always something that turns up in the middle "of the road", without notice - and this one has just "passed me" since the start. I did not know or think about it at all;
    It's in releation to Ease of Access - where the End User on a Windows Phone sets a larger overall TEXT SIZE.
    And yes - on the app I am working on - this feature makes the TEXT SIZE in my app to explode over its GRID borders.
    And as a fix to this - I am thinking to about Control.IsTextScaleFactorEnabled or to Override something in that regard.
    Any suggestions on how to handle my isssue?
    Thanks for anyones time on this!
    Regards, Kato.

    Again, please read
    Meeting requirements for accessible text .
    Please don't disable automatic enlargement routinely, though, because scaling UI text universally across all apps is an important accessibility experience for users and they will expect it to work in your app too.
    From your usage description you are breaking your app, not fixing it.

  • I upgraded my iphone 4s to ios 6.0.1 2 days ago and since then it has been overheated! is ios 6.0.1 not meant for iphone 4s? how can i solve the isssue?

    I upgraded my iphone 4s to ios 6.0.1 2 days ago and since then it has been overheated! is ios 6.0.1 not meant for iphone 4s? how can i solve the isssue?

    Hi Dan,
    I tried to reset settings but it didn't seem to help much. Then I read a few posts about deleting my email accounts and recreating them, and that actually seemed to help a bit. Now the only time I notice it gets heated up is when I am either on whatsapp or Instagram...that's it!

  • Declarative Component : UploadedFile Isssue for multiple file Upload case.

    Hi,
    I have made one declarative component for the multiple file upload case; where i have add button that dynamically adds af:inputFile component to the popup dialog and similarly delete button to dynamically delete the selected inputFile component. Everything work fine such as:
    1. add button adds the inputfile component properly and delete does the same.
    2. upload of Multiple files also works fine. ( I keep the uploadedFile in the java.util.Map which is the pageFlowScope and once, Dialog box ok/cancel is clicked, i clear everything back).
    IT WORKS GREAT WHEN:
    User hit 5 times add button if they want to upload 5 images. and do upload for all the 5 inputFile components . (Add or Delete button should not be clicked after any upload , but before you can.)..
    THE ONLY PROBLEM IS WHEN:
    1. user uploaded; say 2 images but not yet clicked in the ok/cancel button yet... they are still in the upload dialog ..and hit ADD button again.
    2. After that user uploads say another file/image and now UploadedFile's getInputStream() returns null, length becomes 0 for all the other uploadedFile except this newly uploaded file.
    Now, here is the thing, i wrote my own customUplodedFile class which is just a wrapper and it return getInputStream() from this class and length from this class and it is working.... But i am not sure why does the uploadedFile loses it's value...
    import org.apache.myfaces.trinidad.model.UploadedFile;
    public interface ICustomUploadedFile
      extends Serializable, UploadedFile
      public String getFilename();
      public String getContentType();
      public long getLength();
      public Object getOpaqueData();
      public InputStream getInputStream();
      public void dispose();
    ====================
    public class CustomUploadedFile
      implements ICustomUploadedFile, Serializable
      private transient UploadedFile mUploadedFile;
      private transient InputStream mInputStream;
      private long mLength;
      public CustomUploadedFile()
      public CustomUploadedFile(UploadedFile pUploadedFile)
        this.mUploadedFile = pUploadedFile;
        this.mLength = pUploadedFile.getLength();
        try
          this.mInputStream = pUploadedFile.getInputStream();
        catch (IOException e)
          e.printStackTrace();
      public String getFilename()
        return mUploadedFile.getFilename();
      public String getContentType()
        return mUploadedFile.getContentType();
      public long getLength()
        return mLength;
      public Object getOpaqueData()
        return mUploadedFile.getOpaqueData();
      public InputStream getInputStream()
        return mInputStream;
      public void dispose()
        mUploadedFile.dispose();
    } Now, my questions are:
    1. Is there a way i could follow to not to lose the UploadedFiles's inputStream and length by not using my wrapper class but in a standard way/best way.
    2. I am not happy although it works because it is not making sense to me at all.....Why does the wrapper working though when i have transient variables; like UploadedFiles... and it's transient variables are lost why not mine.
    I am totally confused at this stage.. Need your help.
    Thanks

    any one??

  • ACE isssue for rserver with multiple IP on the same NIC

    Dear all,
    I'm doing to configure an ACE with bridged mode to load balance incoming traffic to 3 TMG servers following this network diagram:
    The system design require to have 4 IP address on the same NIC, and 3 VIP for each pool of the IP as presented in the diagram (rserver: 172.22.14.52 & 62 & 72 - VIP: 172.22.14.82). The attached configuration of the ACE was tested successfully, but we discover that some NIC crash after a non-specific period (Server cannot ping their default gateway: Destination unreachable). I need then to restart the server to get things going well.
    After troubleshooting many things, I discover that when I remove the service policy on the ACE interface, the problem disappears and server continue to work correctly.
    Is it possible that this problem is due to having on the ACE arp table 3 IP address having the same mac? and how I can solve it?
    Thanks, Abdelaziz

    This is for help the show arp result. I see that the four IP address of each server have the same mac address but only the first IP is LEARNED. Is it normal?
    ================================================================================
    IP ADDRESS      MAC-ADDRESS        Interface  Type      Encap  NextArp(s) Status
    ================================================================================
    172.22.14.51    00.c0.dd.16.90.4c  vlan2014  LEARNED    15067  13964 sec    up
    172.22.14.52    00.c0.dd.16.90.4c  vlan2014  RSERVER    15051  173 sec      up
    172.22.14.53    00.c0.dd.16.90.4c  vlan2014  RSERVER    15057  177 sec      up
    172.22.14.54    00.c0.dd.16.90.4c  vlan2014  RSERVER    15059  178 sec      up
    172.22.14.61    00.c0.dd.16.ae.60  vlan2014  LEARNED    15058  13677 sec    up
    172.22.14.62    00.c0.dd.16.ae.60  vlan2014  RSERVER    15050  172 sec      up
    172.22.14.63    00.c0.dd.16.ae.60  vlan2014  RSERVER    15064  181 sec      up
    172.22.14.64    00.c0.dd.16.ae.60  vlan2014  RSERVER    15061  179 sec      up
    172.22.14.71    00.c0.dd.16.93.b8  vlan2014  LEARNED    15065  13700 sec    up
    172.22.14.72    00.c0.dd.16.93.b8  vlan2014  RSERVER    15048  171 sec      up
    172.22.14.73    00.c0.dd.16.93.b8  vlan2014  RSERVER    15062  179 sec      up
    172.22.14.74    00.c0.dd.16.93.b8  vlan2014  RSERVER    15068  291 sec      up
    172.22.14.253   88.43.e1.75.9a.80  vlan2024  LEARNED    15019  9328 sec     up
    172.22.14.254   88.43.e1.75.96.00  vlan2024  GATEWAY    14463  36 sec       up
    172.22.14.250   00.23.5e.26.1e.71  bvi3      INTERFACE  LOCAL     _         up
    ================================================================================

  • Isssue when collecting the transport request for a query and its elements

    Dear All,
    When collecting a query and its elements, only the query is getting collected in to the request and not the elements and I an error is getting displayed as You can not use request xxxxx and elements could not be saved. This is in bw 3.5.
    Can anyone suggest?
    Regards,
    Ram

    Hi,
    In the transport connection make sure that all the elements for the query which you need are manually checked.
    Just drop down the menu and see the elements of the query and check if they all are selected or not.
    Here you can also see if the elements are already present in some other TR.
    Just delete all those TR's before creating this new TR.So that these objects are unlocked or it will not added to your new TR niether it will give an error.
    Also make sure that all the elements have same data package and none of the query elements are assigned to temp package or any other package.
    Once you are sure that all the elements are checked and above told issues are corrected then only create the transport and release them.
    Thanks
    Ajeet

  • Really under-par service for faulty U310 wifi isssue

    I purchased my new U310 in June in Israel. It is one of these units with wifi range issues.
    After a week of installing and reinstalling drivers that did nothing at all, Lenovo picked up my machine 2 weeks ago.
    I am still waiting for an estimated resolution date, the call center guys are clueless and I have no way to reach the lab since they do not accept calls from consumers. The only explanation I got is that the lab is still waiting for parts.
    Is this service lebel a standard with Lenovo? 
    When Thinkpads were serviced by IBM the service level was fantastic. 
    I wonder if it was a bad idea to switch from Dell to Lenovo.

    I called HP again last week. Since this was the third time for this unit to go in for repair I was offered the option of an advanced replacement. The normal fee was waived too.
    I accepted that offer but I was concerned when I saw the unit was shipped from the Texas repair facility.
    I received the unit this morning and so far so good. The rubber grommet that sits between the case and the screen is a little dinged up in places but at least this works.
    just have to box up the old one now for shipping and keep my fingers crossed that this one isn't a dud in the long run.

  • Battery isssue for Pavilion dv6 laptop

    Dear Sirs or Madam,
    I have problem with battery of my laptopn in model pavilion dv6. The battery is dead and do not be charge , and after disconnecting charger cable it will be turn off after 2-3 minutes. I want to know if it is definitly battery problem. How much does it cost each on (normal one-long lasting).I am look forward to hearing from you as soon as possible.
    Yours faithfully,
    Hamdam

    Hi,
    Please try the following test first:
       http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c00821536
    If failed, you need to replace battery. We need exactly the model of your machine (dv6-xxxxxx) before we can say BUT you can check the following price (roughtly):
        http://www.au-battery-store.com/batteries.php/Pavilion_dv6+battery+HP?gclid=CL3Ojc7umr0CFYtapQod_y8A...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Mapping isssue for two fields must be checked and passed to target field

    Hi all
            I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
    so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
    thanking you
    Sridhar

    >
    sridhar loganathan wrote:
    > Hi all
    >         I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
    > so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
    > thanking you
    > Sridhar
    yes.
    lets call the item level shipment as itemshipment and the header level as headershipment.
    the logic will be;
                                     itemshipment                       
                                                    |
    itemshipment --- *exist* *if -- then* - TargetField
                                           |
                                        *else* - headershipment

Maybe you are looking for

  • Admin Commands issue on Windows Web Server 2008 R2 - 64Bit

    Hi, I have tried exactly same process on FMS3.5 Installed on Centos and it worked perfectly. But not working in case of Windows Web Server 2008 R2 - 64Bit. Here is what i am trying to do - Basically i want to extract live streams list and display the

  • Connecting ipod to digital slr camera

    i purchased a ipod camera adapter and attempted to load photos from my canon digital slr but it was unsucessful after three attempts the first wich recognised the photos but did not show them or load them the second that loaded half the photos then l

  • What are the steps to transfer PO to My Vendor through EDI.

    Dear Sir, I have some requirements That I want to Transfer PO(Purchase Order) To My Customer In EDI in stead of hard copy.so how can I do that .I have no Idea Plz Help Me and give the Details Steps with TCODES with steps .i Have also Less Idea about

  • 11gR2 on Linux OEL 5.4

    Hi and happy new year to all, I installed 11gR2 on Linux OEL 5.4, using the "Software only" option. Everything worked smoothly with the installation, but when I try to use netca or dbca, both of them hang after a few screens, and I can't proceed furt

  • EXCISE MODVAT ACCOUNTS NOT DEFINED

    Dear all, At the time of goods receipt, I am getting the following error: "Excise modvat accounts not defined for GRPO" Can anyone suggest me a solution for this problem? Regards, A.Anandarajan.