I am learning Spring MVC and trying to connect IntelliJ IDEA to Tomcat Server. So far I have downloaded the Tomcat 10 tar.gz package from the Tomcat website, extracted and put it at the following location: /Users/roxhens/Tomcat10.
Then, I create a new Spring MVC project and go to:
Add Configuration... > Click + > Tomcat Server > Local and then click Configure and provide the path above.
When I click OK, the following error in the picture shows up: Cannot Save Settings.
Where can I find these Application server libraries?
IntelliJ IDEA 2019.3.x doesn't support Tomcat 10 yet.
Use the supported Tomcat version (9).
If you are on Windows and you installed Tomcat on the primary hard drive of your System, you need to run IntelliJ IDEA as Administrator to be able to add the Tomcat server.
you have to point it to $Path/tomcat#9/9.0.45/libexec
Related
i've deployed birt.war on my tomcat 7.0.41. Used manager app to verify that the war file was deployed correctly. if i click on birt path, i get HTTP status 404 - /birt/ error. it says the requested resource is not available. i've stoped and restarted the server multiple times.
Can you help?
TIA,
Thomas
I am answering my own question. New to BIRT. Downloaded the latest one - 4.8. After googling a bit, found out that 4.5 is compatible with tomcat 7. I was able to deploy and run a sample report.
I am using Intellij Ultimate edition 14.0.2
Working on a Java project using Maven as my build tool.
We are getting this error when attempting to launch my project via Tomcat server.
Application Server was not connected before run configuration stop,
reason: Unable to ping server at localhost:1099
Have attempted, mvn clean install, rebuild the project in intellij, open and shut down intellij.
Thanks for the feedback everyone. I ended up editing my host file to reference my computer name. I have not been able to recreate the issue.
Solved for now.
The following solution worked for me, i experienced the same error at some point;
Click on Tomcat in your IntelliJ, and then Edit Configurations. On the Startup/Configuration tab, click Debug, on debug properties i have added 52112 as Port number and it worked.
enter image description here
Your problem is rarely ambiguous. You should check connection between IntelliJ IDEA and Tomcat Server. Checklist like marked points:
+ Configure Tomcat Server.
+ Before launch application server, you must configure to add artifacts to application sever.
+ Turn off other Tomcat server(s) in your computer (localhost)
etc.
Running Eclipse Indigo, Tomcat 7 on Windows - running the web application on the ROOT context with eclipse wtp plugin I am getting this intermittent problem where eclipse cannot find the compiled JSP. It occurs when first accessing the JSP and cannot be resolved except by stopping the Tomcat server and cleaning the Work directory and the project directory. The compile version is there in the eclipse directory structure:
.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\org\apache\jsp\WEB_002dINF\...
but it still produces this error.
After some research I found this related thread which seems to suggest the problem only occurs when the application is deployed on ROOT.
http://comments.gmane.org/gmane.comp.jakarta.tomcat.user/208071
And a bug has been entered:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334977
Has anyone had a similar issue to this and knows a solution?
Hi please try to configure value as per first screen shot and change location as per second screenshot and try if that works for you.
I am using Glassfish3.1 on Windows XP. After deploy a web service project using Netbeans, it works fine. But when i go to
install-path\glassfish-3.1\glassfish\domains\domain1\applications
I don't see my application.
under install\glassfish-3.1\glassfish\domains\domain1\applications\__internal, there's a folder with the same name as my project. But that folder is empty.
But if i deploy a project on linux, i can find my application and classes under application folder.
So where are they on windows?
When you use netbeans, the default deployment dir is the build/web subdir of your netbeans project folder. E.g. when your project is called myProject, the deployment dir is myProject/build/web.
It's of course a bit irritating since it is usually outside the glassfish install dir. But you can configure your webapp to be based in any dir of your harddrive.
In general you can find the location of any of your glassfish webapps in the domain.xml file of your domain, e.g. glassfish/domains/domain1/config/domain.xml
Each webapp has an <application> element with an attribute location, e.g. for one of my projects:
<application context-root="/MyFirstWebService"
location="file:/C:/.../NetBeansProjects/MyFirstWebService/build/web/"
directory-deployed="true" name="MyFirstWebService" object-type="user">
you can see path of application where it was deployed through glashfish admin console
eg.
http://localhost:4848/
or
http://yourhost_name:4848/
Common Tasks -> Applications -> you_application -> general -> Location:
Try going to install-path\glassfish-3.1\glassfish\domains\domain1\autodeploy
The location of your deployed project is dependent on the IDE you use.
To detect the location. Do the following:
Launch your Glassfish or Payara server from this location: http://localhost:4848 or any other location of your configuration for glassfish or payara server.
Location the sidebar "Common Tasks"
Click on Applications. List of deployed application will drop down
Select you application from the list. Information about your app will display on the right hand side. Check for the Label "Location". e.g : Location:
file:/C:/Users/Abode/Documents/NetBeansProjects/ImageJavapoint/build/web/
Then you will find where your app is being deployed.
I have just downloaded NetBeans 6.9.1 for JavaEE and installed it with Tomcat 6. Everything went fine and I can run NetBeans, start and stop Tomcat from within the IDE and add and remove servers at will.
However when I try and create a Java EE Enterprise Application project my server list is empty.
The message I get at the bottom of the wizard for creating projects is "No servers are registered in the IDE. To register a server, click the "Add..." button.
If I add a new server from there the drop down list remains empty, however if I then cancel from the wizard and look at the server list (Tools | Server) I wind up with a duplicate Tomcat server in the list, but still no way of selecting it from the setup dialog for the project. This means I cannot create a project and am stalled.
I have Googled and got nothing and looked at the NetBeans docs and got nothing, so thought I would ask here. Has anyone else has encountered this problem? Am I missing the magic "make this server show up in the wizard" button?
I am running Netbeans 6.9.1, Java 1.6, Tomcat 6.0.26 and Windows 7.