Tomcat 4 as a service in Windows and Classpath Question

2003-04-03 Thread Ernesto Echeverria
I've recently installed Tomcat 4.1 as a service in a Windows 2000
environment.
 
In Linux, if I ever need to extend the CLASSPATH variable, I can do that
easily in the scripts provided.
 
However, I'm not clear how to do this in Windows when Tomcat was installed
as a service.
 
What is the correct way to extend CLASSPATH, and if the service needs to be
reinstalled, what would be the command in order not to loose the default
settings, plus the extra paths?
 
Thanks in Advance.


RE: Tomcat 4 as a service in Windows and Classpath Question

2003-04-03 Thread Longley, Andrew
What I've figured out is that you can hack the registry and modify the
java.class.path parameter.  Alternatively, there is a syntax for
installing the service where you can specify the classpath when you
install the service (or you could uninstall and re-install).

How to hack the registry: use regedit to edit key
HKLM\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM
Option Number 0

(assuming your service is called Apache Tomcat 4.1 and that your JVM
Option Number 0 parameter data begins with -Djava.class.path...)

Double-click the parameter and edit the classpath at will.  

How to install a new service: open a command prompt and use syntax

%CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1
%JAVA_HOME%\jre\bin\client\jvm.dll -Xmx512m -Xms256m 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar
-Dcatalina.home=%CATALINA_HOME% -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
%CATALINA_HOME%\logs\stderr.log

(all on one line, and obviously modifying the -Djava.class.path to
whatever you need but not losing the bootstrap.jar)

If you install multiple Tomcats on one box as services, you will need a
different server.xml file for each to specify different ports.  I
*believe* the syntax for this is to edit the service in the Services
control panel, and add an Additional Parameter of the form 
-config conf\server.xml

Hope that helps.  If anyone else has more good information, please add.

Andrew Longley

