You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ku...@inwind.it on 2003/05/31 10:15:54 UTC

installing Tomcat without being root

Hello,
i would like to install TomCat 4.1.24 on a Linux server, and i'm not a root
user.
Actually, the server administrator installed for me TomCat (from .rpm) as
root user,
and then gave me the password for the user "tomcat4", but that is not
usefull at all, since
i need a complete control of the config files of tomcat, and i cannot
neither start it.
Now i would like to uninstall the current TomCat, and reinstalling it in the
way i have complete control over TomCat.

Which steps must i tell to the admin to follow, for installing correctly
TomCat for me?

Greetings,
Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Holger Klawitter <li...@klawitter.de>.
> javac doesn't when I set my class path variable.
>
> $ echo $CLASSPATH
> /var/tomcat4/common/lib/servlet.jar

Perhaps because you didn't
	export CLASSPATH
in order to make the environment variable available to child processes of your 
shell (for details: "man bash | less +/^ENV")

Mit freundlichem Gruß / With kind regards
	Holger Klawitter
--
lists@klawitter.de


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Actually setting the $CLASSPATH should work. I prefer the 'javac 
-classpath' method, as you can specify the jars that you want instead of 
a bunch of directories in the $CLASSPATH variable.  Try combining that 
with a shell script, saves you from typing too many times. Better yet, 
use ant.

Jonathan Michael Nowacki wrote:

>Holy cow!!! It worked.  Thank you very much Kwok Peng Tuck
>
>It's still puzzles me why
>javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
>works yet
>
>javac doesn't when I set my class path variable.
>
>$ echo $CLASSPATH
>/var/tomcat4/common/lib/servlet.jar
>
>$ javac MultiServlet.java
>MultiServlet.java:1: package javax.servlet does not exist
>import javax.servlet.*;
>^
>MultiServlet.java:2: package javax.servlet.http does not exist
>import javax.servlet.http.*;
>^
>
>the $CLASSPATH variable is the same as whats after -classpath, why does
>one work and the other doesn't.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Jonathan Michael Nowacki <jn...@indiana.edu>.
Holy cow!!! It worked.  Thank you very much Kwok Peng Tuck

It's still puzzles me why
javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
works yet

javac doesn't when I set my class path variable.

$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar

$ javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

the $CLASSPATH variable is the same as whats after -classpath, why does
one work and the other doesn't.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Kwok Peng Tuck <pe...@makmal.net>.
That's because it's javac -classpath.


Jonathan Michael Nowacki wrote:

>I'm compiling with root, 
>
>$ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
>javac: invalid flag: -cp
>Usage: javac <options> <source files>
>
>and if I change my classpath to:
>$ echo $CLASSPATH
>/var/tomcat4/common/lib/servlet.jar
>
>I still get the same error
>
>$ javac MultiServlet.java 
>MultiServlet.java:1: package javax.servlet does not exist
>import javax.servlet.*;
>^
>MultiServlet.java:2: package javax.servlet.http does not exist
>import javax.servlet.http.*;
>^
>
>Weird isn't it.
>
>
>
>
>On Mon, 2 Jun 2003, Jason Bainbridge wrote:
>
>  
>
>>Simplify things... Firstly that extensive CLASSPATH you have created could be 
>>causing more problems than it is solving, so try removing it.
>>
>>Then just try:
>>
>>javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
>>
>>Does that work?
>>
>>If not does the user you are compiling with have rights to access 
>>/var/tomcat4/common/lib/servlet.jar ?
>>
>>Regards,
>>Jason
>>
>>
>>On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
>>    
>>
>>>This website http://www.sitepoint.com/article/509/3 says all I have to do
>>>is put servlet.jar in my classpath to solve my problems. Unfortunitally,
>>>it doesn't seem to work.
>>>
>>>      
>>>
>>>>>This is my error
>>>>>          
>>>>>
>>>>--------------------------------------------------------------------------
>>>>-------------------------------
>>>>
>>>>        
>>>>
>>>>>$ javac MultiServlet.java
>>>>>MultiServlet.java:1: package javax.servlet does not exist
>>>>>import javax.servlet.*;
>>>>>^
>>>>>MultiServlet.java:2: package javax.servlet.http does not exist
>>>>>import javax.servlet.http.*;
>>>>>^
>>>>>          
>>>>>
>>>>--------------------------------------------------------------------------
>>>>-----
>>>>        
>>>>
>>>THis is my path
>>>$ echo $CLASSPATH
>>>/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
>>>ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
>>>common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
>>>ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
>>>ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
>>>b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
>>>omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
>>>/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
>>>
>>>:/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
>>>:ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
>>>
>>>lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
>>>omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
>>>commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
>>>/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
>>>jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
>>>j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
>>>lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
>>>:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
>>>omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
>>>er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
>>>mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
>>>ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
>>>erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
>>>4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
>>>r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
>>>:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
>>>htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
>>>dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
>>>a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
>>>r/java/j2sdkee1.4/lib/jhall.jar
>>>
>>>The actual code is
>>>CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
>>>naming-resources.jar:/va
>>>r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
>>>lections.jar:/var/tomcat
>>>4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
>>>/var/tomcat4/common/lib/
>>>ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
>>>asper-compiler.jar:/var/
>>>tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
>>>cat4/common/lib/servlet.
>>>jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
>>>/jta.jar:/var/tomcat4/co
>>>mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
>>>server/lib/servlets-comm
>>>on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
>>>ib/tomcat-http11.jar:/va
>>>r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
>>>ns-digester.jar:/var/tom
>>>cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var
>>>/tomcat4/server/lib/comm
>>>ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/
>>>server/lib/mx4j-jmx.jar:
>>>/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.r
>>>enametojar:/var/tomcat4/
>>>server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:
>>>/var/tomcat4/server/lib/
>>>tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/ser
>>>ver/lib/commons-modeler.
>>>jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-defau
>>>lt.jar:/var/tomcat4/serv
>>>er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/v
>>>ar/tomcat4/server/lib/to
>>>mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib
>>>/tomcat-warp.jar:/usr/ja
>>>va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/
>>>j2sdk1.4.1_02/lib/j2eeto
>>>ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/h
>>>tmlconverter.jar:/usr/ja
>>>va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:
>>>/usr/java/j2sdkee1.4/lib
>>>/j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib
>>>/j2eetools.jar:/usr/java /j2sdkee1.4/lib/jhall.jar
>>>
>>>which is very long so, in short it contains:
>>>All the J2sdk 1.4 jar files
>>>All the J2sdk Enterprise edition Jar files
>>>
>>>and the following tomcat jar files
>>>/var/tomcat4/common/lib/
>>>
>>>      
>>>
>>>>>activation.jar           commons-dbcp.jar         jasper-compiler.jar
>>>>>jndi.jar     naming-common.jar     servlet.jar
>>>>>ant.jar                  commons-logging-api.jar  jasper-runtime.jar
>>>>>jta.jar      naming-factory.jar
>>>>>commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
>>>>>mailapi.jar  naming-resources.jar
>>>>>          
>>>>>
>>>/var/tomcat4/server/lib/
>>>
>>>      
>>>
>>>>>catalina-ant.jar        commons-logging.jar     mx4j.license
>>>>>servlets-manager.jar      tomcat-jk2.jar
>>>>>catalina.jar            commons-modeler.jar
>>>>>          
>>>>>
>>>servlets-cgi.renametojar
>>>
>>>      
>>>
>>>>>servlets-ssi.renametojar  tomcat-jk.jar
>>>>>commons-beanutils.jar   jaas.jar                servlets-common.jar
>>>>>servlets-webdav.jar       tomcat-util.jar
>>>>>commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
>>>>>tomcat-coyote.jar         tomcat-warp.jar
>>>>>commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
>>>>>          
>>>>>
>>>After doing all this work, The compilation errors still occure, despite
>>>what the documentation and help files tell me.
>>>
>>>Correct me if I'm wrong, but I thought *.jar was valid, it works on my
>>>other files.
>>>
>>>On Sun, 1 Jun 2003, Jacob Kjome wrote:
>>>      
>>>
>>>>You have an invalid classpath.  Note that you must add each and every
>>>>.jar file to the classpath.  It is invalid to specify *.jar.  The only
>>>>way that would work is by using a batch file and looping through all jar
>>>>files in a directly and then adding each to the classpath for each
>>>>iteration.  Fix that and your compilation will start working properly. 
>>>>I'd suggest learning about Ant to do you builds as well.
>>>>
>>>>Jake
>>>>
>>>>At 01:56 AM 6/1/2003 -0500, you wrote:
>>>>        
>>>>
>>>>>This website http://www.sitepoint.com/article/509/3 says all I have to
>>>>>do is put servlet.jar in my classpath to solve my problems. 
>>>>>Unfortunitally, it doesn't seem to work.
>>>>>
>>>>>
>>>>>This is my path
>>>>>------------------
>>>>>$ echo $CLASSPATH
>>>>>/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/to
>>>>>mcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar
>>>>>
>>>>>The classpath is set in the .bashrc, but that should effect the javac
>>>>>command right?!?  I've also done the classpath without the *.jar by
>>>>>explicitly naming each of the jar files.... talk about a pain.
>>>>>
>>>>>
>>>>>This is my error
>>>>>------------------------------------------------------------------------
>>>>>--------------------------------- $ javac MultiServlet.java
>>>>>MultiServlet.java:1: package javax.servlet does not exist
>>>>>import javax.servlet.*;
>>>>>^
>>>>>MultiServlet.java:2: package javax.servlet.http does not exist
>>>>>import javax.servlet.http.*;
>>>>>^
>>>>>------------------------------------------------------------------------
>>>>>-------
>>>>>
>>>>>
>>>>>
>>>>>these are installed:
>>>>>---------------------------------
>>>>>tomcat4-webapps-4.1.24-full.2jpp
>>>>>tomcat4-4.1.24-full.2jpp
>>>>>tomcat4-admin-webapps-4.1.24-full.2jpp
>>>>>j2re1.4.1_02
>>>>>j2sdk1.4.1_02
>>>>>j2sdkee1.4
>>>>>
>>>>>
>>>>>The tomcat lib jar files
>>>>>--------------------------------------
>>>>>classes $ ls /var/tomcat4/common/lib/
>>>>>activation.jar           commons-dbcp.jar         jasper-compiler.jar
>>>>>jndi.jar     naming-common.jar     servlet.jar
>>>>>ant.jar                  commons-logging-api.jar  jasper-runtime.jar
>>>>>jta.jar      naming-factory.jar
>>>>>commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
>>>>>mailapi.jar  naming-resources.jar
>>>>>
>>>>>classes $ ls /var/tomcat4/server/lib/
>>>>>catalina-ant.jar        commons-logging.jar     mx4j.license
>>>>>servlets-manager.jar      tomcat-jk2.jar
>>>>>catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
>>>>>servlets-ssi.renametojar  tomcat-jk.jar
>>>>>commons-beanutils.jar   jaas.jar                servlets-common.jar
>>>>>servlets-webdav.jar       tomcat-util.jar
>>>>>commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
>>>>>tomcat-coyote.jar         tomcat-warp.jar
>>>>>commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
>>>>>tomcat-http11.jar
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>>          
>>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>      
>>>
>>-- 
>>Jason Bainbridge
>>KDE Web Team - http://kde.org 
>>webmaster@kde.org 
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Jonathan Michael Nowacki <jn...@indiana.edu>.
I'm compiling with root, 

$ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
javac: invalid flag: -cp
Usage: javac <options> <source files>

and if I change my classpath to:
$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar

I still get the same error

$ javac MultiServlet.java 
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

Weird isn't it.




On Mon, 2 Jun 2003, Jason Bainbridge wrote:

