Re: class path

2005-04-13 Thread S M
Hi 
These are the env. variables that I have set explicitly for tomcat 4.1 
installation
 
lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 
CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
 
I have the path =C:\java\bin; when i installed 
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.

 

Jason Bainbridge [EMAIL PROTECTED] wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
 mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation
 
lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
 
I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.

 

Jason Bainbridge [EMAIL PROTECTED] wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
 mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorld.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorld.java:5: cannot resolve symbol
symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
 
 ^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
 mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
 
 ^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the
compiler cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I
don't think having servlet.jar and j2ee.jar in the same classpath is a good
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



Re: class path (UNCLASSIFIED)

2005-04-13 Thread Anto Paul
On 4/13/05, Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 Classification:  UNCLASSIFIED
 Caveats: NONE
 
 I am sorry, but how are you compiling your class ?
 Are you using any IDE (i.e Eclipse, Jdeveloper) ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac HelloWorld.java
 HelloWorld.java:2: package javax.servlet does not exist import
 javax.servlet.*; ^
 HelloWorld.java:3: package javax.servlet.http does not exist import
 javax.servlet.http.*; ^
 HelloWorld.java:5: cannot resolve symbol symbol  : class HttpServlet
 location: class HelloWorld
 public class HelloWorld extends HttpServlet {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletRequest
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletResponse
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class ServletException
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 
  ^
 6 errors
 
 -
 
 Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 What errors are you getting again ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 9:47 AM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: class path
 
 Hi
 These are the env. variables that I have set explicitly for tomcat 4.1
 installation
 
 lJAVA_HOME = C:\java\bin
 lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
 
 I have the path =C:\java\bin; when i installed
 J2sdk1.4.2_06
 
 These being the variables I am still getting that error log where the
 compiler cannot locate the servlet pakages.
 
 Hope you can assit further.
 
 Thanks.
 
 Jason Bainbridge wrote:
 On Apr 12, 2005 3:39 PM, S M wrote:
  sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
 mentioned and yes it shows me the CLASSPATH as listed below
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
   where ;C:\javacode had the source code.
 
 Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
 If so surround it with double quotes or move it to a path with no spaces. I
 don't think having servlet.jar and j2ee.jar in the same classpath is a good
 idea either.
 
 Regards,
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 -
   Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification:  UNCLASSIFIED
 Caveats: NONE
 
 

Better you copy CATALINA_HOME\common\servlet.jar to C: and set
CLASSPATH accordingly or pass CLASSPATH as an argument to javac.

-- 
Anto Paul

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the
compiler cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I
don't think having servlet.jar and j2ee.jar in the same classpath is a good
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

Re: class path (UNCLASSIFIED)

2005-04-13 Thread Hassan Schroeder
S M wrote:
The same as before.
Not surpring if you haven't addressed the problems Jason already
pointed out --
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 
1) Reinstall Tomcat in `C:\tomcat_4.1` or something, with *no*
   spaces in the path.
2) Don't put servlet.jar and j2ee.jar in the same classpath, as
   you'll have duplicated classes...
Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned 
and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



Re: class path (UNCLASSIFIED)

2005-04-13 Thread Larry Meadors
Oh, and spaces in your install directory (despite that being the default) is 
a bad idea.

On 4/13/05, Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 Try compiling the class by including the path for servlet.jar in your 
 javac command, if you haven't done that yet.
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:33 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 I compiling it from the command prompt.
 The sourse code is in c:\javacode
 so i on cmd... i change directory to c:\javacodejavac HelloWorld.java
 
 Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 I am sorry, but how are you compiling your class ?
 Are you using any IDE (i.e Eclipse, Jdeveloper) ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac HelloWorld.java
 HelloWorld.java:2: package javax.servlet does not exist import 
 javax.servlet.*; ^
 HelloWorld.java:3: package javax.servlet.http does not exist import 
 javax.servlet.http.*; ^
 HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
 location: class HelloWorld
 public class HelloWorld extends HttpServlet { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class 
 HttpServletResponse
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 
 ^
 6 errors
 
 -
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 What errors are you getting again ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 9:47 AM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: class path
 
 Hi
 These are the env. variables that I have set explicitly for tomcat 
 4.1installation
 
 lJAVA_HOME = C:\java\bin
 lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
 
 I have the path =C:\java\bin; when i installed
 J2sdk1.4.2_06
 
 These being the variables I am still getting that error log where the 
 compiler cannot locate the servlet pakages.
 
 Hope you can assit further.
 
 Thanks.
 
 Jason Bainbridge wrote:
 On Apr 12, 2005 3:39 PM, S M wrote:
  sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
 mentioned and yes it shows me the CLASSPATH as listed below
 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
   where ;C:\javacode had the source code.
 
 Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
 If so surround it with double quotes or move it to a path with no spaces. 
 I don't think having servlet.jar and j2ee.jar in the same classpath is a 
 good idea either.
 
 Regards,
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! 
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

I am pretty sure you need to SPECIFY servlet.jar, not just the directory where 
it resides

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:01 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac 
command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE

Re: class path (UNCLASSIFIED)

2005-04-13 Thread BAO RuiXian
Hello,
S M wrote:
tried that too... but it can't identify the path.
C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java
 

Try use quotes instead of '' and '' to quote the class path.
Good luck.
Bao
The system cannot find the file specified.
anyways.. now will reinstall as suggested 'without' spaces and will let you 
know..
thanks so far
Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your javac command, if you haven't done that yet. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java 

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE
I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)
The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {
^
6 errors
-
Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE
What errors are you getting again ? 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path
Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation
lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06

These being the variables I am still getting that error log where the compiler 
cannot locate the servlet pakages.
Hope you can assit further.
Thanks.

Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 

sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
mentioned and yes it shows me the CLASSPATH as listed below
   

.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
 

where ;C:\javacode had the source code.
 

Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
If so surround it with double quotes or move it to a path with no spaces. I 
don't think having servlet.jar and j2ee.jar in the same classpath is a good 
idea either.
Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
 




Re: class path (UNCLASSIFIED)

2005-04-13 Thread Mieke Banderas
Hassan Schroeder said:

2) Don't put servlet.jar and j2ee.jar in the same classpath, as
you'll have duplicated classes...

Excuse a stupid question, but how do you use both libraries at once then?
2 JVMs? separation between Tomcat and the J2EE framework? Or can one use
2 classpaths in the same JVM somehow? 
I haven't made it to this level yet, so bear with me.




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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
I tried that too.. same problem...
anyways.. apart from that going as the suggestion of without spaces directory 
path... here is the modified thgs
CLASSPATH=.;c:\java;c:\tomcat\common\lib\servlet.jar
CATALINAHOME=c:\tomcat
JAVA_HOME and path remaing the same.
 
Now compiling
c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java
it said - Access Denied
 

then compiling like 
c:/javacodejavac HelloWorld.java 
it gives same set of errors 
 
and then again compiling like 
c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java
Windows gave a error saying 'javac' encountered an error.. please close.
 

and then closing and oping cmd again and 
then  compiling like 
c:/javacodejavac HelloWorld.java 
I got no errors... but also.. no class file created. :(
 
What do you have to say now?
 



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Jay Burgess
Yes, doing a javac -h to receive help says  -classpath path.  But the
angle brackets from path are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a javac -h to receive help says  -classpath path.  But the 
angle brackets from path are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java it said - 
 Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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]
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R [EMAIL PROTECTED] wrote:
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpath HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 
4.1\common\lib HellWorld.java

  


Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the 
compiler cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
  

sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
mentioned and yes it shows me the CLASSPATH as listed below


.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
J2EE_
HOME%\lib\j2ee.jar;
  

where ;C:\javacode had the source code.
  


Have you explicityly set CATALINA_HOME as well? Does it have spaces in 
it? If so surround it with double quotes or move it to a path with no 
spaces. I don't think having servlet.jar and j2ee.jar in the same 
classpath is a good idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
  




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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
yes, i corrected that too...
not I am not getting any errors... but still the class file is not created... 
what do i do???


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

Jay is correct, they should never be included as part of the specified path

Fadi 

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: class path (UNCLASSIFIED)

Yes, doing a javac -h to receive help says  -classpath 
. But the angle brackets from 
are not meant to be included.

Jay
Vertical Technology Group
http://www.vtgroup.com/


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:32 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java it said - 
 Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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]
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to.  If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R [EMAIL PROTECTED] wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
see this... no errors... but no class file for the same 
 
C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java
C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java

 


Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the 
compiler cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:
 

sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
mentioned and yes it shows me the CLASSPATH as listed below
 

.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
J2EE_
HOME%\lib\j2ee.jar;
 

where ;C:\javacode had the source code.
 


Have you explicityly set CATALINA_HOME as well? Does it have spaces in 
it? If so surround it with double quotes or move it to a path with no 
spaces. I don't think having servlet.jar and j2ee.jar in the same 
classpath is a good idea either.

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
 




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

RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then
javac's job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions
?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Try to reboot your machine, then compile again and see what happens.

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

it is netwroked...
thgs are behaving perfectly ok if i compile an ordinary class i.e without a 
servlet then why should it matter otherwise...
if i compiled it successfully there should be a class file.
 
Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' 
faced an error, close. and since then, I am getting no errors when compling the 
servlet, also no class file?


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

It compiled successfully and no .class was generated ? This is weird.
Maybe it is something with where you're writing to. If it compiled then javac's 
job is done.

Is it a standalone server/PC or networked ? Do you have limited permissions ?

Fadi 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:44 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

tried that... now no errors anyway but there is no class file too???


