Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Deploying Servlets in virtual host / virtual filesystem environment

Reply
Thread Tools

Deploying Servlets in virtual host / virtual filesystem environment

 
 
while_1
Guest
Posts: n/a
 
      06-25-2004
I'm an experienced tomcat-servlet programmer, but
only in an environment where I have root access to
the local server, where war files are copied to
$JAKARTA_HOME/webapps and then started individually
with the system's manager servlet.

I want to deploy some of my own work (from that environment)
on a shared host virtual filesystem setup--on a
small-scale commercial hosting machine. There the setup is
different and the local host provider doesn't
seem to know much about tomcat.

There is a WEB-INF directory inside the virtual document root.
But deploying a typical web.xml file there and trying
to reference it with http://that_domain:8080/myservlet
doesn't work.

I've spent several hours trying to find tomcat virtual
host information with Google, but got no where fast.

Is there a standard virtual-domain, virtual-filesystem
way of setting up and deploying tomcat servlets?
Does anyone know of a url to useful documentation?
 
Reply With Quote
 
 
 
 
Bryce
Guest
Posts: n/a
 
      06-25-2004
On 25 Jun 2004 06:17:44 -0700,
(while_1) wrote:

>I'm an experienced tomcat-servlet programmer, but
>only in an environment where I have root access to
>the local server, where war files are copied to
>$JAKARTA_HOME/webapps and then started individually
>with the system's manager servlet.
>
>I want to deploy some of my own work (from that environment)
>on a shared host virtual filesystem setup--on a
>small-scale commercial hosting machine. There the setup is
>different and the local host provider doesn't
>seem to know much about tomcat.


Find another hosting provider...

You can also include an xml file that goes into the webapps root
directory. It looks like this:

<context path="url path" docBase="path to web app's root">
// stuff in here
</context>

>There is a WEB-INF directory inside the virtual document root.
>But deploying a typical web.xml file there and trying
>to reference it with http://that_domain:8080/myservlet
>doesn't work.


This is different. What version of Tomcat?

And "doesn't work" is kind of vague. What's the error?

Does the context "myservlet" point to your virtual document root? How
are you defining your servlet in the web.xml file?

>I've spent several hours trying to find tomcat virtual
>host information with Google, but got no where fast.
>
>Is there a standard virtual-domain, virtual-filesystem
>way of setting up and deploying tomcat servlets?
>Does anyone know of a url to useful documentation?


standard way is to define contexts either the way I described above or
in the <tomcat_home>/conf/server.xml. By default, Tomcat looks in its
webapps directory. Each folder or war file represents a seperate web
application.

--
now with more cowbell
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      06-25-2004
On Fri, 25 Jun 2004 13:05:50 -0400, Bryce
<> wrote or quoted :

>Find another hosting provider...

see http://mindprod.com/jgloss/isp.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Host Webrick servlets with Apache FastCGI? Andrew S. Townley Ruby 0 02-11-2009 09:38 AM
70-284 Lab Environment, Need Virtual Environment brooklynbridge508@hotmail.com MCSA 4 05-02-2007 09:49 AM
Java servlets: Hi All! I want to display xml file in browser using servlets datta.saru Software 0 05-15-2006 03:30 PM
Problem deploying unmanagded dll on host server Utilisateur1 ASP .Net 0 10-17-2005 02:40 PM
deploying and re-deploying ASP.Net applications =?Utf-8?B?VG9tIE4=?= ASP .Net 2 02-04-2004 09:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57