I plan on using solr on my VPS.
My server is Ubuntu.
Does anybody know if Jetty can run without problems on Ubuntu, just as in the example Solr distribution?
With Tomcat it is possible, but my Q is, is it possible with Jetty?
Thanks
Yes. Works fine.
We have run several internal applications for a while on Jetty on Ubuntu and Debian. This works absolutely fine.
We bundle everything in a debian package and distribute it complete, appserver wars and jars as one package.
This is a lot easier than deploying on the standard tomcat distribution.
Related
Am getting into java web development and currently web server (tomcat) is running on the same laptop I use for coding. Now, I want to install FreeBSD on other computer, then install stuff like tomcat, some db server to learn more about unix and have a more real world environment. Idea is to have my laptop for coding (it uses win7 and InteliJ as IDE) and this other computer (freeBSD on it) for server side stuff. So my question is, how do I make this happen? Is there a way to connect intelij to that computer and have intelij acces its file system where my web related stuf would be stored. That sounds like a good way to do it. Give me some advice and pointers, Thanks !
Not sure if this is what you want.
IntelliJ will allow you to remote debug an application in the tomcat server. However to have IntelliJ reload the application to tomcat requires the ultimate edition of IntelliJ.
That said you can write scripts or use Maven (Ant or Gradle) from within IntelliJ to deploy your application to Tomcat, its more clunky than the remote deploy option with ultimate.
This is a very unusual question. I am able to run all kinds of java projects in my Eclipse Luna, but when I am creating a dynamic web projects, the JSPs are running fine but the servlets are not getting executed. It always says resource not found.I am able to import and run war files nicely created and exported from other machines. I have tried reinstalling the java in the system but that is also not helpful. At the moment I can't think of anything else.
I am using Ubuntu 14.04 lt's, openJDK 1.7 amd64 bit version and Eclipse Luna
Any suggestions and help would ne really of great help...
Thanks with regards,
Piyush
I am having trouble using my local JBoss Web 2.1.9.GA instance within my local Eclipse installation as a Server Runtime Environment.
Our client uses JBoss Web 2.1.9.GA instead of a standard Tomcat 6 installation, and so I am required to test and debug with a local JBoss Web 2.1.9.GA instance. Now, I am aware that JBoss Web is simply a rebranded and only slightly modified version of Tomcat 6, but when I try to use the "Apache > Apache Tomcat v6.0" server runtime as my choice, and then select the server base folder on my machine, I receive the following error at the top of the dialog:
The Apache Tomcat installation at this directory is version 2.1.9.GA. A Tomcat 6.0 installation is expected.
I am unsure how to get this working as it is intended to work at this point; there doesn't seem to be any options that will accept a JBoss Web 2.1.9.GA server folder. There also seems to be practically zero information online concerning the use of JBoss Web within Eclipse.
For context, I am using the SpringSource Tool Suite v2.9.2.RELEASE pre-packaged Eclipse install on a MacBook Pro running OS 10.7.4. It shouldn't matter however, java is java, and Eclipse is Eclipse, yes?
Has anyone had experience and luck with this?
Tom Harris
(I posted this question on Feb 22, but there was still no answer on March 5, so I am appending this note and rewording the question a bit.)
I have a server java project, which runs on glassfish.
How does it put into the package and run on any machine and install it?
Glassfish is a heavy server. If you wants to deploy your application on several machines, you should use a lighter Java server.
You can look at theses project, which provide a package with an embedded Jetty web server (with startup scripts for all plarforms: Windows, Linux, Mac, Solaris, etc.).
http://jenkins-ci.org/
http://www.sonarsource.org/
http://nexus.sonatype.org/
Once your application can work on an embedded Jetty server, create an installer will be much easier (with InnoSetup, IzPack, etc.).
Making Multiplateform installer with Izpack is really easy and fun. You can package your application in installer and run on any machine. Just go through the tutorial here and you will have your own installer.
Sorry if my question seems dumb. I've started using Eclipse Ganymede 3.4 this week and having hard time publishing my projects to the web app server.
First of all you need to know this issue:
i installed my Tomcat 6.0.18 from Netbeans that i use for PHP and J2SE project. While i can start that server from either Netbeans or Eclipse, it can not start manually for some reason even though i setup my JAVA_HOME correctly pointing to jdk/bin it's saying it's a jre. it a bit weird but i can use the IDE to get going. i did some research on the net and find out that eclipse doesn't publish to tomcat.
In fact i always develop by having a local copy on other drive than C where XP is installed and publish to a server installed on C.
So where i need to find a way to publish to Tomcat under C.
It there any simple way to do that?
Please share your experience.
Thanks for reading
Ps : i know that i can use Netbeans but i'ld like to use Eclipse and use its wysiwyg
thanks!
WTP (Web Tools Platform) should get you what you need. It's a set of Eclipse plugins which includes a one to start/stop/debug Tomcat and publish to a local Tomcat installation.
http://www.eclipse.org/webtools/
You can download a version of Eclipse that already includes WTP: Eclipse IDE for Java EE Developers.
I admit this is not the best practice for a general case, but in my local development environment I created a separate Tomcat environment and I simply store the project itself in this Tomcat's webapps directory. This way the 'deployment' is implicit and instant.
Of course when I need to do changes in the code which cannot be incrementally added during a debug session, I have to restart the Tomcat.