I've downloaded the latest Netbeans, 6.8 to be precise, then I got the download thats packaged with Tomcat and created a blank Java web application. Right Clicked > Properties > Run, but I can't see any servers in the Server drop down list.
Tomcat is running, I can verify that by seeing the tomcat manager on http://localhost:8080. I have tried adding and removing servers under Tools > Servers, but this still doesn't work.
How can I correct this?
Tried installing tomcat separately, that didn't seem to work, neither did installing glassfish. I just could not get them to show up under the "run" configuration window
I did the following :
uninstalled 6.8 beta
Installed 6.7.1, exact same bundle (netbeans+tomcat). Worked first time
Sorry, but I'm putting it down to either an issue with 6.8 beta, or the installation itself
Related
I am currently having JAVA servlet in my curriculum and for lab sessions we need to integrate Apache Tomcat with the NetBeans IDE. We need to stay version specific, specified in our curriculum. So, we are using Apache Tomcat version 6.0.33, JDK version 1.6 and NetBeans version 6.5.1. I want to add a new Tomcat 6.0 server in my NetBeans IDE. For that I am performing following steps.
Tools -> Servers -> Add Server.
When I click on Add Servers button, the system is supposed to show me a new panel that allows me to select a server and create it. But, in my case nothing is happening. Please help me with this issue.
I have two versions of JDK installed in my system. JDK 1.6 and JDK 1.12. Can this be the reason behind this error.
Updated:
Here's the image of log after I tried to add server.
NetBeans Log
Nothing wrong appears in the log.
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 was earlier using eclipse juno on linux enviroment. Now I have shifted to windows and installed eclipse kepler. I have already installed apache tomcat6 and its running successfully in browser.I am trying to run jsp files in eclipse by making server but tomcat is not showing.
I followed this way
window
preferences
server
runtime enviroment
add
but apache is not showing at all.Please see the screenshot
EDIT
I have even tried to download additional adapters but in the list tomcat is not there.Please see the below screenshot
If the apache option is not showing up then you need to download the server adapter for Apache. You can go to that by going to
Your JSP -->>right click and run on server --->Manually define a new server--->Download additional server adapter.
I got the same error when i started with kepler was not able to configure my JBOSS server.
Recheck is it Eclipse IDE for Java EE Developers ?
On Mac.
I was trying to run a spring project but could not run because of the following reasons:
Tomcat server has been started but myproject is not getting deployed on the tomcat server.
The default localhost:8080 is accessible and opens up the default apache page but myproject is not deployed on tomcat.
I tried several ways but could not arrive at the solution. could some one please help me out.I did switch location and changed in serverlocations to the second option that is "use tomcat installation"
Just to make sure I even tried to run a default dynamic webproject, the hello world application.But this was also not deployed on the tomcat server and was throwing 404 error.
The same project I was able to run on windows with out any problem.
Thanks!
After selecting your project
Double click on the server tab from bottom and select “Use Tomcat installation (take control of Tomcat installation)”
It should now work perfectly.
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.