> Simplify things... Firstly that extensive CLASSPATH you have created could be 
> causing more problems than it is solving, so try removing it.
> 
> Then just try:
> 
> javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
> 
> Does that work?
> 
> If not does the user you are compiling with have rights to access 
> /var/tomcat4/common/lib/servlet.jar ?
> 
> Regards,
> Jason
> 
> 
> On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
> > This website http://www.sitepoint.com/article/509/3 says all I have to do
> > is put servlet.jar in my classpath to solve my problems. Unfortunitally,
> > it doesn't seem to work.
> >
> > > >This is my error
> > >
> > >--------------------------------------------------------------------------
> > >-------------------------------
> > >
> > > >$ javac MultiServlet.java
> > > >MultiServlet.java:1: package javax.servlet does not exist
> > > >import javax.servlet.*;
> > > >^
> > > >MultiServlet.java:2: package javax.servlet.http does not exist
> > > >import javax.servlet.http.*;
> > > >^
> > >
> > >--------------------------------------------------------------------------
> > >-----
> >
> > THis is my path
> > $ echo $CLASSPATH
> > /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
> >ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
> > common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
> >ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
> > ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
> >b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
> > omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
> >/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
> >
> > :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
> > :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
> >
> > lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
> >omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
> > commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
> >/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
> > jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
> >j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
> > lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
> >:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
> > omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
> >er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
> > mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
> >ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
> > erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
> >4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
> > r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
> >:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
> > htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
> >dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
> > a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
> >r/java/j2sdkee1.4/lib/jhall.jar
> >
> > The actual code is
> > CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
> >naming-resources.jar:/va
> > r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
> >lections.jar:/var/tomcat
> > 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
> >/var/tomcat4/common/lib/
> > ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
> >asper-compiler.jar:/var/
> > tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
> >cat4/common/lib/servlet.
> > jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
> >/jta.jar:/var/tomcat4/co
> > mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
> >server/lib/servlets-comm
> > on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
> >ib/tomcat-http11.jar:/va
> > r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
> >ns-digester.jar:/var/tom
> > cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var
> >/tomcat4/server/lib/comm
> > ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/
> >server/lib/mx4j-jmx.jar:
> > /var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.r
> >enametojar:/var/tomcat4/
> > server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:
> >/var/tomcat4/server/lib/
> > tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/ser
> >ver/lib/commons-modeler.
> > jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-defau
> >lt.jar:/var/tomcat4/serv
> > er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/v
> >ar/tomcat4/server/lib/to
> > mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib
> >/tomcat-warp.jar:/usr/ja
> > va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/
> >j2sdk1.4.1_02/lib/j2eeto
> > ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/h
> >tmlconverter.jar:/usr/ja
> > va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:
> >/usr/java/j2sdkee1.4/lib
> > /j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib
> >/j2eetools.jar:/usr/java /j2sdkee1.4/lib/jhall.jar
> >
> > which is very long so, in short it contains:
> > All the J2sdk 1.4 jar files
> > All the J2sdk Enterprise edition Jar files
> >
> > and the following tomcat jar files
> > /var/tomcat4/common/lib/
> >
> > > >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> > > >jndi.jar     naming-common.jar     servlet.jar
> > > >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> > > >jta.jar      naming-factory.jar
> > > >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> > > >mailapi.jar  naming-resources.jar
> >
> > /var/tomcat4/server/lib/
> >
> > > >catalina-ant.jar        commons-logging.jar     mx4j.license
> > > >servlets-manager.jar      tomcat-jk2.jar
> > > >catalina.jar            commons-modeler.jar
> >
> > servlets-cgi.renametojar
> >
> > > >servlets-ssi.renametojar  tomcat-jk.jar
> > > >commons-beanutils.jar   jaas.jar                servlets-common.jar
> > > >servlets-webdav.jar       tomcat-util.jar
> > > >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> > > >tomcat-coyote.jar         tomcat-warp.jar
> > > >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
> >
> > After doing all this work, The compilation errors still occure, despite
> > what the documentation and help files tell me.
> >
> > Correct me if I'm wrong, but I thought *.jar was valid, it works on my
> > other files.
> >
> > On Sun, 1 Jun 2003, Jacob Kjome wrote:
> > > You have an invalid classpath.  Note that you must add each and every
> > > .jar file to the classpath.  It is invalid to specify *.jar.  The only
> > > way that would work is by using a batch file and looping through all jar
> > > files in a directly and then adding each to the classpath for each
> > > iteration.  Fix that and your compilation will start working properly. 
> > > I'd suggest learning about Ant to do you builds as well.
> > >
> > > Jake
> > >
> > > At 01:56 AM 6/1/2003 -0500, you wrote:
> > > >This website http://www.sitepoint.com/article/509/3 says all I have to
> > > > do is put servlet.jar in my classpath to solve my problems. 
> > > > Unfortunitally, it doesn't seem to work.
> > > >
> > > >
> > > >This is my path
> > > >------------------
> > > >$ echo $CLASSPATH
> > > >/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/to
> > > >mcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar
> > > >
> > > >The classpath is set in the .bashrc, but that should effect the javac
> > > >command right?!?  I've also done the classpath without the *.jar by
> > > >explicitly naming each of the jar files.... talk about a pain.
> > > >
> > > >
> > > >This is my error
> > > >------------------------------------------------------------------------
> > > >--------------------------------- $ javac MultiServlet.java
> > > >MultiServlet.java:1: package javax.servlet does not exist
> > > >import javax.servlet.*;
> > > >^
> > > >MultiServlet.java:2: package javax.servlet.http does not exist
> > > >import javax.servlet.http.*;
> > > >^
> > > >------------------------------------------------------------------------
> > > >-------
> > > >
> > > >
> > > >
> > > >these are installed:
> > > >---------------------------------
> > > >tomcat4-webapps-4.1.24-full.2jpp
> > > >tomcat4-4.1.24-full.2jpp
> > > >tomcat4-admin-webapps-4.1.24-full.2jpp
> > > >j2re1.4.1_02
> > > >j2sdk1.4.1_02
> > > >j2sdkee1.4
> > > >
> > > >
> > > >The tomcat lib jar files
> > > >--------------------------------------
> > > >classes $ ls /var/tomcat4/common/lib/
> > > >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> > > >jndi.jar     naming-common.jar     servlet.jar
> > > >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> > > >jta.jar      naming-factory.jar
> > > >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> > > >mailapi.jar  naming-resources.jar
> > > >
> > > >classes $ ls /var/tomcat4/server/lib/
> > > >catalina-ant.jar        commons-logging.jar     mx4j.license
> > > >servlets-manager.jar      tomcat-jk2.jar
> > > >catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
> > > >servlets-ssi.renametojar  tomcat-jk.jar
> > > >commons-beanutils.jar   jaas.jar                servlets-common.jar
> > > >servlets-webdav.jar       tomcat-util.jar
> > > >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> > > >tomcat-coyote.jar         tomcat-warp.jar
> > > >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
> > > >tomcat-http11.jar
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> -- 
> Jason Bainbridge
> KDE Web Team - http://kde.org 
> webmaster@kde.org 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Jason Bainbridge <ja...@jblinux.org>.
Simplify things... Firstly that extensive CLASSPATH you have created could be 
causing more problems than it is solving, so try removing it.