Caldarale, Charles R wrote:
 From: S M [mailto:[EMAIL PROTECTED]
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac
 -classpath HelloWorld.java
 it said - Access Denied

Where are these angle brackets coming from? They should not be present.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



Antwort: RE: class path (UNCLASSIFIED)

2005-04-13 Thread Sebastian . Wiemer




Sorry maybe you already did that. I'm new to the Mailing-List.

But is it possible to have a look at the source code of you're
HelloWorld.java file ?

Is it possible that your HelloWorld class is packaged into a special
package and the
class file is generated under that directory, but not obviously in the root
directory
where you started the cmd 'javac HelloWorld.java' ?

regards
Sebastian




S M [EMAIL PROTECTED] schrieb am 13.04.2005 17:51:50:

 see this... no errors... but no class file for the same 

 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
 HelloWorld.java

 C:\javacodejavac HelloWorld.java


 David B. Saul [EMAIL PROTECTED] wrote:
 Try typing/copying the following at the prompt in the directory where the
 source code is for HelloWorld.java:

 javac -classpath C:\Program Files\Apache Group\Tomcat
 4.1\common\lib\servlet.jar HelloWorld.java

 if in fact this is where the servlet.jar file exists.



 -Original Message-
 From: BAO RuiXian [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 8:15 AM
 To: Tomcat Users List
 Subject: Re: class path (UNCLASSIFIED)


 Hello,

 S M wrote:

 tried that too... but it can't identify the path.
 
 C:\javacodejavac -classpath 4.1\common\lib HellWorld.java
 
 
 

 Try use quotes instead of '' and '' to quote the class path.

 Good luck.

 Bao

 The system cannot find the file specified.
 
 anyways.. now will reinstall as suggested 'without' spaces and will let
 you know.. thanks so far
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 Try compiling the class by including the path for servlet.jar in your
 javac command, if you haven't done that yet.
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:33 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 I compiling it from the command prompt.
 The sourse code is in c:\javacode
 so i on cmd... i change directory to c:\javacodejavac HelloWorld.java
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 I am sorry, but how are you compiling your class ?
 Are you using any IDE (i.e Eclipse, Jdeveloper) ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac HelloWorld.java
 HelloWorld.java:2: package javax.servlet does not exist import
 javax.servlet.*; ^
 HelloWorld.java:3: package javax.servlet.http does not exist import
 javax.servlet.http.*; ^
 HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
 location: class HelloWorld
 public class HelloWorld extends HttpServlet { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class
HttpServletRequest
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class
HttpServletResponse
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException { ^
 HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 
 ^
 6 errors
 
 -
 
 Samara, Fadi N Mr ACSIM/ASPEX wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 What errors are you getting again ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 9:47 AM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: class path
 
 Hi
 These are the env. variables that I have set explicitly for tomcat 4.1
 installation
 
 lJAVA_HOME = C:\java\bin
 lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=

.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE

 _
 HOME%\lib\j2ee.jar;
 
 I have the path =C:\java\bin; when i installed
 J2sdk1.4.2_06
 
 
 
 These being the variables I am still getting that error log where the
 compiler cannot locate the servlet pakages.
 
 Hope you can assit further.
 
 Thanks.
 
 
 
 Jason Bainbridge wrote:
 On Apr 12, 2005 3:39 PM, S M wrote:
 
 
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
 mentioned and yes it shows me the CLASSPATH as listed below
 
 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
 J2EE_
 HOME%\lib\j2ee.jar;
 
 
 where ;C:\javacode had the source code.
 
 
 
 Have you explicityly set CATALINA_HOME as well? Does it have spaces in
 it? If so surround it with double quotes or move it to a path with no
 spaces. I don't think having servlet.jar and j2ee.jar

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 see this... no errors... but no class file for the same 
  
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac HelloWorld.java

Is the HelloWorld class part of a package?  If so, javac will create a
directory tree under your current directory using the components of the
package name, and you class will be at the end of it.  If you still
can't find the output class, use -verbose with javac for more
information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


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



RE: class path - c:/javacode

2005-04-13 Thread Ben Kim


 c:/javacodejavac
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java

Maybe OT, but I'm curious where this c:/javacode is coming from (Doesn't
seem standard command shell which should be c:\javacode ). Doesn't seem
to be from cygwin.


Regards,

Ben Kim
Database Developer/Systems administrator
434E Harrington Tower / College of Education 
Texas AM University


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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M

Hi AllLet me make things clearer now, forget all the prior mails and listen
I have two java files 'HelloWorld.java' and "Hello.java'I am attaching the code for the same.
Now on compiling HelloWorld.java, I still getting errors no matter what way I compile, the log is attached also.On compiling Hello.java with the classpath, it compiles properly. However gives error when copiled without the classpath mentioned explicitly.
I brought in confusion earlier saying that HelloWorld compiled and there was no class file, however when I had received the Windows error.. sayong 'javac.exe encountered error', what actually had happeded.. it deleted the contents of HelloWorld.java, keeping the file name intact. That is why when I compiled a blank file it compiled without errors and it illusioned as if the code was compiled and no class file was generated.

To answer what c:/javacode is then that is the place where the source code as .java files reside.
"Samara, Fadi N Mr ACSIM/ASPEX" [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED Caveats: NONETry to reboot your machine, then compile again and see what happens.Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:57 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)it is netwroked...thgs are behaving perfectly ok if i compile an ordinary class i.e without a servlet then why should it matter otherwise...if i compiled it successfully there should be a class file.Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' faced an error, close. and since then, I am getting no errors when compling the servlet, also no class file?"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]>wrote:Classification: UNCLASSIFIEDCaveats: NONEIt compiled successfully
 and no .class was generated ? This is weird.Maybe it is something with where you're writing to. If it compiled then javac's job is done.Is it a standalone server/PC or networked ? Do you have limited permissions ?Fadi -Original Message-From: S M [mailto:[EMAIL PROTECTED]Sent: Wednesday, April 13, 2005 11:44 AMTo: Tomcat Users ListSubject: RE: class path (UNCLASSIFIED)tried that... now no errors anyway but there is no class file too???"Caldarale, Charles R" wrote: From: S M [mailto:[EMAIL PROTECTED] Subject: RE: class path (UNCLASSIFIED)  Now compiling c:/javacodejavac -classpath HelloWorld.java it said - Access DeniedWhere are these angle brackets coming from? They should not be present.- ChuckTHIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended
 recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-Yahoo! Messenger - Communicate instantly..."Ping" your friends today!Download Messenger NowClassification: UNCLASSIFIEDCaveats: NONE-Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger NowClassification: UNCLASSIFIED Caveats: NONE  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: class path (UNCLASSIFIED)

2005-04-13 Thread Ben Kim
tried that... now no errors anyway but there is no class file too

Maybe you can just copy the servlets.jar file in c:\javacode and run

  c:\javacodejavac -verbose -classpath servlet.jar HelloWorld.java

if a class file is made, then delete the class file, and do 

  c:\javacodejavac -verbose -classpath c:\javacode\servlet.jar
HelloWorld.java

and if it works, change whatever is in  ...  with the actual location. 

If it doesn't compile, could you post 

- result of running java -version
- source of HelloWorld.java

Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University






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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes,
only if the folder/directory names have spaces, and then search your system
for HelloWorld.class if
you do not see it in this directory. You also mentioned you were using a
batch file, or script file, to
compile. Do this from a command line from the directory you where the source
code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath.
I am guessing this is the HellowWorld.java servlet example included with
Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class
HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE
_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the
compiler cannot locate the servlet pakages.

Hope you can assit further.

Thanks.



Jason Bainbridge wrote:
On Apr 12, 2005 3:39 PM, S M wrote:


sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
mentioned and yes it shows me the CLASSPATH as listed

RE: class path (UNCLASSIFIED)

2005-04-13 Thread David B. Saul
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul [EMAIL PROTECTED] wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class 
HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class 
HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
J2EE
_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being the variables I am still getting that error log where the 
compiler

RE: class path (UNCLASSIFIED)

2005-04-13 Thread S M
thank you all ... i got it compiled.


David B. Saul [EMAIL PROTECTED] wrote:
BTW - adding the PWD to the classpath should have no effect on your issue!

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 2:31 PM
To: 'Tomcat Users List'
Subject: RE: class path (UNCLASSIFIED)


Quite frankly - this has nothing to do with Tomcat.

However, try this one more time - with or without the quotes as your path
does not require quotes, only if the folder/directory names have spaces, and
then search your system for HelloWorld.class if you do not see it in this
directory. You also mentioned you were using a batch file, or script file,
to compile. Do this from a command line from the directory you where the
source code is. Start from here 
and the rest of this is basic java compilation - not Tomcat :)

Additionally make a slight change to the command and specify the current
directory as part of the classpath. I am guessing this is the
HellowWorld.java servlet example included with Tomcat.

javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java




-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:52 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)


see this... no errors... but no class file for the same 

C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java C:\javacodejavac -classpath
c:\tomcat\common\lib\servlet.jar HelloWorld.java

C:\javacodejavac HelloWorld.java


David B. Saul wrote:
Try typing/copying the following at the prompt in the directory where the
source code is for HelloWorld.java:

javac -classpath C:\Program Files\Apache Group\Tomcat
4.1\common\lib\servlet.jar HelloWorld.java

if in fact this is where the servlet.jar file exists.



-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 8:15 AM
To: Tomcat Users List
Subject: Re: class path (UNCLASSIFIED)


Hello,

S M wrote:

tried that too... but it can't identify the path.

C:\javacodejavac -classpath 4.1\common\lib HellWorld.java




Try use quotes instead of '' and '' to quote the class path.

Good luck.

Bao

The system cannot find the file specified.

anyways.. now will reinstall as suggested 'without' spaces and will let 
you know.. thanks so far

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

Try compiling the class by including the path for servlet.jar in your 
javac command, if you haven't done that yet.

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:33 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I compiling it from the command prompt.
The sourse code is in c:\javacode
so i on cmd... i change directory to c:\javacodejavac HelloWorld.java

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

I am sorry, but how are you compiling your class ?
Are you using any IDE (i.e Eclipse, Jdeveloper) ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

The same as before.

C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class 
HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class 
HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

-

Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

What errors are you getting again ?

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 9:47 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: class path

Hi
These are the env. variables that I have set explicitly for tomcat 4.1 
installation

lJAVA_HOME = C:\java\bin
lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%
J2EE
_
HOME%\lib\j2ee.jar;

I have the path =C:\java\bin; when i installed
J2sdk1.4.2_06



These being

class path

2005-04-12 Thread S M
Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorld.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorld.java:5: cannot resolve symbol
symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
 
 ^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.
 
Please help to get this compiled.
 
Thanks in advance
S.




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
 
 ^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.
 
Please help to get this compiled.
 
Thanks in advance
S.




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE


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



Re: class path

2005-04-12 Thread Larry Meadors
*http://tinyurl.com/6t89b*

On Apr 12, 2005 2:03 PM, S M [EMAIL PROTECTED] wrote:
 
 Hi all,
 I am a first time user of Tomcat.
 I am able to see the Tomcat default page on 
 http://localhost:8080/index.jsp
 Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
 compile and fails with the following log
 ---
 C:\javacodejavac HelloWorld.java
 HelloWorld.java:2: package javax.servlet does not exist
 import javax.servlet.*;
 ^
 HelloWorld.java:3: package javax.servlet.http does not exist
 import javax.servlet.http.*;
 ^
 HelloWorld.java:5: cannot resolve symbol
 symbol : class HttpServlet
 location: class HelloWorld
 public class HelloWorld extends HttpServlet {
 ^
 HelloWorld.java:7: cannot resolve symbol
 symbol : class HttpServletRequest
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse 
 response) th
 rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol
 symbol : class HttpServletResponse
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse 
 response) th
 rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol
 symbol : class ServletException
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse 
 response) th
 rows ServletException, IOException {
 
 ^
 6 errors
 
 ---
 as it is not able to locate the servlet pakages.
 I have set the class_path as 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
 where ;C:\javacode had the source code.
 
 Please help to get this compiled.
 
 Thanks in advance
 S.
 
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! 
 Download Messenger Now



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I am using Tomcat 4.1 and that only has servlet.jar

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:Classification: 
UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE


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




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

That's fine.  Make sure it is in your classpath. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:08 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I am using Tomcat 4.1 and that only has servlet.jar

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:Classification: 
UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE


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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
yes it is
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.
 


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE


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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

What platform are you running under ?
Make sure your environment variable CLASSPATH points to whatever you
supplied below.
Not class_path if you are under WINXP or WIN2K . 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:12 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

yes it is
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.
 


Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

---
as it is not able to locate the servlet pakages.
I have set the class_path as
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I on WINXP and i have the below pointing to CLASSPATH and not CLASS_PATH
??

Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

What platform are you running under ?
Make sure your environment variable CLASSPATH points to whatever you
supplied below.
Not class_path if you are under WINXP or WIN2K . 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:12 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

yes it is
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.



Samara, Fadi N Mr ACSIM/ASPEX wrote:
Classification: UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not
compile and fails with the following log
---
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

---
as it is not able to locate the servlet pakages.
I have set the class_path as
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;
where ;C:\javacode had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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



-
Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

Re: class path

2005-04-12 Thread Steve Ochani
Hi,

Did you set class_path or CLASSPATH ?

try running a prompt and typing

echo %CLASSPATH%

and see if you get actual directory listings of everything you mentioned 
inlcuding the
servlet.jar

-Steve O.


On 12 Apr 2005 at 21:03, S M wrote:

 I have set the class_path as 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
 where ;C:\javacode had the source code.


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber Yankee Lady Flight I took
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu

SUNY NCC Physical Sciences Dept.


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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread Ben Kim

I am using Tomcat 4.1 and that only has servlet.jar
C:\javacodejavac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import 
javax.servlet.*; ^

Depends on how you run javac, but if this works, then it's really the
classpath problem. Tomcat's classpath may be different from the one in
your command shell.

javac -cp c:\PATH_TO\common\lib\servlet.jar yourpackages\yourfile.java


HTH.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University



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



Re: class path

2005-04-12 Thread S M
sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned 
and yes it shows me the CLASSPATH as listed below

Steve Ochani [EMAIL PROTECTED] wrote:Hi,

Did you set class_path or CLASSPATH ?

try running a prompt and typing

echo %CLASSPATH%

and see if you get actual directory listings of everything you mentioned 
inlcuding the
servlet.jar

-Steve O.


On 12 Apr 2005 at 21:03, S M wrote:

 I have set the class_path as 
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
 where ;C:\javacode had the source code.


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber Yankee Lady Flight I took
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu

SUNY NCC Physical Sciences Dept.


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




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! 
Download Messenger Now

Re: class path

2005-04-12 Thread Jason Bainbridge
On Apr 12, 2005 3:39 PM, S M [EMAIL PROTECTED] wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
 mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Including external libraries with MANIFEST.MF Class-Path property

2005-03-04 Thread Drew Millen
Hello, 

 

I have a jar file (one.jar) that I am including in my web application
(it is placed in the WEB-INF/lib folder).   The simple structure of the
one.jar file follows:



META-INF/MANIFEST.MF

my/package/Test.class


This jar file contains one class (my.package.Test), and a MANIFEST.MF
file in the META-INF directory.  Within the MANIFEST.MF file, I am
trying to include an external library (two.jar) for use within
Test.class using the MANIFEST.MF Class-Path property.  Here's what my
MANIFEST.MF looks like:

 

Manifest-Version: 5.5

Ant-Version: Apache Ant 1.6.2

Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)

Class-Path: ext/two.jar

 

When these jar files are deployed to my web application, they reside in
the web application directory structure as described below:



webapp/WEB-INF/lib/one.jar
webapp/WEB-INF/lib/ext/two.jar

 

Obviously, the webapp ClassLoader will not load two.jar, but I was
hoping that specifying the Class-Path property in my MANIFEST for
one.jar would add two.jar to the runtime classpath.

 

my.package.Test.class is trying to use a class within two.jar, but I am
receiving a java.lang.NoClassDefFoundError.  When I run one.jar as a
standalone application (outside of the web application), two.jar is
successfully loaded.

 

Is there something in Tomcat that does not allow external libraries to
be loaded using the Class-Path: property of a MANIFEST.MF file?  Is
there something else I'm missing?

 

Any help appreciated.


Thanks.

 

Drew. 

 



Modify class path using catalina (Windows tomcat 5.5.2 version)

2004-09-28 Thread Xavier Frisaye
Hi everybody,
 
I need to add a directory to class path of Tomcat and i'm using catalina.bat to launch 
it.
Is there a way to do this without modifying original .bat of tomcat release?
 
Thank you
 
Xavier Frisaye


Re: Modify class path using catalina (Windows tomcat 5.5.2 version)

2004-09-28 Thread QM
On Tue, Sep 28, 2004 at 08:36:39AM +0200, Xavier Frisaye wrote:
: I need to add a directory to class path of Tomcat and i'm using catalina.bat
: to launch it.
: Is there a way to do this without modifying original .bat of tomcat release?

The safest, most portable[1] way to add to a classpath is to wrap your
data in a JAR and place that in one of:

{context}/WEB-INF/lib
{tomcat install}/common/lib
{tomcat install}/shared/lib

JARs in these directories are picked up automagically by Tomcat, so
there's no need to alter a file.

Refer to the Tomcat classloader doc to decide where to put the JAR.
(Hint: most likely, under {context}/WEB-INF/lib).

-QM

[1] = portable between different versions of Tomcat, as well as
between different (spec-compliant) containers.

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: WARNING: Duplicate name in Manifest: Class-Path

2004-03-19 Thread Adam Hardy
On 03/19/2004 06:35 AM Tom K wrote:
Any clues where I would look to determine where this message?
Start from  only happens during sart up of my application.
 
 
 
Mar 18, 2004 11:33:48 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Sounds like somebody is complaining that you have an invalid MANIFEST.MF 
entry in one of your jars/wars/ears.

Are you making a manifest entry yourself?

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: WARNING: Duplicate name in Manifest: Class-Path

2004-03-19 Thread Larry Isaacs
In case it helps, the struts.jar from 1.1-b3, and I assume
earlier, had a MANIFEST.MF file that had multiple
Class-Path lines, which would lead to this symptom.
The 1.1 release version of struts.jar had this corrected.
I don't know about the Struts 1.1 release candidates.
You might check your struts.jar to see what it has.
AFAIK, it isn't a problem that requires fixing beyond the
annoyance.

Cheers,
Larry

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 19, 2004 5:18 AM
 To: Tomcat Users List
 Subject: Re: WARNING: Duplicate name in Manifest: Class-Path
 
 
 On 03/19/2004 06:35 AM Tom K wrote:
  Any clues where I would look to determine where this message?
  Start from ... only happens during sart up of my application.
   
   
   
  Mar 18, 2004 11:33:48 PM java.util.jar.Attributes read
  WARNING: Duplicate name in Manifest: Class-Path
 
 Sounds like somebody is complaining that you have an invalid 
 MANIFEST.MF 
 entry in one of your jars/wars/ears.
 
 Are you making a manifest entry yourself?
 
 Adam
 
 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian
 
 
 -
 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: WARNING: Duplicate name in Manifest: Class-Path

2004-03-19 Thread Tom K
Thanks Larry!

Tom Kochanowicz

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 19, 2004 7:29 AM
To: Tomcat Users List
Subject: RE: WARNING: Duplicate name in Manifest: Class-Path

In case it helps, the struts.jar from 1.1-b3, and I assume
earlier, had a MANIFEST.MF file that had multiple
Class-Path lines, which would lead to this symptom.
The 1.1 release version of struts.jar had this corrected.
I don't know about the Struts 1.1 release candidates.
You might check your struts.jar to see what it has.
AFAIK, it isn't a problem that requires fixing beyond the
annoyance.

Cheers,
Larry

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 19, 2004 5:18 AM
 To: Tomcat Users List
 Subject: Re: WARNING: Duplicate name in Manifest: Class-Path
 
 
 On 03/19/2004 06:35 AM Tom K wrote:
  Any clues where I would look to determine where this message?
  Start from ... only happens during sart up of my application.
   
   
   
  Mar 18, 2004 11:33:48 PM java.util.jar.Attributes read
  WARNING: Duplicate name in Manifest: Class-Path
 
 Sounds like somebody is complaining that you have an invalid 
 MANIFEST.MF 
 entry in one of your jars/wars/ears.
 
 Are you making a manifest entry yourself?
 
 Adam
 
 -- 
 struts 1.1 + tomcat 5.0.16 + java 1.4.2
 Linux 2.4.20 Debian
 
 
 -
 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]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



