Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Liferay Salesforce.com integration Nicolas Raoul November 28, 2010 10:43 PM
RE: Liferay Salesforce.com integration Amos Fong November 30, 2010 8:48 PM
RE: Liferay Salesforce.com integration Brian Ko December 14, 2011 3:29 PM
RE: Liferay Salesforce.com integration Hitoshi Ozawa December 14, 2011 3:49 PM
RE: Liferay Salesforce.com integration Brian Ko December 15, 2011 12:57 PM
RE: Liferay Salesforce.com integration Rick Osborn May 2, 2012 8:43 AM
RE: Liferay Salesforce.com integration Brian Ko May 2, 2012 9:41 AM
RE: Liferay Salesforce.com integration Rick Osborn May 2, 2012 9:50 AM
RE: Liferay Salesforce.com integration Xav NYC January 28, 2013 8:19 AM
RE: Liferay Salesforce.com integration K P April 10, 2013 6:25 AM
RE: Liferay Salesforce.com integration Jaynil A Bagdai November 21, 2013 4:37 AM
RE: Liferay Salesforce.com integration Kathryn Brewer June 12, 2014 2:05 PM
Re: [Liferay Forums][General] RE: Liferay Salesforce.com integration Xav NYC October 31, 2015 10:27 PM
RE: Liferay Salesforce.com integration Naresh Reddy Kallamadi May 4, 2017 2:43 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 4, 2017 3:50 PM
RE: Liferay Salesforce.com integration Hùng Trần August 5, 2017 9:08 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 5, 2017 1:39 PM
RE: Liferay Salesforce.com integration Hùng Trần August 5, 2017 7:05 PM
RE: Liferay Salesforce.com integration Hùng Trần August 5, 2017 11:20 PM
RE: Liferay Salesforce.com integration Antonio Musarra August 6, 2017 2:19 AM
RE: Liferay Salesforce.com integration Hùng Trần August 6, 2017 2:50 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 6, 2017 3:09 AM
RE: Liferay Salesforce.com integration Hùng Trần August 6, 2017 3:15 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 9, 2017 4:26 PM
RE: Liferay Salesforce.com integration Hùng Trần August 10, 2017 2:36 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 10, 2017 11:08 AM
RE: Liferay Salesforce.com integration Hùng Trần August 11, 2017 10:05 AM
RE: Liferay Salesforce.com integration Hùng Trần August 12, 2017 1:16 AM
RE: Liferay Salesforce.com integration Antonio Musarra August 6, 2017 2:12 AM
Nicolas Raoul
Liferay Salesforce.com integration
November 28, 2010 10:43 PM
Answer

Nicolas Raoul

Rank: New Member

Posts: 2

Join Date: July 1, 2010

Recent Posts

Hello all,

Is there any way to integrate Salesforce.com into a Liferay portal without writing code?

If not, a solution would be to create a new portlet that calls Salesforce.com's Web Services, but I am wondering if anything already exists that I could just reuse.

I am not asking for perfect integration of everything, but if you know of a portlet that shows some data or allows any Salesforce.com action that would be great already :-)

Thank you!
Nicolas Raoul
Amos Fong
RE: Liferay Salesforce.com integration
November 30, 2010 8:48 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1953

Join Date: October 7, 2008

Recent Posts

Hi Nicolas,

I'm not aware of any SalesForce integration portlets. If you write one, it would great if you share it with the community! I would be very interested in seeing how you do it =).
Brian Ko
RE: Liferay Salesforce.com integration
December 14, 2011 3:29 PM
Answer

Brian Ko

Rank: Junior Member

Posts: 70

Join Date: February 11, 2010

Recent Posts

Hi Nicolas,

Have you finished the project? Then, I wonder how you handled user authentication.

Brian
Hitoshi Ozawa
RE: Liferay Salesforce.com integration
December 14, 2011 3:49 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

I haven't tested this out, but there's a salesforce portlet in the svn incubation trunk:

http://svn.liferay.com/repos/public/plugins/incubation/portlets/salesforce-portlet/
Brian Ko
RE: Liferay Salesforce.com integration
December 15, 2011 12:57 PM
Answer

Brian Ko

Rank: Junior Member

Posts: 70

Join Date: February 11, 2010

Recent Posts

Thank you Hitoshi,

