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.
Related
First thing's first: I'm trying to develop an web service that is integrated with third party JCE(using Security.addProvider to use that jar which is packed into my WAR), but somehow when I deploy the WAR on my Websphere 8(with Java 1.8), it keep telling me that it cannot find the specified algorithm(AES) that I need unless I drag the JCE into Websphere's JRE and change its java security configurations.
Since I have no idea about the root cause, so I installed light-weighted websphere using the Eclipse's plugin install manager. Then I start the light-weighted server, select my web project and set it to debug on this server. But the Next screen I saw is "Context Root Not Found", even I changed the URL to the servlet.
I'm not familiar with WAS and it's liberty plugin, but isn't it suppose to run my project on it? like the Tomcat? Can anyone tell me how to run my WAR in it, so I can debug it? please?
First off, it looks like there is a misunderstanding on what Liberty is. When you say "light-weighted server" I'm assuming you mean Liberty, which is accurate -- Liberty is indeed a light-weight server.
However, WebSphere traditional and Liberty are two different products/servers. Liberty is not a plugin for WebSphere traditional.
A Java EE application running on WAS should behave very similarly to an application running on Liberty, because they are both Java EE compliant application servers. Since debugging and developing an application on Liberty will be easier/faster than on WAS, I would recommend using Liberty.
To debug your application on Liberty using the Eclipse WDT plugin:
Open eclipse with the WebSphere Developer Tools (WDT) plugin installed (you can get WDT here).
Follow this article to create a server using WDT. You can skip the parts about creating a sample application since you already have one.
Open the "Servers" view (using Window->Show View->Other...->Servers) and find your server:
Right click the server and do Add and remove... then add your application to the server
Set a breakpoint in your application code in Eclipse
Start the server in debug mode (by pressing the bug icon shown in step 3)
In the Eclipse menu, select Debug->Debug As->Debug on Server:
I am trying to run Apache Tomcat 7 on the Eclipse. But I am facing some problems. I configured the tomcat libraries. Then I also imported the war files in the existing workspace. Then I tried running the index jsp page. But I am getting error
"Unable to load page". Cannot resolve proxy hostname. I am not sure why the tomcat is starting now.
Can someone tell me what is this error ?
To run Tomcat, you need to either add a server using Eclipse's tomcat plugin or modify the run/debug configurations to point to your application's server.xml.
The error you're getting suggests that tomcat is not running or that it's not configured properly.
What exactly are you trying to do?
if you are using windows then go to run type services.msc a window will open up from there stop the apache tomcat service and then try to run it from eclipse.
or just change the port numbers it might be used by some other application
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.
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'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