Unable to add new server in NetBeans 6.5.1 IDE - java

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.

Related

Change Java version for Tomcat running from Netbeans when invoked

I have a set of projects under Netbeans that run on Java 1.7; I am starting one that depends on having Java 1.8. It is a web app, and both Netbeans and the Tomcat server that is configured under Netbeans need to run on 8 for the latter project, but cannot run on 8 for any of the former projects.
I was hoping to create a bat file or something that would allow me to specify the Java version for both Netbeans and the Tomcat that runs under Netbeans.
I found the command line argument for setting the jdkhome for Netbeans; that works for Netbeans. But the JDK configured for the server appears to be a Netbeans setting, and I don't know how to change that at the time that I invoke Netbeans, or with an environment variable (I tried JAVA_HOME, that didn't work).
Does anyone know how/whether this can be done?
Open netbeans IDE and go to Tools-->Servers
Then Select your server (tomcat) and on platform tab select your JDK version and lick on close button.
if Your JAVA platform is not listed in combo box click on Manage Platforms and add new JAVA Paltform.

Glassfish eclipse Plugin with jdk 8

Im trying to launch glassfish-4 using glassfish-eclipse-plugin. Unfortunately it does not seem to recognize the JDK-8 Release candidate i just installed (The "Finish" button stays disabled).
Finish button will be enabled if i select a java 7 jdk
Is there any options to work around this?
Now Lambda support works "out-of-the-box" if using below combination of software
Oracle JDK 8
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Glassfish from 4.01 branch
http://dlc.sun.com.edgesuite.net/glassfish/4.0.1/nightly/latest-glassfish.zip
Eclipse 4.4 Luna
http://www.eclipse.org/downloads/ (pick the java ee package)
I had the same problem getting Eclipse Luna and Glassfish to play nicely. I scrapped everything, re-download and installed eclipse-jee-luna-R-win32-x86_64. And then upon creating a new dyanmic web app in Eclipse I had install a new extension for the server runtime environment. That extension was the GlassFish Tools extension from Oracle v7.2.1.2014071142. An Internet connection was required in order for Eclipse to find this. And Voila! So far, so good. Your mileage might vary.

Eclipse Kepler Server not Creating

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 ?

Selecting Apache Tomcat Server Causes Java EE Dropdown Menu Failure, NetBeans 7.4

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.

Apache Tomcat Not Showing in Eclipse Server Runtime Environments [duplicate]

This question already has answers here:
How do I import the javax.servlet / jakarta.servlet API in my Eclipse project?
(16 answers)
Closed 1 year ago.
I have tomcat 5.5 installed, running and verifiable at http://localhost:8080/. The Tomcat menu option appears in the Eclipse menu bar and I can start and stop Tomcat from there. In Eclipse, it does not show as a Server Runtime Environment in Window - Preferences - Server - Runtime Environments, nor does it appear in the list of environments that can be added when I click the "Add" button. All I see is the J2EE Runtime Library.
Edit:
Running on Windows XP.
Eclipse version is 3.5.1
In my case I needed to install "JST Server Adapters". I am running Eclipse 3.6 Helios RCP Edition.
Here are the steps I followed:
Help -> Install New Software
Choose "Helios - http://download.eclipse.org/releases/helios" site or kepler - http://download.ecliplse.org/releases/kepler
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters (version 3.2.2)
After that I could define new Server Runtime Environments.
EDIT: With Eclipse 3.7 Indigo Classic, Eclipse Kepler and Luna, the steps are the same (with appropriate update site) but you need both JST Server Adapters and JST Server Adapters Extentions to get the Server Runtime Environment options.
You need to go to Help>Eclipse Marketplace . Then type server in the search box it will display Eclipse JST Server Adapters (Apache Tomcat,...) .Select that one and install it .Then go back to Window>Preferences>Server>Runtime Environnement, click add choose Apache tomcat version then add the installation directory .
I had the same problem and I solved it with the following steps
Help > Install New Software...
Select "Eclipse Web Tools Platform Repository (http://download.eclipse.org/webtools/updates)" from the "Work with" drop-down.
Select "Web Tools Platform (WTP)" and "Project Provided Components".
Complete all the installation steps and restart Eclipse. You'll see a bunch of servers when you try to add a server runtime environment.
Window > Preferences > Server > Runtime Environments (as you said)
Add
Apache > Apache Tomcat 5.5
That has worked for the past 3 versions of Eclipse at least. If there is not such an option on your eclipse, get a fresh installation (for Java EE developers).
nor does it appear in the list of environments that can be added when I click the "Add" button. All I see is the J2EE Runtime Library.
Go get "Eclipse for Java EE developers". Note the extra "EE". This includes among others the Web Tools Platform with among others a lot of server plugins with among others the one for Apache Tomcat 5.x. It's also logically; JSP/Servlet is part of the Java EE API.
You may get more success if you do a "search" for the runtime env from the preferences screen instead of hitting "add" - see this demo on youtube. http://www.youtube.com/watch?v=EOkN5IPoJVs&playnext_from=TL&videos=rVnITzSU2Z8 - When you hit search, you are prompted to point to the tomcat directory and then it SHOULD add it as a server runtime environment. Unfortunately for me, that is not the case (I get "no new server runtime environments were found") But you might have more success.
Scenario 1:
You had Eclipse showing server and now after removing the particular version you want to configure at Eclipse a new local server instance. But you can not move further.
This happens due to reason Eclipse still looks for configured version of Tomcat directory, which directory is no longer there.
There is no need till LUNA to make fresh installation!
All we need is to REPLACE the new server run time environment into eclipse after removing old one, which is non-existent. Eclipse will
Help -> check for updates upon Eclipse update solved the issue

Categories

Resources