on 12-02-2011 5:45 PM
HI Guys,
I am trying to build an ejb dc.
There are no errors showing up in NWDS but when doing an Development Component -> Build the Build fails with the errors here in the log - how can I make sure the libs are found at compiletime?????
DC Model check:
All used DCs are available locally
validating dependency to build plugin "sap.com/tc/bi/bp/ejbmodule"
validating dependency to public part "default" of DC "sap.com/ejb20"
validating dependency to public part "default" of DC "sap.com/jdbc20"
validating dependency to public part "default" of DC "acdc.de/pinguin/service/dic"
validating dependency to public part "default" of DC "sap.com/configuration"
validating dependency to public part "default" of DC "sap.com/connector"
validating dependency to public part "default" of DC "sap.com/mail"
validating dependency to public part "compilation" of DC "acdc.de/pinguin/ext/lib"
validating dependency to public part "default" of DC "sap.com/jms_provider"
validating dependency to public part "default" of DC "sap.com/jmsconnector"
validating dependency to public part "default" of DC "sap.com/jms"
validating dependency to used DC "apotheker.com/cape/base/external/lib"
validating dependency to used DC "apotheker.com/cape/base/utils"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/ejbmodule
starting build plugin from : D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\
Build Plugin 'EJBModulePlugin', Version 7.00 SP 3 (NW701_03_REL, built on 2008-12-17 16:25:56 CET, CL51263)
development component: pinguin/service/ejb (acdc.de)
software component: MyComponents (demo.sap.com)
location: local
type: J2EE, subtype EJBModule
build variant: default
output location: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default
generation folder: C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25
plugin start time: 2011-12-02 18:28:55 GMT+01:00 (CET)
Java VM: Java HotSpot(TM) Client VM, 1.4.2_12-b03 (Sun Microsystems Inc.)
General options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
Checking path lengths for sources
Path length checks finished in 0.016 seconds
Preparing data context..
No public part descriptor found for component "ejb20" (vendor "sap.com"), public part "default", using legacy mode.
No public part descriptor found for component "jms_provider" (vendor "sap.com"), public part "default", using legacy mode.
No public part descriptor found for component "jmsconnector" (vendor "sap.com"), public part "default", using legacy mode.
No public part descriptor found for component "jms" (vendor "sap.com"), public part "default", using legacy mode.
No 'default' JDK defined, will use running VM.
Data context preparation finished in 0.094 seconds
Creating Ant build file..
Creating output file: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml
Using Java class: com.sap.tc.buildplugin.BuildEJBModule
Build file creation finished in 0.046 seconds
Starting Ant..
Using build file: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml
Using build target: build
Using Ant version: 1.6.2
compile:
[echo] Start SQLJ Pre-processing
[sqlj] Using catalog:xml/file/C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\dic\_comp\gen\default\public\default\lib\java\acdc.de~pinguin~service~dic~default.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\ejb20\_comp\gen\default\public\default\lib\java\ejb20.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jms_provider\_comp\gen\default\public\default\lib\java\sapjms.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jdbc20\_comp\gen\default\public\default\lib\java\jdbc.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jms\_comp\gen\default\public\default\lib\java\jms.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\ext\lib\_comp\gen\default\public\compilation\lib\java\acdc.de~pinguin~ext~lib~compilation.jar;C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\ext\lib\_comp\gen\default\public\compilation\lib\java\paygate-1.0.2.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jmsconnector\_comp\gen\default\public\default\lib\java\jmsconnector.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\servlet\_comp\gen\default\public\default\lib\java\servlet.jar
[sqlj] translation finished
[sqlj] 0 warnings
[sqlj] 0 errors
[timer] SQLJ Pre-processing finished in 0.828 seconds
[echo] Starting Java compiler
[echo] Settings:
[echo] debug: on
[echo] optimize: off
[echo] deprecation: default
[echo] verbose: default
[echo] encoding: UTF8
[echo] source: default
[echo] target: default
[echo] source paths:
[echo] C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
[echo] C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\gen_sqlj
[echo] class path:
[echo] C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\dic\_comp\gen\default\compilation\lib\java\paygate-1.0.2.jar
[echo] D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jmsconnector\_comp\gen\default\public\default\lib\java\jmsconnector.jar
[echo] D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\servlet\_comp\gen\default\public\default\lib\java\servlet.jar
[echo] output dir: C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\classes
[javac] Compiling 163 source files to C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\classes
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:21: package com.hp.cape.persistence.exception does not exist
[javac] ERROR: import com.hp.cape.persistence.exception.FinderException;
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:22: package com.hp.cape.persistence.exception does not exist
[javac] ERROR: import com.hp.cape.persistence.exception.PersistenceException;
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:23: package com.hp.cape.persistence.exception does not exist
[javac] ERROR: import com.hp.cape.persistence.exception.RemoteServerException;
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:24: package com.hp.cape.persistence.filter does not exist
[javac] ERROR: import com.hp.cape.persistence.filter.FilterCondition;
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:96: cannot resolve symbol
[javac] ERROR: symbol : class RemoteServerException
[javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001CustomFacade
[javac] ERROR: protected Object getHomeStub() throws RemoteServerException
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
[javac] ERROR: symbol : class RemoteServerException
[javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
[javac] ERROR: protected acdcPinguin001SB getacdcPinguin001SB() throws RemoteServerException
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001Facade.java:192: cannot resolve symbol
[javac] ERROR: symbol : class FinderException
[javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
[javac] ERROR: public acdcPinguin001DTO findByPrimaryKey(BigDecimal id) throws FinderException, PersistenceException
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001Facade.java:192: cannot resolve symbol
[javac] ERROR: symbol : class PersistenceException
[javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
[javac] ERROR: public acdcPinguin001DTO findByPrimaryKey(BigDecimal id) throws FinderException, PersistenceException
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModulePersistenceException
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin002Facade.java:389: cannot resolve symbol
[javac] ERROR: symbol : class PersistenceException
[javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin002Facade
[javac] ERROR: public acdcPinguin002DTO update(acdcPinguin002DTO data) throws PersistenceException
[javac] ERROR: ^
[javac] WARNING: Note: Some input files use or override a deprecated API.
[javac] WARNING: Note: Recompile with -deprecation for details.
[javac] 100 errors
Error: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml:158: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Ant runtime 1.265 seconds
Ant build finished with ERRORS
Compile failed; see the compiler error output for details.
Error: Build stopped due to an error: Compile failed; see the compiler error output for details.
Build plugin finished at 2011-12-02 18:28:56 GMT+01:00 (CET)
Total build plugin runtime: 1.562 seconds
Build finished with ERROR
Check if you have specified correct dependencies.
Open project DC-> DC Metadata -> DC Definition -> Used DCs ->
ejb20(default) - Build time dependency
Right click on DC root and select properties..
Now verify "Java Build path"
Select Libraries tab
ejb20.jar must be there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh Agarwal,
I have double checked this. removed and added the relevant libraries but no luck.
the build log says that it can not find
[javac] ERROR: C:\Documents and Settings\admitsepedollhofer1\.dtc\LocalDevelopment\DCs\acdc\some\service\ejb\_comp\ejbModule\acdc\some\facade\AcDcSome001CustomFacade.java:21: package com.ap.cape.persistence.exception does not exist
[javac] ERROR: import com.ap.cape.persistence.exception.FinderException;
Build Path looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
<classpathentry kind="src" path="ejbModule"/>
<classpathentry kind="src" path="gen_sqlj"/>
<classpathentry kind="src" path="/LocalDevelopmentcapebaseutilsap.com"/>
<classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/ejb20.jar"/>
<classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/utils/_comp/gen/default/public/compilation/lib/java/ap.comcapebaseutilscompilation.jar"/>
<classpathentry kind="var" path="SAP_LOGGING_LIB_HOME/lib/logging.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/com.sap.engine.client.lib/_comp/gen/default/public/default/lib/java/sapj2eeclient.jar"/>
<classpathentry kind="src" path="/DV2_some_Dsomeservicedicacdc.de"/>
<classpathentry kind="var" path="SAP_EXCEPTION_LIB_HOME/lib/exception.jar"/>
<classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/paygate-1.0.2.jar"/>
<classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/commonsNet.jar"/>
<classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/jakarta-oro-2.0.8.jar"/>
<classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/jms.jar"/>
<classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/mail.jar"/>
<classpathentry kind="var" path="SQLJ_RUNTIME"/>
<classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/CapeJ2eePersistence.jar"/>
<classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/CapeUtilities.jar"/>
<classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/Cape.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
How can I make sure that the libraries are included in the build process?
Okay I got rid of the problem by creating an new External DC and adding the jar libraries there.
This is how it is done.
http://help.sap.com/saphelp_nw70/helpdata/en/5a/2e2f4234135433e10000000a155106/frameset.htm
For some reasons the original DCs have been empty after creating them as a project.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.