Even if the portlet does not work (or does not have useful piece), it shows how to use salesforce API with user security token.

Brian
Rick Osborn
RE: Liferay Salesforce.com integration
May 2, 2012 8:43 AM
Answer

Rick Osborn

Rank: New Member

Posts: 14

Join Date: May 24, 2011

Recent Posts

Nicolas Raoul:

Is there any way to integrate Salesforce.com into a Liferay portal without writing code?

If not, a solution would be to create a new portlet that calls Salesforce.com's Web Services, but I am wondering if anything already exists that I could just reuse.

I am not asking for perfect integration of everything, but if you know of a portlet that shows some data or allows any Salesforce.com action that would be great already :-)


Just wondering if anyone has worked with the new 6.1 EE Salesforce port let. I logged into it, and am now unsure
what to do with it. Don't see any docs anywhere.
Brian Ko
RE: Liferay Salesforce.com integration
May 2, 2012 9:41 AM
Answer

Brian Ko

Rank: Junior Member

Posts: 70

Join Date: February 11, 2010

Recent Posts

I heard that sales force portlet is more mature and out of incubator. You can download it from community plugin site?

Brian
Rick Osborn
RE: Liferay Salesforce.com integration
May 2, 2012 9:50 AM
Answer

Rick Osborn

Rank: New Member

Posts: 14

Join Date: May 24, 2011

Recent Posts

Brian Ko:
I heard that sales force portlet is more mature and out of incubator. You can download it from community plugin site?

Brian


Liferay 6.1 EE has a salesforce port let for download. I don't see any configuration instructions though.
I've authenticated it against my salesforce account and don't see anything else.
Xav NYC
RE: Liferay Salesforce.com integration
January 28, 2013 8:19 AM
Answer

Xav NYC

Rank: New Member

Posts: 23

Join Date: September 27, 2012

Recent Posts

Hi,
I'd like to know if the salesforce portlet is now available. I checked the Liferay market place and can't find anything.
Any documentation about what it does would also be useful.
Thanks.
X.
K P
RE: Liferay Salesforce.com integration
April 10, 2013 6:25 AM
Answer

K P

Rank: New Member

Posts: 3

Join Date: February 23, 2012

Recent Posts