WARNING: Duplicate name in Manifest: Class-Path

2004-03-18 Thread Tom K
Any clues where I would look to determine where this message?
Start from  only happens during sart up of my application.
 
 
 
Mar 18, 2004 11:33:48 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
 
 
TIA
 
Tom K
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


editing tomcat class path

2004-03-15 Thread Arora, Avinash
Hi every one,
   I am a new user of tomcat. Please don't mind if my question seems to be trivial. If 
we are having a java class that uses some package. Do we need to change the classpath 
for tomcat so that it can correctly compile the jsp page using that class? I have 
updated the system class path (CLASSPATH) to point to the correct location, but I was 
wondering if I need to make any special changes for tomcat as well. I am facing the 
following problem-- 
 I can execute a program, which creates an instance of the MyUserInfo class 
(MyUserInfo implements the UserInfo interface, which is present in the package 
com.jcraft.jsch) on the command line but when I try to create the instance of 
MyUserInfo class in jsp  page I get error. 
 Below is the web page showing errors--


HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: com/jcraft/jsch/UserInfo
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: com/jcraft/jsch/UserInfo
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.addCPValidate_jsp._jspService(addCPValidate_jsp.java:102)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

RE: editing tomcat class path

2004-03-15 Thread Shapira, Yoav

Hi,

   I am a new user of tomcat. Please don't mind if my question seems to be
