tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Saint-Elie <...@interpasnet.com>
Subject Re: Setup help.
Date Mon, 03 Jul 2000 05:42:58 GMT
<html>
Jason<br>
<br>
You have two solutions<br>
<br>
1)
&lt;installdir&gt;\webapps\your-webapp\Web-inf\classes\myBean\Contact.class<br>
<br>
or <br>
<br>
2) Having the myBean.* packaged as a jar file and<br>
<br>
&lt;installdir&gt;\webapps\your-webapp\Web-inf\lib\myBean.jar<br>
If you use Tomcat 3.2 (dev for instance) there is no need to do anything
CLASSPATH wise, the jar file in
&lt;installdir&gt;\webapps\your-webapps\Web-inf\lib will be automatically
added to the webapp CLASSPATH<br>
For version under 3.2 (AFAIK its the case with 3.1) you need to add it to
your CLASSPATH (for example by adding a line in
&lt;installdir&gt;\bin\tomcat.bat<br>
<br>
The bean will be called by myBean.Contact<br>
<br>
I don't know how it works with a bean but with a servlet if you wanted to
be able to call it by bibopalula <br>
you'd be able to do step 2 then add the following in
&lt;installdir&gt;\webapps\your-webapp\web-inf\web.xml<br>
<br>
<font face="Arial, Helvetica" size=2 color="#008080">&lt;?xml
version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
<br>
</font><font face="Arial, Helvetica" size=2 color="#000080">&lt;!DOCTYPE
web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN&quot;<br>
&nbsp;&nbsp;&nbsp;
&quot;http://java.sun.com/j2ee/dtds/web-app_2.2.dtd&quot;&gt;<br>
</font><font face="Arial, Helvetica" size=2 color="#0000FF">&lt;</font><font
face="Arial, Helvetica" size=2 color="#800000">web-app</font><font face="Arial,
Helvetica" size=2 color="#0000FF">&gt;<br>
</font><font face="Arial, Helvetica" size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><font
face="Arial, Helvetica" size=2 color="#0000FF">&lt;</font><font face="Arial,
Helvetica" size=2 color="#800000">servlet</font><font face="Arial, Helvetica"
size=2 color="#0000FF">&gt;<br>
</font><font face="Arial, Helvetica" size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><font
face="Arial, Helvetica" size=2 color="#0000FF">&lt;</font><font face="Arial,
Helvetica" size=2 color="#800000">servlet-name</font><font face="Arial, Helvetica"
size=2 color="#0000FF">&gt;bebopalula&lt;/</font><font face="Arial, Helvetica"
size=2 color="#800000">servlet-name</font><font face="Arial, Helvetica" size=2
color="#0000FF">&gt;<br>
</font><font face="Arial, Helvetica" size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><font
face="Arial, Helvetica" size=2 color="#0000FF">&lt;</font><font face="Arial,
Helvetica" size=2 color="#800000">servlet-class</font><font face="Arial, Helvetica"
size=2 color="#0000FF">&gt;myBean.Contact&lt;/</font><font face="Arial,
Helvetica" size=2 color="#800000">servlet-class</font><font face="Arial, Helvetica"
size=2 color="#0000FF">&gt;<br>
</font><font face="Arial, Helvetica" size=2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><font
face="Arial, Helvetica" size=2 color="#0000FF">&lt;/</font><font face="Arial,
Helvetica" size=2 color="#800000">servlet</font><font face="Arial, Helvetica"
size=2 color="#0000FF">&gt;<br>
&lt;/</font><font face="Arial, Helvetica" size=2 color="#800000">web-app</font><font
face="Arial, Helvetica" size=2 color="#0000FF">&gt;<br>
<br>
</font>or even<br>
<br>
Hope this helps<br>
<br>
+------------------------------------------------+<br>
| Luc
Saint-Elie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|&nbsp;&nbsp; <br>
| email :
luc@interpasnet.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| <br>
+------------------------------------------------+<br>
|&nbsp; Java Server Side&nbsp; Open Source technologies&nbsp;&nbsp;&nbsp;
|<br>
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.interpasnet.com/JSS" eudora="autourl">http://www.interpasnet.com/JSS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|<br>
+------------------------------------------------+<br>
<br>
Bonjour (Hello) Jason Leach, vous avez écrit le (you wrote on) 11:54
01/07/00 -0700 :<br>
<blockquote type=cite cite>hi, <br>
<br>
I need a bit of help getting my bean to work with Tomcat. I am pretty
sure it`s just a lack of understanding of the document sturcture in
Jakarta, and a lack of Docs I have found walking me through the proces.
<br>
<br>
For the time being, I am using Windows NT 4 (untill I decide on a version
of Linux (freebsd at the moment)).&nbsp; I have put tomcat in D:\tomcat,
and believe I have the paths set up OK.&nbsp; I just don`t know how to
tell tomcat where by test bean `myBean.Contact` is located.&nbsp; I
assume I need to write an entry for the web.xml, but have failed in all
my vaiations. <br>
</blockquote></html>


Mime
View raw message