Jersey 2.2 not getting initialized - maven-2

Im using Eclipse Kepler and Tomcat 7.0.x. I have created a Maven project with the following specification.
http://maven.apache.org/maven-v4_0_0.xsd">
But when starting the project.I dont get the logger info that says "Initializing Jersey Application" hence the service isnt working.
I just get the logger info of the Tomcat startup. Hence when i call the sample maven project i get 404. what could be the reason ?
If i try creating a clean Dynamic Web Project I still get the problem in this post and couldnt proceed anywhere with JAX RS 2.0 and Tomcat java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializer

Related

Unable to deploy custom Mule Connector to Anypoint Exchange

I built a custom mule connector using Mule SDK and tested with Anypoint Studio. When I tried to deploy the Mulesoft Exchange using mvn deploy after updating the pom.xml file with Organization details, I'm running into the following Unauthorized error. Could someone point out what's causing this issue or a way to fix this?
Here is my POM.xml file:
Here is the error when running mvn deploy:
There is something wrong in your pom. Maven is trying to deploy to one of MuleSoft repositories, not to Exchange. Note the URL in the error doesn't match the one in the distributionManagement section.
Did you set the groupId to the org id? It doesn't look like it in the error.
Be sure to follow all the steps in the instructions: https://docs.mulesoft.com/exchange/to-publish-assets-maven#publish-an-asset-to-exchange-using-maven

NoClassDefFoundError: com/ibm/wsspi/uow/UOWException

We are migrating from WebSphere 8.0 to WildFly 10.0.0. after compiling the project in eclipse and removing all the reference of IBM WebSphere jars, on deploying the application, I am getting an error that NoClassDefFoundError: com/ibm/wsspi/uow/UOWException
I have tried to search this exception class in my project, i did not find any.
Can you please help me in fixing this error.
Along with the migration , we are also upgrading Java version to 8 and Spring version to 4.3.0
While working on this, I figured that we were referring to WebSphereUowTransactionManager which is specific for WebSphere in the Springs Transaction Manager. We have to replace it with JtaTransactionManager for removing the exception.

Mule: Deployment Error reading plugins

While deploying simple hello world application on Mule, i am getting following error. Any way to resolve the same?
Reading plugins from: D:/MULE/MuleStudio/plugins/org.mule.tooling.server.3.5.0_3.5.0.201405141856/mule/plugins
Exception in thread "main" java.lang.NullPointerException
Version: Mule Studio 3.5,
Java: JDK 1.6
Flow include a HTTP adapter|Request-Response and logger only.
I am able to resolve this issue.
Actually, I was creating project with Mule Cloud Runtime; but I need to create it with Mule Server 3.4.1 EE. After creating project correctly, i am able to deploy it successfully.

IBM Worklight 6.0 - Migration Issue after importing a project

Update to Worklight version 6.0. Even load sample apps from new version 6.0 web site and get this exception like this:
An internal error occurred during: "Upgrade Worklight Projects".
loader constraint violation: when resolving method
"org.apache.commons.io.FileUtils.iterateFiles(Ljava/io/File;Lorg/apache/commons/io/filefilter/IOFileFilter;Lorg/apache/commons/io/filefilter/IOFileFilter;)Ljava/util/Iterator;"
the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the
current class, com/worklight/builder/skins/impl/SkinBuilderImpl, and
the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
class, org/apache/commons/io/FileUtils, have different Class objects
for the type org/apache/commons/io/filefilter/IOFileFilter used in the
signature
None of the apps could be built and deployed in new 6.0 (Tried With JDK 1.6/1.7, Eclipse 4.2.2).
Please try to find if you have apache commons IO installed in your Eclipse plugin directory.
That's the source of the conflict.
If you can, please try to:
1. stop the Eclipse
2. move the apache commons IO out of the plugin dir
3. start Eclipse, then close it.
4. move the commons IO back into the plugin dir.
5. Start Eclipse.
Does the problem occur?
Have to use Eclipse is 4.2.2 Java Platform Enterprise Edition version but not Classic

facing exception while deploying liferay on weblogic

I've deployed liferay 5.2 sp2 on weblogic 10.3 and in deployment part the status of application is Active.
Now when i pass the URL in browser "nakulpatel:7001" it display "500--Internal Server Error".
java.lang.NoClassDefFoundError: com/yahoo/platform/yui/compressor/JavaScriptCompressor
at com.liferay.portal.util.MinifierUtil._minifyJavaScript(MinifierUtil.java:80)
at com.liferay.portal.util.MinifierUtil.minifyJavaScript(MinifierUtil.java:52)
at com.liferay.portal.servlet.filters.strip.StripFilter.strip(StripFilter.java:251)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:159)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)...
Please guide me how to fix this problem.
I've not used maven at all.Simply deployed .war file of liferay 5.2 and not able to start portal.
The reason you got it is because Liferay uses YUI compressor to do Javascript/CSS minification. Minification can be done in two ways -- runtime vs build time. It looks like liferay implements the former through servlet filter.
I checked my Liferay 6.0.x installation. There is a liferay-yuicompressor.jar under the \liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF. Lfieray 5.2 should have a similar directory structure. Make sure this jar file is included in your WEB-INF/lib when deploying to WebLogic 10.3