yesterday I updated my STS to the latest version 4.12.0 and today when I wanted to export my project to a .war file, this feature was not there anymore.
Here you can see how it looked on my previous 4.8 version:
I read this issue: https://github.com/spring-projects/sts4/issues/53
As I do not use maven (our project exists since 2008 and back then we did not use it) I have no way to build a war file anymore or just go back to the previous version... I don't get it, why such an easy way to build war files has been removed?
Any tipps on how I can solve this?
After reading some documentation, I found that you need Eclipse for Enterprise Java Development. So just installing this plugin solved the problem:
Adding the war plugin and not using the embedded tomcat might help.Add a servletInitializer and see if it works.
Related
if someone could help that would be amazing.
This project is being started in the NetBeans IDE EE version that comes with GlassFish Server. I've used Lucene to make a searchable twitter index of ~5G and am getting the NoClassDefFoundError only when called from the server giving a 500 Page Error.
The problem really confuses me, NetBeans is able to compile and run the code. When I call my functions from the same project in the IDE I'm able to use it perfectly. When I compile to a WebProject and launch it seems like GlassFish isn't able to find the files but I've made sure it has all the jars in the WAR file in the proper directories.
I've tried this both manually adding all the library files and by using Maven. Neither have worked, I've even added classpaths to the files elsewhere and added the files to glassfishes /lib folder.
Here is my setup.
http://imgbin.org/images/22748.PNG
I guess the problem is that you are mixing two different versions of lucene together (3.4 and 4.0).
I don't know why this works on your local Glassfish instance but you should update your dependencies so that they all have the same version.
I am trying to use Jetty to connect to an HTTP server that uses websocket. The problem is that the compiler cannot resolve the class HTTPClient. I've searched here on stackoverflow, i've found a solution but the link with the useful resource is no more available...
What JAR should i include to run this example?
http://wiki.eclipse.org/Jetty/Tutorial/HttpClient
The page doesn't tell anything about... Thank you
The class in the jetty-client.jar.
You can find it in the lib directory of the jetty distribution.
Did you copy http-client jar to yourapp/WEB-INF/lib? Adding jar to eclipse classpath adds that to your compile time classpath but also you need to add it to runtime classpath ( in case of webapps by adding it to WEB-INF/lib
OR
if you are using eclipse/ any other IDE:
delete the project from eclipse.
delete the .metadata folder in workspace.
Restart eclipse and Import the project back into eclipse.
I had the exact same problem and the solution I figured out is to use another version of Jetty. The current latest (v9.2.6) was giving me the same error what's in the title above. Then I download jetty v8.1.16 and added in Eclipse (JUNO) to the "Java Build Path -> Libraries" (instead of v9.2.6) and the problem was resolved. Good luck!
How do I run JBOSS 5.x outside Eclipse? I'm using Eclipse Juno latest version. One of the requirements of Automated testing is to run JBoss outside. Anybody has ideas how I go about that?
Download JBoss, install and run it. I don't get the question.
http://www.jboss.org/jbossas
Or do you mean one of the many sub-projects?
When you unzip jboss, you will find a sub folder called bin, inside that you should fine run.bat :-).
From Eclipse use an ant script to create a war and copy it to the jboss deploy directory.
At work we're planning to upgrade from Eclipse 3.5 Galileo to 3.6 Helios and I'm creating a little migration guide for everyone to use together with all needed configuration files to be imported.
The idea is to do clean install of the new Eclipse version and just use the current workspace and external plugins directory (a per this and that)
So far it all seems to work fine, I have succesfully exported/imported the libraries, run/debug configurations but I don't seem able to export the various Tomcat and JBoss server configurations i.e. runtime and server definitions. I can only re-create them manually...
Is there a way to export these from the Eclipse GUI or perhaps some metadata or config file somewhere that I can hack?
Thank you and adios,
Give the special plugin e4preferences a go.
It is the only way I know to obtain a fine-grained preferences export.
The only other way is to export everything, and to grep the lines of interest in order to copy those lines in a new preference file, and import that new file.
I have written some Java code that I need to export into an EAR file. I am using Eclipse 3.6.2 I have looked at
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jst.j2ee.doc.user/topics/tjexpear.html
but the problem is that I do not have the export destination "J2EE"--> EAR file in Eclipse.
Also when I go to New--> File --> Other there is not such an option. I did add the JAR-file "ejb-api-3.0.jar" to my project though and Eclipse does not give me any errors.
What am I doing wrong?
You have to use Eclipse Java EE for making War Files. You can also add the required plugins into your existing Eclipse but downloading the Java EE version would be much easier.