I am experimenting with Mule Custom connectors these days. I followed all the steps described at Barn Connector to see a sample working connector. It doesn't download core mule api and its related libraries and modules, so compilation errors are occurred. Can any provide me the solution?
EDIT:
Mule devkit annotations are not resolved:
import org.mule.api.annotations.ConnectionStrategy;
import org.mule.api.annotations.Connector;
import org.mule.api.annotations.Configurable;
import org.mule.api.annotations.Processor;
import org.mule.api.annotations.param.Default;
The above imports are not resolved.
If the build is successful it should be a problem with your IDE, try invalidating the Cache and restart.
I Also recommend you to download the DevKit plugin from help -> install new software in studio.
Cheers
Related
I am trying to deploy this application to the Mule server.
It works on Anypoint Studio without a problem.
When I go to deploy it on the standalone server, it fails and in the logs, I find this error
java.lang.IllegalStateException: Incompatible version of plugin 'APIKit' (org.mule.modules:mule-apikit-module) found. Artifact requires version '1.6.0' but context provides version '1.5.5'
What's weird is that the version of APIKit I used on the app is 1.6.0 which I upgraded from 1.5.5.
The app is using a domain, and the dependencies' versions between the domain and the app are the same.
What can be the solution to this problem?
It looks like the domain is really using the dependency for APIKit 1.5.5. Another reason could be some incompatible version of the REST Validator Extension as mentioned in the documentation. Also if the domain or the application is using a jar library to import common Mule configurations it may be referring to a different version of the APIKit module. You can take a look at the logs to see what versions are being deployed.
I have created custom connector project using below command, "mvn org.mule.extensions:mule-extensions-archetype-maven-plugin:generate" in Mule 4. But when i open this project in anypoint studio 7.1.2 it gives below error ('The import org.mule.runtime cannot be resolved') in all of defaultly created java.class files. I have updated the pom file dependencies also, but still issue persists.
Help me to resolve this error, thanks in advance
Thanks,
Videesh.
Studio 7 (including the at this time last release 7.2.2) doesn't support Mule SDK projects. You can use any other IDE that supports generic Maven projects.
I am using Eclipse Java EE IDE for Web Developers (Version: Indigo Service Release 2).
For my project, I wrote the code: IResource resource= new IResource(). I added the import statement import org.eclipse.core.resources. I downloaded the org.eclipse.core.resources-3.7.101.v20120125-1505.jar and put it on my project build path and restarted eclipse, but the import cannot be resolved. I tried other version org.eclipse.core.resources-3.8.100.v20130521-2026.jar, but still did not work. I tried the solution suggested in importing org.eclipse.core packages for Eclipse plug-in,
but did not help.
What do I need to do in order to get import org.eclipse.core.resources and IResource class to work for me? You help is greatly appreciated.
import org.eclipse.core.resources would import a class named org.eclipse.core.resources, not the classes in that package. You would need to import org.eclipse.core.resources.*.
Even so, the plug-ins that ship as part of an Eclipse download expect to run within an Eclipse Runtime. With rare exceptions, can't just use them in a Java Application, so just adding them to your Java Build Path manually isn't constructive.
I want to debug through my code that contains mule and various XML files in Intellij. I was hoping to know if there was a Plugin for the same.
Use Mule-intellij Plugin
Reference Urls:
https://plugins.jetbrains.com/plugin/8212?pr=
https://github.com/machaval/mule-intellij-plugins
https://forums.mulesoft.com/questions/1777/moving-from-mule-studio-to-intellij.html
My entire project coupled with both Front end application and with Mule - maven based( I suppose to work both with Intellij and also Anypoint).Each and every application have its own POM. When i work with individual Mule application, will import apps as maven based. Anypoint studio is best to work on Mule interfaces compare to Intellij.
When it comes to front end application, used Intellij.
When working on very large project ( both front end and Mule) if you try to import entire project in Anypoint- It hangs. Those cases Intellij is best to import as Module( easy search, code monitor with Jira history etc).
I switch Intellij and Mule studio case by case.
After Installing Mule-intelij plugin. Could see Mule configuration xml marked as 'M'. Easy to run as Maven project and also Junit test cases.
I have installed old version of plugin where I can only debug Mule-Java application( not Mule configurable xml).Ctr+tab will show all the options as like AnyPoint. But you cant see Mule GUI or Drag and Drop feature here.
In the above mentioned first URL, new plugin version shows debug point in Mule configuration example. You can give it a go.
I am crating WorkLightAuthenticator, but the dependecies are in trouble.
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
I include the library WebSphere Application Server V.8.5, but it did not come with the jars, like the image below.
In another project. I did not have this problem. like the image below.
That's not working for me either. Could you provide which version of worklight are you working with ?
Meanwhile, as a workaround, the Liberty jars are located in:
{$YOURWORKSPACE}/com.worklight.studio.plugin_{$SOME_BUILDNUMER_FOR_YOUR_WORKLIGHT}/liberty/wlp/lib
This issue is fixed in 6.1.0.1. Please update if possible. The Consumer Edition and Enterprise editions are available here:
http://www-01.ibm.com/support/docview.wss?uid=swg24037219
If you're using developer edition, you could upgrade from within Eclipse.