SalesForce can easily do a hand shake with any external applications( for data push and pull...using REST API & OAuth will be easy...
Jaynil A Bagdai
RE: Liferay Salesforce.com integration
November 21, 2013 4:37 AM
Answer

Jaynil A Bagdai

Rank: Regular Member

Posts: 120

Join Date: March 3, 2012

Recent Posts

Hi there,

I know that this post is too old.
Are you still looking for a portlet with Salesforce Integration in Liferay?
If yes I can develop one and can share to community.

Let me know.
Kathryn Brewer
RE: Liferay Salesforce.com integration
June 12, 2014 2:05 PM
Answer

Kathryn Brewer

Rank: New Member

Posts: 2

Join Date: January 9, 2014

Recent Posts

We are looking for a Salesforce.com/Liferay portlet. Our client has a contact page with various contact form options and each captures data that needs to be written back to various SalesForce databases depending upon the product type.

What do you need to quote and how long would it take to develop this?

Kathryn Brewer
Xav NYC
Re: [Liferay Forums][General] RE: Liferay Salesforce.com integration
October 31, 2015 10:27 PM
Answer

Xav NYC

Rank: New Member

Posts: 23

Join Date: September 27, 2012

Recent Posts

Hi,
Thanks for your message. I no longer work on that project so I have no immediate needs for it. However if you develop it I would be happy to help test it.
Regards.
X.
Sent via BlackBerry from T-Mobile

-----Original Message-----
From: "Jaynil A Bagdai from liferay.com" <forums@liferay.com>
Date: Thu, 21 Nov 2013 12:37:10
To: forums@liferay.com<forums@liferay.com>
Reply-To: "forums@liferay.com" <forums@liferay.com>
Subject: [Liferay Forums] RE: Liferay Salesforce.com integration



Hi there,

I know that this post is too old.
Are you still looking for a portlet with Salesforce Integration in Liferay?
If yes I can develop one and can share to community.

Let me know.

To view the thread, follow the link below:
https://www.liferay.com/community/forums/-/message_boards/view_message/31738451
--
Liferay.com <https://www.liferay.com>
Naresh Reddy Kallamadi
RE: Liferay Salesforce.com integration
May 4, 2017 2:43 AM
Answer

Naresh Reddy Kallamadi

Rank: Regular Member

Posts: 103

Join Date: July 8, 2014

Recent Posts

Hi Nicolas Raoul,

Did you find any solution to integrate liferay with salesforce. I am working to load data from salesforce to liferay.


Thanks,
Naresh.
Antonio Musarra
RE: Liferay Salesforce.com integration
August 4, 2017 3:50 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi.
A few weeks ago I released the "OSGi" bundle of the SOAP connector for Salesforce.com and a sample application of SOAP APIs via the Gogo Shell command on Liferay 7:
Salesforce SOAP API Client OSGi Bundle
Liferay 7 Gogo Shell Salesforce Client
Liferay 7: Demo Salesforce Gogo Shell Command

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 5, 2017 9:08 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio Musarra,

I am working with Liferay and Salesforce right now? could you please give some suggestion?

Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 5, 2017 1:39 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
The only integration experience between Liferay 7 and Salesforce is what I mentioned earlier, specifically designed to write a series of articles for my blog and to help my colleague who needed to integrate Liferay 7 and Salesforce, so that a new Liferay user becomes registered as lead Salesforce.

API usage is very simple and well-documented. In my case I preferred to use APIs via SOAP. For more info read Salesforce APIs – What They Are & When to Use Them

I do not know if only this can help you.

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 5, 2017 7:05 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your suggestion, I will follow your post to implement integrated salesforce to liferay.

It is very helpful for me, thank you very much!

Best regards,
Hung Tran
Hùng Trần
RE: Liferay Salesforce.com integration
August 5, 2017 11:20 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

I have a question, can I use Enterprise WSDL SOAP API WSDLs, if yes, how can I do that?

Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 6, 2017 2:12 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Dear Sandeep.
Try to see the project Salesforce Liferay Gogo Shell Command Client. In this sample project, I have developed a series of Gogo Shell commands to interact with Salesforce. Conceptually it does not change anything compared to what you want to get.

On your MVC portlet module you need add the dependency of the salesforce-client-soap bundle. For Maven:

1<dependency>
2    <groupId>it.dontesta.labs.liferay.salesforce.client.soap</groupId>
3    <artifactId>salesforce-client-soap</artifactId>
4    <version>1.0.1</version>
5</dependency>


for Gradle:

1compile group:'it.dontesta.labs.liferay.salesforce.client.soap', name:'salesforce-client-soap', version:'1.0.1'


After adding this dependency you can start writing your code using for Salesforce API. However, remember to install the Salesforce OSGi Client SOAP bundle on your Liferay instance. You can follow the instructions given here How to install in Liferay 7 CE/DXP

At this point you should have your integration with Salesforce :-)

I hope I was clear.

Regards,
Antonio.
Antonio Musarra
RE: Liferay Salesforce.com integration
August 6, 2017 2:19 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
Yes, of course. When generating your Stubs using the WSC tool you must input the WSDL Enterprise.

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 6, 2017 2:50 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you so much for your reply.

Actually I am a beginner with liferay and salesforce, so can you please tell me more detail about what I need to do?

Thank you in advanced!
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 6, 2017 3:09 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
You can try this Force.com Web Service Connector (WSC).
Sorry, but now I have to go, I'm in vacation.
As soon as possible I will try to make a post on my blog.

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 6, 2017 3:15 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antinio,

Thank you very much for your help!

I will follow as you suggested.
Best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 6, 2017 3:46 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
I recently released version 1.0.2 of Salesforce SOAP client that also includes the Enterprise part.

Try changing the version from 1.0.1 to 1.0.2 and make the build, it should be successful.

Remember to install the new bundle 1.0.2 on your Liferay instance.

Best Regards.
Antonio Musarra
RE: Liferay Salesforce.com integration
August 6, 2017 5:20 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
I've updated the project salesforce-client-gogoshell-command with the new version 1.0.2 of the salesforce-client-soap, which now also includes the enterprise part.

The loginEnterprise and getNewestAccountEnterprise method, using the enterprise feature of the Salesforce SOAP API Connector.

I hope that with this other example you can solve.

Best Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 6, 2017 8:04 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you so much for your valuable time for spending on my issues.

