how to setup tomcat and eclipse for centralized evironment - java

I have a linux server where tomcat server is installed I can access it by http://omx.td.com:8080 from my LAN. I have 20 computers in LAN and 16 developer for a enterprise project which is deployed on that tomcat server. In each machine eclipse is installed.
I want my developers will work on that project not creating any local instance of tomcat or I dont want local project like every machine should be installed with tomcat.
Can anyone please help me how to setup this centralized environment ?
I have tried with eclipse remote debug on tomcat but no luck.
I want my developers should update on the same single server.
Please help !!!
Thanks

While I concur with user1291492 about source control, you had specific requirements. In each developer's eclipse machine,
Click Window/Show View/Servers
Right-click in the servers pane (window):
New/Server
From the List, click on Apache, then click on the tomcat that's on the server.
For server's host name, type the ip address of the server.

Related

Publishing a site with Tomcat

I am working on an open source project that written in Java.
I am using Tomcat server,Mysql and Java,
with writing
http://localhost:8080/Projectname,
I can run this project
But I must open this project to other users,
I have a constatnt Id, I have done it with using IIS before many times.
How can I do it with Tomcat server,
Is there anyone who has experince on this matter
Thanks for your helping
You Should replace localhost with your IP and check firewall exception for this 8080 port.

database postgresql on apache tomcat server

I don't find the solution for my specific problem, therefore, I ask for you help.
I developed a java application using Spring, JPA/Hibernate and Vaadin. The database is on PostgreSQL.
The application on my computer run on localhost:8080 and bind the database on localhost:5432;
In order for my colleagues to use it, I need now to deploy my application on a virtal server Tomcat. The address of this Tomcat is like 10.152.487.12:8080...
I want to create a war of my application in java and deploy it on Tomcat. But, where I can put the database and how ?
Apache Tomcat allow the creation of a Postgresql server on 8080 port ?
Apache Tomcat allow the installation of a Postgresql server on 5432 like 10.152.487.12:5432 ?
Please, I need help, thank you in advance !
I found the solution !
Yes, I am a newbie, but I think another peoples can be in the same situation, therefore...
You open the "Remote Desktop" on windows if the server where Tomcat turn on is Windows Server. Then, you enter the IP address of the server (without the port 8080 of course). Then, you arrive on the server, you can go on Internet for download PostgreSQL (warning, desactivate the security of the browser, it not allow you to surf !).
Finally, install, enjoy !

Add Remote Glassfish server to Netbeans

I am a .NET Developer trying to learn Java. I have created a simple CRUD based EJB application and it works in Netbeans.
I am trying to add a remote Glassfish server (installed on another PC) to Netbeans so that I can deploy the application (EJBs) from Netbeans. Think of the remote server as a live server (though it is not).
Is it possible to add a remote Glassfish server to Netbeans 7.4. It only seems to allow you to add a local instance.
Assuming you have done asadmin enable-secure-admin (etc) on your remote server, the only way I have found is to remotely mount the (physical) server and then you can point Netbeans at the glassfish directory on the remotely mounted server.

The Eclipse plugin cannot communicate with the GlassFish server

I need use Glassfish in a project we're currently working on in Eclipse IDE.
My problem is after installing Glassfish Tools in Eclipse I manage to correctly create a new glassfish server en SERVERS tab but when I try to start it the following error message pop up:
The Eclipse plugin cannot communicate with the GlassFish server....
The Eclipse plugin cannot communicate with the GlassFish server. A
GlassFish Enterprise Server may be running on the same admin or HTTP
port, but with a different root installation.Please also check for
antivirus software, firewall configuration, or VPN setup which might
block some ports.
Actually the problem looks more complex since not only I'm not able to start server but I cannot execute any action on server. Neither deploying, nor clean or whaterever else do work resulting in popping up the above message.
In the internet developers communities I only find clues about CREDENTIAL ERROR but this is not the case.
Looking in the Glassfish log folder there is no trace of any access attempt.
Everythings points at Eclipse plug-in neither be able to communicate with glassfish by any circumstance.
This issue occours either with Glassfish 3.1 (using jdk1.7) and 4.1 (using jdk1.8) and in Eclipse Luna and Mars.
I already tried to create, delete and manage glassfish domains (as suggested in other questions here at StackOverflow) to get over potential "credential-related" issues but no result.
Tried to uninstall and reinstall Glassfish Tools from Eclipse too but still no way.
Both Glasshfish 3.1 an 4.1 start flawlessly manually and NetBeans manage to start them without any problem but, as said, I need to work with eclipse so switching to NetBeans is not the solution (and, please, don't suggest me a manual deploy and server start).
As a last attempt, since I work in Windows, in a console window I tried this:
netstat -a -b
to verify no other service is "taking" port 8080 (although it doesn't seem to be a port problem but a "plug-in communication" one) but it resulted free.
I'm into this mess by days.
Please help.
Thank you
I had exactly the same problem. When I set "preserve sessions across redeployment" in the Eclipse properties dialog for GlassFish, tab "GlassFish", to false (true being the default), everything worked out fine.
I just set the proxy configuration in Eclipse menu Window -> Preferences -> General -> Network Connections (changing the Active Provider value from "Native" to "Manual" and inserting all the needed values for HTTP and HTTPS rows) and added "localhost" and "127.0.0.1" to the section "Proxy bypass".
I have faced the same problem. Generally, the programs that get dynamicly port numbers causes this. Etc: skype, teamviewer.
For me, I solved the problem with starting eclipse before them.
Maybe this works for you too.
I had the same problem, and I solved it by removing the glassfish server from Eclipse, and adding it again.
What I noticed in my own case was that other applications where using port number 4848, so I had to stop all use of port 4848 and restart the domain again ( restart glassfish server )

Can't connect to tomcat webservice

So I've been doing a java webservice in Eclipse in which I have launched on a localhost tomcat from Eclipse. This has worked very good as long as I've been connecting to the tomcat started from Eclipse.
However now I want to try deploy it on my tomcat separated from Eclipse but still on localhost. So I exported my web project to a .war file and deployed it with the tomcat manager app. However now I cant reach it from my client any longer. I'm running the tomcat on port 8080, just as my Eclipse tomcat did. BUT I can go to a reasource URL from my web browser and receive proper information, so the service is running(which the manager app is saying as well).
The client is a android device connected to the same network. The service fetches information from a MySQL database on the same machine. This connection worked fine before exporting it to war on my other tomcat
What am I doing wrong here? Just ask if you need any further information!
Ok so after testing I found it strange that I got connection time-outs and not something else. It also took at least 10 seconds before any feedback occurred. Sooo it felt like a firewall problem which indeed it was.
First I needed to portforward the tomcat port in my router to the machine ip that was hosting it. Then I remembered I had Windows firewall on that very machine which was also blocking conenctions on that port. So I allowed connections on tomcat port and BAM! It worked.
Thanks for all your comments, of course I should have thought about opening my ports before coming here.

Categories