Worklight Server dependencies servlet - ibm-mobilefirst

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.

Related

version mismatch in mule application dependencies

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.

is the any way to import a database to glassfish server in netbeans?

im having trouble with a project i need to import a custom database but i dot see any option in glasfish in netbeans. Any recommendations?

Importing org.eclipse.core.resources with Eclipse Java EE IDE for Web Developers.Version: Indigo Service Release 2

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.

Mule dev-kit and custom connector

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

My hibernate project doesnt work when i choose apache instead of glassfish

I am using netbeans 6.9.1 to develop a project using frameworks Hibernate 3.2.5 and JavaServer Faces, i probably followed this tutorial
http://netbeans.org/kb/docs/web/hibernate-webapp.html
In this tutorial it uses GlassFish 3 to setup the project which i did as well and it works fine. But when i deployed it to my server on apache tomcat 7, it gives this error
"Class DBws.DBws is not a Servlet"
I changed the server from glassfish to apache in netbeans and it started giving error in file on this location
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
with a red line under javax, what to do now, thanks
Add jsf libraries in your WEB-INF/lib folder,
libraries can be found here.
Glassfish by default has those libraries but I guess tom-cat doesn't.