As you mentioned before, I changed the version from 1.0.1 to 1.0.2, and it solved some error lines in my portlet, but remaining some line that use com.sforce.soap.enterprise.sobject.*. Could you please give me any ideal. I do not know what is this because I receive this jar library from another partner, so I think I need to import jar library locally so that I can use in my application.

I tried with guide from: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies for all option but my portlet cannot detect imported libraries.

Thank you in advanced!
Best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 7, 2017 12:53 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
Can you share the project?
So maybe I can help you better.

Best regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 7, 2017 9:58 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your help!

Actually this is a private library from our partner, so I cannot share this, but it is also a Enterprise WSDL SOAP jar library, and add some more functions, I just want to add it into my project and use it for my portlet, but I could not.

I followed this guide: https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies many times but still not success to add it into my project as I mentioned above.

I think there was some lack steps in above guide, can you please suggest me for lacked steps for any option in above guide?

My skype account is hungtran211190, If you can, please contact me directly for more convenience.

Thank you and best regards,
Hung Tran
Hùng Trần
RE: Liferay Salesforce.com integration
August 9, 2017 1:42 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your helps!

Finally I think I have to implement an OSGI bundle by my self to meet our requirement, maybe it is same as your "Salesforce SOAP API Client OSGi Bundle", but some different content.

I refered to write the first OSGI bundle: http://proliferay.com/writing-your-first-osgi-service-in-liferay-7/

But the difficult one is Enterprise WSDL is a jar file that was generated from xml file and salesforce library, so I dont know how to get it's content and pack it into my OSGI service bundle, can you please give some suggestions about this solution and the way I am going to do?

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 9, 2017 2:53 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
If you want include the jar into OSGi bundles then add compileInclude in build.gradle and you specify your jar.

1dependencies {
2   ...
3   compileInclude files('lib/ucp-12.2.0.1.0.jar')
4   ...
5}


This directive includes the jar inside your bundle and also manifests MANIFEST correctly. You should, if necessary, declare additional exports to the bdn. You can see the images below that show the result obtained.

Bundle OSGi with other jar included by compileInclude of Gradle

Add Jar in lib Liferay Project directory

If you remember well, in the answers to Stackoverflow Liferay 7 add salesforce jar library error I mentioned the compileInclude directive

I think this is what you would like to get.

Best Regards,
Antonio
Hùng Trần
RE: Liferay Salesforce.com integration
August 9, 2017 8:03 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your answers!

I am sorry that I read your answer in Stackoverflow but I am a beginner on Liferay, Gradle, bnd... So I did not get meaning of that answer, but now it is ok.

I applied your suggestion and I build success project module, but when I deploy it into tomcat server then the error below occur:
ERROR [http-nio-8080-exec-3][JSONWebServiceServiceAction:97] Access denied to com.liferay.portal.workflow.kaleo.service.KaleoDefinitionService#getKaleoDefinitions

So my portlet is show as a error one, and it is not displayed on the add menu. Is it relate to my external classes? I searched by google by this error message but no suitable result for these key word. Do you have any ideal?

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 9, 2017 12:40 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
You can try to access to Gogo Shell via
1telnet localhost 11311
and type the
1diag
command, in this way you could see if any errors. You can see also the state of the your bundle typing the
1lb
command.

Best Regards,
Antonio.
Antonio Musarra
RE: Liferay Salesforce.com integration
August 9, 2017 4:26 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
If you want now you can also build Salesforce SOAP API OSGi bundle with its own Web Services Enterprise WSDL.

Best Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 10, 2017 2:36 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you so much for the guide how to build osgi bundle!

I am sorry to reply you late because I lost time to try with some option to solve new issue but I cannot.

I have solved this problem by add "lib" folder under project, copy jar library into it, then add below lines into build.gradle. but another issue occur when I use gogo shell command line "diag":
"Unresolved requirement: Import-Package: com.google.appengine.api.urlfetch".

I added below line to build.gradle:
compileInclude group: 'com.google.appengine', name: 'appengine-api-1.0-sdk', version: '1.9.54'
new issue occur:
"Unresolved requirement: Import-Package: com.google.api".

Then I added:
compileInclude group: 'com.google.api-client', name: 'google-api-client', version: '1.22.0'
new issue occur again.