Then just try:

javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java

Does that work?

If not does the user you are compiling with have rights to access 
/var/tomcat4/common/lib/servlet.jar ?

Regards,
Jason


On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
> This website http://www.sitepoint.com/article/509/3 says all I have to do
> is put servlet.jar in my classpath to solve my problems. Unfortunitally,
> it doesn't seem to work.
>
> > >This is my error
> >
> >--------------------------------------------------------------------------
> >-------------------------------
> >
> > >$ javac MultiServlet.java
> > >MultiServlet.java:1: package javax.servlet does not exist
> > >import javax.servlet.*;
> > >^
> > >MultiServlet.java:2: package javax.servlet.http does not exist
> > >import javax.servlet.http.*;
> > >^
> >
> >--------------------------------------------------------------------------
> >-----
>
> THis is my path
> $ echo $CLASSPATH
> /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
>ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
> common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
>ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
> ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
>b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
> omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
>/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
>
> :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
> :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
>
> lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
>omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
> commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
>/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
> jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
>j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
> lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
>:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
> omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
>er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
> mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
>ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
> erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
>4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
> r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
>:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
> htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
>dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
> a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
>r/java/j2sdkee1.4/lib/jhall.jar
>
> The actual code is
> CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
>naming-resources.jar:/va
> r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
>lections.jar:/var/tomcat
> 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
>/var/tomcat4/common/lib/
> ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
>asper-compiler.jar:/var/
> tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
>cat4/common/lib/servlet.
> jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
>/jta.jar:/var/tomcat4/co
> mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
>server/lib/servlets-comm
> on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
>ib/tomcat-http11.jar:/va
> r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
>ns-digester.jar:/var/tom
> cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var
>/tomcat4/server/lib/comm
> ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/
>server/lib/mx4j-jmx.jar:
> /var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.r
>enametojar:/var/tomcat4/
> server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:
>/var/tomcat4/server/lib/
> tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/ser
>ver/lib/commons-modeler.
> jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-defau
>lt.jar:/var/tomcat4/serv
> er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/v
>ar/tomcat4/server/lib/to
> mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib
>/tomcat-warp.jar:/usr/ja
> va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/
>j2sdk1.4.1_02/lib/j2eeto
> ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/h
>tmlconverter.jar:/usr/ja
> va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:
>/usr/java/j2sdkee1.4/lib
> /j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib
>/j2eetools.jar:/usr/java /j2sdkee1.4/lib/jhall.jar
>
> which is very long so, in short it contains:
> All the J2sdk 1.4 jar files
> All the J2sdk Enterprise edition Jar files
>
> and the following tomcat jar files
> /var/tomcat4/common/lib/
>
> > >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> > >jndi.jar     naming-common.jar     servlet.jar
> > >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> > >jta.jar      naming-factory.jar
> > >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> > >mailapi.jar  naming-resources.jar
>
> /var/tomcat4/server/lib/
>
> > >catalina-ant.jar        commons-logging.jar     mx4j.license
> > >servlets-manager.jar      tomcat-jk2.jar
> > >catalina.jar            commons-modeler.jar
>
> servlets-cgi.renametojar
>
> > >servlets-ssi.renametojar  tomcat-jk.jar
> > >commons-beanutils.jar   jaas.jar                servlets-common.jar
> > >servlets-webdav.jar       tomcat-util.jar
> > >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> > >tomcat-coyote.jar         tomcat-warp.jar
> > >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
>
> After doing all this work, The compilation errors still occure, despite
> what the documentation and help files tell me.
>
> Correct me if I'm wrong, but I thought *.jar was valid, it works on my
> other files.
>
> On Sun, 1 Jun 2003, Jacob Kjome wrote:
> > You have an invalid classpath.  Note that you must add each and every
> > .jar file to the classpath.  It is invalid to specify *.jar.  The only
> > way that would work is by using a batch file and looping through all jar
> > files in a directly and then adding each to the classpath for each
> > iteration.  Fix that and your compilation will start working properly. 
> > I'd suggest learning about Ant to do you builds as well.
> >
> > Jake
> >
> > At 01:56 AM 6/1/2003 -0500, you wrote:
> > >This website http://www.sitepoint.com/article/509/3 says all I have to
> > > do is put servlet.jar in my classpath to solve my problems. 
> > > Unfortunitally, it doesn't seem to work.
> > >
> > >
> > >This is my path
> > >------------------
> > >$ echo $CLASSPATH
> > >/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/to
> > >mcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar
> > >
> > >The classpath is set in the .bashrc, but that should effect the javac
> > >command right?!?  I've also done the classpath without the *.jar by
> > >explicitly naming each of the jar files.... talk about a pain.
> > >
> > >
> > >This is my error
> > >------------------------------------------------------------------------
> > >--------------------------------- $ javac MultiServlet.java
> > >MultiServlet.java:1: package javax.servlet does not exist
> > >import javax.servlet.*;
> > >^
> > >MultiServlet.java:2: package javax.servlet.http does not exist
> > >import javax.servlet.http.*;
> > >^
> > >------------------------------------------------------------------------
> > >-------
> > >
> > >
> > >
> > >these are installed:
> > >---------------------------------
> > >tomcat4-webapps-4.1.24-full.2jpp
> > >tomcat4-4.1.24-full.2jpp
> > >tomcat4-admin-webapps-4.1.24-full.2jpp
> > >j2re1.4.1_02
> > >j2sdk1.4.1_02
> > >j2sdkee1.4
> > >
> > >
> > >The tomcat lib jar files
> > >--------------------------------------
> > >classes $ ls /var/tomcat4/common/lib/
> > >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> > >jndi.jar     naming-common.jar     servlet.jar
> > >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> > >jta.jar      naming-factory.jar
> > >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> > >mailapi.jar  naming-resources.jar
> > >
> > >classes $ ls /var/tomcat4/server/lib/
> > >catalina-ant.jar        commons-logging.jar     mx4j.license
> > >servlets-manager.jar      tomcat-jk2.jar
> > >catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
> > >servlets-ssi.renametojar  tomcat-jk.jar
> > >commons-beanutils.jar   jaas.jar                servlets-common.jar
> > >servlets-webdav.jar       tomcat-util.jar
> > >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> > >tomcat-coyote.jar         tomcat-warp.jar
> > >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
> > >tomcat-http11.jar
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
webmaster@kde.org 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Jonathan Michael Nowacki <jn...@indiana.edu>.
This website http://www.sitepoint.com/article/509/3 says all I have to do
is put servlet.jar in my classpath to solve my problems. Unfortunitally, 
it doesn't seem to work.