trivial. If we are having a java class that uses some package. Do we need
to change the classpath for tomcat so that it can correctly compile the jsp
page using that class? I have updated the system class path (CLASSPATH) to

System CLASSPATH is ignored.  Read
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
http://jakarta.apache.org/tomcat/faq/classnotfound.html

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



editing the class path w

2004-03-14 Thread Arora, Avinash
 Hi every one,
   I am a new user of tomcat. Please don't mind if my question seems to be trivial.
If we are having a java class that uses some package. Do we need to change the 
classpath for tomcat so that it can correctly compile the jsp page using that class? I 
have updated the system class path (CLASSPATH) to point to the correct location, but I 
was wondering if I need to make any special changes for tomcat as well. I am facing 
the following problem-- 
 I can execute a program, which creates an instance of the MyUserInfo class 
(MyUserInfo implements the UserInfo interface, which is present in the package 
com.jcraft.jsch) on the command line but when I try to create the instance of 
MyUserInfo class in jsp  page I get error. 
 Below is the web page showing errors--


HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: com/jcraft/jsch/UserInfo
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: com/jcraft/jsch/UserInfo
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.addCPValidate_jsp._jspService(addCPValidate_jsp.java:102)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

WARNING: Duplicate name in Manifest: Class-Path

2004-02-09 Thread Yansheng Lin

Hi, I am getting a lot of this WARNING lately in my console.  Did a search
online and found a really good explaination on this page:
http://www.deftcode.com/archives/duplicate_class_path_entries.html. I recently
upgraded both JDK/JRE and Tomcat.  So I am not sure which upgrade is responsible
for bring out this warning.  Anyone knows? The more specific the answer, the
better. I want to get rid of it for now!

Thanks.

-Yan


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



Tomcat webapp is ignoring the system class path

2003-10-10 Thread Agarwal, Naresh



Hi

I'm deploying a web 
app in the Tomcat. This web app reads a properties files through resource 
bundle.

I've put the path of 
this properties file in the class path but while running the web app, I'm 
getting exception that properties file does not 
exist. Thus tomcat 
is ignoring the system class path.

Is there any work to 
make Tomcat read the classpath?

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

RE: Tomcat webapp is ignoring the system class path

2003-10-10 Thread Shapira, Yoav

Howdy,
You can make tomcat read the system classpath, but you don't want to.  Read this: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html.  Then search 
the archives if you're still not convinced you shouldn't make tomcat read the system 
classpath.

Put your resource bundle in WEB-INF/classes of your webapp.

And please subscribe to the list properly -- I keep having to manually approve your 
posts.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: Tomcat webapp is ignoring the system class path

Hi
 
I'm deploying a web app in the Tomcat. This web app reads a properties files through 
resource bundle.
 
I've put the path of this properties file in the class path but while running the web 
app, I'm getting exception that properties file does not
exist. Thus tomcat is ignoring the system class path.
 
Is there any work to make Tomcat read the classpath?
 
thanks,
Naresh



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat webapp is ignoring the system class path

2003-10-10 Thread Jay Garala
modify the $Tomcat/bin/setClasspath.bat (sh), ~ Line 41 set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
 
Jay Garala
Senior Analyst
Electrosoft Services, Inc.
7918 Jones Branch Drive, Suite 600
McLean, VA  22102
(703) 918-4907


-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: Tomcat webapp is ignoring the system class path


Hi
 
I'm deploying a web app in the Tomcat. This web app reads a properties files
through resource bundle.
 
I've put the path of this properties file in the class path but while
running the web app, I'm getting exception that properties file does not 
exist. Thus tomcat is ignoring the system class path.
 
Is there any work to make Tomcat read the classpath?
 
thanks,
Naresh



RE: Class Path and New Context

2002-11-08 Thread developer
WHen I take some of the classes that don't seem to be getting loaded and
put them in a package they seem to be fine.  So it appears as if you must 
have your classes within a package in order for the class loader to find
them.  I looked through the bug list and could not find this in
there.  Can anyone confirm that this is a bug or is it just a personal
problem?

ryan 

On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote:

 Here is an example of an error I am getting where the
 class GlobalUtilsBean is
 being referenced from my jsp page:
 ** 
 
 
/usr/local/tomcat/work/Standalone/xxx.xxx.xxx.xxx/jsppages/ShoppingCatalog_jsp.java:83:
 cannot
 resolve symbol
 symbol  : class GlobalUtilsBean 
 location: class org.apache.jsp.ShoppingCatalog_jsp
   GlobalUtilsBean globalUtilsBean = null;
   ^
 
 
 
 An error occurred at line: 8 in the jsp file: /ShoppingCatalog.jsp
 
 Generated servlet error:
 
/usr/local/tomcat/work/Standalone/xxx.xxx.xxx./jsppages/ShoppingCatalog_jsp.java:85:
 cannot
 resolve symbol
 symbol  : class GlobalUtilsBean 
 location: class org.apache.jsp.ShoppingCatalog_jsp
 globalUtilsBean =
 (GlobalUtilsBean) pageContext.getAttribute(globalUtilsBean,
 PageContext.APPLICATION_SCOPE);
^
 ***
 and the jsp code where I reference it is:
 jsp:useBean
 id=globalUtilsBean class=GlobalUtilsBean scope=application
   %
   globalUtilsBean.init();
   %
 /jsp:useBean
 
 the GlobalUtilsBean.class resides in
 tomcathome/webapps/jsppages/WEB-INF/classes/GlobalUtilsBean.class
 
 
 I am porting this application from tomcat 3.2 (i know really
 old) but the jsp works fine there so I would think that wouldn't be the
 problem.  There is no restriction where you have
 to put stuff in a package is there?
 
 ryan
 
 
 On Thu, 7 Nov 2002, Turner, John wrote:
 
  
  What are the error messages you are seeing?  Specific information is always
  helpful.  Your classes should work in WEB-INF/classes.  If they aren't in a
  package, and are installed in WEB-INF/classes, then you have something else
  going on.  
  
  How are you referencing these classes in your code?
  
  John
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
   Sent: Thursday, November 07, 2002 3:44 PM
   To: Tomcat Users List
   Subject: RE: Class Path and New Context
   
   
   I fooled around with the setclasspath.sh to include my default
   classpath.  Tomcat however doesn't like that too bad it would 
   have  been
   convenient. 
   
   I copied the examples context exactly to newcontext/
   I put my jsppages in newcontext/
   I put all my java beans for this context in newcontext/WEB-INF/classes
   they aren't in a package so I put them directly in there and compiled
   When I run tomcat it still can't find them. So i tried 
   putting them into
   common/classes, same problem.  Funny thing is when I put a jar file in
   common/lib that contains some other random classes I seem to 
   be able to
   access those fine.  
   
   I believe I have carefully read all the docs and they 
   indicate that I am
   doing this correctly so why doesn't it work?
   
   
   ryan
   
   On Thu, 7 Nov 2002, Turner, John wrote:
   

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
 Sent: Thursday, November 07, 2002 2:24 PM
 To: Tomcat Users List
 Subject: Class Path and New Context
 
 
 With some hassles I got tomcat 4.1.12 with apache 1.3x, 
   java 1.4 on a
 linux
 2.4 kernel box.  The examples context works fine and apache 
 seems to be
 handling all the other stuff fine
 
 Questions
 1)I am trying to create a new context, what are the bare bones
 requirements
 for doing so?  Anyone have a breakdown of the necessary tags 
 in web.xml?