-Original Message-
From: Ernesto Echeverria [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 8:40 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as a service in Windows and Classpath Question

I've recently installed Tomcat 4.1 as a service in a Windows 2000
environment.
 
In Linux, if I ever need to extend the CLASSPATH variable, I can do that
easily in the scripts provided.
 
However, I'm not clear how to do this in Windows when Tomcat was
installed
as a service.
 
What is the correct way to extend CLASSPATH, and if the service needs to
be
reinstalled, what would be the command in order not to loose the default
settings, plus the extra paths?
 
Thanks in Advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4 as a service in Windows and Classpath Question

2003-04-03 Thread Mark Pease
Here is some information on the program that creates the tomcat service in
Windows...
http://www.alexandriasc.com/software/JavaService/documentation.html

Mark

- Original Message -
From: Longley, Andrew [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:52 AM
Subject: RE: Tomcat 4 as a service in Windows and Classpath Question


What I've figured out is that you can hack the registry and modify the
java.class.path parameter.  Alternatively, there is a syntax for
installing the service where you can specify the classpath when you
install the service (or you could uninstall and re-install).

How to hack the registry: use regedit to edit key
HKLM\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM
Option Number 0

(assuming your service is called Apache Tomcat 4.1 and that your JVM
Option Number 0 parameter data begins with -Djava.class.path...)

Double-click the parameter and edit the classpath at will.

How to install a new service: open a command prompt and use syntax

%CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1
%JAVA_HOME%\jre\bin\client\jvm.dll -Xmx512m -Xms256m
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar
-Dcatalina.home=%CATALINA_HOME% -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
%CATALINA_HOME%\logs\stderr.log

(all on one line, and obviously modifying the -Djava.class.path to
whatever you need but not losing the bootstrap.jar)

If you install multiple Tomcats on one box as services, you will need a
different server.xml file for each to specify different ports.  I
*believe* the syntax for this is to edit the service in the Services
control panel, and add an Additional Parameter of the form
-config conf\server.xml

Hope that helps.  If anyone else has more good information, please add.

Andrew Longley

-Original Message-
From: Ernesto Echeverria [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 8:40 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as a service in Windows and Classpath Question

I've recently installed Tomcat 4.1 as a service in a Windows 2000
environment.

In Linux, if I ever need to extend the CLASSPATH variable, I can do that
easily in the scripts provided.

However, I'm not clear how to do this in Windows when Tomcat was
installed
as a service.

What is the correct way to extend CLASSPATH, and if the service needs to
be
reinstalled, what would be the command in order not to loose the default
settings, plus the extra paths?

Thanks in Advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Question

2003-03-21 Thread Richard Jones
Thank you for your help: I have traked the error to the catalina.log file and itis a 
classnot found exception. I have made the changes but still am getting the error. I 
have included my setenv.bat file to see if there are any errors that are obvious to 
every but me. 

Any help would again be really appreciated.


/---setenv.bat--/
set JAVA_HOME=C:\j2sdk1.4.0-rc\jre
set JWSDP_HOME=c:\jwsdp-1_0_01
set 
CLASSPATH=%JWSDP_HOME%\common\endorsed\dom.jar;%JWSDP_HOME%\common\endorsed\sax.jar;%JWSDP_HOME%\common\endorsed\xalan.jar;%JWSDP_HOME%\common\endorsed\xsltc.jar;%JWSDP_HOME%\common\lib\jaxrpc-api.jar;%JWSDP_HOME%\common\lib\activation.jar;%JWSDP_HOME%\common\lib\commons-collections.jar;%JWSDP_HOME%\common\lib\providerutil.jar;%JWSDP_HOME%\common\lib\saaj-api.jar;%JWSDP_HOME%\common\lib\saaj-ri.jar;%JWSDP_HOME%\common\lib\soap.jar;%JWSDP_HOME%\common\lib\servlet.jar;%JWSDP_HOME%\common\lib\naming-resources.jar;%JWSDP_HOME%\common\lib\naming-common.jar;%JWSDP_HOME%\common\lib\naming-factory.jar;%JWSDP_HOME%\common\lib\jsse.jar;%JWSDP_HOME%\common\lib\dom4j.jar;%JWSDP_HOME%\common\lib\jaas.jar;%JWSDP_HOME%\common\lib\jaxrpc-ri.jar;%JWSDP_HOME%\common\lib\mail.jar;c:\topme\xerces\xerces.jar;c:\topme\castor\castor-0.9.4.1.jar;c:\TOPS\classes;c:\oracle9\jdbc\lib\classes12.jar;c:\oracle9\jdbc\lib\nls_charset12.jar;c:\oracle9\jdbc\lib\ocrs12.jar;c:\oracle9\jdbc\lib\ojdbc14.jar;c:\oracle9\jdbc\lib\classes12dms.jar;c:\oracle9\jdbc\lib\classes12dms_g.jar;c:\oracle9\jdbc\lib\ojdbc14_g.jar;c:\TOPS\classes\jep\jep210.jar;c:\TOPS\classes\HTTPClient.zip;.;
set PATH=%JAVA_HOME%\bin;%JWSDP_HOME%\bin;%PATH%

-- 
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Classpath Question

2003-03-20 Thread Richard Jones
Hi,

I am using tomcat version 4 as a web service provider. I have 10 web services for my 
application and they all seem to compile properly. the issue is when I go to run the 
application I get a java.rmi.ServerException error with a missing port. 

I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont declare 
where the class paths are for each application. How do I do this: An example of where 
the java classes are is C:\tops\classes. I cant move the classes as it is an 
application in itself and is connected to an oracle database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
-- 
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Question

2003-03-20 Thread gilad . buzi

I ran against the same problem and found a solution I'm more or less happy
with (perhaps someone with more experience can correct me if my solution is
crazy.)
If you ABSOLUTELY cannot move your classes into %TOMCAT_HOME%
\common\classes directory, there is another option:

In your %TOMCAT_HOME%\bin\setclasspath.bat file, you can redefine the
CLASSPATH variable to include all the important tomcat .jar files plus your
classpath.  This bypasses the bootstrapper.
I.e.:
.
.
set TOMCAT_HOME=c:\tomcat
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%
\common\lib\activation.jar;%TOMCAT_HOME%\common\lib\mail.jar;
%TOMCAT_HOME%\common\lib\ant.jar;%TOMCAT_HOME%
\common\lib\commons-collections.jar;%TOMCAT_HOME%
\common\lib\commons-dbcp.jar;%TOMCAT_HOME%
\common\lib\commons-logging-api.jar;%TOMCAT_HOME%
\common\lib\commons-pool.jar;%TOMCAT_HOME%
\common\lib\jasper-compiler.jar;%TOMCAT_HOME%
\common\lib\jasper-runtime.jar;%TOMCAT_HOME%
\common\lib\jdbc2_0-stdext.jar;%TOMCAT_HOME%
\common\lib\jndi.jar;%TOMCAT_HOME%\common\lib\jta.jar;%TOMCAT_HOME%
\common\lib\mail.jar;%TOMCAT_HOME%
\common\lib\naming-common.jar;%TOMCAT_HOME%
\common\lib\naming-factory.jar;%TOMCAT_HOME%
\common\lib\naming-resources.jar;%TOMCAT_HOME%
\common\lib\servlet.jar;%YOUR_CLASSPATH%
.

Please, if someone thinks this is nuts, let me know.  I wish there was a
more elegant way to do this, but for now this is the only thing I could
think of.

/gilad


 Gilad Buzi 
 RD Engineer · CONCATEL


 [EMAIL PROTECTED]
 c/Sardenya, 229-237 Atic. 2a · 
 08013 Barcelona Spain  
 tel. +34.93.244.88.77 · fax
 +34.93.244.88.78   

  www.concatel.com  






   
  
Richard   
  
JonesPara:   [EMAIL PROTECTED]
 
richardjones@cc:  
  
email.comAsunto:  Classpath Question  
  
   
  
20/03/2003 
  
17:54  
  
Por favor, 
  
responda a 
  
Tomcat Users  
  
List  
  
   
  
   
  



Hi,

I am using tomcat version 4 as a web service provider. I have 10 web
services for my application and they all seem to compile properly. the
issue is when I go to run the application I get a java.rmi.ServerException
error with a missing port.

I am nearly 95% sure that it is a problem with the CLASSPATH in that I dont
declare where the class paths are for each application. How do I do this:
An example of where the java classes are is C:\tops\classes. I cant move
the classes as it is an application in itself and is connected to an oracle
database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Question

2003-03-20 Thread Micael
A problem with the classpath should indicate a classpath related exception, 
which essentially is an inability to find a class.  Why do you think that 
hte java.rmi.ServerException fits into this pattern?  If you don't declare 
where the class paths [sic] are for each application how do you expect the 
JVM to find the classes?  You sure that is what you mean?

At 04:54 PM 3/20/03 +, you wrote:
Hi,

I am using tomcat version 4 as a web service provider. I have 10 web 
services for my application and they all seem to compile properly. the 
issue is when I go to run the application I get a java.rmi.ServerException 
error with a missing port.

I am nearly 95% sure that it is a problem with the CLASSPATH in that I 
dont declare where the class paths are for each application. How do I do 
this: An example of where the java classes are is C:\tops\classes. I cant 
move the classes as it is an application in itself and is connected to an 
oracle database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Newbie classpath question

2002-12-17 Thread Shiva P
Hey,
I am using tomcat 4.1. I have placed my jar files in the
shared directory as it is required by more than one webapp.
Unfortunately, I have two jar files which have the same
class files but with different versions. Is there any way
to specify which jar file to load the class from without
having to write class loaders? Obviously I can remove the
class files from the other jar file. But don't want to do
that as we might want to move to using the class files in
the other file sometime pretty soon.

Any help would be greatly appreciated.

Thanks,
Shiva.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Newbie classpath question

2002-12-17 Thread Shapira, Yoav
Hi,
Basically, no ;)  It's your responsibility as a developer to ensure no
class file conflicts between your apps and your chosen server.  You
could do a number of things to reach this:
- Modify apps so they use the same version of shared jars
- Deploy multiple copies of the jar, all in the WEB-INF/lib directories
and not in the shared directories.
- Other options exist, but the above are probably the quickest...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Shiva P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: Newbie classpath question

Hey,
I am using tomcat 4.1. I have placed my jar files in the
shared directory as it is required by more than one webapp.
Unfortunately, I have two jar files which have the same
class files but with different versions. Is there any way
to specify which jar file to load the class from without
having to write class loaders? Obviously I can remove the
class files from the other jar file. But don't want to do
that as we might want to move to using the class files in
the other file sometime pretty soon.

Any help would be greatly appreciated.

Thanks,
Shiva.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Newbie classpath question

2002-12-17 Thread Patrick GIRY
En réponse à Shiva P [EMAIL PROTECTED]:
The version of the class in the first .jar in the classpath order must be used
when tomcat is running. I believe that tomcat uses the alphabetic order to load
the .jar files.

 Hey,
 I am using tomcat 4.1. I have placed my jar files in the
 shared directory as it is required by more than one webapp.
 Unfortunately, I have two jar files which have the same
 class files but with different versions. Is there any way
 to specify which jar file to load the class from without
 having to write class loaders? Obviously I can remove the
 class files from the other jar file. But don't want to do
 that as we might want to move to using the class files in
 the other file sometime pretty soon.
 
 Any help would be greatly appreciated.
 
 Thanks,
 Shiva.
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



Patrick GIRY

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Newbie classpath question

2002-12-17 Thread SAAngel30
We are somehow linked!!!  These E Mails are going to your address but landing 
in my mailbox.  Can you fix this somehow?  Maybe it is not span so I'm sorry 
to sound angry but none of this has to do with me.



classpath question

2002-07-25 Thread Billy V. Kantartzis

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Shapira, Yoav

Hi,
You should not have the webapps directory on your classpath.  That is
the structure you deploy into.  You should have a src tree somewhere
else that's in your classpath for compilation.  Please refer to 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: ÐÝìðôç, 25 Éïýëéïò 2002 02:24:44 ìì
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: classpath question

2002-07-25 Thread Billy V. Kantartzis


that is what ithought too. Thanks for your quick reply all of you
best Billy
---Original Message---

From: Tomcat Users List
Date: P]lptg, 25 Io}kior 2002 02:24:44 ll
To: Tomcat Users List
Subject: RE: classpath question

