Where is webapps in tomcat 7? - deployment

I am a erlang chicago boss developer, I have been asked to install a tomcat and deploy 2 war files to start the website.
I installed it using guide :
sudo apt-get install tomcat7
Now he has sent me some files which include menu.war and dashboard.war
Here it is referred as $TOMCAT_HOME/webapps in How do I deploy a WAR file in Tomcat?'
Can someone tell me where is my $TOMCAT_HOME directory?
$ echo $TOMCAT_HOME
Command is not displaying anything!
Thanks in advance!

Ok. Once you are done with tomcat installation using sudo apt-get install tomcat7, its for sure that it has installed somewhere in your machine say it under /opt or the path you have specified while installing.
Go to tomcat installation directory and this path has to be set as environment variable(TOMCAT_HOME). Even you leave it doesn't matter.
You can very well copy the 2 war files inside the webapps directory under tomcat folder.
EX: If you install tomcat7 under /opt, then /opt/tomcat7/webapps is place where you have to deploy the war files.

Related

Can't add TomCat sever in Eclipse using ubuntu

So I installed tomcat using this tutorial (instructions from 0:00 to 3:30): https://www.youtube.com/watch?v=xyd9EoO-1nk
Later I restarted my computer and now when I go into "eclipse -> Window -> Preferences -> Server -> Runtime Environments -> Add" I have here only "Basic" and "GlassFish" directories. Somebody have maybe idea how to make visible tomcat here?
I also installed tomcat using "sudo apt-get install tomcat7" but it also didn't help. But when I go into "localhost:8080" I see "It works! If you're seeing this page via a web browser...".
First part, the tomcat installation
You installed tomcat in your linux as a service. I mean your tomcat 7 is installed, start when you start your OS, and stop when you stop your OS.
You can check this by looking in /etc/init.d/, you must have a tomcat script (and you can control it by doing /etc/init.d/tomcat start|stop|restart). If you want to use this tomcat, I recommend you to
stop tomcat (as root, /etc/init.d/tomcat stop),
remove the tomcat script (as root, rm /etc/init.d/tomcat) to avoid a
tomcat start when the ubuntu boots
Locate the tomcat instance installation. find / -name tomcat
-print will print you all the directory where files named tomcat are located. Identify the tomcat root directory, which is the root
to give to eclipse.
Else you can just remove tomcat (apt-get remove tomcat7), download a tomcat release from tomcat.apache.org and untar it where you want. I prefer this method, because the tomcat installation won't have any "root" o weird user permission, more convenient when you're developing.
Second part, the eclipse configuration:
In the "Add Runtime Environment" windows, you'd have a link Download additional server adapters. If you click it (with a working network connection), eclipse will propose you to download the tomcat adapter. Install it and you'll be capable to add a new tomcat server.
If it doesn't work, I think you may reinstall your eclipse...
Hope this helps

Error installing JBoss BPM Suite

I have no experience with JBoss BPM Suite I'd like your help.
I'm trying to install the JBoss BPM Suite, downloaded jboss-bpmsuite-6.1.0.GA-installer.jar file in the jboss site, to start the installation and performed the command java -jar jboss-bpmsuite-6.1.0.GA- installer.jar.
The program ran and asked to accept LICENSE later I informed the installation path, but it happened the following error:
"The required product.conf file in.:/home/user/ tools is missing or malformed Please supply Either an empty directory or an EAP installation"
I am unable to resolve this issue, someone help me?
thank you
You first have to install EAP server. Install it into your root folder with any name (EAP-version). After installing it then install BPM suite and provide the installation path the same as the EAP server and you are done.
You have to install the EAP server first. Download the desired version, and install EAP.
Then you should define environment variables for $JAVA_HOME and $PATH (if they are not set).
Finally, execute 'java -jar /jboss-bpmsuite-.0.0.GA-installer.jar'
Create a new folder outside SRC where you have saved all the packages related to JBPM and provide the same path as of new folder. It will be resolved.

Deploying and managing Java EE applications on remote machine

I have a VPS machine running Ubuntu 12.04 and I want to deploy and run my local Eclipse projects (mostly wicket projects) on this machine. I installed and started Jetty server on it but could not figure out what to do next. Should I just copy my project files to the /webapps folder and edit configurations? I can sense it is not that easy (Consider me as a noob). Any help would be appreciated
Generate a war and copy it to webapps folder. Then startup server.
If you need further details, take a look at this:
http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications

Installing websphere application server 7 in eclipse juno

I have followed the instructions given in this link http://blog.webagesolutions.com/archives/538 to install websphere 7 in eclipse juno.Everything went smoothly but when I tried to define the websphere installation directory, it is not accepting the location that I am specifying.I am sure the installation of the server is working fine as I was able to deploy an ear from admin console.The installation path that I am specifying is this
C:\Users\User1\IBM\WebSphere\AppServer
I have added the following in the eclipse configuration file
-vm
C:\Users\User1\IBM\WebSphere\AppServer\java\jre\bin\javaw.exe
You are using wrong path.
Try reference this path bellow:
C:\Program Files\IBM\WebSphere\AppServer

eclipse can not determine apache tomcat 7 on ubuntu

I'm using eclipse 3.8 and running it on ubuntu 12.10 which has apache tomcat 7.
the problem is when I want to select tomcat as my server on eclipse runtime environment there is no option for selecting apache tomcat 7.
I've tested tomcat server at localhost:8080 and it works.it seems there is no problem with tomcat itself but I don't know why I cant add it to eclipse.Is there any idea to solve this problem?
edit:
my eclise is not a java ee edition and I've installed java ee as a plugin.
Here's the way I did it, it keeps the system tomcat and your own personal tomcat instance separate, and you don't have to change permissions or stop the tomcat running as a service.
Install tomcat as per normal: sudo apt-get install tomcat7
Install private instance support: sudo apt-get install tomcat7-user
Create local instance in your home folder:
tomcat7-instance-create -p 10080 -c 10005 mytomcat
Note: -p sets the port number (default is 8080) and -c is the control port (default 8005), we set these so we don't compete with the main installation of tomcat running as a service. "mytomcat" can be anything you like, but it will create a directory by this name in your home.
Now use the following to make Eclipse happy:
cd mytomcat
ln -s /usr/share/tomcat7/lib
ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
ln -s /usr/share/tomcat7/bin/bootstrap.jar bin/bootstrap.jar
ln -s /usr/share/tomcat7/bin/tomcat-juli.jar bin/tomcat-juli.jar
mkdir -p common/classes;
mkdir -p server/classes;
mkdir -p shared/classes;
Now within Eclipse you can create a Tomcat v7.0 server and set the installation directory as ~/mytomcat.
Note: common, server and shared classes could be links too, but I wanted to keep the two separate.
please be more precise in your question: did you install Tomcat and Eclipse via APT? Is your Eclipse Java EE edition, or did you install the Java EE plugin?
I will suppose you got both from Ubuntu repository and you are using Eclipse for Java EE developers.
You look to http://lackovic.wordpress.com/2012/05/31/set-up-eclipse-and-tomcat-7-on-ubuntu-12-04-to-create-java-restful-web-services-with-jersey/ and follow the how-to till step 13. For me worked flawlessly.
Before starting, you must stop the running service with sudo service tomcat7 stop. In fact, Eclipse needs to start his own instance of Tomcat, that is gonna crash if there is another Tomcat listening on 8080.
Please note that Ubuntu's Tomcat installation is a little bit different from the vanilla one: in fact, Ubuntu's maintainers decide to split up the base directory and the configuration directory, while Eclipse is going to look in the base directory for configurations.