Basically, duplicate the tags for the examples.

 
 2)In a context if I want to add bunch of class files that 
   are specific
 to that context can't I just throw them in
 /webapps/newcontext/WEB-INF/classes?  I tried this and they 
 don't seem to
 be available i get Symbols Not resolved errors referencing 
 any time I call
 that class. ???

Check the ClassLoader HOWTO:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
   

3)I have a whole bunch of other classes that need to be available to
tomcat.  I have set up a global CLASSPATH variable that points to
them.  Tomcat does not seem to be picking this up.  I 
verified that when i
do an env directly before starting tomcat the CLASSPATH 
variable is set
and defined properly.  What am i screwing up?  
   
   Tomcat ignores the system-level CLASSPATH environment variable and
  assembles
   its own in the startup scripts.  Check startup.sh and catalina.sh to see
   what it does

RE: Class Path and New Context

2002-11-08 Thread Craig R. McClanahan


On Fri, 8 Nov 2002 [EMAIL PROTECTED] wrote:

 Date: Fri, 8 Nov 2002 09:09:09 -0800 (PST)
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Class Path and New Context

 WHen I take some of the classes that don't seem to be getting loaded and
 put them in a package they seem to be fine.  So it appears as if you must
 have your classes within a package in order for the class loader to find
 them.  I looked through the bug list and could not find this in
 there.  Can anyone confirm that this is a bug or is it just a personal
 problem?


JDK 1.4.1 has started enforcing a restriction that has always been in the
Java Language Specification, but was never enforced before -- you are not
allowed to import an unpackaged class name.  Among other things, that
makes it pretty much impossible to use unpackaged bean classes in a JSP
page.

 ryan


Craig


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




RE: Class Path and New Context

2002-11-08 Thread developer
Well that explains things thanks, darn now I have to change my code.  I am
migrating all this stuff from tomcat 3.2 jdk 1.2 so it wasn't an issue
before.

ryan

On Fri, 8 Nov 2002, Craig R. McClanahan wrote:

 
 
 On Fri, 8 Nov 2002 [EMAIL PROTECTED] wrote:
 
  Date: Fri, 8 Nov 2002 09:09:09 -0800 (PST)
  From: [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Class Path and New Context
 
  WHen I take some of the classes that don't seem to be getting loaded and
  put them in a package they seem to be fine.  So it appears as if you must
  have your classes within a package in order for the class loader to find
  them.  I looked through the bug list and could not find this in
  there.  Can anyone confirm that this is a bug or is it just a personal
  problem?
 
 
 JDK 1.4.1 has started enforcing a restriction that has always been in the
 Java Language Specification, but was never enforced before -- you are not
 allowed to import an unpackaged class name.  Among other things, that
 makes it pretty much impossible to use unpackaged bean classes in a JSP
 page.
 
  ryan
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 


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




Class Path and New Context

2002-11-07 Thread developer
With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a
linux
2.4 kernel box.  The examples context works fine and apache seems to be
handling all the other stuff fine

Questions
1)I am trying to create a new context, what are the bare bones
requirements
for doing so?  Anyone have a breakdown of the necessary tags in web.xml?


2)In a context if I want to add bunch of class files that are specific
to that context can't I just throw them in
/webapps/newcontext/WEB-INF/classes?  I tried this and they don't seem to
be available i get Symbols Not resolved errors referencing any time I call
that class. ???



3)I have a whole bunch of other classes that need to be available to
tomcat.  I have set up a global CLASSPATH variable that points to
them.  Tomcat does not seem to be picking this up.  I verified that when i
do an env directly before starting tomcat the CLASSPATH variable is set
and defined properly.  What am i screwing up?  


thanks


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




RE: Class Path and New Context

2002-11-07 Thread Turner, John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
 Sent: Thursday, November 07, 2002 2:24 PM
 To: Tomcat Users List
 Subject: Class Path and New Context
 
 
 With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a
 linux
 2.4 kernel box.  The examples context works fine and apache 
 seems to be
 handling all the other stuff fine
 
 Questions
 1)I am trying to create a new context, what are the bare bones
 requirements
 for doing so?  Anyone have a breakdown of the necessary tags 
 in web.xml?

Basically, duplicate the tags for the examples.

 
 2)In a context if I want to add bunch of class files that are specific
 to that context can't I just throw them in
 /webapps/newcontext/WEB-INF/classes?  I tried this and they 
 don't seem to
 be available i get Symbols Not resolved errors referencing 
 any time I call
 that class. ???

Check the ClassLoader HOWTO:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 
 3)I have a whole bunch of other classes that need to be available to
 tomcat.  I have set up a global CLASSPATH variable that points to
 them.  Tomcat does not seem to be picking this up.  I 
 verified that when i
 do an env directly before starting tomcat the CLASSPATH 
 variable is set
 and defined properly.  What am i screwing up?  

Tomcat ignores the system-level CLASSPATH environment variable and assembles
its own in the startup scripts.  Check startup.sh and catalina.sh to see
what it does.  Modifying either startup.sh and/or catalina.sh to use your
special classpath is not advised.  Read the ClassLoader HOWTO.  The
Application Developer's Guide might be a good idea, too.

John


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




RE: Class Path and New Context

2002-11-07 Thread Cox, Charlie


 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Thursday, November 07, 2002 2:28 PM
 To: 'Tomcat Users List'
 Subject: RE: Class Path and New Context
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
  Sent: Thursday, November 07, 2002 2:24 PM
  To: Tomcat Users List
  Subject: Class Path and New Context
  
  
  With some hassles I got tomcat 4.1.12 with apache 1.3x, 
 java 1.4 on a
  linux
  2.4 kernel box.  The examples context works fine and apache 
  seems to be
  handling all the other stuff fine
  
  Questions
  1)I am trying to create a new context, what are the bare bones
  requirements
  for doing so?  Anyone have a breakdown of the necessary tags 
  in web.xml?
 
 Basically, duplicate the tags for the examples.
 
  
  2)In a context if I want to add bunch of class files that 
 are specific
  to that context can't I just throw them in
  /webapps/newcontext/WEB-INF/classes?  I tried this and they 
  don't seem to
  be available i get Symbols Not resolved errors referencing 
  any time I call
  that class. ???
 
 Check the ClassLoader HOWTO:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
owto.html

also note that if you use a security manager, you need to allow the
WEB-INF/classes dir to be accessed.

Charlie

 
 3)I have a whole bunch of other classes that need to be available to
 tomcat.  I have set up a global CLASSPATH variable that points to
 them.  Tomcat does not seem to be picking this up.  I 
 verified that when i
 do an env directly before starting tomcat the CLASSPATH 
 variable is set
 and defined properly.  What am i screwing up?  

Tomcat ignores the system-level CLASSPATH environment variable and assembles
its own in the startup scripts.  Check startup.sh and catalina.sh to see
what it does.  Modifying either startup.sh and/or catalina.sh to use your
special classpath is not advised.  Read the ClassLoader HOWTO.  The
Application Developer's Guide might be a good idea, too.

John


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

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




RE: Class Path and New Context

2002-11-07 Thread developer
I fooled around with the setclasspath.sh to include my default
classpath.  Tomcat however doesn't like that too bad it would have  been
convenient. 

I copied the examples context exactly to newcontext/
I put my jsppages in newcontext/
I put all my java beans for this context in newcontext/WEB-INF/classes
they aren't in a package so I put them directly in there and compiled
When I run tomcat it still can't find them. So i tried putting them into
common/classes, same problem.  Funny thing is when I put a jar file in
common/lib that contains some other random classes I seem to be able to
access those fine.  

I believe I have carefully read all the docs and they indicate that I am
doing this correctly so why doesn't it work?


ryan

On Thu, 7 Nov 2002, Turner, John wrote:

 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
  Sent: Thursday, November 07, 2002 2:24 PM
  To: Tomcat Users List
  Subject: Class Path and New Context
  
  
  With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a
  linux
  2.4 kernel box.  The examples context works fine and apache 
  seems to be
  handling all the other stuff fine
  
  Questions
  1)I am trying to create a new context, what are the bare bones
  requirements
  for doing so?  Anyone have a breakdown of the necessary tags 
  in web.xml?
 
 Basically, duplicate the tags for the examples.
 
  
  2)In a context if I want to add bunch of class files that are specific
  to that context can't I just throw them in
  /webapps/newcontext/WEB-INF/classes?  I tried this and they 
  don't seem to
  be available i get Symbols Not resolved errors referencing 
  any time I call
  that class. ???
 
 Check the ClassLoader HOWTO:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
 
  
  3)I have a whole bunch of other classes that need to be available to
  tomcat.  I have set up a global CLASSPATH variable that points to
  them.  Tomcat does not seem to be picking this up.  I 
  verified that when i
  do an env directly before starting tomcat the CLASSPATH 
  variable is set
  and defined properly.  What am i screwing up?  
 
 Tomcat ignores the system-level CLASSPATH environment variable and assembles
 its own in the startup scripts.  Check startup.sh and catalina.sh to see
 what it does.  Modifying either startup.sh and/or catalina.sh to use your
 special classpath is not advised.  Read the ClassLoader HOWTO.  The
 Application Developer's Guide might be a good idea, too.
 
 John
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 


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




RE: Class Path and New Context

2002-11-07 Thread Turner, John

What are the error messages you are seeing?  Specific information is always
helpful.  Your classes should work in WEB-INF/classes.  If they aren't in a
package, and are installed in WEB-INF/classes, then you have something else
going on.  