> >This is my error
>---------------------------------------------------------------------------------------------------------
> >$ javac MultiServlet.java
> >MultiServlet.java:1: package javax.servlet does not exist
> >import javax.servlet.*; 
> >^
> >MultiServlet.java:2: package javax.servlet.http does not exist
> >import javax.servlet.http.*;
> >^
>-------------------------------------------------------------------------------


THis is my path
$ echo $CLASSPATH
/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
:/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java/j2sdkee1.4/lib/jhall.jar

The actual code is
CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/va
r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-collections.jar:/var/tomcat
4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/lib/
ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/
tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.
jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar:/var/tomcat4/co
mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-comm
on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/va
r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commons-digester.jar:/var/tom
cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/comm
ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar:
/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.renametojar:/var/tomcat4/
server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/
tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler.
jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-default.jar:/var/tomcat4/serv
er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/server/lib/to
mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/ja
va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eeto
ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/htmlconverter.jar:/usr/ja
va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib
/j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java
/j2sdkee1.4/lib/jhall.jar

which is very long so, in short it contains:
All the J2sdk 1.4 jar files
All the J2sdk Enterprise edition Jar files

and the following tomcat jar files
/var/tomcat4/common/lib/
> >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> >jndi.jar     naming-common.jar     servlet.jar
> >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> >jta.jar      naming-factory.jar
> >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> >mailapi.jar  naming-resources.jar
/var/tomcat4/server/lib/
> >catalina-ant.jar        commons-logging.jar     mx4j.license
> >servlets-manager.jar      tomcat-jk2.jar
> >catalina.jar            commons-modeler.jar
servlets-cgi.renametojar
> >servlets-ssi.renametojar  tomcat-jk.jar
> >commons-beanutils.jar   jaas.jar                servlets-common.jar
> >servlets-webdav.jar       tomcat-util.jar
> >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> >tomcat-coyote.jar         tomcat-warp.jar
> >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar

After doing all this work, The compilation errors still occure, despite
what the documentation and help files tell me.

Correct me if I'm wrong, but I thought *.jar was valid, it works on my
other files.





On Sun, 1 Jun 2003, Jacob Kjome wrote:

> 
> You have an invalid classpath.  Note that you must add each and every .jar 
> file to the classpath.  It is invalid to specify *.jar.  The only way that 
> would work is by using a batch file and looping through all jar files in a 
> directly and then adding each to the classpath for each iteration.  Fix 
> that and your compilation will start working properly.  I'd suggest 
> learning about Ant to do you builds as well.
> 
> Jake
> 
> At 01:56 AM 6/1/2003 -0500, you wrote:
> >This website http://www.sitepoint.com/article/509/3 says all I have to do
> >is put servlet.jar in my classpath to solve my problems.  Unfortunitally,
> >it doesn't seem to work.
> >
> >
> >This is my path
> >------------------
> >$ echo $CLASSPATH
> >/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/tomcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar
> >
> >The classpath is set in the .bashrc, but that should effect the javac
> >command right?!?  I've also done the classpath without the *.jar by
> >explicitly naming each of the jar files.... talk about a pain.
> >
> >
> >This is my error
> >---------------------------------------------------------------------------------------------------------
> >$ javac MultiServlet.java
> >MultiServlet.java:1: package javax.servlet does not exist
> >import javax.servlet.*;
> >^
> >MultiServlet.java:2: package javax.servlet.http does not exist
> >import javax.servlet.http.*;
> >^
> >-------------------------------------------------------------------------------
> >
> >
> >
> >these are installed:
> >---------------------------------
> >tomcat4-webapps-4.1.24-full.2jpp
> >tomcat4-4.1.24-full.2jpp
> >tomcat4-admin-webapps-4.1.24-full.2jpp
> >j2re1.4.1_02
> >j2sdk1.4.1_02
> >j2sdkee1.4
> >
> >
> >The tomcat lib jar files
> >--------------------------------------
> >classes $ ls /var/tomcat4/common/lib/
> >activation.jar           commons-dbcp.jar         jasper-compiler.jar
> >jndi.jar     naming-common.jar     servlet.jar
> >ant.jar                  commons-logging-api.jar  jasper-runtime.jar
> >jta.jar      naming-factory.jar
> >commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
> >mailapi.jar  naming-resources.jar
> >
> >classes $ ls /var/tomcat4/server/lib/
> >catalina-ant.jar        commons-logging.jar     mx4j.license
> >servlets-manager.jar      tomcat-jk2.jar
> >catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
> >servlets-ssi.renametojar  tomcat-jk.jar
> >commons-beanutils.jar   jaas.jar                servlets-common.jar
> >servlets-webdav.jar       tomcat-util.jar
> >commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
> >tomcat-coyote.jar         tomcat-warp.jar
> >commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
> >tomcat-http11.jar
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: faulty fix for (javax.servlet does not exist)

