cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while accesing EJB DC from Web Dynpro DC - Help Needed.

Former Member
0 Kudos

Hello All,

I am trying to acces an EJB from a Web Dynpro, can you please suggest what I could have done wrong I have added all the required jar file, can you please suggest what could be wrong:

Dec 25, 2006 1:56:04 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: john/wd: Build failed for sap.com/john/wd(MyComponents) in variant "default":

The Build terminated with errors

-


Build log -


Build Plugin Version: 1.6.3 (630_REL) from 03 November 2004 12:47:57

Start: 25.12.2006 01:56:03

Temp dir: C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9

prepare:

[mkdir] Created dir: C:\Documents and Settings\john\.dtc\LocalDevelopment\DCs\sap.com\john\wd\_comp\gen\default\deploy

[mkdir] Created dir: C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gwd\packages

gen:

[ddgen]

[ddgen] [Info] Property deployment is true: Deployment information is provided!

[ddgen] [Info] Property sourcepath: C:\Documents and Settings\john\.dtc\LocalDevelopment\DCs\sap.com\john\wd\_comp\src/packages

[ddgen] [Info] Property targetpath: C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9/gdd

[ddgen] [Info] Property archivename: sap.comjohnwd

[ddgen] [Info] Property vendor: sap.com

[ddgen] [Info] Property dcname: john/wd

[ddgen] [Info] Property language: Available languages are automatically determined!

[ddgen] [Info] Property addpaths ...

[ddgen] [Info] SapMetamodelDictionaryContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model

[ddgen] [Info] SapMetamodelWebdynproContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model

[ddgen] [Info] SapMetamodelWebdynproContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java

[ddgen] [Info] SapMetamodelDictionaryContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java

[ddgen] [Info] Destination directory C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gdd does not exist

[ddgen] [Info] Destination directory C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gdd is created

[ddgen] [Info] Initialize generation templates from configuration jar:file:/C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/dict/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml

[ddgen] [Info] Generating dbtables/sdmDeployDd.xml

[ddgen] [Info] Generation finished (0 seconds)

[ddgen]

[wdgen]

[wdgen] [Info] Property deployment is true: Deployment information is provided!

[wdgen] [Info] Property sourcepath: C:\Documents and Settings\john\.dtc\LocalDevelopment\DCs\sap.com\john\wd\_comp\src/packages

[wdgen] [Info] Property targetpath: C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gwd

[wdgen] [Info] Property archivename: sap.comjohnwd

[wdgen] [Info] Property vendor: sap.com

[wdgen] [Info] Property dcname: john/wd

[wdgen] [Info] Property language: Available languages are automatically determined!

[wdgen] [Info] Property addpaths ...

[wdgen] [Info] SapMetamodelDictionaryContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model

[wdgen] [Info] SapMetamodelWebdynproContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model

[wdgen] [Info] SapMetamodelWebdynproContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java

[wdgen] [Info] SapMetamodelDictionaryContent.zip - C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java

[wdgen] [Info] Initialize generation templates from configuration jar:file:/C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/wd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml

[wdgen] [Info] TextView DefaultTextView: UIElement does not have a label

[wdgen] [Info] Generating packages/myCompany/wdp/IPrivateMyAppView.java

[wdgen] [Info] Generating packages/myCompany/MyAppView.java

[wdgen] [Info] Generating packages/myCompany/wdp/InternalMyAppView.java

Warning: searching view element definition for TransparentContainer RootUIElementContainer

Warning: searching view element definition for FlowLayout Layout

Warning: searching view element definition for TextView DefaultTextView

Warning: searching view element definition for FlowData DefaultTextView_layoutdata

[wdgen] [Info] Generating packages/myCompany/wdp/IPublicMyApp.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPrivateMyApp.java

[wdgen] [Info] Generating packages/myCompany/MyApp.java

[wdgen] [Info] Generating packages/myCompany/wdp/InternalMyApp.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPublicMyAppInterfaceCfg.java

[wdgen] [Info] Generating packages/myCompany/wdp/IExternalMyAppInterfaceCfg.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPrivateMyAppInterfaceCfg.java

[wdgen] [Info] Generating packages/myCompany/MyAppInterfaceCfg.java

[wdgen] [Info] Generating packages/myCompany/wdp/InternalMyAppInterfaceCfg.java

[wdgen] [Info] Generating packages/myCompany/MyAppInterfaceCfg.wdcontroller

[wdgen] [Info] Generating packages/myCompany/wdp/IPublicMyAppWinInterfaceView.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPrivateMyAppWinInterfaceView.java

[wdgen] [Info] Generating packages/myCompany/MyAppWinInterfaceView.java

[wdgen] [Info] Generating packages/myCompany/wdp/InternalMyAppWinInterfaceView.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPublicMyAppInterface.java

[wdgen] [Info] Generating packages/myCompany/wdp/IExternalMyAppInterface.java

[wdgen] [Info] Generating packages/myCompany/wdp/IPrivateMyAppInterface.java

[wdgen] [Info] Generating packages/myCompany/MyAppInterface.java

[wdgen] [Info] Generating packages/myCompany/wdp/InternalMyAppInterface.java

[wdgen] [Info] Generating packages/myCompany/MyAppInterface.wdcontroller

[wdgen] [Info] Generating packages/myCompany/wdp/IMessageMyApp.java

[wdgen] [Info] Generating configuration/Components/myCompany.MyApp/MyApp.xml

[wdgen] [Info] Generating packages/myCompany/wdp/ResourceMyApp.properties

[wdgen] [Info] Generating configuration/Applications/myCompany.MyApp/MyApp.xml

[wdgen] [Info] Generating portalapp.xml

[wdgen] [Info] Generating wd.xml

[wdgen] [Info] Generating application.xml

[wdgen] [Info] Generating application-j2ee-engine.xml

[wdgen] [Info] Generating PublicPartFileList.properties

[wdgen] [Info] Generating PublicPartFileList.xml

[wdgen] [Info] Generation finished (0 seconds)

[wdgen]

[mkdir] Created dir: C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\classes

[javac] Compiling 22 source files to C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\classes

C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gwd\packages\myCompany\MyApp.java:121: cannot access javax.ejb.EJBHome

file javax\ejb\EJBHome.class not found

SimpleSession mySessionBean = myBeanHome.create();

^

C:\Documents and Settings\john\.dtc\LocalDevelopment\t\73950E79E943BFC31907C47C958D3CA9\gwd\packages\myCompany\MyApp.java:123: cannot access javax.ejb.EJBObject

file javax\ejb\EJBObject.class not found

String x = mySessionBean.businessMethod();

^

2 errors

Build with ERRORS

file:C:/Documents and Settings/john/.dtc/LocalDevelopment/DCs/sap.com/john/wd/_comp/gen/default/logs/build.xml:58: Compile failed; see the compiler error output for details.

End: 25.12.2006 01:56:04 (Duration: 1 second)

Accepted Solutions (0)

Answers (1)

Answers (1)

sid-desh
Advisor
Advisor
0 Kudos

Hi John,

How have you added the required jar files. For DC projects you cannot use project properties and add the jar files to the build path (In case you have followed this method).

You will have to add the public part (i believe it is ejbclient.jar and is generated automatically when you create an EJB DC) of the EJB DC as used dc.

Regards

Sidharth