I m trying to add required libraries, but It take a long time, and I am not sure that it can be fixed by that solution. Do you have any ideal?

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 10, 2017 11:08 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hello Hung.
If this package not using then add exclusion from Import-Package directive on bnd (you can see example at https://github.com/amusarra/salesforce-client-gogoshell-command/blob/master/bnd.bnd)

Best Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 11, 2017 10:05 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Many thanks for your suggestion!

I added below line to bnd.bnd:
Import-Package: \
!com.google.api,\

Maybe the issue with google api gone, but I have new issue with liferay its self:
ERROR [Framework Event Dispatcher: Equinox Container: f06c5e9e-3e7e-0017-1398-d87296d3c0f7][SalesforceAPIAccess:97] FrameworkEvent ERROR
org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()
...

Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/portlet/bridges/mvc/MVCPortlet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

Then i add below line to bnd.bnd (some lib I use in my portlet):
Import-Package: \
!com.google.api,\*

Then again new error from another package of com.google.common occur on error message that cannot import that package.

I am trying to exclude required packed as you suggested but I think it cannot solve my problem, do you have any ideal?
currently it is:
Import-Package: \
!com.google.*,\
!com.sforce.ws.shade.org.apache.commons.collections.*,\
!org.apache.*,\
!org.joda.*,\
*

Looking forward to hear from you.
Thank you in advanced!
Best regards,
Hung Tran
Hùng Trần
RE: Liferay Salesforce.com integration
August 12, 2017 1:16 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your helps!

Finally I solved my issue by excluded some required libraries that osgi show error when I deploy portlet.

But I think there was some risk with this solution, can you please give me any advice?

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 12, 2017 12:40 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
Check if all Java environment it's ok (JAVA_HOME, PATH).

In CI env and my local env the build it's correct. You can check at https://travis-ci.org/amusarra/salesforce-client-soap

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 12, 2017 11:08 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much!

But I tried to generate the stubs successfully by java compiler below:
java -classpath force-wsc-40.1.1-uber.jar;js.jar;ST-4.0.8.jar;tools.jar com.sforce.ws.tools.wsdlc Enterprise.wsdl enterprise_stub.jar

while all of above libraries are in same folder.

But by maven it is failed as you suggested, I am finding a method to add classpath parameter to maven command to generate stubs, but still not success.

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 13, 2017 1:27 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
Which operating system you use? Which Maven version you use? Which maven command you use?

Where do you run maven? From IDE or command line?

Try to run maven command with -X option and you report the output.

I'm pretty sure the problem is related to the configuration of your local environment.

Regards,
Antonio.
Hùng Trần
RE: Liferay Salesforce.com integration
August 13, 2017 5:10 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank for your reply!

I use windows 8.1, apache-maven-3.5.0, and the below commands is what I tried:
I set JAVA_HOME is C:\Program Files\Java\jdk1.8.0_121, M2_HOME is C:\apache-maven-3.5.0
Path: C:\Program Files\Java\jdk1.8.0_121;C:\Program Files\Git\cmd;%M2_HOME%\bin;

I ran command line from GIT BASH:

mvn -Dsalesforce.wsdl.enterprise.path=C:/SOAP/code/Enterprise_WSDL.wsdl clean package
also
mvn -Dsalesforce.wsdl.enterprise.path=C:\SOAP\code\Enterprise_WSDL.wsdl clean package

The error show:
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
Error: Unable to find compiler. Make sure that tools.jar is in your classpath: java.lang.ClassNotFoundException: com.sun.tools.javac.Main

Out put of: mvn -Xsalesforce.wsdl.enterprise.path=C:\SOAP\code\Enterprise_WSDL.wsdl clean package

No plugin found for prefix 'salesforce.wsdl.enterprise.path=C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Tran\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'salesforce.wsdl.enterprise.path=C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Tran\.m2\repository), central (https://repo.maven.apache.org/maven2)]

Btw, temporary I solved this issue by add following lines to bnd.bnd, I detected that they are not existed libraries from google, but I dont know how and why the Unresolved requirement: Import-Package error occur

Import-Package: \
!com.google.appengine.repackaged.com.google.common.annotations,\
!com.google.appengine.repackaged.com.google.common.logging,\
!com.google.appengine.repackaged.com.google.common.html,\
!com.google.appengine.repackaged.com.google.common.math,\
!com.google.appengine.repackaged.com.google.common.parameterset,\
!com.google.appengine.repackaged.com.google.common.*,\*

I exclude them and my program run normally, can you please tell me why it is occurred? And if I use maven to generate SOAP client successfully, then do I need to use the exclude commands?

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 13, 2017 4:28 PM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
I've been able to replicate your issue on Windows 8.1. To fix this problem you need to make the correct PATH environment variable export for java, you have missing a part of the path, the correct path C:\Program Files\Java\jdk1.8.0_121\bin. The java path must precede all the others.

1$ export PATH=/C/Program\ Files/Java/jdk1.8.0_121/bin:$PATH


Attached is the output of the successful build maven on windows. You also find the screenshot of the error that I was able to replicate the cause.

P.S: Do you remember to vote for my response to Stackoverflow?

Best Regards,
Antonio.
Attachment

Attachments: ErroreMavenBuild.png (229.4k), output_maven_build.txt (6.2k)
Hùng Trần
RE: Liferay Salesforce.com integration
August 13, 2017 7:35 PM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your answer!

I did as you suggested (correct java path, and put it at first), but nothing change, I ran with -X option then I saw that in output:

Maven home: C:\SWSetup\apache-maven-3.5.0
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_92\jre
Default locale: ja_JP, platform encoding: MS932
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

I dont know why is it jre, I am finding away to fix it but still cannot.

Btw can you please explain to me about OSGI issue, or how can I investigate it, I really want to understand but I dont know how to.

Looking forward to hear from you.
Thank you and best regards,
Hung Tran
Attachment

Attachment

Attachments: -D-Option.png (81.9k), -X-Option.png (91.8k)
Antonio Musarra
RE: Liferay Salesforce.com integration
August 14, 2017 1:03 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung.
It seems strange that even you will not be able to make a successful build. Attached is the build maven output with the debug option and the WSDL file specification. Also the environment of my local environment.

The command maven:

1mvn -X -Dsalesforce.wsdl.enterprise.path=/C/Salesforce/enterprise_antonio_musarra_blog.wsdl  clean package


The important line to monitoring:

1[DEBUG] Executing command line: [C:\Program Files\Java\jdk1.8.0_144\bin\java.exe, -DcompileTarget=1.8, -jar, C:\Users\Antonio\salesforce-client-soap/libs/force-wsc-40.1.1-uber.jar, C:/Salesforce/enterprise_antonio_musarra_blog.wsdl, C:\Users\Antonio\salesforce-client-soap/libs/enterprise-1.0.3-SNAPSHOT.jar]
2[WSC][wsdlc.main:71]Generating Java files from schema ...


The my PATH env:

1PATH=/C/Program Files/Java/jdk1.8.0_144/bin/:/C/apache-maven-3.5.0/bin/:/c/Users/Antonio/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/Antonio/bin:/c/ProgramData/Oracle/Java/javapath:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/cmd:/usr/bin/vendor_perl:/usr/bin/core_perl
2PS1=\[\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$


Try to make a comparison and you will see that you will be able to solve it.

Best Regards,
Antonio
Attachments: amusarra_win81_env.txt (2.6k), maven_build_debug.txt (2,392.2k)
Hùng Trần
RE: Liferay Salesforce.com integration
August 14, 2017 6:00 AM
Answer

Hùng Trần

Rank: Junior Member

Posts: 43

Join Date: July 20, 2017

Recent Posts

Hello Antonio,

Thank you very much for your suggest!

But I have to deal with OSGI and Google API first, then I will back to this issue, because the priority task.

Thank you very much and hope to receive more support from you for next issue.

Best regards,
Hung Tran
Antonio Musarra
RE: Liferay Salesforce.com integration
August 14, 2017 11:36 AM
Answer

Antonio Musarra

Rank: Junior Member

Posts: 49

Join Date: August 9, 2011

Recent Posts

Hi Hung,
I remember you solved the Google APIs after my suggestion to exclude them, and then you've successfully deployed your portlet.

Now what problem do you have? In the OSGi context I have never used the Google APIs.

Package exclusions are a very common practice in the OSGi environment, especially when using external libraries that are not OSGi bundles.

If you have no experience on OSGi, I recommend reading the OSGi in Action book.

Best Regards,
Antonio.