Posted by Jacob Kjome <ho...@visi.com>.
You have an invalid classpath.  Note that you must add each and every .jar 
file to the classpath.  It is invalid to specify *.jar.  The only way that 
would work is by using a batch file and looping through all jar files in a 
directly and then adding each to the classpath for each iteration.  Fix 
that and your compilation will start working properly.  I'd suggest 
learning about Ant to do you builds as well.

Jake

At 01:56 AM 6/1/2003 -0500, you wrote:
>This website http://www.sitepoint.com/article/509/3 says all I have to do
>is put servlet.jar in my classpath to solve my problems.  Unfortunitally,
>it doesn't seem to work.
>
>
>This is my path
>------------------
>$ echo $CLASSPATH
>/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/tomcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar
>
>The classpath is set in the .bashrc, but that should effect the javac
>command right?!?  I've also done the classpath without the *.jar by
>explicitly naming each of the jar files.... talk about a pain.
>
>
>This is my error
>---------------------------------------------------------------------------------------------------------
>$ javac MultiServlet.java
>MultiServlet.java:1: package javax.servlet does not exist
>import javax.servlet.*;
>^
>MultiServlet.java:2: package javax.servlet.http does not exist
>import javax.servlet.http.*;
>^
>-------------------------------------------------------------------------------
>
>
>
>these are installed:
>---------------------------------
>tomcat4-webapps-4.1.24-full.2jpp
>tomcat4-4.1.24-full.2jpp
>tomcat4-admin-webapps-4.1.24-full.2jpp
>j2re1.4.1_02
>j2sdk1.4.1_02
>j2sdkee1.4
>
>
>The tomcat lib jar files
>--------------------------------------
>classes $ ls /var/tomcat4/common/lib/
>activation.jar           commons-dbcp.jar         jasper-compiler.jar
>jndi.jar     naming-common.jar     servlet.jar
>ant.jar                  commons-logging-api.jar  jasper-runtime.jar
>jta.jar      naming-factory.jar
>commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
>mailapi.jar  naming-resources.jar
>
>classes $ ls /var/tomcat4/server/lib/
>catalina-ant.jar        commons-logging.jar     mx4j.license
>servlets-manager.jar      tomcat-jk2.jar
>catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
>servlets-ssi.renametojar  tomcat-jk.jar
>commons-beanutils.jar   jaas.jar                servlets-common.jar
>servlets-webdav.jar       tomcat-util.jar
>commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
>tomcat-coyote.jar         tomcat-warp.jar
>commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
>tomcat-http11.jar
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Re: installing Tomcat without being root

Posted by ku...@inwind.it.
Ok, thanks. I wonder if this is possible to do also with the .rpm (instead
of .tar.gz)

Thanks in advance,
Alex

-----Messaggio Originale-----
Da: "Scott Reynolds" <re...@yahoo.com>
A: "Tomcat Users List" <to...@jakarta.apache.org>
Data invio: domenica 1 giugno 2003 8.11
Oggetto: Re: installing Tomcat without being root


> Just download the .tar.gz (or the .zip) package, untar it into your home
> directory, and run it from there, giving you complete control.  As long as
you
> stick with the default port of 8080, you don't need any special privilages
to
> run it--That's what I do.
>
> Scott Reynolds
>
> --- kurtc@inwind.it wrote:
> > Hello,
> > i would like to install TomCat 4.1.24 on a Linux server, and i'm not a
root
> > user.
> > Actually, the server administrator installed for me TomCat (from .rpm)
as
> > root user,
> > and then gave me the password for the user "tomcat4", but that is not
> > usefull at all, since
> > i need a complete control of the config files of tomcat, and i cannot
> > neither start it.
> > Now i would like to uninstall the current TomCat, and reinstalling it in
the
> > way i have complete control over TomCat.
> >
> > Which steps must i tell to the admin to follow, for installing correctly
> > TomCat for me?
> >
> > Greetings,
> > Alex
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by Jason Bainbridge <ja...@jblinux.org>.
On Mon, 2 Jun 2003 21:38, kurtc@inwind.it wrote:
> > On Mon, 2 Jun 2003 09:44:07 +0200, <ku...@inwind.it> wrote:
> > > Hello,
> > > thanks to your advice i had been able to install tomcat and run all my
> > > servlets, but I have still 2 problems:
> > >
> > > 1) Having   installed TomCat standalone as a non-root user, TomCat is
> > > reachable only at port 8080, while the DNS is set for the port 80,
> > > ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do
> > > is
> > > this case?

You just need to use a port redirect service, as I have a dynamic IP I use a 
dynamic port redirection service, of which there are many, I use 
http://dyns.cx

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
webmaster@kde.org 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by John Turner <to...@johnturner.com>.
On Mon, 2 Jun 2003 15:38:08 +0200, <ku...@inwind.it> wrote:

