System is not assigned to a host problem

HI,
we have installed solman EHp1 7 dual stack and configuration is done using SOLMAN_SETUP. but while using to download of support packages  using maintenance optimizer, we are getting the error "system is not assigned to a host" despite filling all the fields in SMSY for both ABAP and JAVA.
Kindly request to advice.

Hi,
You could check the notes and procedure mentioned in the thread:
Re: Error when downloading EHP 4 for ECC - "System is not assigned to a host"
Also in SMSY -> System Components -> Java -> <sid> check if the host assignment is complete.
Regards,
Srikishan

Similar Messages

  • Error:System not assigned to a host

    Hi,
    I am trying to download maintenance stk SRM 7.0 SPS 5.0, via solman, but I am getting the error called  "Error:System not assigned to a host" in the stage where solman looks for OS/DB dependent files.
    When I go back and check the entries in SMSY, all the relevant entries are present there..
    Could anyone has encountered this before?
    Thanks
    Abhishek

    >
    Abhi wrote:
    > Hi,
    >
    > I am trying to download maintenance stk SRM 7.0 SPS 5.0, via solman, but I am getting the error called  "Error:System not assigned to a host" in the stage where solman looks for OS/DB dependent files.
    > When I go back and check the entries in SMSY, all the relevant entries are present there..
    > Could anyone has encountered this before?
    >
    > Thanks
    > Abhishek
    Hi Abhisek,
    are you sure that is in TX "smsy -> Systems -> <your SID> -> logical Component -> Header Data" an entry at the field "message Server" ?
    I think that is meant with host.
    regards
    Tobias

  • SAP System is not assigned to the leading

    Hi,
    I am trying to configure JOB DOCUMENTATION in "Solution Manager / JSM", under tab "SYSTEMS" when assigning "Logical Components" on the bottom of this screen there is a table "Systems", when in this part trying to ativate "Monitoring" getting following error:
    1.  System is not assigned to the leading
    Can someone pl. help to understand how to assign a system as "Leading:
    2. Under tab "Contact Person" I am not able to assign "email, and Telephone**" fields under "communication" are gray, and cannot be modify.
    Please help
    sahmad

    Hi
    have you properly configured smsy and maintain the PRD etc roles in it ......pls chk this tutor
    http://service.sap.com/~sapidb/011000358700001911452008E.sim
    Pls check this notes and links
    Note 1054005 - FAQ: Job Scheduling Management with SAP Solution Manager
    Note 1117355 - Job Scheduling Management: Work Center
    Note 1111310 - Job Scheduling Management: Extended Configuration
    Links:-
       Scheduling
       /people/martin.lauer/blog/2008/01/03/job-scheduling-management-with-sap-solution-manager
    Usage Tutorials (http://service.sap.com/rkt-solman)
    Job Import
                        http://service.sap.com/~sapidb/011000358700001975402008E/index.htm
    Job Request
                        http://service.sap.com/~sapidb/011000358700001975952008E/index.htm
    Job Documentation
                        http://service.sap.com/~sapidb/011000358700000332842009E/index.htm
    Job Documentation Templates
                        http://service.sap.com/~sapidb/011000358700001911082008E.sim
    Job Scheduling
                        http://service.sap.com/~sapidb/011000358700001911452008E.sim
    Job Monitoring
                        http://service.sap.com/~sapidb/011000358700001976052008E/index.htm
    Work Center
                        http://service.sap.com/~sapidb/011000358700001975932008E/index.htm
                        http://service.sap.com/~sapidb/011000358700001911442008E.sim
    Hope it helps
    regards
    Prakhar

  • Business system * is not assigned to a business system group

    I am running XI3.0 (SP12), Oracle 9.2.0.6 on a Windows 2003 Cluster Server.
    I am trying to import some config from the Integration Directory from Dev into QA but I am getting the following error:
    <b>IMPORT XI 3.0 Design Objects
    Business system XIT is not assigned to a business system group with the ID (XISystemGroup)</b>
    I have copied my Dev SLD into my QA SLD.
    Has anyone else come across the error??

    Barry,
    You should ideally have assigned Business systems in ur QA landscape to 1 group & Business systems in your dev landscape to another group. Also , hope you have created transport targets for all ur Business systems in dev environment.In ur QA SLD , you should have two entries for each business system , something like
    DEV-BS-1 -> transport target -> QA-BS-1
    QA-BS-1 -> transport source -> DEV-BS-1
    Thanks
    Saravana

  • Problems with CIF (Logical system not assign to BSG)

    Hello,
    We are sending all master data from ECC to APO. We set up the CIF in DEV and all worked fine. But when we try to send the data from ECC to APO in QA an error appears. It says that the logical system is not assign in the BSG. Apparently the configuration that we have in DEV is the same that we have in QA. The logical systems in all instances (DEV & QA) have the same name. Could this be the problem?
    Thanks,
    David

    Hi David,
    1) Check whether BSG is defined in customisation under the below
    link
    SAP - Implementation Guide > Integration with SAP Components
         >  Integration via APO Core Interface (CIF)    >
        Basic Settings for Creating the System Landscape   > Maintain Business System Group
    2) Check the BSG is assinged to the logical system under the
    spro transaction
    SAP - Implementation Guide > Integration with SAP Components
         >  Integration via APO Core Interface (CIF)    >
        Basic Settings for Creating the System Landscape   >
    Assign Logical System and Queue Type
    3) Check BSG is showing in APO material master for a location
    product under "Properties" tab.
    Regards
    R. Senthil Mareeswaran.

  • System not assigned to any business system group

    In transaction /SAPAPO/MAT1 an error occurs when I try to create a new product.
    Error message: " System SC1CLNT100 not assigned to any business system group".
    When I received this error I created business system group in SLD and assigned my system to this new business system group.
    Then I went to transaction RZ70 and executed Data Collector without Job scheduling.
    But when start transaction /SAPAPO/MAT1 again the error /SAPAPO/MAT030 still occurs.
    What should be done to make changes, which I made in SLD visible for the system?
    Thank you in advance,
    Kind regards,
    Maria Kazakova

    I assume you assigned this BSG in the IMG in APO
    "As an independent logical system, the APO System must, in addition to the SAP R/3 Systems, be assigned to a business system group (BSG)."

  • Azure In Role Caching Doesn't start on server with "Not running in a hosted service or the Development Fabric."

    I started to use Azure in-role caching and everything works great in Azure compute emulator on my local machine, but not on server. I've already dealed with some problems, like lack of msshrtmi.dll on server, but now can't understand why get this error:
    Not running in a hosted service or the Development Fabric.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.InvalidOperationException: Not running in a hosted service or the Development Fabric.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [InvalidOperationException: Not running in a hosted service or the Development Fabric.]
    Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.GetDefaultStartupInfoForCurrentRoleInstance() +535
    Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener..ctor() +34
    [ConfigurationErrorsException: Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.]
    System.Diagnostics.TraceUtils.GetRuntimeObject(String className, Type baseType, String initializeData) +1588
    System.Diagnostics.TypedElement.BaseGetRuntimeObject() +103
    System.Diagnostics.ListenerElement.GetRuntimeObject() +825
    System.Diagnostics.ListenerElementsCollection.GetRuntimeObject() +261
    System.Diagnostics.TraceInternal.get_Listeners() +256
    System.Diagnostics.Trace.get_Listeners() +79
    Microsoft.ApplicationServer.Caching.DataCacheServerLogManager..cctor() +97
    [TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.DataCacheServerLogManager' threw an exception.]
    Microsoft.ApplicationServer.Caching.DataCacheServerLogManager.ChangeLogLevel(TraceLevel traceLevel) +0
    Microsoft.ApplicationServer.Caching.ServiceConfigurationManager..cctor() +24
    [TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.ServiceConfigurationManager' threw an exception.]
    Microsoft.ApplicationServer.Caching.ServiceConfigurationManager.GetHostDefaults() +0
    Microsoft.ApplicationServer.Caching.OMCacheNodeProperties..ctor(IHostConfiguration props, Int32 maxNC, Boolean perfCounterRequired) +69
    Microsoft.ApplicationServer.Caching.LocalCacheStore..ctor(EvictionParametrs evictionParams) +50
    Microsoft.ApplicationServer.Caching.DataCacheFactory..ctor(DataCacheFactoryConfiguration configuration) +555
    Microsoft.Web.DistributedCache.DataCacheFactoryWrapper.CreateDataCacheFactoryFromConfiguration(DataCacheFactoryConfiguration config) +35
    Microsoft.Web.DistributedCache.CacheHelpers.RunCacheCreationHooks(CacheConnectingEventArgs fetchingEventArgs, IDataCacheFactory dataCacheFactory, Object sender, EventHandler`1 fetchingHandler, EventHandler`1 fetchedHandler) +7
    All I found about this error is that it occurs if you start local Azure compute emulator with in-role caching and without administrative rights. But in emulator everything works fine and problem occurs only after I publish to staging environment. (if switch
    to production, error remains).
    I use cache for resolving routes like /username and /countryname etc. So available usernames and country names will be cached and updated on changes in database. I have static class with static DataCache object which is created on first request to cache. But
    even home page doesn't start so error occurs before I try to create cache object.

    Hi Jambor, I don't have reference errors. I had them before but already fixed with copy local = true for few references. 
    I receive error only on azure host service. In local everything works great, app starts, cache works and I can see data in cache.  Yes, in local mode cloud project is set as startup and VS runs as administrator.
    I've added TraceListener creating code you suggested:
    protected void Application_Start(object sender, EventArgs e)
    System.Diagnostics.Trace.Listeners.Add(new Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener());
    and error code changed a little. But as I see problem is the same but caused when creating TraceListener from Application_Start instead of when initalizing cache:
    Not running in a hosted service or the Development Fabric.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.InvalidOperationException: Not running in a hosted service or the Development Fabric.
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: 
    [InvalidOperationException: Not running in a hosted service or the Development Fabric.]
    Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.GetDefaultStartupInfoForCurrentRoleInstance() +518
    Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener..ctor() +34
    [ConfigurationErrorsException: Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.]
    System.Diagnostics.TraceUtils.GetRuntimeObject(String className, Type baseType, String initializeData) +1588
    System.Diagnostics.TypedElement.BaseGetRuntimeObject() +103
    System.Diagnostics.ListenerElement.GetRuntimeObject() +825
    System.Diagnostics.ListenerElementsCollection.GetRuntimeObject() +261
    System.Diagnostics.TraceInternal.get_Listeners() +256
    System.Diagnostics.Trace.get_Listeners() +79
    sub2o.MvcApplication.Application_Start() +497
    [HttpException (0x80004005): Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.]
    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +558
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +179
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +322
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +384
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +397
    [HttpException (0x80004005): Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +630
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +763

  • Con not assign TASK TYPE for Put away during PO receipt

    Good morning everyone!
    I spent a lot of time to setup WMS Task assigment rule with no result.
    My goal is to make Task assigment for inbound tasks. Particulary put away after receipt.
    Expected behavor: after receipt in receiving area system should assign task type. This can be checked via "Warehouse control board" form, "Task type" column.
    Actual (current behavour): task is created and even can be seen via "Warehouse control board" form. But there's no task type. For Task assigment the only rule exists.
    To be sure that it works with other tasks types I've checked on Move order. Works well.
    NEED YOUR ADVISE
    Thanks in advance.
    Eugene.

    This case happened to me too in R12.
    The system did not assign task type after receipt in the receiving area. Moreover, I cannot update status from "Pending" to "Queue" to the user via "Warehouse Control Board" form for these put away tasks. It always show the error message "Cannot update putaway task." after press execute button. So How can I assign these task to specific user?
    Need your advise too,
    Thanks,
    Surachai.

  • Assign a new Host before a Conference starts

    Is there a way, either by the host or under system admin, to assign a new host before RTC allows users to join a conference (i believe, its 15 minutes before the start time), without having to setup a new conference?
    We did a workaround where the host (couldn't make the conf) changed the start-time to an earlier time, joined with the new host, and then did the 'Assign as Host'. The new host stayed connected, until the actual start time of the conference (an hour later).
    Any suggestions would be much appreciated.

    If you can check and modify ABAP logic in your report, would this be an option: (if you can't modify logic then make sure corresponding sentences exist within the logic).
    Define in your report logic this macro:
    define rp_set_name_format.
    ** BEGIN VALID <L9C
    *  rp-set-name-format.
    ** END   VALID <L9C
    ** BEGIN VALID >L9B
      data: l_repid like sy-repid.
      l_repid = sy-repid.
      call function 'RP_SET_NAME_FORMAT'
           exporting
                repid   = l_repid
           importing
                format  = $$format.
    ** END  VALID >L9B
    end-of-definition.
    At START-OF-SELECTION event add "rp_set_name_format." sentence or alternatively use standard macro RP-SET-NAME-FORMAT (effectively eliminating the need for the above define-end-of-definition context.
    At GET PERNR event add "rp-edit-name p0001 p0002 "molga" space." sentence where appropriate replacing molga by your actual country grouping value.
    The call to rp-edit-name macro has to be defined this way:
    * PARAMETER IN:  P0001 (DEFAULT: ENAME)*
    *                P0002 (DATEN ZUR PERS)*
    *               <P0021 (FAMILIE-DATEN)>*
    *                MOLGA (T001P-MOLGA)   *
    *                LANGU (ANREDE-SPRACHE)*
    * PARAMETER OUT: $EDIT-NAME            *
    *                $RET-CODE             *
    Regards,
    Antoine

  • An SLD system has not been assigned to logical system TEC101

    Hello all
    We are trying to send an message RFC or IDOC from our SRM (5.0) system to the XI (7.0). But we allways get the error
    "An SLD system has not been assigned to logical system TEC101". In the SLD the system is visible, sldcheck works.
    Does anyone know this problem and can give me a hint how to fix this problem?
    Thanks a lot
    Stefan

    Hi Stefan,
    Is there a technical & Business System for SRM5.0 in SLD? If entry exists then confirm if the logical system name mentioned in Business System is TEC101.
    If entry does not exist in SLD for SRM, then in SRM run t-code
    1) SLDAPICUST .. Enter relevant details
    2) RZ70 : Give XI Server details , activate and then Execute.
    Once you do that you can see entry for SRM in SLD.
    After that try running the schenario again.
    Regards,
    Sumit

  • Logical system has not been assigned to any business grp

    We have converted R/3 system (4.6c) from EBCDIC to ASCII. R/3 is integrated with SCM 5.0. Everything was fine before conversion. After Conversion, in SCM qRFC Monitor Inbound Queue (TCODE = SMQ2), we are getting the
    error "Logical system &##ä<+è### has not been assigned to any business
    system gr".
    Error Message no. SR053
    The problem happens because the logical system has strange value
    in the inbound queues.
    Preblem still persists even after performing various things:
    Re-created and Activated the CIF Integration Models
    Checked all settings in both systems
    Ran CCR
    Checked table CIFLOOKU
    Any ideas are highly appreciated? Thanks

    thanks。 I have the same issues. like this:
    Logical system I11CLNT800 has not been assigned to any business system group
    Message no. /SAPAPO/CIF007
    System Response
    The data cannot be assigned to a logical system.
    Procedure
    Check if the logical system has been maintained, and assign the logical system to the business system group.
    the  I11CLNT800  is my ECC logic system. I had assigned it to ECC Client 800,and  a BSG I11800 in APO system.
    Can u give me any suggestions?
    before, someone had suggested me to define partner profile in WE20 and WE21, but they does not work.
    waiting on desk
    thanks
    Edited by: Xinyou Dong on Jun 3, 2011 1:01 PM

  • "System is not a child system in central user maintenance network" problem

    Hi ppl,
    I have added one new role for a user id. After that, I log on using that user id. However the message "System is not a child system in central user maintenance network" appeared. What has happened and how to solve the problem? Thank you.

    This error message occurs when a user tries to logon to the CUA master system <u>and</u> when his account is <u>not</u> assigned to this logical system (see SU01: tab "systems", displayed only in the CUA master system).
    You need to define the CUA master system also as CUA client system and assign that system to the user master record; otherwise the user cannot logon to the CUA master system.
    Regards, Wolfgang

  • An SLD system has not been assigned to logical system

    Hi masters
    I trying send PO in XML to SUS through XI ,
    but when try to send the SRM/EB system show the next message
    Processing BBP_PO_SEND_XML Is Started
    An SLD system has not been assigned to logical system
    Action could not be successfully executed
    in XI system  I defined the SLD sistem for SRM/EB and SRM/SUS
    that SLD name  is settup into define system Landscape into colum System Land Directory Name
    in SLDCHECK all is Ok on green light.
    what can I do ?

    Hi. Nikhil.
    In SRM/EB
    1.- trying configurates SMXB_ADM 
    2.- Integratio Engine configration
    3.- Role of Business System    = Application System
    4.- Corresponding Integ. Server = dest://RFC  type H for XI system,
    problem .
    when I push bottom check (F7)
    the message is the next
    red light No access to system Landscape at present

  • Mail Problem after mailbfr... fatal: the Postfix mail system is not running

    Hi all,
    Mailbfr ran over night and rotated the logs but something happened on the server afterwards - and probably unconnected. DHCP got turned off and also SMTP / postfix stopped working. THe only log info I can get is this ... and below is postfix/main.cf and master.cf
    The server is 10.5.4
    Can anyone help?
    Aug 2 12:31:22 intranet postfix/postfix-script[1233]: refreshing the Postfix mail system
    Aug 2 12:31:22 intranet postfix/master[1181]: reload configuration /etc/postfix
    Aug 2 12:31:22 intranet postfix/qmgr[1238]: 4434A2D3D1B: skipped, still being delivered
    Aug 2 12:31:22 intranet postfix/qmgr[1238]: 580E92D3D25: skipped, still being delivered
    Aug 2 12:31:22 intranet postfix/qmgr[1238]: AC678276AF7: skipped, still being delivered
    Aug 2 12:31:22 intranet postfix/qmgr[1238]: DEB192D3D12: skipped, still being delivered
    Aug 2 12:31:23 intranet postfix/smtp[1220]: 4434A2D3D1B: to=<[email protected]>, relay=mail2.bell-group.net[194.73.123.172]:25, delay=12, delays=0.01/0.01/5.2/6.6, dsn=2.0.0, status=sent (250 2.0.0 m72BUrcn009401 Message accepted for delivery)
    Aug 2 12:31:23 intranet postfix/smtp[1217]: DEB192D3D12: to=<[email protected]>, relay=mail2.bell-group.net[194.73.123.172]:25, delay=12, delays=0.05/0.02/5.2/7, dsn=2.0.0, status=sent (250 2.0.0 m72BUqr0009400 Message accepted for delivery)
    Aug 2 12:31:30 intranet postfix/smtp[1200]: 580E92D3D25: to=<[email protected]>, relay=mail2.bell-group.net[194.73.123.172]:25, delay=19, delays=0/9.4/6.2/3.3, dsn=2.0.0, status=sent (250 2.0.0 m72BV3Tw009408 Message accepted for delivery)
    Aug 2 12:31:41 intranet postfix/smtp[1212]: connect to mail.freeservers.com[64.136.25.224]: Operation timed out (port 25)
    Aug 2 12:31:41 intranet postfix/smtp[1212]: AC678276AF7: to=<[email protected]>, relay=mx-ws.vgs.untd.com[64.136.52.37]:25, delay=269804, delays=269773/0.09/31/0, dsn=4.0.0, status=deferred (host mx-ws.vgs.untd.com[64.136.52.37] refused to talk to me: 550 Access denied...0a7500705070117540d0d1a594146d1494c501602dc0bde92560bd856555b99d65fd9d 8565106510c960...)
    Aug 2 12:32:10 intranet postfix/master[1181]: master exit time has arrived
    Aug 2 17:54:46 intranet postfix/postfix-script[11793]: fatal: the Postfix mail system is not running
    Aug 2 17:57:19 intranet postfix/postfix-script[12097]: fatal: the Postfix mail system is not running
    Postfix
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = _postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix/examples
    readme_directory = /usr/share/doc/postfix
    mydomain_fallback = localhost
    messagesizelimit = 0
    myhostname = intranet.atc-logistics.ie
    mailbox_transport = cyrus
    mydomain = atc-logistics.ie
    mailboxsizelimit = 0
    inet_interfaces = localhost
    mynetworks = 127.0.0.0/8,192.168.1.252/32,192.168.1.0/24,82.195.137.103/32,192.168.1.250
    mydestination = $myhostname,localhost.$mydomain,localhost,atc-logistics.ie,intranet.atc-logisti cs.ie
    enableserveroptions = yes
    smtpdsasl_authenable = yes
    smtpduse_pwserver = yes
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdpw_server_securityoptions = gssapi,cram-md5,login
    content_filter = smtp-amavis:[127.0.0.1]:10024
    smtpdclientrestrictions = permit_mynetworks rejectrblclient sbl-xbl.spamhaus.org rejectrblclient bl.spamcop.net rejectrblclient dnsbl.sorbs.net permit
    mapsrbldomains =

    Just FYI: mailbfr does not rotate any logs. Also, there is no way this can have anything to do with DHCP not running anymore.
    The output you posted seems incomplete.
    As a first step, I would check your drive for integrity. Often when several problems appear in one go, corrupt files due to drive failure are the culprit.
    Message was edited by: pterobyte

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" 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_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" 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_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

Maybe you are looking for