I'm new to SIP Servlet development and I would like to know how to deploy my Sip servlet to my Jboss server.
I can't seem to find how to do it by googling it. I see a lot of information on using mobicents but do I have to?
Can't I just deploy directly like I would my HTTP servlets?
Thanks!
EDIT:
Also what is the exact difference between JAIN sip servlets and Sip servlets?
Mobicents provide Jboss and tomcat applications servers with additional modules which are required to deploy and run your sipservlet application
if you download and extract the jboss distribution you can see there are some modules call
sip-presence,sip-balancer , mobicents-media-server-1.0.3.GA.sar in deploy folder these are few and you will find a lot of additional modules/resources.
What you have to do is download the jboss from here and deploy your sipservlet war file as a normal web deployment.
Related
I am trying to deploy a JSP/servlet onto a server. Not tomcat but on a real web domain. This is my first time doing so and so far I exported it into a war file and placed the file onto the server. Nothing happened which is why I am here. All the google searches seem to concentrate on Tomcat which I have already ran the project on. Advice?
Ok, let's get really basic. You want to see the compiled JSP in a browser, through some public URL, right?
First, find a place to host your application. You can try Digital Ocean (starts at $5/mo), EATJ (free version available), Amazon AWS (free trial available), OpenShift (free gears available), your own computer with dynamic DNS, or many other options available through Google.
Next, you packed your compiled code to a war file. That war file needs to be unpacked (deployed) using some software.
There are numerous ways to handle this (Tomcat, Jetty, Glassfish, etc.). They all have their pros and cons. Pick one and learn the very basics. Tomcat doesn't require a separate web server but you can set one up with it if you like. At this stage, I would keep it simple and not do that yet.
Lastly, set up GoDaddy (or whomever you used to get your URL) to point to the IP address of that server. If your server is running and enough time has passed for the changes to propagate, you should see your page.
There are plenty other J2EE server for example, JBoss and Glassfish. Each one has it's own way to deploy your war files. For example, Glassfish is throught a web administration console (https://docs.oracle.com/cd/E19798-01/821-1757/6nmni99aj/index.html) and in JBoss you need to deploy the war file in a specific directory (http://docs.jboss.org/jbossweb/3.0.x/deployer-howto.html).
It depends on which J2EE server you are using.
Now if you want to get your own server and configure it:
Get the server or VPS
Install JAVA
Install Apache
Install a J2EE server (I prefer glassfish)
Configure glassfish with apache (http://www.codefactorycr.com/glassfish-behind-apache.html) to use apache in front of glassfish
You may want to block the ports 4848 and 8080 used by glassfish
Deploy your webapp
Have fun!!!
PS: I'm assuming you have root access to the server
Easy Apache Tomcat 7 install after,
Run Code via SSH:
/usr/local/cpanel/scripts/addservlets2 --domain=domain.com
For Linux.
I am developing an web application where some existing part is written already in php and for that apache server is being used. But now i have to complete rest of module in Java using jetty web server. Is there any way to integrate jetty webserver with existing apache webserver so that i can simply deploy as war file?
Yes, of course. Jetty is a servlet container similar to tomcat. There are instructions here:
http://wiki.eclipse.org/Jetty/Tutorial/Apache#Configuring_Apache
I have got two java projects:
is a web service, which is running fine on Tomcat 6.
the other is a client developed using Play 1.2.4 framework and must be deployed on the same tomcat as that of the web service.
My problem is that when they are deployed as a war file on tomcat, client request URL's don't include the application context and thus the path could not be found.
I read as it is possible to make Apache a bridge for tomcat will solve the problem but don't know how to configure it.
Please help me out.
I think what you mean is that your UI, developed with Play, is deployed under a context like /myapp.
You have two options:
rename the WAR file to ROOT.war. Tomcat will deploy it to /
Use Apache as Proxy and implement a Redirect
Apache config would look like:
RedirectMatch "^/$" /myapp
ProxyPass /myapp http://tomcatserver:8080/myapp
I would like to ask how can I deploy a war file to Microsoft IIS 7?
Thanks in advance.
You can't. You need a Java EE Web Container such as Tomcat or JBoss in order to do so. IIS can just act as a front facing proxy for the stuff hosted through the WAR file.
What you probably need is a way to connect IIS and Tomcat together so that requests for any dynamic resources such as JSPs and Servlets can be delegated to Tomcat.
The following link explains how to do so in detail.
http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html
Please read this article: Deploying Java Servlet applications on Windows with IIS The Java is running on Jetty and IIS is used as a proxy, but in this solution all components are fit together to make it look and feel like it is built-in IIS feature of running WAR files.
This might be duplicate of this and this question.
I have a java application in which i am using JAX-WS (WEB SERVICES). and many other features in it like apache-commons utils.
My application is swing application, that connects to my server code
and uploads and downloads, and sync files with the server. my
database is mysql.
I have compiled my server code and created a .WAR file. i deployed
that .WAR (containing all the required libraries for my server
side application) file on a JBoss server and its working fine.
Now my Management says me to why use JBoss instead of Tomcat, which
easy to manage and setup on a linux server. actualy they have a
linux server which supports tomcat, but not JBoss. so they said to
me to deploy on Tomcat on Linux Server. I installed and configured
tomcat on my windows and deployed a .WAR file. and also created
virtual directory for my resources its working fine[but not tested
completely]
My Application does not have EJB so I think that Tomcat is good enough.
Please suggest me is it fine to use Tomcat instead of JBoss server,
I am worried if it may get problems in the future, or it might not
support features of my application in future or after complete testing.
JBoss uses Tomcat under the hood to host war applications anyway.
Using Tomcat for you war application instead of JBoss should be perfectly fine.
Any commons-jars that you are using can be downloaded from http://commons.apache.org/. Put them in your lib directory and you should be good to go. Most apache commons libraries should allready be included with Tomcat though, you'll have to check.
PS:
JAX-WS is standard in the latest JDK6 updates. If your using a earlier version of the JDK then just download the JAX-WS jars. The standard reference implementation from Oracle/Sun can be downloaded from here http://jax-ws.java.net/
Do you have EJB? JBoss comes with its implementation of the EJB JSR specification.
For Tomcat, you require plugins like openEJB.
Many application servers use Tomcat internally as its Servlet container. But for compliance to JavaEE standards, most would choose a JBoss application server over Tomcat anyday.
Note that JBoss 7 Application Server Web Profile is certified.
Tomcat functions well as a plain vanilla Servlet container. Many enterprises when using Tomcat, couple it with Proxy and HTTPD servers for security and load balancing reasons.