>> On Mon, 2 Jun 2003 09:44:07 +0200, <ku...@inwind.it> wrote:
>>
>> Only root can bind a process to port 80.
>
> Well, i dont see the point here (cause i'm a newbie), but i would like to
> get this result:
> 1)An user contact www.myhost.com
> 2) the resolver asks to the DNS for that name, and the DNS answers with 
> the
> pair IP:PORT (ie www.myhost.com:8080)

It doesn't work like that.  DNS knows nothing about port numbers.  HTTP = 
80, HTTPS = 443, that's a browser thing, not a server thing.  If a user 
types "http://your.host.com" in their browser, the browser is going to 
contact port 80...plain and simple and there's no changing it.

You'll need one of the following:  1) proxy, 2) port forwarding (like a 
proxy but could be done with something like SSH), 3) URL forwarding service 
(like zoneedit.com), or 4) a redirect like you've mentioned.

Ports under 1024 are reserved for security reasons.  Very good security 
reasons, and chances are the only people you will find who will disagree 
with the restrictions on ports less than 1024 will be newbies (also for 
good reason).

For example, how would you like it if just any user on a server could run a 
mail daemon on port 25?  Port 110, sniffing POP3 passwords from other 
users?  Etc. etc. ad nauseam.

> In this way my TomCat, running at 8080, will be contacted at each 
> request.
> The actual solution (crappy) is to have an index.php file in my home
> directory which redirect to www.myhost.com:8080.
> If the former solution could be done, my question would be: how to do 
> that ?

You'll need to use some sort of port forwarder or proxy.  Apache can do the 
proxying, but you'll need to be root to configure it and test the 
configuration (in which case the whole thing is moot because then you could 
start Tomcat as root on port 80), or you'll need to use something like SSH 
or iptables/ipchains (or some other package) to do the forwarding for you.  
Either way, you still need to be root.

You could just use an external forwarding service...zoneedit.com has one.

John

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by ku...@inwind.it.
> On Mon, 2 Jun 2003 09:44:07 +0200, <ku...@inwind.it> wrote:
>
> > Hello,
> > thanks to your advice i had been able to install tomcat and run all my
> > servlets, but I have still 2 problems:
> >
> > 1) Having   installed TomCat standalone as a non-root user, TomCat is
> > reachable only at port 8080, while the DNS is set for the port 80,
> > ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do
> > is
> > this case?
>
> Only root can bind a process to port 80.

Well, i dont see the point here (cause i'm a newbie), but i would like to
get this result:
1)An user contact www.myhost.com
2) the resolver asks to the DNS for that name, and the DNS answers with the
pair IP:PORT (ie www.myhost.com:8080)

In this way my TomCat, running at 8080, will be contacted at each request.
The actual solution (crappy) is to have an index.php file in my home
directory which redirect to www.myhost.com:8080.
If the former solution could be done, my question would be: how to do that ?

 > > 2) the Host inside (the Engine tag) has still the name "localhost", and
> > not
> > the name it should have www.myhost.com. It works all fine, either
> > browsing
> > the my site remotely and locally. I read through the documentation, and
i
> > did not find what is the difference between having it set to "localhost"
> > or
> > to the right host name ("www.myhost.com"). Any hint?
>
> The name is the name of the virtual host that Tomcat will respond to.  If
> it is "localhost" and Tomcat receives a request for "my.domain.com", then
> Tomcat will not serve it, or will serve it using the default Host and
> Context, which may or may not be what you want.  If you want Tomcat to
> respond to requests for "my.domain.com", then set up a Host container and
> use "my.domain.com" for the name parameter, just as it is done for
> "localhost".

Ok, so it is working in both cases because of the default host
configuration.

Many thanks!
Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by John Turner <to...@johnturner.com>.
On Mon, 2 Jun 2003 09:44:07 +0200, <ku...@inwind.it> wrote:

> Hello,
> thanks to your advice i had been able to install tomcat and run all my
> servlets, but I have still 2 problems:
>
> 1) Having   installed TomCat standalone as a non-root user, TomCat is
> reachable only at port 8080, while the DNS is set for the port 80,
> ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do 
> is
> this case?

Only root can bind a process to port 80.

> 2) the Host inside (the Engine tag) has still the name "localhost", and 
> not
> the name it should have www.myhost.com. It works all fine, either 
> browsing
> the my site remotely and locally. I read through the documentation, and i
> did not find what is the difference between having it set to "localhost" 
> or
> to the right host name ("www.myhost.com"). Any hint?

The name is the name of the virtual host that Tomcat will respond to.  If 
it is "localhost" and Tomcat receives a request for "my.domain.com", then 
Tomcat will not serve it, or will serve it using the default Host and 
Context, which may or may not be what you want.  If you want Tomcat to 
respond to requests for "my.domain.com", then set up a Host container and 
use "my.domain.com" for the name parameter, just as it is done for 
"localhost".

John

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by ku...@inwind.it.
Hello,
thanks to your advice i had been able to install tomcat and run all my
servlets, but I have still 2 problems:

1) Having   installed TomCat standalone as a non-root user, TomCat is
reachable only at port 8080, while the DNS is set for the port 80,
ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do is
this case?

2) the Host inside (the Engine tag) has still the name "localhost", and not
the name it should have www.myhost.com. It works all fine, either browsing
the my site remotely and locally. I read through the documentation, and i
did not find what is the difference between having it set to "localhost" or
to the right host name ("www.myhost.com"). Any hint?

Many thanks,
Alex

-----Messaggio Originale-----
Da: "Scott Reynolds" <re...@yahoo.com>
A: "Tomcat Users List" <to...@jakarta.apache.org>
Data invio: domenica 1 giugno 2003 8.11
Oggetto: Re: installing Tomcat without being root


