Webdynpro Development Component project error

Hi All,
I am trying to use a DC1(Development Component) in another DC2 component, but when i am trying to deploy and run the application of DC2, which use the DC1 component.  It is giving error like below.
   java.lang.UnsupportedClassVersionError: com/hp/dc1/wdp/InternalDc1Comp1 (Unsupported major.minor version 49.0)
Can anybody help me in solve out this.
Thanks in advance,
Ravi

Hi Ravi,
     This problem is not with the DC you are creating. This exception can occur when the source is compiled on one version of JDK that is not supported by JDK attemting to run it. In your case your DC was built targeting only JDK 1.5, but the Portal server JDK might be 1.4 or different then JDK 1.5.
You can check the JDK version of the server and if its other than JDK 1.5 then installed the same version on your machine to compile the code.
Hope this will resolve your problem.
Regards,
Nikhil

Similar Messages

  • Error while building development component project

    Hi all,
    I have created one webdynpro application in which i am importing javabean model using jars in my build path.I am able to execute that application successfully but when i try to import that application in a new development component project, i am getting errors in my bean class (IPrivateBeanclassname) for some getter setter methods saying the method is not defined....
    I have put the same jar in its build path also.
    Can somebody please help...
    Thanks,
    Mayuri

    Hi,
    I am importing the application as follows:
    1) I have developed a web dynpro project. This project has a jar file for getting the java classes. The web dynpro application works fine.
    2) I imported this application into a Development Component Project. Here it fails to recognize the jar file that is required. Even if I put the jar file in its build path, while building, the jar file gets removed.It says java build path errors.
    Please help!
    Thanks,
    Mayuri

  • Error while creating the development component project

    Hello
    i tried to create development component project through NWDS which is expected to be used as CallableObject but it gave following exception
    Plugin name: Web Dynpro Archive Builder
    Plugin ID: com.sap.ide.webdynpro.archivebuilder
    Class: com.sap.ide.webdynpro.archivebuilder.project.WebDynproDevelopmentComponentProjectWizard
    Method: createProject(String, IPath, IProgressMonitor)
    Message: Invalid project description.
    Exception: org.eclipse.core.internal.resources.ResourceException: Invalid project description in plugin name
    I am using NWDS 7 version and using J2EE engine of NetWeaver 2004s server.
    Thanks in advance.
    Regards
    Rajeev

    Hi
    sorry for that
    see the below link ,it will be helpful for u.
    Re: development component
    Regards
    Hazrath

  • Webdynpro Development Component Callable Object Escalation

    Hi,
    In gp sequential block workflow  using webdynpro development component callable objects  When the initiator intiates a workflow ,it is assigned to the first approver.Now if the approver does not take any action within 2 days i want to escalate the task to the second approver.How can i do this escalation?
    There is a standard parameter call <b>due date</b>...in action.How can I set this value dynamically from my application..
    During escalation , the next approver has to be taken by executing an rfc in the background
    Please help....
    Thanks,
    Shamila

    Hi,
    You can define a CAF Core application service (implemented in the CAF Core layer) or a background CO (implemented by a J2EE class interface) which can call a RFC to get the next approver and return the next approver's user id as an output parameter. You can use dynamic user assignment in the next action (approval), by selecting the processor as "Filled From Context Parameter" (at the Roles tab in block level) and select the user id output parameter of the background CO/CAF app service CO.
    You can get more details on different types of CO at the CAF Tutorial Center @SDN
    Thanks,
    Dipankar

  • Importing Java Bean Model in Webdynpro Development Component

    Hi All,
    Is there any simple tutorial, example  to import java bean model in webdynpro development component.
    I am using NWDS 7.0 SP14 and WAS 7.0.
    it really helps if you can  provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
    what are the steps to be followed with precautions
    Thanks in Advance,
    Murali

    Hi,
    [Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
    [Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    you will get more if you search in the forum.
    more help on EJB's
    Re: Help needed in EJB
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    PradeeP

  • Tutorial on Development Component Project

    Hi,
    Can somebody send a tutorial on Development Component Project? Is EP (Enterprise Portal) required for using the Development Component Project?
    Thanks.
    Regards,
    Suresh.

    Hi
      What DC project are you talking about. You require SAP NWDS to create a DC.
    Anyway refer this link. It talks about creating Development Components of all types.
    http://help.sap.com/saphelp_nw04/helpdata/en/1c/bca99c220c0e45a1cae3c4cccf4346/frameset.htm
    regards
    Ravi

  • Copying a project into development component project

    hiii,
    I have a webdynpro project called DP_OrderEntry developed in NWDS 7.0.9. I need to copy it into development component dc_OrderEntry in NWDS 7.0.14.
    Can anyone tellme the steps for doing it?
    Can any error can crop up due to the difference in the versions?
    Regards,
    parama laha.

    hii,
    the project is imported but I am getting an error:
    Error               The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.security.api.IUser. Fix the classpath then try rebuilding this project.     LocalDevelopmentdc_oentrlntinfotech.com
    Is this because the project i copied from was on NWDS 7.0.9 and currently this project is on NWDS 7.0.14 ??
    I have already done 'repair project structure and classpath'
    How to eradicate dis error??

  • Creating development component projects(CAS)

    Hi All,
    we are on CAF.While creating a CAS project, it is asking for a vendor.As you know the default value is com.sap.So far we have used the default one only.But,now we want to use our own one.Can you plz give me some suggestions and standards about vendor field?.
    Thanks
    Sampath.G

    Hi Sampath
    This vendor is a very important thing in the development. It can be related with the package name. If you are Business Partner with the SAP than you can get this free.
    Whenever you are enhancing any SAP components or building your own, this name space i.e. vendor plays the key role. You can deploy your component in the world without the fear of the name space conflict so please reserve the name space with contacting the SAP.
    Like you mentioned that your company name is 'abc' than you can put anything whcich represents that this is made by the 'abc' company. For eg you can use 'com.abc', 'abc.com' or anything that you want.
    When you are developing components locally than very less importnace of vendo name but at the time of implementing at the client side it plays a key role.
    Go to service.sap.com/namespaces here you will find lot of information and the process to get that, also, you can refer to Note 84282 - Development namespaces for customers and partners.

  • Importing Development Component - Webdynpro and Guided Procedures

    Hi All,
    I created a development component project of type  "Webdynpro". I created callable Object in guided procedures and the Process is working fine. I want to import the same project into another Nwds (another workspace).
    I tried the following steps.
    1. File - import - Multiple Existing project into workspace.
    2. Imported the DC.
    I have already added all the Gp jarfiles. But after importing, and rebuilding the project, it gives me only webdynpro and components,views.. It is not showing me as a normal webdynpro project. It is not showing me the GP Api's, the "USED DC's". which i created in the other project.
    When i am creating a new project, it is working fine.Can anyone please help me in resolving this issue? How can i import a DC (gp) into webdynpro?
    Thanx and Regards,
    Divya

    Hi,
    Take a look at this [thread|/thread/119966 [original link is broken];
    Dick.

  • Webdynpro development for portal integration

    our requirement is to run the adoe interactive form in enterprise portal and store the entered data in SAP system.
    Can i develop in NWDS (call LIfecycle designe inside) and create webdynpro object by selecting new project as
    1) webdynpro project or
    2) development component project and type as webdynpro and select domain is Enterprise portal etc.,
    which one is correct way for webdynpro development and deploy in . If I select the 2nd option, how to deploy it.
    Please advise
    Thanks
    Gopal

    Hi Gopal,
    EP7:
    Expand the local and sap.com webdynpro components.
    You will see your WebDynpro  DC in "sap.com" which is the default vendor while creating a DC.
    After you found the DC select an application and follow the other steps to create  an iView.
    If it is WebDynpro Project then you can see that in local.
    If you are using EP6 then follow the document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e36d690-0201-0010-cd99-bfbb81bd33d9
    Thanks & Regards,
    Jhansi Miryala

  • Development component for UME usage in WebDynpro

    Hi,
    We develop several WebDynpros using the UserMappingService. Those WebDynpros are checked into the NWDI. Local builds are fine since we copied the relevant jar files into the project and referenced them in the classpath.
    Builds in the NWDI fail because there the jar files for UME (com.sap.portal.usermapping.jar, com.sap.portal.usermappingapi.jar) are missing. Is there a development component we can reference so that the build infrastructure is able to find the jar files when trying to build the project?
    Or am i supposed to put those jars into a library development component? This would us make prone to changes in the API since we keep our servers and developer machines at the same SPS.
    kind regards
         Dirk
    PS: we use EP 6 SPS 18 and NWDS 2.0.18 for development and production.

    Hi,
    If u r using DC for ur development then the jar file should not be added in the build path because it will be removed at build time.
    For adding ur libraries u should be using an external library component. Expose this library file as public part. This is only a buildable component.
    For deploying this library in the server u should create a new J2EE library component and in this used DC add the exposed public part. Deploy this application.
    Finally in the Main component used DC add the External library component and in the references of ur project give the j2ee library component.
    For reference see valery's blog
    <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro External Jars in DC</a>
    - Hope it helps,
    Nagarajan.

  • Passing value from Portal Development component to Webdynpro component

    Hi experts
    how to pass a value from portal component to a webdynpro component , is it possible, i have both portal and webdynpro --- development components on diffrent tracks,
    Regards
    Govardan

    page 8.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c2fad86f-0401-0010-91ac-bdb38595a735?QuickLink=events&overridelayout=true&5003637509947
    any event you named.

  • Web service in Web Dynpro development Component

    Hi All,
    I have created a web service in SAP GUI and I have saved the WSDL file on my local PC.
    Now when I create a web service model in a simple web dynpro project it works perfectly.
    But when I do the same in a web dynpro development component; as soon as the web service model instance is associated with the activity in the DTR my application get hanged. I have to quit my NWDS. When I reopen NWDS my application shows following errors:
    <i>Kind     Status     Priority     Description     Resource     In Folder     Location
    Error               <b>XMLTokenWriter cannot be resolved</b> (or is not a valid type) for the argument writer of the method serialize     Char1.java     JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types     line 57
    Kind     Status     Priority     Description     Resource     In Folder     Location
    Error               <b>typeRegistry cannot be resolved or is not a field</b>     Z_WS_GETEMPINFO_FULLSoapBindingStub.java     JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies     line 29
    Kind     Status     Priority     Description     Resource     In Folder     Location
    Error               <b>transportBinding cannot be resolved or is not a field</b>     Z_WS_GETEMPINFO_FULLSoapBindingStub.java     JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies     line 22
    Kind     Status     Priority     Description     Resource     In Folder     Location
    Error               <b>SOAPSerializationContext cannot be resolved</b> (or is not a valid type) for the argument context of the method serialize     Char1.java     JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types     line 50
    Kind     Status     Priority     Description     Resource     In Folder     Location
    Error               <b>SOAPDeserializationContext cannot be resolved</b> (or is not a valid type) for the argument context of the method deserialize     Char1.java     JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types     line 26</i>
    Regards
    sid

    Hi Sidharth,
    Which version of NWDS you are using. I was facing the same problem with SP16 sometime back.
    I did find a workaround to do that. See, whenever you will create the WS Model in Web Dynpro DC, it will ask you to add some file in DTR..right!!........ do one thing press "Cancel" or "No" there. Then studio will ask one more time to add the files, in different dialog box though. Add the files from the second dialog box rather than the first one.
    Regards,
    Mausam

  • When deploying the webdynpro java application , showing error message

    Hi Masters,
    when deploying the webdynpro java application , showing error message. Please reply why this problem showing and what is the solution
    But Iogin to sdm tool ( remote gui .sh) with same password, which password  i am using for deploy the webdynpro java application.here in sdm tool i am able to login. and i restart the sdm , and again trying to deploy the same problem it showing.
    URL to deploy : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Aborted: development component 'sales'/'rupa.com'/'LOKAL'/'0.2010.02.13.14.32.39':Caught exception during application deployment from SAP J2EE Engine's deploy API:com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [devsap] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: No login module succeeded.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted
    Edited by: sujana mullapudi on Feb 13, 2010 2:52 PM

    Hi Sujana,
    For deploying Web Dynpro for Java application, J2EE_admin correct password must be stored in the scured area of config tool.
    Your error show that J2EE_admin information is not correct.
    So, Please ask your basis team to update new J2EE_ADMIN password or you can do it in scured area of config tool.
    Hope this will helps you.
    Thanks
    Arun Jaiswal

  • Using JPA Entity-Objects defined in other EJB-Development Component

    Hello Community,
    I'm working on a Java-Application on NW CE 7.1, using JEE5 Beans in the Business-Logic-Layer and WebDynpro/Java in the UI-Layer.
    I designed a Bean for working with data, stored in a database-table of the system-database.
    For that addtionally i created a class, representing the Entity-Object, in the same Development-Component of Type EJB 3.0.
    It looks like this:
    @NamedQueries ({
         @NamedQuery (name="findAllSdCust", query="SELECT c from SdCust c ORDER BY c.kdnr"),
         @NamedQuery (name="findSdCustByKdnr", query="SELECT c from SdCust c WHERE c.kdnr = :kdnr"),
         @NamedQuery (name="findSdCustByIlnnr", query="SELECT c from SdCust c WHERE c.ilnnr = :ilnnr")
    @Entity
    @Table(name="ZKALL_SD_CUST")
    public class SdCust implements Serializable {
         @Id
         @TableGenerator (name="idGenerator", table="ZKALL_ID_GEN", pkColumnName="GEN_KEY", valueColumnName="GEN_VALUE", initialValue=100)
         @GeneratedValue (strategy=GenerationType.TABLE, generator="idGenerator")
         private long id;
         private String name;
         private String lname;
         private String kdnr;
         private String ilnnr;
         private long connid;
         private long cnt;
         @Version
         private long version;
          Constructor, Getter and Setter methods follow here
    The corresponding bean looks like this
    @Stateless(name="SdCustBean")
    public class SdCustBean implements SdCustLocal {
         @PersistenceContext (unitName="xyz")
         private EntityManager em;
         public SdCust getSdCustByKdnr (String kdnr)
              SdCust result = new SdCust();
              // List<Manufacturer> resultList = new ArrayList<Manufacturer>();
              Query  myQuery = em.createNamedQuery("findSdCustByKdnr");
              myQuery.setParameter("kdnr", kdnr);
              result = (SdCust) myQuery.getSingleResult();
              return result;
         public void setEM (EntityManager iem)
              em = iem;
           // other methods .....
    After that i created a new Development-Component of Enterprise Application-Type and added above DC to this EAR-DC. I also supplied the nessecary descriptor-files/Enries in EJB-DC and EAR-DC.
    When now using this bean from WebDynpro with the Web-Dypro EJB-Model-Import everything works fine.
    The bean returns the desired object(s).
    But now i created a new DC of type EBJ 3.0
    This DC contains a Message Driven Bean. That MDB is a Job-Bean which i want to schedule. That  Bean uses JRA to connect to an SAP-Abap-System to read some Data and should use JPA to insert/upate/delete the read data in the Database. This should work as a simple replication for my application.
    I assigned that EJB-DC containing the MDB to a new EAR-DC together with job-definition-xml and the neccessary entries in deployment-descriptors.
    After deploying i see the corresponding job-defition in the NW scheduler using the administrator-views.
    I'm also able to schedule the job and it executes fine. Connecting to SAP-Abap System also works fine using JRA.
    But JPA does not work!!!!!
    I created an dependency from my EAR-DC containing the Job EJB-DC and to the EJB-DC containing the Entity-Class.
    I tried three diferent things to get i running, but all of them failed.
    1.)
    The part  looks like:
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
      @EJB SdCustBean mybean;
       public void onJob(JobContext ctx) throws Exception {
            SdCust sdCust = mybean.getSdCustByKdnr (mykdnr);
    Compiles fine. But this fails because the Data is stored in the system-database. The exception says, that i have to use a datasource which supports 2-Phase commit. I know, that i could possibly solve this problem by annotation the Method getSdCustByKdnr with the Annotation for the Transaction-Manager to use REQUIRES_NEW Transaction. But i dont want to generally annotate my methods this way.
    2.)
    This part looks like this
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
    @PersistenceContext (unitName="xyz")
    private EntityManager em;
       public void onJob(JobContext ctx) throws Exception {
         SdCust cust = new SdCust();
         Query  myQuery = em.createQuery("SELECT c from SdCust c WHERE c.kdnr = :kdnr");
         myQuery.setParameter("kdnr", dbkdnr);
         cust = (SdCust) myQuery.getSingleResult();
    This also results in a runtime-exception because the entity-Manager cant resolve SdCust from the Query as an Object. The Exception is:
    java.lang.IllegalArgumentException: line 1: Abstract Schema Type 'SdCust' doesn't exist
    SELECT c from SdCust c WHERE c.kdnr = :kdnr
    3.) and last try so far:
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
    @PersistenceContext (unitName="xyz")
    private EntityManager em;
       public void onJob(JobContext ctx) throws Exception {
         SdCustBean custBean = new SdCustBean();
         custBean.setEM(em);
         SdCust cust = custBean.getSdCustByKdnr(kdnr);
    In this example i use the Bean from the beginning not as a bean itself but as a normal class. that class has an addtional Method setEM to set the Entity-Manager (which is injected when using the class as a bean)
    In that way i got the exception, that the named Query "findSdCustByKdnr" cannot be found by the entity-manager.
    It seems to me, that i can access the class, but that all annotations belonging to JPA for that class are not recognized.
    Does anybody can give me a hint to solve this problem? Did i forgot something important?
    best regards
    matthias hayk
    Edited by: Matthias Hayk on Feb 5, 2009 9:38 AM

    I was already on wright trace.
    My class "SdCust" was not recognized by the Entity-Manager as an Entity-Class.
    This relies on the storage of the entity-class and where the Entity-Manager looks for entity-classes.
    By default it seems to look for all classes in the same jar file. thats the reason why everything works fine when the using bean and the entity-class are in the same project.
    In my last case, the using bean is in another  development-component and so also in anohter jar file. in this case the entity-manager must be told where to find entity-classes.
    this is done in the persistence.xml file.
    i added the line
    <jar-file>xxx.yyy.com~mdata_beans.jar</jar-file>
    underneath the <persistence-unit>-tag.
    This works.
    regards
    Matthias Hayk

Maybe you are looking for

  • Problem in oracle9ias

    In Hot deployment of EJBs      If our Session beans/Entity beans use other java class files, where should these class files be stored?      They cannot be stored along with Home/Remote classes because certain class files we use are common across all

  • English version of Firefox in China

    I am an English speaker working and living in China. I just updated firefox (while on my VPN) for Windows 7 to Firefox 24 English version and I am now somehow running the Chinese version. I have uninstalled and reinstalled multiple times and checked

  • BIWS as a source to third party application

    Dear Experts, One of our application wants the data from the Webi reports. Can we use BI Web service here by publishing it from WEbi. BO version is 4.1. Also is it a REST service .. or SOAP based ?

  • Emoji not working on logitech keyboard

    I had a problem using emoji on my ipad. I have a logitech keyboard. Apple support sugested pressing function and 5 button. On my danish Ipad it was fn button and 3 to get the emoji .

  • Run-Time Error window doesn't have Retry and Ignore options

    Hi, The run-Time Error window usually have 4 bullets at the bottom part.  They all used to be enabled untill recently.  Somehow, I only have the Run Cleanup and Abort immediately bullets enabled.  Why are the Retry and Ignore disabled?  Is there an o