on 10-17-2005 9:49 PM
Hello all,
I have done a little JCO program that is connecting to an ABAP function module and getting information from existing business logic in R3.
I am working with a track development model (refer to sap help).The track consist of one software component that depends of
SAP J2EE ENGINE <Release> (SAP J2EE ENGINE 6.40)
SAP BUILD TOOL <Release> (JDI BUILD TOOL 6.40)
SAP JAVA TECH SERVICES <Release> (SAP JAVA TECH SERVICES 6.40)
I have done a container (EAR file) that contains a web apps (WAR file). This war file is having a small servlet that tests the java code to access the ABAP stack. In order for it to work, I declared the following component usage (in my web apps)
Name com.sap.aii.proxy.framework
Name com.sap.aii.util.misc
Name com.sap.mdi
Name com.sap.mw.jco
Name jdbc20
Name ejb20
Name jms
Name servlet
Name tc/logging
I have tested my application in netweaver developer studio and everything work fine except that I have to modify the classpath because apparently JRFC is only working on the WAS server.
When I tried to test it on my local WAS installation in a JSP page (calling same class files as in Netweaver), I am getting the following error message:
java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO The ID of this error is
Exception id: [44455354420000470000003D00000D0000040359079DF5CF].
My system fingerprint is available at the end of this message.
The default trace file only shows me the same information but provide the same stack trace.
When looking in the SLD, SAP JAVA TECH SERVICES 6.40 should contain all the required libraries.
Can someone help? Again this is in the concept of track development.
Antoine
=============================================================================
System Fingerprint
JVM and Server Version
Servlet Engine SAP J2EE Engine/6.40 PatchLevel 95420.313 2 3
Java VM Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.4.2_08-b03
Java RE Sun Microsystems Inc. 1.4.2_08
Platform Windows XP x86 5.1
Boot jars
rt.jar 26508344 Fri Mar 04 19:08:15 CET 2005
sunrsasign.jar 89343 Fri Apr 15 14:52:23 CEST 2005
jsse.jar 901949 Fri Mar 04 19:08:20 CET 2005
jce.jar 69571 Fri Mar 04 17:42:22 CET 2005
charsets.jar 5896381 Fri Mar 04 19:09:40 CET 2005
Only valid on a sun jvm
System jars
jstartup.jar 27532 Wed Jul 13 01:27:55 CEST 2005
boot.jar 80993 Thu Oct 06 13:40:01 CEST 2005
jaas.jar 104195 Thu Oct 06 13:40:01 CEST 2005
bytecode.jar 489758 Thu Oct 06 13:40:53 CEST 2005
Extra system jars
dnsns.jar 8896 Fri Mar 04 18:24:06 CET 2005
ldapsec.jar 53248 Fri Mar 04 18:29:08 CET 2005
localedata.jar 769342 Fri Mar 04 19:09:51 CET 2005
sunjce_provider.jar 111430 Fri Mar 04 17:42:22 CET 2005
Webapp jars
axis-ant.jar 385010 Mon Oct 17 18:00:02 CEST 2005
axis.jar 1235721 Mon Oct 17 18:00:03 CEST 2005
commons-discovery.jar 71442 Mon Oct 17 18:00:03 CEST 2005
commons-logging.jar 31605 Mon Oct 17 18:00:03 CEST 2005
dom.jar 42153 Mon Oct 17 18:00:01 CEST 2005
jakarta-oro.jar 78909 Mon Oct 17 18:00:01 CEST 2005
jax-qname.jar 3361 Mon Oct 17 18:00:01 CEST 2005
jaxb-api.jar 77761 Mon Oct 17 18:00:01 CEST 2005
jaxb-impl.jar 310058 Mon Oct 17 18:00:01 CEST 2005
jaxb-libs.jar 1672391 Mon Oct 17 18:00:01 CEST 2005
jaxb-xjc.jar 3290054 Mon Oct 17 18:00:01 CEST 2005
jaxp-api.jar 46883 Mon Oct 17 18:00:01 CEST 2005
jaxrpc.jar 35759 Mon Oct 17 18:00:03 CEST 2005
log4j-1.2.8.jar 352668 Mon Oct 17 18:00:03 CEST 2005
namespace.jar 1911 Mon Oct 17 18:00:01 CEST 2005
relaxngDatatype.jar 23497 Mon Oct 17 18:00:01 CEST 2005
RUC.jar 100833 Mon Oct 17 18:00:01 CEST 2005
saaj.jar 18501 Mon Oct 17 18:00:03 CEST 2005
sax.jar 54121 Mon Oct 17 18:00:01 CEST 2005
wsdl4j.jar 113853 Mon Oct 17 18:00:03 CEST 2005
xalan.jar 7249748 Mon Oct 17 18:00:02 CEST 2005
xercesImpl.jar 3070817 Mon Oct 17 18:00:02 CEST 2005
xsdlib.jar 442983 Mon Oct 17 18:00:02 CEST 2005
Hi Antoine,
You need to make reference of all these jars in your Enterprise application project (EAR project) under application-j2ee-engine.xml. This is required for the reference at runtime at server side.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Thanks.
How do I make reference of all these jars in your Enterprise application project (EAR project) under application-j2ee-engine.xml.
If I declare all of them as dependencies in the EAR file and in the WAR file (they already exist there). I am getting circular dependencies and build is failing.
If I add the reference to those libs to the application-j2ee-engine.xml directly, I am losing some of the benefits of the track development model because I have to know this fine grained details.
Do you know if that's documented somewhere in the SAP help.
Thanks
Antoine
Hi Antoine,
I guess you have added these jars in EJB project as external jars in project properties-> java buildpath.
Uncheck in order and export tab if thery are checked.
Now, goto your application project(EAR) there double click on Application-j2ee-engine.xml file. There click on add button, new popup comes there select "select libray/interface/services". It will show all libraries. Here, select your required libraries and choose ok.
These references are required at runtime, whereas references made in EJB project are used at design time.
Regards,
Bhavik
It works now.
I had to add the reference in the application-j2ee-engine.xml file and that's all.
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.