> Just download the .tar.gz (or the .zip) package, untar it into your home
> directory, and run it from there, giving you complete control.  As long as
you
> stick with the default port of 8080, you don't need any special privilages
to
> run it--That's what I do.
>
> Scott Reynolds
>
> --- kurtc@inwind.it wrote:
> > Hello,
> > i would like to install TomCat 4.1.24 on a Linux server, and i'm not a
root
> > user.
> > Actually, the server administrator installed for me TomCat (from .rpm)
as
> > root user,
> > and then gave me the password for the user "tomcat4", but that is not
> > usefull at all, since
> > i need a complete control of the config files of tomcat, and i cannot
> > neither start it.
> > Now i would like to uninstall the current TomCat, and reinstalling it in
the
> > way i have complete control over TomCat.
> >
> > Which steps must i tell to the admin to follow, for installing correctly
> > TomCat for me?
> >
> > Greetings,
> > Alex
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


faulty fix for (javax.servlet does not exist)

Posted by Jonathan Michael Nowacki <jn...@indiana.edu>.
This website http://www.sitepoint.com/article/509/3 says all I have to do
is put servlet.jar in my classpath to solve my problems.  Unfortunitally,
it doesn't seem to work.


This is my path
------------------
$ echo $CLASSPATH
/usr/java/j2sdkee1.4/lib/*.jar:/usr/java/j2sdk1.4.1_02/lib/*.jar:/var/tomcat4/server/lib/*.jar:/var/tomcat4/common/lib/*.jar

The classpath is set in the .bashrc, but that should effect the javac
command right?!?  I've also done the classpath without the *.jar by
explicitly naming each of the jar files.... talk about a pain.


This is my error
---------------------------------------------------------------------------------------------------------
$ javac MultiServlet.java 
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
-------------------------------------------------------------------------------



these are installed:
---------------------------------
tomcat4-webapps-4.1.24-full.2jpp
tomcat4-4.1.24-full.2jpp
tomcat4-admin-webapps-4.1.24-full.2jpp
j2re1.4.1_02
j2sdk1.4.1_02
j2sdkee1.4


The tomcat lib jar files
--------------------------------------
classes $ ls /var/tomcat4/common/lib/
activation.jar           commons-dbcp.jar         jasper-compiler.jar
jndi.jar     naming-common.jar     servlet.jar
ant.jar                  commons-logging-api.jar  jasper-runtime.jar
jta.jar      naming-factory.jar
commons-collections.jar  commons-pool.jar         jdbc2_0-stdext.jar
mailapi.jar  naming-resources.jar

classes $ ls /var/tomcat4/server/lib/
catalina-ant.jar        commons-logging.jar     mx4j.license
servlets-manager.jar      tomcat-jk2.jar
catalina.jar            commons-modeler.jar     servlets-cgi.renametojar
servlets-ssi.renametojar  tomcat-jk.jar
commons-beanutils.jar   jaas.jar                servlets-common.jar
servlets-webdav.jar       tomcat-util.jar
commons-digester.jar    jakarta-regexp-1.2.jar  servlets-default.jar
tomcat-coyote.jar         tomcat-warp.jar
commons-fileupload.jar  mx4j-jmx.jar            servlets-invoker.jar
tomcat-http11.jar


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by Scott Reynolds <re...@yahoo.com>.
Just download the .tar.gz (or the .zip) package, untar it into your home
directory, and run it from there, giving you complete control.  As long as you
stick with the default port of 8080, you don't need any special privilages to
run it--That's what I do.

Scott Reynolds

--- kurtc@inwind.it wrote:
> Hello,
> i would like to install TomCat 4.1.24 on a Linux server, and i'm not a root
> user.
> Actually, the server administrator installed for me TomCat (from .rpm) as
> root user,
> and then gave me the password for the user "tomcat4", but that is not
> usefull at all, since
> i need a complete control of the config files of tomcat, and i cannot
> neither start it.
> Now i would like to uninstall the current TomCat, and reinstalling it in the
> way i have complete control over TomCat.
> 
> Which steps must i tell to the admin to follow, for installing correctly
> TomCat for me?
> 
> Greetings,
> Alex
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: installing Tomcat without being root

Posted by ku...@inwind.it.
sudo means becoming root? err, that, not, is *not* possible :D

-----Messaggio Originale-----
Da: "electroteque" <da...@electroteque.org>
A: "Tomcat Users List" <to...@jakarta.apache.org>
Data invio: sabato 31 maggio 2003 12.32
Oggetto: RE: installing Tomcat without being root


> i suggest get sudo access thats all i can say :|
>
> -----Original Message-----
> From: kurtc@inwind.it [mailto:kurtc@inwind.it]
> Sent: Saturday, May 31, 2003 6:16 PM
> To: tomcat-user@jakarta.apache.org
> Subject: installing Tomcat without being root
>
>
> Hello,
> i would like to install TomCat 4.1.24 on a Linux server, and i'm not a
root
> user.
> Actually, the server administrator installed for me TomCat (from .rpm) as
> root user,
> and then gave me the password for the user "tomcat4", but that is not
> usefull at all, since
> i need a complete control of the config files of tomcat, and i cannot
> neither start it.
> Now i would like to uninstall the current TomCat, and reinstalling it in
the
> way i have complete control over TomCat.
>
> Which steps must i tell to the admin to follow, for installing correctly
> TomCat for me?
>
> Greetings,
> Alex
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: installing Tomcat without being root

Posted by electroteque <da...@electroteque.org>.
i suggest get sudo access thats all i can say :|

-----Original Message-----
From: kurtc@inwind.it [mailto:kurtc@inwind.it]
Sent: Saturday, May 31, 2003 6:16 PM
To: tomcat-user@jakarta.apache.org
Subject: installing Tomcat without being root


Hello,
i would like to install TomCat 4.1.24 on a Linux server, and i'm not a root
user.
Actually, the server administrator installed for me TomCat (from .rpm) as
root user,
and then gave me the password for the user "tomcat4", but that is not
usefull at all, since
i need a complete control of the config files of tomcat, and i cannot
neither start it.
Now i would like to uninstall the current TomCat, and reinstalling it in the
way i have complete control over TomCat.

Which steps must i tell to the admin to follow, for installing correctly
TomCat for me?

Greetings,
Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org