How are you referencing these classes in your code?

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
 Sent: Thursday, November 07, 2002 3:44 PM
 To: Tomcat Users List
 Subject: RE: Class Path and New Context
 
 
 I fooled around with the setclasspath.sh to include my default
 classpath.  Tomcat however doesn't like that too bad it would 
 have  been
 convenient. 
 
 I copied the examples context exactly to newcontext/
 I put my jsppages in newcontext/
 I put all my java beans for this context in newcontext/WEB-INF/classes
 they aren't in a package so I put them directly in there and compiled
 When I run tomcat it still can't find them. So i tried 
 putting them into
 common/classes, same problem.  Funny thing is when I put a jar file in
 common/lib that contains some other random classes I seem to 
 be able to
 access those fine.  
 
 I believe I have carefully read all the docs and they 
 indicate that I am
 doing this correctly so why doesn't it work?
 
 
 ryan
 
 On Thu, 7 Nov 2002, Turner, John wrote:
 
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
   Sent: Thursday, November 07, 2002 2:24 PM
   To: Tomcat Users List
   Subject: Class Path and New Context
   
   
   With some hassles I got tomcat 4.1.12 with apache 1.3x, 
 java 1.4 on a
   linux
   2.4 kernel box.  The examples context works fine and apache 
   seems to be
   handling all the other stuff fine
   
   Questions
   1)I am trying to create a new context, what are the bare bones
   requirements
   for doing so?  Anyone have a breakdown of the necessary tags 
   in web.xml?
  
  Basically, duplicate the tags for the examples.
  
   
   2)In a context if I want to add bunch of class files that 
 are specific
   to that context can't I just throw them in
   /webapps/newcontext/WEB-INF/classes?  I tried this and they 
   don't seem to
   be available i get Symbols Not resolved errors referencing 
   any time I call
   that class. ???
  
  Check the ClassLoader HOWTO:
  
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
 
  
  3)I have a whole bunch of other classes that need to be available to
  tomcat.  I have set up a global CLASSPATH variable that points to
  them.  Tomcat does not seem to be picking this up.  I 
  verified that when i
  do an env directly before starting tomcat the CLASSPATH 
  variable is set
  and defined properly.  What am i screwing up?  
 
 Tomcat ignores the system-level CLASSPATH environment variable and
assembles
 its own in the startup scripts.  Check startup.sh and catalina.sh to see
 what it does.  Modifying either startup.sh and/or catalina.sh to use your
 special classpath is not advised.  Read the ClassLoader HOWTO.  The
 Application Developer's Guide might be a good idea, too.
 
 John
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
 
 


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

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




RE: Class Path and New Context

2002-11-07 Thread developer
Here is an example of an error I am getting where the
class GlobalUtilsBean is
being referenced from my jsp page:
** 

/usr/local/tomcat/work/Standalone/xxx.xxx.xxx.xxx/jsppages/ShoppingCatalog_jsp.java:83:
 cannot
resolve symbol
symbol  : class GlobalUtilsBean 
location: class org.apache.jsp.ShoppingCatalog_jsp
  GlobalUtilsBean globalUtilsBean = null;
  ^



An error occurred at line: 8 in the jsp file: /ShoppingCatalog.jsp

Generated servlet error:
/usr/local/tomcat/work/Standalone/xxx.xxx.xxx./jsppages/ShoppingCatalog_jsp.java:85:
 cannot
resolve symbol
symbol  : class GlobalUtilsBean 
location: class org.apache.jsp.ShoppingCatalog_jsp
globalUtilsBean =
(GlobalUtilsBean) pageContext.getAttribute(globalUtilsBean,
PageContext.APPLICATION_SCOPE);
   ^
***
and the jsp code where I reference it is:
jsp:useBean
id=globalUtilsBean class=GlobalUtilsBean scope=application
  %
  globalUtilsBean.init();
  %
/jsp:useBean

the GlobalUtilsBean.class resides in
tomcathome/webapps/jsppages/WEB-INF/classes/GlobalUtilsBean.class


I am porting this application from tomcat 3.2 (i know really
old) but the jsp works fine there so I would think that wouldn't be the
problem.  There is no restriction where you have
to put stuff in a package is there?

ryan


On Thu, 7 Nov 2002, Turner, John wrote:

 
 What are the error messages you are seeing?  Specific information is always
 helpful.  Your classes should work in WEB-INF/classes.  If they aren't in a
 package, and are installed in WEB-INF/classes, then you have something else
 going on.  
 
 How are you referencing these classes in your code?
 
 John
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
  Sent: Thursday, November 07, 2002 3:44 PM
  To: Tomcat Users List
  Subject: RE: Class Path and New Context
  
  
  I fooled around with the setclasspath.sh to include my default
  classpath.  Tomcat however doesn't like that too bad it would 
  have  been
  convenient. 
  
  I copied the examples context exactly to newcontext/
  I put my jsppages in newcontext/
  I put all my java beans for this context in newcontext/WEB-INF/classes
  they aren't in a package so I put them directly in there and compiled
  When I run tomcat it still can't find them. So i tried 
  putting them into
  common/classes, same problem.  Funny thing is when I put a jar file in
  common/lib that contains some other random classes I seem to 
  be able to
  access those fine.  
  
  I believe I have carefully read all the docs and they 
  indicate that I am
  doing this correctly so why doesn't it work?
  
  
  ryan
  
  On Thu, 7 Nov 2002, Turner, John wrote:
  
   
-Original Message-
From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com]
Sent: Thursday, November 07, 2002 2:24 PM
To: Tomcat Users List
Subject: Class Path and New Context


With some hassles I got tomcat 4.1.12 with apache 1.3x, 
  java 1.4 on a
linux
2.4 kernel box.  The examples context works fine and apache 
seems to be
handling all the other stuff fine

Questions
1)I am trying to create a new context, what are the bare bones
requirements
for doing so?  Anyone have a breakdown of the necessary tags 
in web.xml?
   
   Basically, duplicate the tags for the examples.
   

2)In a context if I want to add bunch of class files that 
  are specific
to that context can't I just throw them in
/webapps/newcontext/WEB-INF/classes?  I tried this and they 
don't seem to
be available i get Symbols Not resolved errors referencing 
any time I call
that class. ???
   
   Check the ClassLoader HOWTO:
   
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
  
   
   3)I have a whole bunch of other classes that need to be available to
   tomcat.  I have set up a global CLASSPATH variable that points to
   them.  Tomcat does not seem to be picking this up.  I 
   verified that when i
   do an env directly before starting tomcat the CLASSPATH 
   variable is set
   and defined properly.  What am i screwing up?  
  
  Tomcat ignores the system-level CLASSPATH environment variable and
 assembles
  its own in the startup scripts.  Check startup.sh and catalina.sh to see
  what it does.  Modifying either startup.sh and/or catalina.sh to use your
  special classpath is not advised.  Read the ClassLoader HOWTO.  The
  Application Developer's Guide might be a good idea, too.
  
  John
  
  
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  
  
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail

Appending to TOMCAT's class path

2002-05-07 Thread Tim Cronin

the startup scripts (under 4.X) for tomcat do not use the System classpath
setting
by default. In a production environment I'm fine with putting my jars
in the common\lib directory but in development I want to be able
to add my source tree to the classpath tomcat uses. once I do this by
changing the setclasspath script It stops finding internal files. one
example
is creating a custom realm. I fails to find the BaseRealm file that is
in the server\lib\catalina.jar once I add that to the script it fails to
find 
other files in additional jars.

Does anyone have a solution other than having to make a new jar file every
time
I recompile? 

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




Re: Appending to TOMCAT's class path

2002-05-07 Thread Larry Meadors

Why not put your source in the WEB-INF/classes directory of your context
or put them in any other directory, and use ant to build and have it
build the classes into that directory?
 
Larry

 [EMAIL PROTECTED] 05/07/02 10:12AM 
Does anyone have a solution other than having to make a new jar file
every
time
I recompile? 




Re: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread August Detlefsen

I have found that it does not pick up changes to WEB-INF/classes,
though it does recognise changes to WEB-INF/lib. My solution is to
update the jar (jar -uvf) whenever I change a class. My build script
(run from WEB-INF/src dev directory) goes something like this: 

#!/bin/bash

export
CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/lib/j2ee.jar

echo $CLASSPATH

FILE=$1
if [ $1 =  ]; then
echo building all java files
FILE=*
fi

find . -name $FILE.java -exec javac {} \; -print

find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \;


--- Jon Shoberg [EMAIL PROTECTED] wrote:
 All fixed :)
 
 Can tomcat/catalina check the classes directory to make sure none of
 them
 have been modified.  Obviosuly it will check my JSPs but apparently
 not so
 when I have to change a class. Currently I have to reload the
 applciation.
 
 Any thoughts?
 
 Thanks for the help.
 
 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 9:10 AM
 To: Tomcat Users List
 Subject: RE: RE: Catalina Beans - Class Path Problem
 
 
 I am not sure if you are running this in Windows but if you go to
 something
 equivalent to starting this at the command line, type startup debug
 in the
 %CATALINA_HOME%\bin directory and see if your classes or jars are
 loaded?
 
 Paul
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 8:29 AM
 To: Tomcat Users List
 Subject: Re: RE: Catalina Beans - Class Path Problem
 
 
 I am having the same problem only my clases ARE directly in the
 classes
 folder. Also, my utility classes, which are neither servlets nor
 Beans, are
 also giving me the same problem. Please help!!! I have tried
 packaging them
 and then without packaging. I am not sure what to do now. I am not
 using any
 IDE nor am I using a deployment tool.
 
 
 Tomcat Users List [EMAIL PROTECTED] wrote:
  Please see my comments below:
 
 All your classes and/or beans should go into:
 
   ./webapps/gateway/WEB-INF/classes, or
   ./webapps/gateway/WEB-INF/lib
 
 This should help you out. :-)
 
 Paul
 
 -Original Message-
 From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 8:12 PM
 To: Tomcat Users List
 Subject: Catalina Beans - Class Path Problem
 
 
 Short Version:
 
 For some reason, I can not get my JSP pages to compile when loading a
 little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml
 
 Long Version:
 
 A)Installed tomcat, got it running, all of the example programs
 work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp
 
 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml
 
 So I understand this to be creating a bean with id Words
 from the
 class ./webapps/gateway/classes/gwclasses/words.class in the
 kw.jsp.
 However, I am getting a compiler error saying
 
 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63:
 Class
 gwclasses.words not found
 
 
 Any thoughts ?
 
 
 Thanks
 
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread Pavel Brun