Hi,
You should not have the webapps directory on your classpath. That is
the structure you deploy into. You should have a src tree somewhere
else that's in your classpath for compilation. Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
(specifically, the Deployment Organization and Source Organization
sections) for complete details.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: classpath question

shoud i add the web app directory in my classpath ?
i have a application deployed as follows

webapps
|
|dms
| |
| |- jsp
|-classes
|dms
| |
| -beans
|-servlets
|-
|-

inorder to access files in the classes dms.* pakage do i have to
declare it
in the class path ?

thanks in advanced


Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




newbie Catalina and JBoss classpath question!

2001-12-05 Thread Carl Schwarcz

I'm a student trying to debug a servlet under Catalina (Tomcat 4.0.1)
that calls a session bean under JBoss 2.4.3.  My servlet dies horribly
unable to load (NoClassDefFoundError) javax/ejb/EJBHome which I believe
is in jboss-j2ee.jar.  The appropriate directory is in my classpath.
However by checking the classpath while my servlet executes I note that
Tomcat has completely replaced it with its own that has none of my
directories or the JBoss jars in it.

 

I can run standalone code that calls the session bean with no problem.

 

What's the appropriate approach to this?

 

Can anybody give me some pointers on this?

 

--

Carl W. Schwarcz



 




Order of libraries in CLASSPATH question?

