There is always an interesting API that is required and need to import an external JAR file.
Steps.
1. Add the jar file to the enterprise project WC/lib.
2. Make an entry for JAR file in the Stores.war\META-INF\MANIFEST.MF (the file has specific formatting with a space before and after each line and also blank line at the end.
3. Add the jar file to the WebSphereCommerceServerExtensionsData classpath. Mak sure the exported flag is true.
<classpathentry exported="true" kind="lib" path="/WC/lib/custom/recaptcha4j.jar"/>
4. Build
5. Restart
JAR basic commands:
Unzip: Jar -xvf
Zip: java -jar
Troubleshoot:
When you start the server, make sure the jar file is added in the system out logs:
[6/14/11 15:39:10:087 PDT] 00000019 WebApp A SRVE0180I: [InitializationServlet] [/InitializationServlet] [Servlet.LOG]: InitServlet: ServletContext attributes:
C:\WCToolkitEE60_Raj\workspace\WC\lib\custom\recaptcha4j.jar
usefull...
ReplyDeleteCan you provide similar instructions for a production/staging environment?
ReplyDeleteThanks a lot..you have saved my day
ReplyDeleteThanks Raj.Its useful :-)
ReplyDeleteVery useful raj
ReplyDeleteI have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteJava Training in Chennai Core Java Training in Chennai Core Java Training in Chennai
Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai
It was difficult for me to open jar file https://wikiext.com/jar and I did it. Thanks to the website, I found a solution very quickly. Now I will understand the next time how to do it.
ReplyDeleteطلاق توافقی
ReplyDeleteهزینه طلاق توافقی
مدارک طلاق توافقی
وکیل خوب در تهران
بهترین وکیل تهران
شماره تلفن وکیل پایه یک دادگستری
وکیل خانم
تابلوسازی
تابلو سازی پاسارگاد
نمای کرتین وال
تلویزیون شهری
قیمت تلویزیون شهری
انواع دیگر تابلوسازی: تابلو مغازه ، تابلو چلنیوم و لایت باکس و تابلو استیل و تابلو کامپوزیت
ReplyDeleteGreat Article
ReplyDeleteProject Centers in Chennai
Final Year Project Domains for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
ReplyDeleteتابلو مغازه
تابلو چلنیوم
تابلو استیل
تابلوسازی
تابلو کامپوزیت