I would have assumed that once you load a JAR into the ClassLoader, that any
changes will
not be taken into account unless you reload the application (Tomcat).
However, I took the
approach of replacing the JAR's, not really updating them. I will have to
give that a try
to see if that works. :-)

Thanks for the update.
Paul

-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:20 PM
To: Tomcat Users List
Subject: Re: Fixed - RE: RE: Catalina Beans - Class Path Problem


I have found that it does not pick up changes to WEB-INF/classes,
though it does recognise changes to WEB-INF/lib. My solution is to
update the jar (jar -uvf) whenever I change a class. My build script
(run from WEB-INF/src dev directory) goes something like this:

#!/bin/bash

export
CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/
lib/j2ee.jar

echo $CLASSPATH

FILE=$1
if [ $1 =  ]; then
echo building all java files
FILE=*
fi

find . -name $FILE.java -exec javac {} \; -print

find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \;


--- Jon Shoberg [EMAIL PROTECTED] wrote:
 All fixed :)

 Can tomcat/catalina check the classes directory to make sure none of
 them
 have been modified.  Obviosuly it will check my JSPs but apparently
 not so
 when I have to change a class. Currently I have to reload the
 applciation.

 Any thoughts?

 Thanks for the help.

 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 9:10 AM
 To: Tomcat Users List
 Subject: RE: RE: Catalina Beans - Class Path Problem


 I am not sure if you are running this in Windows but if you go to
 something
 equivalent to starting this at the command line, type startup debug
 in the
 %CATALINA_HOME%\bin directory and see if your classes or jars are
 loaded?

 Paul

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 8:29 AM
 To: Tomcat Users List
 Subject: Re: RE: Catalina Beans - Class Path Problem


 I am having the same problem only my clases ARE directly in the
 classes
 folder. Also, my utility classes, which are neither servlets nor
 Beans, are
 also giving me the same problem. Please help!!! I have tried
 packaging them
 and then without packaging. I am not sure what to do now. I am not
 using any
 IDE nor am I using a deployment tool.


 Tomcat Users List [EMAIL PROTECTED] wrote:
  Please see my comments below:

 All your classes and/or beans should go into:

   ./webapps/gateway/WEB-INF/classes, or
   ./webapps/gateway/WEB-INF/lib

 This should help you out. :-)

 Paul

 -Original Message-
 From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 8:12 PM
 To: Tomcat Users List
 Subject: Catalina Beans - Class Path Problem


 Short Version:

 For some reason, I can not get my JSP pages to compile when loading a
 little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml

 Long Version:

 A)Installed tomcat, got it running, all of the example programs
 work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp

 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml

 So I understand this to be creating a bean with id Words
 from the
 class ./webapps/gateway/classes/gwclasses/words.class in the
 kw.jsp.
 However, I am getting a compiler error saying

 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63:
 Class
 gwclasses.words not found


 Any thoughts ?


 Thanks





 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:




 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Catalina Beans - Class Path Problem -- workaround solution found

2002-02-04 Thread isaco

Thank you very much for your reply, Paul.
I managed to get it working once I put the classes folder in my
classpath. But I realize this is a workaround as I think it may limit
my ability to run any other applications that are within contexts
other than the classwork context I have set up.
Here is a rundown of my directory structure:
my application is called bookstore. it is in the context directory
called classwork saved directly within %tomcat_home%\webapps (I am
running Tomcat 4.0.1 on win2k and using TextPad as a text editor along
with the JSDK1.3.2 - I will eventually integrate Apache and JBoss once
I get a sufficient handle on the vagaries of Tomcat 4.0).
The directory is as such:
webapps\classwork\images
webapps\classwork\jsp
webapps\classwork\servlets
webapps\classwork\WEB-INF
webapps\classwork\WEB-INF\classes
webapps\classwork\WEB-INF\lib  //is currently empty as I have not
jarred any of my app yet.
webapps\classwork\WEB-INF\classes\bookstore
webapps\classwork\WEB-INF\classes\bookstore\utils
webapps\classwork\WEB-INF\classes\bookstore\javabeans
webapps\classwork\WEB-INF\classes\bookstore\action
webapps\classwork\WEB-INF\web.xml
(bookstore, bookstore.utils, bookstore.javabeans, bookstore.action are
all packages of classes and are broken down according to their purpose
within my understanding of the MVC architecture).
My classpath now looks like this:
CLASSPATH:
.;%TOMCAT_HOME%\webapps\classwork\WEB-INF\classes;%TOMCAT_HOME%\common
\lib\servlet.jar;%JAVA_HOME%\jre\lib\rt.jar
(any typos within this path are a result of typing it here and aren't
in my actual classpath).
My servlet.jar file has a new context entry for classwork that is the
following:
!-- classwork context --
Context path=/classwork docBase=classwork debug=0
reloadable=true /

This set up was found through a combination of trial and error, the
Tomcat 4.0 documentation, Goodwill's book on Tomcat 4.0 (worth the
money, IMHO) and one little tip in Marty Hall's book More Servlets and
JavaServer Pages (he made an invaluable comment about a common
beginner's mistake: forgetting to put the dev environment in the
classpath and since I used my actual deployment directory as my dev
environment, I placed that directory in the classpath though I
understand this habit is frowned upon). My bookstore app now works.
I posted this here for all the other newbies to Tomcat 4.0 who may be
able to use this info.
I am currently teaching a class on Servlets and JavaServer Pages and
this application is what I am using as a sample app for the students
to see and try for themselves the various concepts we cover in class,
hence the name classwork for the context.
We had opted to use Tomcat 4.0.1 because of its support for the latest
specs, its standard-setting architecture, its small size (important as
our puter hard drive space is at a premium) and the fact that it is
free, which is always a plus for an educational institution. It has
been an adventure to stay a step ahead of the students in figuring out
Tomcat's rules of play! But I have been quite happy with it, I must
say.
Thanks again, Paul.
Zaina
PS why does everyone always do a bookstore application for a sample
app??? that was rhetorical, btw.
-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 9:10 AM
To: Tomcat Users List
Subject: RE: RE: Catalina Beans - Class Path Problem


I am not sure if you are running this in Windows but if you go to
something
equivalent to starting this at the command line, type startup debug
in the
%CATALINA_HOME%\bin directory and see if your classes or jars are
loaded?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 8:29 AM
To: Tomcat Users List
Subject: Re: RE: Catalina Beans - Class Path Problem


I am having the same problem only my clases ARE directly in the
classes
folder. Also, my utility classes, which are neither servlets nor
Beans, are
also giving me the same problem. Please help!!! I have tried packaging
them
and then without packaging. I am not sure what to do now. I am not
using any
IDE nor am I using a deployment tool.


Tomcat Users List [EMAIL PROTECTED] wrote:
 Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a
little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs
work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps

Re: RE: Catalina Beans - Class Path Problem

2002-02-03 Thread isaco

I am having the same problem only my clases ARE directly in the classes folder. Also, 
my utility classes, which are neither servlets nor Beans, are also giving me the same 
problem. Please help!!! I have tried packaging them and then without packaging. I am 
not sure what to do now. I am not using any IDE nor am I using a deployment tool. 


Tomcat Users List [EMAIL PROTECTED] wrote:
 Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp   

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml   

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: RE: Catalina Beans - Class Path Problem

2002-02-03 Thread Pavel Brun

I am not sure if you are running this in Windows but if you go to
something
equivalent to starting this at the command line, type startup debug in the
%CATALINA_HOME%\bin directory and see if your classes or jars are loaded?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 8:29 AM
To: Tomcat Users List
Subject: Re: RE: Catalina Beans - Class Path Problem


I am having the same problem only my clases ARE directly in the classes
folder. Also, my utility classes, which are neither servlets nor Beans, are
also giving me the same problem. Please help!!! I have tried packaging them
and then without packaging. I am not sure what to do now. I am not using any
IDE nor am I using a deployment tool.


Tomcat Users List [EMAIL PROTECTED] wrote:
 Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:
For additional commands:
Troubles with the list:




--
To unsubscribe:
For additional commands:
Troubles with the list:



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-03 Thread Jon Shoberg

All fixed :)

Can tomcat/catalina check the classes directory to make sure none of them
have been modified.  Obviosuly it will check my JSPs but apparently not so
when I have to change a class. Currently I have to reload the applciation.

Any thoughts?

Thanks for the help.

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 9:10 AM
To: Tomcat Users List
Subject: RE: RE: Catalina Beans - Class Path Problem


I am not sure if you are running this in Windows but if you go to
something
equivalent to starting this at the command line, type startup debug in the
%CATALINA_HOME%\bin directory and see if your classes or jars are loaded?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 8:29 AM
To: Tomcat Users List
Subject: Re: RE: Catalina Beans - Class Path Problem


I am having the same problem only my clases ARE directly in the classes
folder. Also, my utility classes, which are neither servlets nor Beans, are
also giving me the same problem. Please help!!! I have tried packaging them
and then without packaging. I am not sure what to do now. I am not using any
IDE nor am I using a deployment tool.


Tomcat Users List [EMAIL PROTECTED] wrote:
 Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:
For additional commands:
Troubles with the list:




--
To unsubscribe:
For additional commands:
Troubles with the list:



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Catalina Beans - Class Path Problem