2001-06-14 Thread Brett G. Palmer

We are having random problems with some of our application libraries when we
deploy them in their separate contexts.  The question I have is what is the
default behavior for Tomcat to load class libraries into its CLASSPATH.  Do
libraries from the $TOMCAT_HOME/lib directory get added to the CLASSPATH
before libraries for a particular web application (e.g.
webapps/someapp/WEB-INF/lib/*) or viceversa.

I have also seen problems where my web application can't find a particular
library when it is added to the webapps/someapp/WEB-INF/lib  but it can
find it when it is added to the $TOMCAT_HOME/lib directory.  This particular
problem occurred when I tried to use Oracle's jdbc drivers (i.e.
classes12.zip).  I would get class not found errors when the classes12.zip
file was located in the WEB-INF/lib directory, but the errors went away when
I used the $TOMCAT_HOME/lib directory.

What is the recommended place for putting class libraries in the classpath
for Tomcat?  Any suggestions would be greatly appreciated.

Thanks in advance,


Brett




RE: Order of libraries in CLASSPATH question?

2001-06-14 Thread Randy Layman


See comments intermixed...

 -Original Message-
 From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: Order of libraries in CLASSPATH question?
 
 
 We are having random problems with some of our application 
 libraries when we
 deploy them in their separate contexts.  The question I have 
 is what is the
 default behavior for Tomcat to load class libraries into its 
 CLASSPATH.  Do
 libraries from the $TOMCAT_HOME/lib directory get added to 
 the CLASSPATH
 before libraries for a particular web application (e.g.
 webapps/someapp/WEB-INF/lib/*) or viceversa.
If you look in your %TOMCAT_HOME%/logs/jasper.log file, it will show you the
classpath it is using for each request.  In general the effective classpath
for a webapp will be:
WEB-INF/classes/
WEB-INF/lib/*.jar (in aplpabetical order I believe)
%TOMCAT_HOME%/classes (only if using Unix's tomcat.sh)
%TOMCAT_HOME%/lib/*.jar (in alphabetical order, only if using Windows's
tomcat.bat)
%TOMCAT_HOME%/lib/* (in alphabetical order, only if using Unix's tomcat.sh)
System Classpath (in orginial order)

Remember that the classpath is searched from first to last.

 
 I have also seen problems where my web application can't find 
 a particular
 library when it is added to the webapps/someapp/WEB-INF/lib 
  but it can
 find it when it is added to the $TOMCAT_HOME/lib directory.  
 This particular
 problem occurred when I tried to use Oracle's jdbc drivers (i.e.
 classes12.zip).  I would get class not found errors when the 
 classes12.zip
 file was located in the WEB-INF/lib directory, but the errors 
 went away when
 I used the $TOMCAT_HOME/lib directory.
The automatic loading for the WEB-INF/lib directory only includes .jar files
- its implied from the Spec that other behavior is non-compliant.  The
tomcat/lib directory depends on your startup script
 
 What is the recommended place for putting class libraries in 
 the classpath
 for Tomcat?  Any suggestions would be greatly appreciated.
You shouldn't edit your classpath for Tomcat - you should put your classes
into the WEB-INF{/lib/*.jar|/classes/} (preferred) or %TOMCAT_HOME%/lib.
Many people will argue that if the classes are common across webapps then
you should use the second one, but I would caution against this as it makes
it hard to upgrade one webapp at a time to new versions of libraries.

 
 Thanks in advance,
 
 
 Brett
 

Randy



RE: Order of libraries in CLASSPATH question?

2001-06-14 Thread George McKInney

 -Original Message-
 From: Brett G. Palmer [mailto:[EMAIL PROTECTED]]

 We are having random problems with some of our application
 libraries when we
 deploy them in their separate contexts.  The question I have
 is what is the
 default behavior for Tomcat to load class libraries into its
 CLASSPATH.  Do
 libraries from the $TOMCAT_HOME/lib directory get added to
 the CLASSPATH
 before libraries for a particular web application (e.g.
 webapps/someapp/WEB-INF/lib/*) or viceversa.

I believe that the order is:
system classes including installed extensions.
.zips/.jars in $TOMCAT_HOME/lib
WEB-INF/classes
WEB-INF/lib/*.jar

 I have also seen problems where my web application can't find
 a particular
 library when it is added to the webapps/someapp/WEB-INF/lib
  but it can
 find it when it is added to the $TOMCAT_HOME/lib directory.
 This particular
 problem occurred when I tried to use Oracle's jdbc drivers (i.e.
 classes12.zip).  I would get class not found errors when the
 classes12.zip
 file was located in the WEB-INF/lib directory, but the errors
 went away when
 I used the $TOMCAT_HOME/lib directory.

if they were still named *.zip, the classloader ignores them. We just have
Ant rename them to *.jar before deploying to webapps/ourapp/WEB-INF/lib,
and they work fine.

 What is the recommended place for putting class libraries in
 the classpath
 for Tomcat?  Any suggestions would be greatly appreciated.

If there is any chance that the Tomcat installation will be hosting more
than one webapp, I strongly suggest that you put the libraries for each
webapp in its own WEB-INF/lib. Clashing jars do not make pretty sounds.


 Thanks in advance,


 Brett




George McKinney, Developer
Tantalus Communications Inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main604.609.0700
Fax 604.609.0705

The Oracle Experts
www.tantalus.com





Re: Order of libraries in CLASSPATH question?

2001-06-14 Thread Brett G. Palmer

Thanks everyone for your comments.  They were very helpful.

Brett




Classpath Question

2001-05-11 Thread Dalia, Keith A - TOS-DITT1

I have a question about how the dynamic class path is set based upon  the
.war file.  I know that whatever classpath is set prior to tomcat startup is
appended to the classpath in the startup.bat.  Furthermore, whatever .jar
files that reside in tomcat_home\lib are also dynamically added to the
classpath and tomcat_home\classes is also put on the classpath.  I have
verifed this by call a
System.getProperty(java.class.path) from a servlet.  What I don't fully
understand is how the contents of the .war files \lib path are seen by
tomcat since they don't appear when I call
System.getProperty(java.class.path).  I would really appreicate a bit of
clarity on this.


TIA, Keith



RE: Classpath Question

2001-05-11 Thread JULIEN,TIMOTHY (HP-NewJersey,ex2)

the call: System.getProperty(java.class.path)
only returns your System class path - 
the jars in /lib and the classes in /classes are dynamically loaded by a
ClassLoader in Tomcat - they do not become a part of your System class path.

Tim Julien
HP Middleware

-Original Message-
From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: Classpath Question


I have a question about how the dynamic class path is set based upon  the
.war file.  I know that whatever classpath is set prior to tomcat startup is
appended to the classpath in the startup.bat.  Furthermore, whatever .jar
files that reside in tomcat_home\lib are also dynamically added to the
classpath and tomcat_home\classes is also put on the classpath.  I have
verifed this by call a
System.getProperty(java.class.path) from a servlet.  What I don't fully
understand is how the contents of the .war files \lib path are seen by
tomcat since they don't appear when I call
System.getProperty(java.class.path).  I would really appreicate a bit of
clarity on this.


TIA, Keith



RE: Classpath Question

2001-05-11 Thread William Kaufman

Tomcat has its own ClassLoader implementations (in 3.2,
org.apache.tomcat.loader.*) which can pull the classes from the webapps
directory.  Look up java.lang.ClassLoader for more info.


-- Bill K.


 -Original Message-
 From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 10:56 AM
 To: '[EMAIL PROTECTED]'
 Subject: Classpath Question
 
 
 I have a question about how the dynamic class path is set 
 based upon  the
 .war file.  I know that whatever classpath is set prior to 
 tomcat startup is
 appended to the classpath in the startup.bat.  Furthermore, 
 whatever .jar
 files that reside in tomcat_home\lib are also dynamically added to the
 classpath and tomcat_home\classes is also put on the 
 classpath.  I have
 verifed this by call a
 System.getProperty(java.class.path) from a servlet.  What I 
 don't fully
 understand is how the contents of the .war files \lib path are seen by
 tomcat since they don't appear when I call
 System.getProperty(java.class.path).  I would really 
 appreicate a bit of
 clarity on this.
 
 
 TIA, Keith
 



classpath question

2001-04-11 Thread Chris Bailey

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

-- 
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com




Re: classpath question

2001-04-11 Thread Kenneth Westelinck

No.

From: Chris Bailey [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: classpath question
Date: 11 Apr 2001 11:00:00 -0700

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

--
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




classpath question

2001-03-20 Thread Mark W . Webb

I have placed a prop.properties file in the WEB_INF/lib directory of my 
tomcat context.  The servlet keep throwing an Exception saying that it cannot 
find the ResourceBundle.  Where should I place this file?  From what I have 
read, the prop.properties file should go into the WEB-INF/lib directory.  
Where exactly should this file go??


thanks for the help in advance



Re: classpath question

2001-03-20 Thread Craig R. McClanahan



On Tue, 20 Mar 2001, Mark W. Webb wrote:

 I have placed a prop.properties file in the WEB_INF/lib directory of my 
 tomcat context.  The servlet keep throwing an Exception saying that it cannot 
 find the ResourceBundle.  Where should I place this file?  From what I have 
 read, the prop.properties file should go into the WEB-INF/lib directory.  
 Where exactly should this file go??
 

I would suggest you place it in WEB-INF/classes instead.  If you want it
in WEB-INF/lib, you will need to put it inside a JAR file instead.

 
 thanks for the help in advance
 

Craig McClanahan





context related classpath question -ASAP

2001-02-07 Thread Srinivas Kurella
Title: context related classpath question -ASAP






Tomcat documentation says that all the jars under the WEB-INF/lib directory in a context are automatically added to the CLASSPATH.

I am finding this not to be true. I have to add them explicitly to the CLASSPATH.
Am i missing something ???





Re: context related classpath question -ASAP

2001-02-07 Thread Matthias Ferber

I think the startup scripts actually add the .jar files to the CLASSPATH 
variable.  Are you using the normal startup scripts to start Tomcat?

At 04:42 PM 2/7/2001 -0800, you wrote:

Tomcat documentation says that all the jars under the WEB-INF/lib 
directory in a context are automatically added to the CLASSPATH.

I am finding this not to be true. I have to add them explicitly to the 
CLASSPATH.
Am i missing something ???


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: context related classpath question -ASAP

2001-02-07 Thread Srinivas Kurella



Craig,
Thanks 
for the clarification. I have a servlet to be loaded on startup which is looking 
for another class. They are in different jars under the same app. However the 
servlet can't see the class.

Srini

  -Original Message-From: Craig R. McClanahan 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 07, 
  2001 5:13 PMTo: [EMAIL PROTECTED]Subject: 
  Re: context related classpath question -ASAPSrinivas 
  Kurella wrote: 
   
Tomcat documentation says that all the jars under the 
WEB-INF/lib directory in a context are automatically added to the 
CLASSPATH. This is not precisely what 
  happens.  
   I am finding this not to be true. 
I have to add them explicitly to the CLASSPATH. Am 
i missing something ???What happens is that classes in JAR 
  files under WEB-INF/lib, and unpacked classes under WEB-INF/classes, are 
  automatically made visible to other classes in the same web application. 
  They are *not* added to the CLASSPATH environment variable, which makes sense 
  when you remember that CLASSPATH is global to the entire JVM, but the set of 
  classes visible to each webapp are unique to that webapp. 
  Craig McClanahan  


Re: context related classpath question -ASAP

2001-02-07 Thread Craig R. McClanahan


Srinivas Kurella wrote:

Tomcat documentation says that all the jars under the
WEB-INF/lib directory in a context are automatically added to the CLASSPATH.

This is not precisely what happens.


I am finding this not to be true. I have to add them
explicitly to the CLASSPATH.
Am i missing something ???
What happens is that classes in JAR files under WEB-INF/lib, and unpacked
classes under WEB-INF/classes, are automatically made visible to other
classes in the same web application. They are *not* added to the
CLASSPATH environment variable, which makes sense when you remember that
CLASSPATH is global to the entire JVM, but the set of classes visible to
each webapp are unique to that webapp.
Craig McClanahan



Re: context related classpath question -ASAP

2001-02-07 Thread Craig R. McClanahan

Srinivas Kurella wrote:

  Craig,Thanks for the clarification. I have a servlet to be loaded on
 startup which is looking for another class. They are in different jars
 under the same app. However the servlet can't see the class.Srini

Can you create a small test case that reproduces this problem?  If so,
the best way to get it resolved is to report a bug in the  bug tracking
system:

http://nagoya.apache.org/bugzilla/

and add our test case in the details.  The reason I ask for this is that
many people do things like what you describe without difficulty -- so
there must be something specific about how you are doing this that is
different and therefore causes the problem.

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




ClassPath question?

2001-02-02 Thread Jian Zhang
Hello;

Can anyone help with this compile error msg:

javac HelloWorld.java

HelloWorld.java:1: Package javax.servlet not found in import.
import javax.servlet.*;
   ^
I have included the servlet.jar in my classpath:

printenv CLASSPATH
/usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib

and servlet.jar is in the folder /usr/local/tomcat/lib

what have I missed?

Thanks in advance

jian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: ClassPath question?

2001-02-02 Thread André Alves

In the CLASSPATH is necessary put the name of the archive, as follow:
/usr/local/tomcat/lib/servlet.jar

--- Jian Zhang [EMAIL PROTECTED] escreveu:  Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
  


__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
As far as classpaths are concerned, you can think of a jar file as a
directory (not a file). That is, unlike files (.class files especially) you
must explicitly specify the jar file on the class path.

That is, to pick up the servlet jar file, specify the following path. You
will have to do a similar thing for each of the other jar files too.

/usr/local/tomcat/lib/servlet.jar


- Ck

Brainbench MVP Java2.


 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:23
 To: '[EMAIL PROTECTED]'
 Subject: ClassPath question?
 
 
 Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: ClassPath question?

2001-02-02 Thread Jian Zhang
Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and it worked.

I noticed that the first line HelloWorld.java file is 
"import java.io.*"
But it did not create any problem on compiling given previous classpath.

Does it mean java libs have some difference from each other?


jian


 As far as classpaths are concerned, you can think of a jar file as a
 directory (not a file). That is, unlike files (.class files 
 especially) you
 must explicitly specify the jar file on the class path.
 
 That is, to pick up the servlet jar file, specify the 
 following path. You
 will have to do a similar thing for each of the other jar files too.
 
 /usr/local/tomcat/lib/servlet.jar
 
 
 - Ck
 
 Brainbench MVP Java2.
 
 
  -Original Message-
  From: Jian Zhang [mailto:[EMAIL PROTECTED]]
  Sent: 02 February 2001 11:23
  To: '[EMAIL PROTECTED]'
  Subject: ClassPath question?
  
  
  Hello;
  
  Can anyone help with this compile error msg:
  
  javac HelloWorld.java
  
  HelloWorld.java:1: Package javax.servlet not found in import.
  import javax.servlet.*;
 ^
  I have included the servlet.jar in my classpath:
  
  printenv CLASSPATH
  /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
  
  and servlet.jar is in the folder /usr/local/tomcat/lib
  
  what have I missed?
  
  Thanks in advance
  
  jian
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
_Normally_ the core java libraries are inserted onto the classpath for you,
hence
you may not always have to setup a classpath.

javax.* is not part of the core libraries, its name actually stands for 
'java extensions'. Over time some of these extensions, such as swing (javax.
swing)  
have made it into the normal distribution but others such as servlets have
not.

If you want to see what is or is not in the core distribution, go into the
libs
directory of the JVM installation of the JRE and open up rt.jar.. in there
you 
will find java.io, java.util etc etc.

- CK

Brainbench MVP Java2.

 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:51
 To: '[EMAIL PROTECTED]'
 Subject: RE: ClassPath question?
 
 
 Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and 
 it worked.
 
 I noticed that the first line HelloWorld.java file is 
 "import java.io.*"
 But it did not create any problem on compiling given previous 
 classpath.
 
 Does it mean java libs have some difference from each other?
 
 
 jian
 
 
  As far as classpaths are concerned, you can think of a jar file as a
  directory (not a file). That is, unlike files (.class files 
  especially) you
  must explicitly specify the jar file on the class path.
  
  That is, to pick up the servlet jar file, specify the 
  following path. You
  will have to do a similar thing for each of the other jar files too.
  
  /usr/local/tomcat/lib/servlet.jar
  
  
  - Ck
  
  Brainbench MVP Java2.
  
  
   -Original Message-
   From: Jian Zhang [mailto:[EMAIL PROTECTED]]
   Sent: 02 February 2001 11:23
   To: '[EMAIL PROTECTED]'
   Subject: ClassPath question?
   
   
   Hello;
   
   Can anyone help with this compile error msg:
   
   javac HelloWorld.java
   
   HelloWorld.java:1: Package javax.servlet not found in import.
   import javax.servlet.*;
  ^
   I have included the servlet.jar in my classpath:
   
   printenv CLASSPATH
   /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
   
   and servlet.jar is in the folder /usr/local/tomcat/lib
   
   what have I missed?
   
   Thanks in advance
   
   jian
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: 
 [EMAIL PROTECTED]
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]