I just needed to upgrade my Jboss Server to 8 (http://www.wildfly.org/) and I'd like to know if there is any way to use it like Jboss6-7 in Intellij ?
When i try to add a Jboss server I get the message : "The selected directory is not a valid
Jboss home" (I select the folder up to all subfolders, like I do for any other jboss server).
The server configuration seems to be the same as Jboss 7 (folders, files)
ANSWER : Works nicely with Intellij Idea 132.425 (Cardea) preview
This is fixed in recently released WildFly 8 Beta1
get it at http://www.wildfly.org/download/
For now we have workaround in WildFly to make Idea believe it is still "jboss as"
Related
I tried to run an OpenShift JBoss AS 7 app through Eclipse as a normal JBoss AS 7 App but it doesn't seem to work. I have the OpenShift JBoss Tools installed in eclipse.
However when I try to run it through Run As --> Run on Server and then selecting the "jboss-as-7.0.1.Final Runtime Server" listed in the "Servers" view, I get the error
"the selection does not contain any resources that can run on a server".
To solve this I changed the project facet to Dynamic Web Module, then I again tried running it on JBoss server, but the application doesn't deploy and I get a 404 error on accessing its localhost url.
I also noticed that the JBoss Server's status in my eclipse "Servers" view is always shown as "Starting"(doesn't change to "Started"), although the Console shows something like "JBoss AS 7.0.1.Final "Zap" started in 2236ms"
Take a look at https://www.openshift.com/blogs/day-28-openshift-eclipse-integration-for-java-developers. That should point you in the right direction.
I am doing right now, what you want to do. I have a Project which is deployable on OpenShift and on my local installation of the jboss 7.1.
It is very strange that eclipse shows your jboss as always starting. I would recommend to delete the server in eclipse and try to add it again. Also you can add the project in the servers view. For that you right click your server and choose "Add and Remove...". You can choose the Project, add it to the server and eclipse is deploying it.
Which version of JBoss Tools are you running ? There have been some issues with detection of the server running in past where you can workaround this issue of the server not launching by changing the "Startup poller" to "web poller" or "timeout poller".
btw. if you needed to change your project to be a dynamic web project that indicates to me you have not actually imported the project as a maven project and had all of JBoss Tools installed (or at least M2e-wtp) which would normtally automatically make the import of the default openshift apps into a dynamic web project.
I have a working project in eclipse which i like to also run in idea ( my preferred IDE environment ). i am using tomcat 6 and it seem for some reason that i cannot get the spring file to be loaded. including *.xml file etc, they are all OK on eclipse but dont work on Idea.
i saw this post Trying to deploy tomcat server through Intellij IDEA and getting a weird missing server.xml error
but switching to tomcat 7 didn't helped me.
So here's where I'm at:
I've installed the Apache Tomcat Server successfully.
I've configured the JAVA_HOME path successfully, and created a /common/lib directory (as opposed to plain /lib) to get around an issue with NetBeans recognising recent versions of Tomcat.
If I select GlassFish 4.0 as my server, instead of Tomcat, everything's fine -- but I don't want GlassFish 4.0 as my server, as I'm working through a book on Java WebApps and don't want to run into intractable problems further down the line.
When I select Tomcat as my server, I run into the problem that the dropdown menu to select my "Java EE Version" decides it doesn't want to give me any options at all.
Has anyone experienced this problem before, or can anyone offer a rough guess as to what my problem might be?
Thanks in advance!
EDIT: Update - it's not a problem with the JDK classpath of Tomcat. Tomcat works fine on the .jsp files it came bundled with.
I had the similar problem with Tomcat 8. But after downloading Tomcat 7.0.47 I can now choose from Java EE 5 and 6. Hope that helps.
I developed a Java EE app under eclipse with server runtime as Tomcat 6.0 . All the things are working just fine , but when i uploaded war file to my hosting server it didn't work.
Support says : "create your war with tomcat 5.5"
what does that mean ? do eclipse creates war according to the server runtime installed (in my case its tomcat 6.0) ?
EDIT:
I tried running same app under tomcat 5.5 - locally...but eclipse says :
The server does not support version 2.5 of the J2EE Web module specification
so how can i make the Java EE app to work with tomcat 5.5 ..
You need to compile your project for Servlet API 2.4 (and not 2.5).
In Eclipse you need to change the version of the "Dynamic Web Module" (see here).
they use Tomcat 5.5
Your hosting provider is many years out of date. Tomcat 7 is now up to about as many point releases as Tomcat 6, which came out in 2006, and Tomcat 5.5 goes to End of Life on 30 September. Get them to upgrade their antique offering, or find someone better.
Either when you create your project or when you export your WAR file you are able to to choose which version of Tomcat to use(pull down menu). You need to export your WAR file using the same version of Tomcat as the Tomcat your server is running.
JBoss 6 AS is released and I would like to test it in the NetBeans IDE.
In NetBeans 6.9.1 the JBoss 6.0.0.Final directory can not be chosen - the error message is "Provide a valid JBoss Application Server 4 or 5 Location"
I took the time to get it working you can find the information on how to make NetBeans 6.9 work with JBoss 6 here
it looks like folks have done that in the past: http://netbeans.org/bugzilla/show_bug.cgi?id=181753