2002-02-02 Thread Jon Shoberg

Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp   --- works no problem
./webapps/gateway/kw.jsp     calls bean, has
problem

modified server.xml and reloaded ... my index.jsp works no
problem on this web app

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml   --- this app is a
proteced resource, I know it is reading this properly

./webapps/gateway/classes/
./webapps/gateway/classes/gwclasses   gateway classes
and beans go in here
./webapps/gateway/classes/gwclasses/words.java
./webapps/gateway/classes/gwclasses/words.class   -
yeah, testing my code with another ide first so I know it works


 C)So from kw.jsp I cam calling a bean such as
jsp:useBean id=Words scope=session class=gwclasses.words
/

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Catalina Beans - Class Path Problem

2002-02-02 Thread Jon Shoberg

As a follow-up  If I try a page import of gwclasses  it failes
with that top level error ...

Any thoughts?

Thanks



- Original Message -
From: Jon Shoberg [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, February 02, 2002 8:12 PM
Subject: Catalina Beans - Class Path Problem


 Short Version:

 For some reason, I can not get my JSP pages to compile when loading a
little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml

 Long Version:

 A)Installed tomcat, got it running, all of the example programs work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp   --- works no problem
 ./webapps/gateway/kw.jsp     calls bean, has
 problem

 modified server.xml and reloaded ... my index.jsp works no
 problem on this web app

 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml   --- this app is a
 proteced resource, I know it is reading this properly

 ./webapps/gateway/classes/
 ./webapps/gateway/classes/gwclasses   gateway
classes
 and beans go in here
 ./webapps/gateway/classes/gwclasses/words.java
 ./webapps/gateway/classes/gwclasses/words.class   -
 yeah, testing my code with another ide first so I know it works


  C)So from kw.jsp I cam calling a bean such as
 jsp:useBean id=Words scope=session
class=gwclasses.words
 /

 So I understand this to be creating a bean with id Words from
the
 class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
 However, I am getting a compiler error saying

 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
 gwclasses.words not found


 Any thoughts ?


 Thanks





 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Catalina Beans - Class Path Problem

2002-02-02 Thread Pavel Brun

Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp   --- works no problem
./webapps/gateway/kw.jsp     calls bean, has
problem

modified server.xml and reloaded ... my index.jsp works no
problem on this web app

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml   --- this app is a
proteced resource, I know it is reading this properly

./webapps/gateway/classes/
./webapps/gateway/classes/gwclasses   gateway classes
and beans go in here
./webapps/gateway/classes/gwclasses/words.java
./webapps/gateway/classes/gwclasses/words.class   -
yeah, testing my code with another ide first so I know it works


 C)So from kw.jsp I cam calling a bean such as
jsp:useBean id=Words scope=session class=gwclasses.words
/

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat4.0:-Ignorance Of class path ::::oracle.jdbc.driver.OracleDriver ..

2002-01-01 Thread Sachin Tyagi

thanks ..
Its working...when classes12.jar file placed to
jakarta-tomcat-4.0\common\lib (WEB-INF/lib  it might be )  only...It does
not work when we place that file in \common\classes...that directory is for
what.

And on more thing is this mentioned some where that TomCat4.0  ignore the
complete CLASSPATH of system.because some other .jar files required for
my web application,  set in classpath are also not able to import...

So is this mandatory to place all .jar files in tomcat/lib...  which is
required for the application.??
Or
can we add classpath through scripts at Tomcat startup

Regds

sachin


- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 01, 2002 2:01 AM
Subject: Re:
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver
..




 On Mon, 31 Dec 2001, David Morsberger wrote:

  Date: Mon, 31 Dec 2001 13:02:23 -0500
  From: David Morsberger [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re:
 
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDrive
  r ..
 
  I had the same problem and converting the .zip to a .jar worked. I
reviewed
  the documentation and I could not find any mention of zip files. Does
the
  absence of info on zip files imply they are not supported?
 

 Yep, in terms of what any web container is supposed to support in
 /WEB-INF/lib (and Tomcat applies the same rules to its shared lib
 directories).

 Zip files still work on a CLASSPATH for standard Java applications,
 because they were in existence from JDK 1.0 days -- before there was such
 a thing as a JAR file.  But that still doesn't do you any good on either
 3.3 or 4.0, because they both ignore your CLASSPATH ...


  I think the Tomcat 3.3 and 4.0 documentation should be updated to
explicitly
  state that zip files and not supported by the servlet spec and therefore
  must be converted to jar files and stored in the /lib directory.
 

 I disagree.

 The list of things that are *not* supported is close to infinite :-).
 You'd be much better off making the starting assumption that anything not
 mentioned is not supported.  The only time you'll be wrong is when a
 feature hasn't been documented yet.

 And, even with it documented, it would still be one of the top 5
 questions on TOMCAT-USER, just like it is today.  The mailing list
 archives are full of the answer to this question -- along with a lot of
 questions that *are* answered in the docs -- so it wouldn't help much
 anyway.

 Craig


 
   From: Craig R. McClanahan [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   Date: Mon, 31 Dec 2001 09:00:31 -0800 (PST)
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Re:
  
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver.
.
  
  
  
   On Mon, 31 Dec 2001, Sachin Tyagi wrote:
  
   Date: Mon, 31 Dec 2001 14:52:15 +0530
   From: Sachin Tyagi [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject:
  
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDrive
   r..
  
   hi all,
   while I am running my web application with Tomcat4.0(Catalina)  in
accessing
   database queries.It is showing java.lang.ClassNotFoundException:
   oracle.jdbc.driver.OracleDriver..
   I am using classes12.zip driver ..I have already set classpath for
the
   same..And with Tomcat3.2 my application is running well. Only with
Tomcat4.0
   getting this problem.I am trying to upgrade for Tomcat4.0.
   In this case any thing I have to edit or set properties in
server.xml. or
   some where else. Or this relate with Realms.
   If any one having idea about this plz pass this.
  
  
   You need to do two things:
  
   * Read the class-loader-howto.html documentation, and you'll see that
   Tomcat recognizes only JAR files, not ZIP files.  Rename classes12.zip
   to classes12.jar and it should work.
  
   * Complain to Oracle that they should package their JDBC drivers as
   JAR files.
  
   Regards
   Sachin
  
  
   Craig McClanahan
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem: class path can't be set dynamically

2001-10-21 Thread Nd Ngoka


Hi,
I am a new user of jakarta-tomcat. I have installed
the entire program required. When, I try to run the
tomcat, via the startup button, I get the following
message below.
(I have the following in my computer, window 98,
jakarta-tomcat-3.2.1, and java development kit version
1.3.)
Thanks for your time. I really hope, you can be of
help. My email address is [EMAIL PROTECTED] .

Message outputted on screen:

 Unable to ser CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on win9x
 systems
  only DOS 8.3
 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.

 Using CLASSPATH:

  C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-
  3.2.1\lib\ant.jar;C:\jaka
r

  ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-
  3.2.1\lib\jaxp.jar;C:\jaka
r

  ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-
  3.2.1\lib\servlet.jar;C:\jakar
t a-tomcat-3.2.1\lib\webserver.jar

 Starting Tomcat in new window
 Cannot find file C:\jdk_1.3.1\bin\java (or one
 of
 its
  components).
 Check to ensure the path and filename are
 correct
 and that
  all required
 libraries are available.
 Any idea to solve this, Ben?
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Problem: class path can't be set dynamically

2001-10-21 Thread Brijesh Kumar

Did you set JAVA_HOME in startup.bat?

i.e. SET JAVA_HOME=C:\jdk1.3 if Java is installed under C drive.

Brijesh.

-Original Message-
From: Nd Ngoka [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 7:41 PM
To: [EMAIL PROTECTED]
Subject: Problem: class path can't be set dynamically



Hi,
I am a new user of jakarta-tomcat. I have installed
the entire program required. When, I try to run the
tomcat, via the startup button, I get the following
message below.
(I have the following in my computer, window 98,
jakarta-tomcat-3.2.1, and java development kit version
1.3.)
Thanks for your time. I really hope, you can be of
help. My email address is [EMAIL PROTECTED] .

Message outputted on screen:

 Unable to ser CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on win9x
 systems
  only DOS 8.3
 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.

 Using CLASSPATH:

  C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-
  3.2.1\lib\ant.jar;C:\jaka
r

  ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-
  3.2.1\lib\jaxp.jar;C:\jaka
r

  ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-
  3.2.1\lib\servlet.jar;C:\jakar
t a-tomcat-3.2.1\lib\webserver.jar

 Starting Tomcat in new window
 Cannot find file C:\jdk_1.3.1\bin\java (or one
 of
 its
  components).
 Check to ensure the path and filename are
 correct
 and that
  all required
 libraries are available.
 Any idea to solve this, Ben?
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: class path to the servlet Directory

2001-08-03 Thread Loc Lefvre

In fact, you need a jar package for your application to work.
In this case, you can put your jar package in the %TOMCAT_HOME%/lib
directory. Tomcat will load it at startup.

Loïc Lefèvre

-Message d'origine-
De : anupama [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 2 août 2001 12:54
À : [EMAIL PROTECTED]
Objet : class path to the servlet Directory


Hi,

how do I set the classpath to the directory where I have my servlets.This
has to be the directory other than the default webapps directory

thanks
Aditya




class path $printenv

2001-03-09 Thread Dennis Daniels

Hello

I've searched the archives and have not found a sample from a working Tomcat 
server environment path under Linux. I've cked the docs as well and I can't 
find an example of a working tomcat environment/ classpath.

If tomcat is working for you...Could you ck your classpath config...

$printenv

and send me the key classpath for the tomcat and the Java JRE.
I'm running apache 1.3
linux redhat 7


Mille merci en avance!

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


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