Different behaviors when publishing the same Spring web application with J2EE eclipse (4.4.1) and STS eclipse (4.5.1) - eclipse

I published the same Spring Web application with J2EE eclipse and STS (Spring Tools Suite, which is just an eclipse pre-bundled with some Spring tools).
The application is to test some STOMP messaging over WebSocket.
The one published with J2EE eclipse (version is 4.4.1) works fine as below:
The one published with STS (eclipse version is 4.5.1) gives me this 404 error:
How could this be happening?

Turns out I forget to include the Maven dependencies in the Deployment Assembly for the STS eclipse 4.5.1. Thus there's nothing in my WEB-INF\lib folder. So the application failed to behave.

Related

How to install Axis2 runtime in Eclipse Oxygen?

I'm doing some tests with the last Eclipse developer builds, the Oxygen RC3. I know it's only a RC product, but in the milestones there was no problem with the Axis2 runtime. Here and now the Axis Runtime it's not present.
When I try to run the wizard and create the Web Service, I just don't see the option to set Axis2 runtime, just the Axis runtime.
Also I tried to install the plugins moving them into the dropins folder, running Eclipse with the -console option from the command line (following the Apache instructions) and when I check in the console with the command ss axis2 it says "Framework is launched.", and also I get 2 bundles installed:
Unfortunately, when I try to start them I got the message: BundleException: Could no resolve module: org.apache.axis2.eclipse.service.plugin [107X] Unresolved requirement: Import-Package: javax.xml.stream; version="1.0.0"
I tried installing them on the plugins folder, not working.
Also, I follow other guides surfing the net unsuccessfully.
What can I do? Thanks in advance!
Well, after some research, I get the solution! Axis2 Tools and CXF Web Services come with Eclipse Java EE Developer Tools Project, so I suppossed that will be the package that includes Axis2.
So I just search on Google that package in the Eclipse Marketplace (this link), and drag the Install button into the Eclipse SDK. I check and install the Axis2 Tools, CXF Web Services, and required packages.
After restar Eclipse, magic has done.
I have the Axis2 Runtime Settings:
The Axis2 Code Generator and Axis2 Service Archiver wizards:
And, finally, I have the Web Service runtime Apache Axis2 inside the Web Service Client wizard:

Install spring plugin in Eclipse Luna

I downloaded Eclipse Luna and i want to install the plugin for spring
What is the difference between: Spring IDE plugin and Spring tool suite plugin?
Which one should I download?
Eclipse+Spring Tool suite plugin = Spring Tool Suite release?
Download the Spring tools suite from the following URL and add the extracted libraries to the WEB-INF/lib folder of your dynamic web project.
http://spring.io/tools
or else
Go to Eclipse->Help->Install New Software
Add new site as follows:
Name: SpringSource Update Site for Eclipse 4.4
URL: http://dist.springsource.com/release/TOOLS/update/e4.4/
In the Spring Tool Suite you have more tools build into your IDE and the tools are configured.
As far as STS is concerned:
... comes with Maven, Spring Roo and tc Server developer edition pre-packaged and pre-configured (you can start using tc Server or
Spring Roo right away without the need to download or configure them
manually)
... comes with additional components pre-installed, like the Maven Integration for Eclipse (including the Maven Eclipse integration for
WTP, AJDT and Groovy/Grails)

cannot deploy spring web application using indigo+m2e+wtp

When deploying spring MVC application I am having java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
Details:
- eclipse Indigo Service Release 2 (Eclipse IDE for Java EE Developers)
- "m2e - Maven Integration for Eclipse"
- "m2e-wtp - Maven Integration for WTP"
I confirm that my web project has "maven dependencies" added in deployment assembly. I tried to do some cleanup like "update project configuration", "maven clean install" ... but issue is still there, any help is welcome.
I think there was a bug at some point in the m2e-wtp plugin. I did an update to the latest version (Help->Check for updates) and this problem went away for me.

missing jars when publishing a web app to glassfish with eclipse juno and maven integration

I use eclipse juno with GlassFish Server Open Source Edition 3(java EE6), m2e and maven 3.0.4.
When I create a war file by 'mvn package' command and deploy it to a glassfish,
the war file works just fine.
However, when I publish a web app to a glassfish from the server view of eclipse,
the web app fails.
I guess the reason of this failure is that publishing from eclipse is not configured correctly
to get jars from my maven repository and then jar files in eclipseApps//WEB-INF/lib directory are missing.
Can I configure eclipse to use a maven configuration when publishing a web app to a glassfish?
Thanks.
I found the answer
"anyway I solved the issue by adding following row Properties > Deployment Assembly: /target/myapp/WEB-INF/lib -> WEB-INF/lib"
in
Glassfish Deployment out of Eclipse Helios SR2 fails
Thanks.

EAR with EJB and WAR modules fails to deploy WAR dependencies

I have an EAR that has many EJB modules and one WAR. The WAR dependencies are not picked up. There are only 3 of the WAR dependencies that are not already included in the EAR. These are ones that break the deployment. The target web logic server starts in Eclipse but the app fails to publish. As a test, when I add the missing WAR dependencies to any of the EJB modules they are picked up.
The problem was with certain versions of the m2eclipse plugin from Sonatype.
Some versions of the plugin do not correctly propogate the dependencies for the web project (WAR).
The plugin that works is the one that is installed in version 3.6.2 of eclipse. The one in 3.6.0 doesn't work.
Once I woved to version 3.6.2 of eclipse the problem went away.
Granted the issue may also have been tied to the plugin verions PLUS the version of eclipse.
Here are the maven plugin and eclipse details:
Works:
m2eclipse - 0.12.1.20110112-1712 running in Eclipse Java EE IDE for Web Developers Helios Service Release 2 Build id: 20110218-0911
Doesn't work:
m2eclipse - 0.12.0.20101115-1102 running in Eclipse Java EE Version: 3.6.0 Build id: I20100608-0911