Re: setting the classpath variable

2002-08-27 Thread randie ursal




   i tried it..but it still doesn't work.
it only works if i put it on the WEB-INF/classes directory.

what's the reason behind this?

also, if im going to read from a file using the File class in java, how
do i specify the correct path? do i have to place the file also on the 
WEB-INF/classes directory?


Tharmarajah Sasi Dharma wrote:

  
  
  
  did u  try calling it with the direcotry structure
  com.test.MyProperty.properties
  r
  sasi
  
-Original Message-
From: A mailing list fordiscussion about Sun Microsystem's
Java Servlet API Technology.[mailto:[EMAIL PROTECTED]]On
Behalf Of randieursal
Sent: Tuesday, August 27, 2002 5:07 PM
To:[EMAIL PROTECTED]
Subject: Re: setting the classpathvariable


why is it tomcat could not locate the propertyfile if i place it on the
package directory structure of my servlets?...itis still on the WEB-INF/classes

directory isnt it? just need some moreclarifications.

e.g WEB-INF/classess/com/test/MyProperty.properties

thanks

CédricViaud wrote:


  Hi,

you can also do something like this :

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

With this syntax you just put the file in the WEB_INF/classes directory and
the ClassLoader found it there.

Regards,

Cédric

NB : this exemple comes from another mailing list "Tomcat-users"

- Original Message -
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 10:32 AM
Subject: Re: setting the classpath variable

  
  




  

  

  





Re: setting the classpath variable

2002-08-27 Thread Tharmarajah Sasi Dharma



did u 
try calling it with the direcotry structure
com.test.MyProperty.properties
r
sasi

  -Original Message-From: A mailing list for 
  discussion about Sun Microsystem's Java Servlet API Technology. 
  [mailto:[EMAIL PROTECTED]]On Behalf Of randie 
  ursalSent: Tuesday, August 27, 2002 5:07 PMTo: 
  [EMAIL PROTECTED]Subject: Re: setting the classpath 
  variablewhy is it tomcat could not locate the property 
  file if i place it on thepackage directory structure of my servlets?...it 
  is still on the WEB-INF/classes directory isnt it? just need some more 
  clarifications.e.g  
  WEB-INF/classess/com/test/MyProperty.propertiesthanksCédric 
  Viaud wrote:
  Hi,

you can also do something like this :

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

With this syntax you just put the file in the WEB_INF/classes directory and
the ClassLoader found it there.

Regards,

Cédric

NB : this exemple comes from another mailing list "Tomcat-users"

- Original Message -
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 10:32 AM
Subject: Re: setting the classpath variable


  
randie ursal <[EMAIL PROTECTED]> writes:


  hi,

 i have this newbie question.

 here is the scenario, i have a servlet that will read a ".properties"
 file and i make use of the PropertyResourceBundle class to read the
 value from the property file.

 the problem is that the PropertyResourceBundle doesn't find the
 properties file.

 the API for ResourceBundle said that my properties file must be set on
 the classpath.

 so, how do i set this file so that it will be located by my servlet?

 i tried placing my properties file on the /lib directory of my web
 application but it doesn't work...or do i have to explicitly include
 it on my classpath environment variable?
  Servlet containers provide protected class paths. You could put your
property file in the "WEB-INF/classes" directory of your war file (or
directory structure).


Nic


___
  
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
  
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



  


Re: setting the classpath variable

2002-08-27 Thread randie ursal




why is it tomcat could not locate the property file if i place it on the
package directory structure of my servlets?...it is still on the  WEB-INF/classes

directory isnt it? just need some more clarifications.

e.g  WEB-INF/classess/com/test/MyProperty.properties

thanks

Cédric Viaud wrote:

  Hi,

you can also do something like this :

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

With this syntax you just put the file in the WEB_INF/classes directory and
the ClassLoader found it there.

Regards,

Cédric

NB : this exemple comes from another mailing list "Tomcat-users"

- Original Message -
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 10:32 AM
Subject: Re: setting the classpath variable


  
  
randie ursal <[EMAIL PROTECTED]> writes:



  hi,

 i have this newbie question.

 here is the scenario, i have a servlet that will read a ".properties"
 file and i make use of the PropertyResourceBundle class to read the
 value from the property file.

 the problem is that the PropertyResourceBundle doesn't find the
 properties file.

 the API for ResourceBundle said that my properties file must be set on
 the classpath.

 so, how do i set this file so that it will be located by my servlet?

 i tried placing my properties file on the /lib directory of my web
 application but it doesn't work...or do i have to explicitly include
 it on my classpath environment variable?
  

Servlet containers provide protected class paths. You could put your
property file in the "WEB-INF/classes" directory of your war file (or
directory structure).


Nic



  
  ___
  
  
To unsubscribe, send email to [EMAIL PROTECTED] and include in the

  
  body
  
  
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


  
  
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



  








Re: setting the classpath variable

2002-08-27 Thread randie ursal




thanksit now works!

Cédric Viaud wrote:

  Hi,

you can also do something like this :

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

With this syntax you just put the file in the WEB_INF/classes directory and
the ClassLoader found it there.

Regards,

Cédric

NB : this exemple comes from another mailing list "Tomcat-users"

- Original Message -
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 10:32 AM
Subject: Re: setting the classpath variable


  
  
randie ursal <[EMAIL PROTECTED]> writes:



  hi,

 i have this newbie question.

 here is the scenario, i have a servlet that will read a ".properties"
 file and i make use of the PropertyResourceBundle class to read the
 value from the property file.

 the problem is that the PropertyResourceBundle doesn't find the
 properties file.

 the API for ResourceBundle said that my properties file must be set on
 the classpath.

 so, how do i set this file so that it will be located by my servlet?

 i tried placing my properties file on the /lib directory of my web
 application but it doesn't work...or do i have to explicitly include
 it on my classpath environment variable?
  

Servlet containers provide protected class paths. You could put your
property file in the "WEB-INF/classes" directory of your war file (or
directory structure).


Nic



  
  ___
  
  
To unsubscribe, send email to [EMAIL PROTECTED] and include in the

  
  body
  
  
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


  
  
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



  


--

Randie V. Ursal
Design Engineering Department
NEC Telecom Software Philippines, Inc.
office : +63(032) 233-9142 (loc.3119)
mobile : +63(0917) 467-8244
email  : [EMAIL PROTECTED]





Re: setting the classpath variable

2002-08-27 Thread Cédric Viaud

Hi,

you can also do something like this :

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

With this syntax you just put the file in the WEB_INF/classes directory and
the ClassLoader found it there.

Regards,

Cédric

NB : this exemple comes from another mailing list "Tomcat-users"

- Original Message -
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 10:32 AM
Subject: Re: setting the classpath variable


> randie ursal <[EMAIL PROTECTED]> writes:
>
> > hi,
> >
> >  i have this newbie question.
> >
> >  here is the scenario, i have a servlet that will read a ".properties"
> >  file and i make use of the PropertyResourceBundle class to read the
> >  value from the property file.
> >
> >  the problem is that the PropertyResourceBundle doesn't find the
> >  properties file.
> >
> >  the API for ResourceBundle said that my properties file must be set on
> >  the classpath.
> >
> >  so, how do i set this file so that it will be located by my servlet?
> >
> >  i tried placing my properties file on the /lib directory of my web
> >  application but it doesn't work...or do i have to explicitly include
> >  it on my classpath environment variable?
>
> Servlet containers provide protected class paths. You could put your
> property file in the "WEB-INF/classes" directory of your war file (or
> directory structure).
>
>
> Nic
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: setting the classpath variable

2002-08-27 Thread Nic Ferrier

randie ursal <[EMAIL PROTECTED]> writes:

> hi,
>
>  i have this newbie question.
>
>  here is the scenario, i have a servlet that will read a ".properties"
>  file and i make use of the PropertyResourceBundle class to read the
>  value from the property file.
>
>  the problem is that the PropertyResourceBundle doesn't find the
>  properties file.
>
>  the API for ResourceBundle said that my properties file must be set on
>  the classpath.
>
>  so, how do i set this file so that it will be located by my servlet?
>
>  i tried placing my properties file on the /lib directory of my web
>  application but it doesn't work...or do i have to explicitly include
>  it on my classpath environment variable?

Servlet containers provide protected class paths. You could put your
property file in the "WEB-INF/classes" directory of your war file (or
directory structure).


Nic

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




setting the classpath variable

2002-08-27 Thread randie ursal

hi,

 i have this newbie question.

 here is the scenario, i have a servlet that will read a ".properties"
 file and i make use of the PropertyResourceBundle class to read the
 value from the property file.

 the problem is that the PropertyResourceBundle doesn't find the
 properties file.

 the API for ResourceBundle said that my properties file must be set on
 the classpath.

 so, how do i set this file so that it will be located by my servlet?

 i tried placing my properties file on the /lib directory of my web
 application but it doesn't work...or do i have to explicitly include
 it on my classpath environment variable?

thanks in advance.

 randie

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Problem faced when both xerces.jar and servlet.jar are in Classpath

2002-07-14 Thread Seema Kumar



Hi all,
 
I am facing a problem when both servlet.jar and 
xerces.jar are present together in my classpath. The problem being while parsing 
an XML file using the xerces parser, the jvm throws a noSuchMethod exception for 
a the DOM class.
 
This problem was worked around by adding xerces at 
the beginning of the classpath, before servlet.jar. However, when this is done 
for a web based application, tomcat by default includes all the .jar files in 
the lib directory in alphabetical order, wherein, servlet.jar comes in before 
xerces.jar and the parsing fails. I found a temporary workaround by renaming 
xerces.jar to a_xerces.jar. 
But could somebody suggest a more sensible 
solutiong to this problem ?
 
Thanks in advance
Seema


Re: not reading system classpath in windows

2002-04-22 Thread Prashant

hi GW

thx agian ...for u quick reply .

let me give u some more details ..

java.class.path show same value  in any windows os.

In mean while i have  gone through the this url ...

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


and here i found this


However, the standard Tomcat 4 startup scripts
($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally
ignore the contents of the CLASSPATH environment variable itself,

then some more question come to mind

1.why linux  show exact value of classpath but windows don't
2.how to get the classpath in windows through servlet

thx..

regards susanta





> What version of windows? I presume you are running NT or 2K
>
> if so
> NT doesn't use autoexec.bat for loading environment variables
> you have to set those variables somewhere else.
>
> if not NT and its not reading from autoexec.bat
> then there is something wrong with your OS
>
> visit
> www.microsoft.com
> and search for setting environment variables
>
>
>
> - Original Message -
> From: "Prashant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 22, 2002 4:45 PM
> Subject: Re: not reading system classpath in windows
>
>
>> Oh yes GW
>>
>> u r right  i posted my question in wrong manner ...
>>
>> see  i've set my environment variables in  /etc/profile in linux ... in
>> which i had given CLASSPATH and PATH settings ...
>> the same thing i tried to give in autoexec.bat with CLASSPATH settings ...
>> I assumed that TOMCAT is reading the CLASSPATH settings properly (which r
>> set in profile) and apends {$CATALINA_HOME}\bin\bootstrap.jar to it 
>>
>> but in windows it doesn't recognise the CLASSPATH set from autoexec.bat
> and
>> just shows CLASSPATH={$CATALINA_HOME}\bin\bootstrap.jar
>>
>> Wht cud be the reason?
>>
>> if i want to hardcode my classpath in windows version which files shall i
>> look into?
>> catalina.bat ??  and how to set anything in that file ...
>>
>> Thanking u ...
>>
>> Prashant
>>
>>
>> GW writes:
>>
>> > Prashant wrote:
>> >
>> > On linux system.getProperty("java.class.path") this shows me following
>> > classpath :
>> >
>> > $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>> >
>> >  however on windows machine it is just showing me :
>> > {$CATALINA_HOME}\bin\bootstrap.jar
>> >
>> > but my question is why it is behaving differently on two different
>> > platforms?
>> > --
>> > If I understand your question correctly its not actually behaving
>> > differently.
>> >
>> > The environment variable "$SYSTEM_CLASSPATH" that is returned with the
> linux
>> > version was created by an administrator/user or someone.
>> >
>> > If you create the same environment variable under windows pointing to
>> > CATALINA_HOME you should get the same result.
>> > check your windows environment variables for "$SYSTEM_CLASSPATH" I'm
> almost
>> > sure it doesn't exist.
>> >
>> >
>> > - Original Message -
>> > From: "Prashant" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Monday, April 22, 2002 3:44 PM
>> > Subject: Re: not reading system classpath in windows
>> >
>> >
>> >> Hi GW...
>> >>
>> >> thankx for that .. i'm testing this right now ...
>> >>
>> >> but my question is why it is behaving differently on two different
>> >> platforms?
>> >>
>> >> on linux it works but on windows why it is not working?
>> >>
>> >> Waiting,
>> >> Prashant
>> >>
>> >> GW writes:
>> >>
>> >> > try
>> >> >
>> >> > String classPath = System.getProperty("java.class.path",".");
>> >> >
>> >> > this should work
>> >> >
>> >> > - Original Message -
>> >> > From: "Prashant" <[EMAIL PROTECTED]>
>> >> > To: <[EMAIL PROTECTED]>
>> >> > Sent: Monday, April 22, 2002 2:29 PM
>> >> > Subject: not reading system classpath in windows
>> >> >
>> >> >
>> >> >> Hello sir.
>> >> >>
>> >> >> I know this is a wr

Re: not reading system classpath in windows

2002-04-22 Thread GW

What version of windows? I presume you are running NT or 2K

if so
NT doesn't use autoexec.bat for loading environment variables
you have to set those variables somewhere else.

if not NT and its not reading from autoexec.bat
then there is something wrong with your OS

visit
www.microsoft.com
and search for setting environment variables



- Original Message -
From: "Prashant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 4:45 PM
Subject: Re: not reading system classpath in windows


> Oh yes GW
>
> u r right  i posted my question in wrong manner ...
>
> see  i've set my environment variables in  /etc/profile in linux ... in
> which i had given CLASSPATH and PATH settings ...
> the same thing i tried to give in autoexec.bat with CLASSPATH settings ...
> I assumed that TOMCAT is reading the CLASSPATH settings properly (which r
> set in profile) and apends {$CATALINA_HOME}\bin\bootstrap.jar to it 
>
> but in windows it doesn't recognise the CLASSPATH set from autoexec.bat
and
> just shows CLASSPATH={$CATALINA_HOME}\bin\bootstrap.jar
>
> Wht cud be the reason?
>
> if i want to hardcode my classpath in windows version which files shall i
> look into?
> catalina.bat ??  and how to set anything in that file ...
>
> Thanking u ...
>
> Prashant
>
>
> GW writes:
>
> > Prashant wrote:
> >
> > On linux system.getProperty("java.class.path") this shows me following
> > classpath :
> >
> > $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
> >
> >  however on windows machine it is just showing me :
> > {$CATALINA_HOME}\bin\bootstrap.jar
> >
> > but my question is why it is behaving differently on two different
> > platforms?
> > --
> > If I understand your question correctly its not actually behaving
> > differently.
> >
> > The environment variable "$SYSTEM_CLASSPATH" that is returned with the
linux
> > version was created by an administrator/user or someone.
> >
> > If you create the same environment variable under windows pointing to
> > CATALINA_HOME you should get the same result.
> > check your windows environment variables for "$SYSTEM_CLASSPATH" I'm
almost
> > sure it doesn't exist.
> >
> >
> > - Original Message -
> > From: "Prashant" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 22, 2002 3:44 PM
> > Subject: Re: not reading system classpath in windows
> >
> >
> >> Hi GW...
> >>
> >> thankx for that .. i'm testing this right now ...
> >>
> >> but my question is why it is behaving differently on two different
> >> platforms?
> >>
> >> on linux it works but on windows why it is not working?
> >>
> >> Waiting,
> >> Prashant
> >>
> >> GW writes:
> >>
> >> > try
> >> >
> >> > String classPath = System.getProperty("java.class.path",".");
> >> >
> >> > this should work
> >> >
> >> > - Original Message -
> >> > From: "Prashant" <[EMAIL PROTECTED]>
> >> > To: <[EMAIL PROTECTED]>
> >> > Sent: Monday, April 22, 2002 2:29 PM
> >> > Subject: not reading system classpath in windows
> >> >
> >> >
> >> >> Hello sir.
> >> >>
> >> >> I know this is a wrong list to ask this question but still i'm
posting
> >> > since
> >> >> tomcat mailing list hasnot replied yet ... :-(
> >> >>
> >> >> I'm testing one web application written in java on linux and windows
> > both.
> >> >>
> >> >> On linux system.getProperty("java.class.path") this shows me
following
> >> >> classpath :
> >> >>
> >> >>
> >> >> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
> >> >>
> >> >>
> >> >> however on windows machine it is just showing me :
> >> >>
> >> >> {$CATALINA_HOME}\bin\bootstrap.jar
> >> >>
> >> >>
> >> >> I've tried editing the .bat files of tomcat but no success ...
> >> >>
> >> >> can some1 please help me out for this .
> >> >>
> >> >> Thankin you,
> >> >> Prashant
> >> >>
> >> >>
> &

Re: not reading system classpath in windows

2002-04-22 Thread Prashant

Oh yes GW

u r right  i posted my question in wrong manner ...

see  i've set my environment variables in  /etc/profile in linux ... in
which i had given CLASSPATH and PATH settings ...
the same thing i tried to give in autoexec.bat with CLASSPATH settings ...
I assumed that TOMCAT is reading the CLASSPATH settings properly (which r
set in profile) and apends {$CATALINA_HOME}\bin\bootstrap.jar to it 

but in windows it doesn't recognise the CLASSPATH set from autoexec.bat and
just shows CLASSPATH={$CATALINA_HOME}\bin\bootstrap.jar

Wht cud be the reason?

if i want to hardcode my classpath in windows version which files shall i
look into?
catalina.bat ??  and how to set anything in that file ...

Thanking u ...

Prashant


GW writes:

> Prashant wrote:
>
> On linux system.getProperty("java.class.path") this shows me following
> classpath :
>
> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>
>  however on windows machine it is just showing me :
> {$CATALINA_HOME}\bin\bootstrap.jar
>
> but my question is why it is behaving differently on two different
> platforms?
> --
> If I understand your question correctly its not actually behaving
> differently.
>
> The environment variable "$SYSTEM_CLASSPATH" that is returned with the linux
> version was created by an administrator/user or someone.
>
> If you create the same environment variable under windows pointing to
> CATALINA_HOME you should get the same result.
> check your windows environment variables for "$SYSTEM_CLASSPATH" I'm almost
> sure it doesn't exist.
>
>
> - Original Message -
> From: "Prashant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 22, 2002 3:44 PM
> Subject: Re: not reading system classpath in windows
>
>
>> Hi GW...
>>
>> thankx for that .. i'm testing this right now ...
>>
>> but my question is why it is behaving differently on two different
>> platforms?
>>
>> on linux it works but on windows why it is not working?
>>
>> Waiting,
>> Prashant
>>
>> GW writes:
>>
>> > try
>> >
>> > String classPath = System.getProperty("java.class.path",".");
>> >
>> > this should work
>> >
>> > - Original Message -
>> > From: "Prashant" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Monday, April 22, 2002 2:29 PM
>> > Subject: not reading system classpath in windows
>> >
>> >
>> >> Hello sir.
>> >>
>> >> I know this is a wrong list to ask this question but still i'm posting
>> > since
>> >> tomcat mailing list hasnot replied yet ... :-(
>> >>
>> >> I'm testing one web application written in java on linux and windows
> both.
>> >>
>> >> On linux system.getProperty("java.class.path") this shows me following
>> >> classpath :
>> >>
>> >>
>> >> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>> >>
>> >>
>> >> however on windows machine it is just showing me :
>> >>
>> >> {$CATALINA_HOME}\bin\bootstrap.jar
>> >>
>> >>
>> >> I've tried editing the .bat files of tomcat but no success ...
>> >>
>> >> can some1 please help me out for this .
>> >>
>> >> Thankin you,
>> >> Prashant
>> >>
>> >>
>> >
> ___
>> >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> > body
>> >> of the message "signoff SERVLET-INTEREST".
>> >>
>> >> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> >> Resources: http://java.sun.com/products/servlet/external-resources.html
>> >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >>
>> >>
>> >>
>> >
>> >
> ___
>> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
>> > of the message "signoff SERVLET-INTEREST".
>> >
>> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> > Resources: http://java.sun.com/products/servlet/external-resources.html
>> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.

Re: not reading system classpath in windows

2002-04-22 Thread GW

Prashant wrote:

On linux system.getProperty("java.class.path") this shows me following
classpath :

$SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar

 however on windows machine it is just showing me :
{$CATALINA_HOME}\bin\bootstrap.jar

but my question is why it is behaving differently on two different
platforms?
--
If I understand your question correctly its not actually behaving
differently.

The environment variable "$SYSTEM_CLASSPATH" that is returned with the linux
version was created by an administrator/user or someone.

If you create the same environment variable under windows pointing to
CATALINA_HOME you should get the same result.
check your windows environment variables for "$SYSTEM_CLASSPATH" I'm almost
sure it doesn't exist.


- Original Message -
From: "Prashant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 3:44 PM
Subject: Re: not reading system classpath in windows


> Hi GW...
>
> thankx for that .. i'm testing this right now ...
>
> but my question is why it is behaving differently on two different
> platforms?
>
> on linux it works but on windows why it is not working?
>
> Waiting,
> Prashant
>
> GW writes:
>
> > try
> >
> > String classPath = System.getProperty("java.class.path",".");
> >
> > this should work
> >
> > - Original Message -
> > From: "Prashant" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 22, 2002 2:29 PM
> > Subject: not reading system classpath in windows
> >
> >
> >> Hello sir.
> >>
> >> I know this is a wrong list to ask this question but still i'm posting
> > since
> >> tomcat mailing list hasnot replied yet ... :-(
> >>
> >> I'm testing one web application written in java on linux and windows
both.
> >>
> >> On linux system.getProperty("java.class.path") this shows me following
> >> classpath :
> >>
> >>
> >> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
> >>
> >>
> >> however on windows machine it is just showing me :
> >>
> >> {$CATALINA_HOME}\bin\bootstrap.jar
> >>
> >>
> >> I've tried editing the .bat files of tomcat but no success ...
> >>
> >> can some1 please help me out for this .
> >>
> >> Thankin you,
> >> Prashant
> >>
> >>
> >
___
> >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> >> of the message "signoff SERVLET-INTEREST".
> >>
> >> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >> Resources: http://java.sun.com/products/servlet/external-resources.html
> >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >>
> >>
> >>
> >
> >
___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: not reading system classpath in windows

2002-04-22 Thread Prashant

Hi GW...

thankx for that .. i'm testing this right now ...

but my question is why it is behaving differently on two different
platforms?

on linux it works but on windows why it is not working?

Waiting,
Prashant

GW writes:

> try
>
> String classPath = System.getProperty("java.class.path",".");
>
> this should work
>
> - Original Message -
> From: "Prashant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 22, 2002 2:29 PM
> Subject: not reading system classpath in windows
>
>
>> Hello sir.
>>
>> I know this is a wrong list to ask this question but still i'm posting
> since
>> tomcat mailing list hasnot replied yet ... :-(
>>
>> I'm testing one web application written in java on linux and windows both.
>>
>> On linux system.getProperty("java.class.path") this shows me following
>> classpath :
>>
>>
>> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>>
>>
>> however on windows machine it is just showing me :
>>
>> {$CATALINA_HOME}\bin\bootstrap.jar
>>
>>
>> I've tried editing the .bat files of tomcat but no success ...
>>
>> can some1 please help me out for this .
>>
>> Thankin you,
>> Prashant
>>
>>
> ___
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>>
>>
>
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: not reading system classpath in windows

2002-04-22 Thread GW

try

String classPath = System.getProperty("java.class.path",".");

this should work

- Original Message -
From: "Prashant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 2:29 PM
Subject: not reading system classpath in windows


> Hello sir.
>
> I know this is a wrong list to ask this question but still i'm posting
since
> tomcat mailing list hasnot replied yet ... :-(
>
> I'm testing one web application written in java on linux and windows both.
>
> On linux system.getProperty("java.class.path") this shows me following
> classpath :
>
>
> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>
>
> however on windows machine it is just showing me :
>
> {$CATALINA_HOME}\bin\bootstrap.jar
>
>
> I've tried editing the .bat files of tomcat but no success ...
>
> can some1 please help me out for this .
>
> Thankin you,
> Prashant
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




not reading system classpath in windows

2002-04-22 Thread Prashant

Hello sir.

I know this is a wrong list to ask this question but still i'm posting since
tomcat mailing list hasnot replied yet ... :-(

I'm testing one web application written in java on linux and windows both.

On linux system.getProperty("java.class.path") this shows me following
classpath :


$SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar


however on windows machine it is just showing me :

{$CATALINA_HOME}\bin\bootstrap.jar


I've tried editing the .bat files of tomcat but no success ...

can some1 please help me out for this .

Thankin you,
Prashant

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath error

2002-03-27 Thread ASALAM




Hi Tejas,
I think your import statement should be 
"import javaservlets.reportit.report;"
not "import javaservlets.reportit;"
ASalam.

  - Original Message - 
  From: 
  tejas patel 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, March 27, 2002 11:34 
  PM
  Subject: classpath error
  
  Hi all,
  I have created package and put my servlets under it
  this is my costlist.java file which is under javaservlet/mypackage 
  directory
  package javaservlets.mypackage;
  import javaservlets.reportit;
  public class costlist extends HTTPSERVLETS{
   method  doPost()
   method Report()
    {
   report r1 = new report();
    }
  }
  under javaservlets/reportit I have report class. i.e report.java
  I am trying to create report object inside costlist class and I am getting 
  this errors:
  costlist.java:2: cannot resolve symbolsymbol  : class 
  reportitlocation: package javaservletsimport 
  javaservlets.reportit;    
  ^costlist.java:210: cannot resolve symbolsymbol  : class 
  reportlocation: class 
  javaservlets.db.costlist    report 
  r1 = new report();    
  ^costlist.java:210: cannot resolve symbolsymbol  : class 
  reportlocation: class 
  javaservlets.db.costlist    report 
  r1 = new 
  report();    
  ^
  
  
  Do You Yahoo!?Yahoo! 
  Movies - coverage of the 74th Academy Awards®


Re: classpath error

2002-03-27 Thread Vijay Naidu

you have to set ur classpath TO your package. For e.g if ur package is c:\tejas\javaservlet\mypackage then u have to set ur classpath as set classpath=%classpath%c:\tejas;
in Unix if ur package is under /tejas/javaservlet/mypackage then u have to set ur classpath to setenv CLASSPATH=/tejas:Vijay Naidu 
-Smile Is A Curve That Makes Everything Straight. Keep Smiling


-






From: tejas patel <[EMAIL PROTECTED]>
Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: classpath error
Date: Wed, 27 Mar 2002 10:04:08 -0800


Hi all,

I have created package and put my servlets under it

this is my costlist.java file which is under javaservlet/mypackage directory

package javaservlets.mypackage;

import javaservlets.reportit;

public class costlist extends HTTPSERVLETS{

method doPost()

method Report()

{

report r1 = new report();

}

}

under javaservlets/reportit I have report class. i.e report.java

I am trying to create report object inside costlist class and I am getting this errors:

costlist.java:2: cannot resolve symbol
symbol : class reportit
location: package javaservlets
import javaservlets.reportit;
^
costlist.java:210: cannot resolve symbol
symbol : class report
location: class javaservlets.db.costlist
report r1 = new report();
^
costlist.java:210: cannot resolve symbol
symbol : class report
location: class javaservlets.db.costlist
report r1 = new report();
^



-
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
Join the world’s largest e-mail service with MSN Hotmail. Click Here

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



classpath error

2002-03-27 Thread tejas patel
Hi all,
I have created package and put my servlets under it
this is my costlist.java file which is under javaservlet/mypackage directory
package javaservlets.mypackage;
import javaservlets.reportit;
public class costlist extends HTTPSERVLETS{
 method  doPost()
 method Report()
  {
 report r1 = new report();
  }
}
under javaservlets/reportit I have report class. i.e report.java
I am trying to create report object inside costlist class and I am getting this errors:
costlist.java:2: cannot resolve symbolsymbol  : class reportitlocation: package javaservletsimport javaservlets.reportit;    ^costlist.java:210: cannot resolve symbolsymbol  : class reportlocation: class javaservlets.db.costlist    report r1 = new report();    ^costlist.java:210: cannot resolve symbolsymbol  : class reportlocation: class javaservlets.db.costlist    report r1 = new report();    ^Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®

Re: JRun 3.0 setting the classpath for webapp.

2002-03-06 Thread Asif Qamar

1. Perhaps you are not giving attention to the package name which trying to
load the class from WEB-INF/classes ?

2. Put you db.properties into the / of your Web-App. That's where your code
below is searching for it.


-Original Message-
From: Iyer Suresh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 7:30 PM
To: [EMAIL PROTECTED]
Subject: JRun 3.0 setting the classpath for webapp.

Hi,

I am having problem with loading a class
from  WEB-INF/classes dir.  JRun is not able to
load the class file in this directory.  But If I
copy it to jrun-lib it is able to load it.
how do I set the classpath for the classloader
so that it can look at the WEB-INF/classes instead
of copying it to jrun-lib.

How to load the db.properties from jrun-lib dir.
I am getting the following error mesg. un able
to load the db.properties file.

This is the code .

InputStream is = getClass().getResourceAsStream
("/db.properties");
Properties dbProps = new Properties();

try{
   dbProps.load(is);
}
catch (Exception e)
{
 System.out.println("Can't read the properties file. "
 +"Make sure db.properties is in the CLASSPATH");
}

Thanks for your time.
suresh
> Thanks for bringing up this issue. I am facing the same with weblogic 6.1
> server.
> I see hundreds of "Connection reset by Peer" messages in my weblogic.log.
> -meera
>
>
> -Original Message-
> From: Ross Lambert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Connection reset by peer... Me, too!
>
>
> Folks,
>
> This is a shot in the dark as I am not one of the developers working
> directly on the issue, thus I don't have the details I know you'd need to
> make serious code-level recommendations. However, this is so significant
to
> our company's future that I figured it was worth risking a blindfolded
> exchange of gunfire in a room full of Java developers. :-)
>
> I guess I'm really just trolling to see if anyone has seen anything
> similar... and hopefully how they fixed it.
>
> My company is an application service provider of eCRM and customer service
> software. We use servlets and supporting classes server-side and applets
> client-side (for both customer service agents and customers). Our
production
> environments are getting a little long in the tooth, namely JRun 2.3 and
JDK
> 1.2.2 with Oracle 8.1.7 on the back-end.
>
> The problem is that under extremely heavy load, connections between the
> applet clients and the servers are dropping en masse. Our company is
> currently experiencing wonderful growth (we handled over two million
managed
> chats last month, for example), but as you can imagine this issue
seriously
> undermines our future potential.
>
> Thanks for whatever advice or even comiseration you can provide. :-)
>
> == Ross ==
>
>
> I just noticed Suresh's post and I am inclined to believe that we are
> experiencing similar difficulties, therefore I put this message in the
same
> thread.
>
>
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Suresh Addagalla
> Sent: Thursday, January 31, 2002 11:00 PM
> To: [EMAIL PROTECTED]
> Subject: Connection reset by peer
>
>
> Hi,
>
> I am using JRun 3.0 with iPlanet 4.1 on HP-UX. It's a pure servlet based
> application. I am simulating a high load on the web application. Beyond a
> threshold load (of 1200 users), I am getting the following 'Connection
reset
> by peer' error in the default-event.log, due to which I am getting 503
> result codes at the client.
>
> The maximum simultaneous requests configured in iPlanet is 2500, which is
> sufficient. Please let me know what could be the cause of the error. The
> JRun min, active, max threads are 100, 200, 2000 respectively.
>
> 02/01 11:06:48 error (jcp) Connection reset by peer: Connection reset by
> peer [java.net.SocketException: Connection reset by peer: Connection reset
> by peer]
> java.net.SocketException: Connection reset by peer: Connection reset by
peer
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read1(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at
allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:310)
> at
allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:302)
> at allaire.jrun.jrpp.ProxyEndpoint.readInt(ProxyEndpoint.java:32

Re: JRun 3.0 setting the classpath for webapp.

2002-03-06 Thread Godbey, David

Aw, JRun isn't that bad if you stick to servlets! Mark is right about the
JRun interest group. JRun has its own forums. Check:

http://webforums.macromedia.com/jrun/

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:00 AM
To: [EMAIL PROTECTED]
Subject: Re: JRun 3.0 setting the classpath for webapp.


1.  This is not the JRun interest group.

2.  Get rid of JRun - it's crap.

Mark

-Original Message-
From: Iyer Suresh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 10:30 PM
To: [EMAIL PROTECTED]
Subject: JRun 3.0 setting the classpath for webapp.


Hi,

I am having problem with loading a class
from  WEB-INF/classes dir.  JRun is not able to
load the class file in this directory.  But If I
copy it to jrun-lib it is able to load it.
how do I set the classpath for the classloader
so that it can look at the WEB-INF/classes instead
of copying it to jrun-lib.

How to load the db.properties from jrun-lib dir.
I am getting the following error mesg. un able
to load the db.properties file.

This is the code .

InputStream is = getClass().getResourceAsStream
("/db.properties");
Properties dbProps = new Properties();

try{
   dbProps.load(is);
}
catch (Exception e)
{
 System.out.println("Can't read the properties file. "
 +"Make sure db.properties is in the CLASSPATH");
}

Thanks for your time.
suresh
> Thanks for bringing up this issue. I am facing the same with weblogic 6.1
> server.
> I see hundreds of "Connection reset by Peer" messages in my weblogic.log.
> -meera
>
>
> -Original Message-
> From: Ross Lambert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Connection reset by peer... Me, too!
>
>
> Folks,
>
> This is a shot in the dark as I am not one of the developers working
> directly on the issue, thus I don't have the details I know you'd need to
> make serious code-level recommendations. However, this is so significant
to
> our company's future that I figured it was worth risking a blindfolded
> exchange of gunfire in a room full of Java developers. :-)
>
> I guess I'm really just trolling to see if anyone has seen anything
> similar... and hopefully how they fixed it.
>
> My company is an application service provider of eCRM and customer service
> software. We use servlets and supporting classes server-side and applets
> client-side (for both customer service agents and customers). Our
production
> environments are getting a little long in the tooth, namely JRun 2.3 and
JDK
> 1.2.2 with Oracle 8.1.7 on the back-end.
>
> The problem is that under extremely heavy load, connections between the
> applet clients and the servers are dropping en masse. Our company is
> currently experiencing wonderful growth (we handled over two million
managed
> chats last month, for example), but as you can imagine this issue
seriously
> undermines our future potential.
>
> Thanks for whatever advice or even comiseration you can provide. :-)
>
> == Ross ==
>
>
> I just noticed Suresh's post and I am inclined to believe that we are
> experiencing similar difficulties, therefore I put this message in the
same
> thread.
>
>
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Suresh Addagalla
> Sent: Thursday, January 31, 2002 11:00 PM
> To: [EMAIL PROTECTED]
> Subject: Connection reset by peer
>
>
> Hi,
>
> I am using JRun 3.0 with iPlanet 4.1 on HP-UX. It's a pure servlet based
> application. I am simulating a high load on the web application. Beyond a
> threshold load (of 1200 users), I am getting the following 'Connection
reset
> by peer' error in the default-event.log, due to which I am getting 503
> result codes at the client.
>
> The maximum simultaneous requests configured in iPlanet is 2500, which is
> sufficient. Please let me know what could be the cause of the error. The
> JRun min, active, max threads are 100, 200, 2000 respectively.
>
> 02/01 11:06:48 error (jcp) Connection reset by peer: Connection reset by
> peer [java.net.SocketException: Connection reset by peer: Connection reset
> by peer]
> java.net.SocketException: Connection reset by peer: Connection reset by
peer
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read1(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
&g

Re: JRun 3.0 setting the classpath for webapp.

2002-03-06 Thread Galbreath, Mark

1.  This is not the JRun interest group.

2.  Get rid of JRun - it's crap.

Mark

-Original Message-
From: Iyer Suresh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 10:30 PM
To: [EMAIL PROTECTED]
Subject: JRun 3.0 setting the classpath for webapp.


Hi,

I am having problem with loading a class
from  WEB-INF/classes dir.  JRun is not able to
load the class file in this directory.  But If I
copy it to jrun-lib it is able to load it.
how do I set the classpath for the classloader
so that it can look at the WEB-INF/classes instead
of copying it to jrun-lib.

How to load the db.properties from jrun-lib dir.
I am getting the following error mesg. un able
to load the db.properties file.

This is the code .

InputStream is = getClass().getResourceAsStream
("/db.properties");
Properties dbProps = new Properties();

try{
   dbProps.load(is);
}
catch (Exception e)
{
 System.out.println("Can't read the properties file. "
 +"Make sure db.properties is in the CLASSPATH");
}

Thanks for your time.
suresh
> Thanks for bringing up this issue. I am facing the same with weblogic 6.1
> server.
> I see hundreds of "Connection reset by Peer" messages in my weblogic.log.
> -meera
>
>
> -Original Message-
> From: Ross Lambert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Connection reset by peer... Me, too!
>
>
> Folks,
>
> This is a shot in the dark as I am not one of the developers working
> directly on the issue, thus I don't have the details I know you'd need to
> make serious code-level recommendations. However, this is so significant
to
> our company's future that I figured it was worth risking a blindfolded
> exchange of gunfire in a room full of Java developers. :-)
>
> I guess I'm really just trolling to see if anyone has seen anything
> similar... and hopefully how they fixed it.
>
> My company is an application service provider of eCRM and customer service
> software. We use servlets and supporting classes server-side and applets
> client-side (for both customer service agents and customers). Our
production
> environments are getting a little long in the tooth, namely JRun 2.3 and
JDK
> 1.2.2 with Oracle 8.1.7 on the back-end.
>
> The problem is that under extremely heavy load, connections between the
> applet clients and the servers are dropping en masse. Our company is
> currently experiencing wonderful growth (we handled over two million
managed
> chats last month, for example), but as you can imagine this issue
seriously
> undermines our future potential.
>
> Thanks for whatever advice or even comiseration you can provide. :-)
>
> == Ross ==
>
>
> I just noticed Suresh's post and I am inclined to believe that we are
> experiencing similar difficulties, therefore I put this message in the
same
> thread.
>
>
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Suresh Addagalla
> Sent: Thursday, January 31, 2002 11:00 PM
> To: [EMAIL PROTECTED]
> Subject: Connection reset by peer
>
>
> Hi,
>
> I am using JRun 3.0 with iPlanet 4.1 on HP-UX. It's a pure servlet based
> application. I am simulating a high load on the web application. Beyond a
> threshold load (of 1200 users), I am getting the following 'Connection
reset
> by peer' error in the default-event.log, due to which I am getting 503
> result codes at the client.
>
> The maximum simultaneous requests configured in iPlanet is 2500, which is
> sufficient. Please let me know what could be the cause of the error. The
> JRun min, active, max threads are 100, 200, 2000 respectively.
>
> 02/01 11:06:48 error (jcp) Connection reset by peer: Connection reset by
> peer [java.net.SocketException: Connection reset by peer: Connection reset
> by peer]
> java.net.SocketException: Connection reset by peer: Connection reset by
peer
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read1(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at
allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:310)
> at
allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:302)
> at allaire.jrun.jrpp.ProxyEndpoint.readInt(ProxyEndpoint.java:320)
> at
> allaire.jrun.jrpp.ProxyEndpoint.readRequest(ProxyEndpoint.java:188)
> at
allaire.jrun.jrpp.ProxyService.swapRunnable(ProxyServic

JRun 3.0 setting the classpath for webapp.

2002-03-05 Thread Iyer Suresh

Hi,

I am having problem with loading a class
from  WEB-INF/classes dir.  JRun is not able to
load the class file in this directory.  But If I
copy it to jrun-lib it is able to load it.
how do I set the classpath for the classloader
so that it can look at the WEB-INF/classes instead
of copying it to jrun-lib.

How to load the db.properties from jrun-lib dir.
I am getting the following error mesg. un able
to load the db.properties file.

This is the code .

InputStream is = getClass().getResourceAsStream
("/db.properties");
Properties dbProps = new Properties();

try{
   dbProps.load(is);
}
catch (Exception e)
{
 System.out.println("Can't read the properties file. "
 +"Make sure db.properties is in the CLASSPATH");
}

Thanks for your time.
suresh
> Thanks for bringing up this issue. I am facing the same with weblogic 6.1
> server.
> I see hundreds of "Connection reset by Peer" messages in my weblogic.log.
> -meera
>
>
> -Original Message-
> From: Ross Lambert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Connection reset by peer... Me, too!
>
>
> Folks,
>
> This is a shot in the dark as I am not one of the developers working
> directly on the issue, thus I don't have the details I know you'd need to
> make serious code-level recommendations. However, this is so significant to
> our company's future that I figured it was worth risking a blindfolded
> exchange of gunfire in a room full of Java developers. :-)
>
> I guess I'm really just trolling to see if anyone has seen anything
> similar... and hopefully how they fixed it.
>
> My company is an application service provider of eCRM and customer service
> software. We use servlets and supporting classes server-side and applets
> client-side (for both customer service agents and customers). Our production
> environments are getting a little long in the tooth, namely JRun 2.3 and JDK
> 1.2.2 with Oracle 8.1.7 on the back-end.
>
> The problem is that under extremely heavy load, connections between the
> applet clients and the servers are dropping en masse. Our company is
> currently experiencing wonderful growth (we handled over two million managed
> chats last month, for example), but as you can imagine this issue seriously
> undermines our future potential.
>
> Thanks for whatever advice or even comiseration you can provide. :-)
>
> == Ross ==
>
>
> I just noticed Suresh's post and I am inclined to believe that we are
> experiencing similar difficulties, therefore I put this message in the same
> thread.
>
>
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Suresh Addagalla
> Sent: Thursday, January 31, 2002 11:00 PM
> To: [EMAIL PROTECTED]
> Subject: Connection reset by peer
>
>
> Hi,
>
> I am using JRun 3.0 with iPlanet 4.1 on HP-UX. It's a pure servlet based
> application. I am simulating a high load on the web application. Beyond a
> threshold load (of 1200 users), I am getting the following 'Connection reset
> by peer' error in the default-event.log, due to which I am getting 503
> result codes at the client.
>
> The maximum simultaneous requests configured in iPlanet is 2500, which is
> sufficient. Please let me know what could be the cause of the error. The
> JRun min, active, max threads are 100, 200, 2000 respectively.
>
> 02/01 11:06:48 error (jcp) Connection reset by peer: Connection reset by
> peer [java.net.SocketException: Connection reset by peer: Connection reset
> by peer]
> java.net.SocketException: Connection reset by peer: Connection reset by peer
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read1(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:310)
> at allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:302)
> at allaire.jrun.jrpp.ProxyEndpoint.readInt(ProxyEndpoint.java:320)
> at
> allaire.jrun.jrpp.ProxyEndpoint.readRequest(ProxyEndpoint.java:188)
> at allaire.jrun.jrpp.ProxyService.swapRunnable(ProxyService.java:48)
> at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java:223)
> at allaire.jrun.WorkerThread.run(WorkerThread.java:77)
>
> Thanks in advance,
> Suresh
>
> __

Re: CLASSPATH for Applet..... ASAP

2002-02-27 Thread Ryan Ivan Aquino

Nope. The applet will be accessed relative to the path you placed in your
html file.

- Original Message -
From: "Winner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 3:37 PM
Subject: CLASSPATH for Applet. ASAP


> Greetings.
>
> Is there a need to set a CLASSPATH for applet in Tomcat? And what is it?
>
> Any response would be highly appreciated..
>
> Thanks..
>
> _
> Are you a Techie? Get Your Free Tech Email Address Now! Visit
http://www.TechEmail.com
>
> _
> You deserve a better email address! Get personalized email @yourname
> or @yourcompany from Everyone.net --> http://www.everyone.net?tag
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




CLASSPATH for Applet..... ASAP

2002-02-26 Thread Winner

Greetings.

Is there a need to set a CLASSPATH for applet in Tomcat? And what is it?

Any response would be highly appreciated..

Thanks..

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com

_
You deserve a better email address! Get personalized email @yourname
or @yourcompany from Everyone.net --> http://www.everyone.net?tag

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Milt Epstein

On Mon, 25 Feb 2002, Leon Vermaak wrote:

> If you would please be so kind as to re-direct me to a list for
> biginners it would be appreciated. If you don't mind me saying out
> of all people that have replied on this list you have one the prize
> for rudeness. I would also gladly remove myself given that fact that
> the person hosting this list server has a bit of a swelled head!
> Thank you very much!
> Martin Leon Vermaak

Michael's post my seem rude to you, but I disagree -- his posting is
taking into account what's most useful and courteous in terms of the
list overall.

And it's not really our job to find a appropriate list/forum for your
questions.  There are tons out there -- somehow you found this one,
you should be able to find other ones.

But to give you some pointers, there are the comp.lang.java.*
newsgroups and a bunch of mailing lists (like this one) that Sun runs
-- check http://archives.java.sun.com/archives/ for a list.  Then, as
Michael suggested, there are tutorials up at Sun's site that have tons
of information -- poke around, you can find them yourselves.  Not to
mention there are plenty of good Java books out there -- perhaps you
should look for one with a more practical bent.  If you just do a
little bit of a search (I recommend google, www.google.com and
groups.google.com), there are tons of resources -- faqs, tutorials,
etc. -- out there you can make use of.

You seem to lack some basic understanding of how this stuff works --
it would behoove you (and show respect/considerateness for others) if
you read through an entire tutorial/book to fill in the gaps in your
knowledge.


> - Original Message -
> From: "Michael Weller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 3:59 PM
> Subject: Re: classpath/servlet compilation error: javax package not found!
>
>
> > hi!
> > come on! that's basics! every question you asked is so basic that the java
> > tutorial (don't ask for the link now!!! how did you manage to find this
> > list?) will answer it, plus every question you'll have the next few weeks.
> > so read it!
> > sorry that i'm rude but this is servlet-interest, not java-beginner and
> i'm
> > sick of having my mailbox spammed with ...
> >
> > -mw
> >
> > At 13:02 25.02.2002 -0500, you wrote:
> > >thanks,
> > >So for each package I use I must set classpath each time?
> > >Is there a way to somehow tell the compiler to make use of all files in
> some
> > >folder example *.jar or *.*?
> > >Thank you very much!
> > >
> > >- Original Message -
> > >From: "Markus Spath" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Monday, February 25, 2002 12:53 PM
> > >Subject: Re: classpath/servlet compilation error: javax package not
> found!
> > >
> > >
> > > > Leon Vermaak wrote:
> > > >
> > > >
> > > > > How does the compiler find the javax.servlet.* classes
> > > > > in the servlet.jar file... WHERE do you tell the compiler to find
> the
> > >class
> > > > > files or jar for that matter.
> > > >
> > > >
> > > > this is the job of the classpath;
> > > >
> > > > if you call:
> > > > javac -classpath C:\yourjars\servlet.jar
> > > > for instance, all files contained in servlet.jar will be visible to
> the
> > >compiler;
> > > >
> > > > if your classes reside in a dir called C:\yourclasses
> > > > javac -classpath C:\yourclasses
> > > > will make them visible to the compiler.
> > > >
> > > > you can add as many entries as you like, seperating them by ;
> > > >
> > > > hth,
> > > > markus
> > > >
> > > >

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Anthony Villanueva

Dear Leon:

You can write to me regarding Java at this address: [EMAIL PROTECTED]
and I will be glad to help you.

anthony

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Tonia A. Flores

It's not rudeness on MW's part but in fact yours and all who have kept
an irrelevant thread running.  This is for Servlets only let us try and
keep the s/n ratio in check.  Please see the following link.

http://forum.java.sun.com/

~Tonia

- Original Message -
From: Leon Vermaak <[EMAIL PROTECTED]>
Date: Monday, February 25, 2002 1:12 pm
Subject: Re: classpath/servlet compilation error: javax package not
found!

> If you would please be so kind as to re-direct me to a list for
> biginners it
> would be appreciated. If you don't mind me saying out of all
> people that
> have replied on this list you have one the prize for rudeness. I
> would also
> gladly remove myself given that fact that the person hosting this list
> server has a bit of a swelled head!
> Thank you very much!
> Martin Leon Vermaak
>
> - Original Message -
> From: "Michael Weller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 3:59 PM
> Subject: Re: classpath/servlet compilation error: javax package
> not found!
>
>
> > hi!
> > come on! that's basics! every question you asked is so basic
> that the java
> > tutorial (don't ask for the link now!!! how did you manage to
> find this
> > list?) will answer it, plus every question you'll have the next
> few weeks.
> > so read it!
> > sorry that i'm rude but this is servlet-interest, not java-
> beginner and
> i'm
> > sick of having my mailbox spammed with ...
> >
> > -mw
> >
> > At 13:02 25.02.2002 -0500, you wrote:
> > >thanks,
> > >So for each package I use I must set classpath each time?
> > >Is there a way to somehow tell the compiler to make use of all
> files in
> some
> > >folder example *.jar or *.*?
> > >Thank you very much!
> > >
> > >- Original Message -
> > >From: "Markus Spath" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Monday, February 25, 2002 12:53 PM
> > >Subject: Re: classpath/servlet compilation error: javax package not
> found!
> > >
> > >
> > > > Leon Vermaak wrote:
> > > >
> > > >
> > > > > How does the compiler find the javax.servlet.* classes
> > > > > in the servlet.jar file... WHERE do you tell the compiler
> to find
> the
> > >class
> > > > > files or jar for that matter.
> > > >
> > > >
> > > > this is the job of the classpath;
> > > >
> > > > if you call:
> > > > javac -classpath C:\yourjars\servlet.jar
> > > > for instance, all files contained in servlet.jar will be
> visible to
> the
> > >compiler;
> > > >
> > > > if your classes reside in a dir called C:\yourclasses
> > > > javac -classpath C:\yourclasses
> > > > will make them visible to the compiler.
> > > >
> > > > you can add as many entries as you like, seperating them by ;
> > > >
> > > > hth,
> > > > markus
> > > >
> > > >
> >
>
>___

> > > > To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the
> > >body
> > > > of the message "signoff SERVLET-INTEREST".
> > > >
> > > > Archives: http:
> > > > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > > >
> > >
> >
>
>___

> > >To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the
> body
> > >of the message "signoff SERVLET-INTEREST".
> > >
> > >Archives: http:
> > >Resources: http://java.sun.com/products/servlet/external-
> resources.html> >LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html>
> >
>

___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http:
> > Resources: http://java.sun.com/products/servlet/external-
> resources.html> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html>
>
>

___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Milt Epstein

On Mon, 25 Feb 2002, Michael Weller wrote:

> hi!
> come on! that's basics! every question you asked is so basic that the java
> tutorial (don't ask for the link now!!! how did you manage to find this
> list?) will answer it, plus every question you'll have the next few weeks.
> so read it!
> sorry that i'm rude but this is servlet-interest, not java-beginner and i'm
> sick of having my mailbox spammed with ...

Really.  How many messages have there been in this thread?  All
within, what, half a day?  Sorry to be blunt, but this thread really
doesn't belong here, and someone needs to read a decent Java
book/tutorial, so they can better understand packages, classpath,
compiling, etc.


> At 13:02 25.02.2002 -0500, you wrote:
> >thanks,
> >So for each package I use I must set classpath each time?
> >Is there a way to somehow tell the compiler to make use of all files in some
> >folder example *.jar or *.*?
> >Thank you very much!
> >
> >- Original Message -
> >From: "Markus Spath" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, February 25, 2002 12:53 PM
> >Subject: Re: classpath/servlet compilation error: javax package not found!
> >
> >
> > > Leon Vermaak wrote:
> > >
> > >
> > > > How does the compiler find the javax.servlet.* classes
> > > > in the servlet.jar file... WHERE do you tell the compiler to find the
> >class
> > > > files or jar for that matter.
> > >
> > >
> > > this is the job of the classpath;
> > >
> > > if you call:
> > > javac -classpath C:\yourjars\servlet.jar
> > > for instance, all files contained in servlet.jar will be visible to the
> >compiler;
> > >
> > > if your classes reside in a dir called C:\yourclasses
> > > javac -classpath C:\yourclasses
> > > will make them visible to the compiler.
> > >
> > > you can add as many entries as you like, seperating them by ;
> > >
> > > hth,
> > > markus
> > >
> > >
> >___
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> >body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> >
> >___
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Michael Weller

hi!
come on! that's basics! every question you asked is so basic that the java
tutorial (don't ask for the link now!!! how did you manage to find this
list?) will answer it, plus every question you'll have the next few weeks.
so read it!
sorry that i'm rude but this is servlet-interest, not java-beginner and i'm
sick of having my mailbox spammed with ...

-mw

At 13:02 25.02.2002 -0500, you wrote:
>thanks,
>So for each package I use I must set classpath each time?
>Is there a way to somehow tell the compiler to make use of all files in some
>folder example *.jar or *.*?
>Thank you very much!
>
>- Original Message -
>From: "Markus Spath" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, February 25, 2002 12:53 PM
>Subject: Re: classpath/servlet compilation error: javax package not found!
>
>
> > Leon Vermaak wrote:
> >
> >
> > > How does the compiler find the javax.servlet.* classes
> > > in the servlet.jar file... WHERE do you tell the compiler to find the
>class
> > > files or jar for that matter.
> >
> >
> > this is the job of the classpath;
> >
> > if you call:
> > javac -classpath C:\yourjars\servlet.jar
> > for instance, all files contained in servlet.jar will be visible to the
>compiler;
> >
> > if your classes reside in a dir called C:\yourclasses
> > javac -classpath C:\yourclasses
> > will make them visible to the compiler.
> >
> > you can add as many entries as you like, seperating them by ;
> >
> > hth,
> > markus
> >
> >
>___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Peter Fournier

Leon,

You seem to be having a time with the whole class finding issue. I would
recommend picking up a book on Java and going over the CLASSPATH and JAR
file sections. Any descent book should clarrify the whole issue for you.

Basically, the .jar file works exactly like class files residing in a
directory. When you see a .jar file, mentally replace it with the directory
structure and files inside it, treating the .jar file itself as a directory.
So, if your .jar file contains one java class:
com.myspace.mypackage.myclass.class and is located at c:\jars\myjarfile.jar
then you could imagine that under c:\jars\myjarfile.jar exists the directory
structure of com\myspace\mypackage\myclass.class. So, in your CLASSPATH you
would have the entry c:\jars\myjarfile.jar. When java searches through your
classpath to find the class you are using it will find the jar file then
look inside of it to see if it contains (in this case)
com\myspace\mypackage\myclass.class. With this myfarfile.jar in your
classpath issuing 'javap com.myspace.mypackage.myclass' at a command prompt
should output the class signature since java finds it inside of the .jar
file.

>From the sounds of it your Servlet.jar file is not in your classpath.
According the the post at the beginning of this thread you had to manually
add it to your compile command. Also, I'm pretty sure that if you open a
command window and do some sets they disappear after the shell is closed.
You need to set the desired values in your autoexec and log off or reboot.
Or, set them in a shell window and keep using that shell window.

I hope this helps.

Peter Fournier
[EMAIL PROTECTED]

-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Leon
Vermaak
Sent: Monday, February 25, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: classpath/servlet compilation error: javax package not
found!


I understand the jar file concept, but I have a hard time understanding how
the compiler finds them. Because of the error: javax package not found! I
the installation instructions it said to set classpath=
to nothing that way I can compile from anyhwere without having to set the
classpath?
If you can tell me where to find hte beginners series I would gladly read
it.
Thanks

- Original Message -
From: "Raghupathy, Gurumoorthy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:36 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Actually,
> servlet.jar file is a collection of classes known as
> packages zipped into a bundle ( usually a .jar or .zip file ).
> javax.servlet.* is a part of the package which is bundled
in
> servlet.jar.
> Just imagine if this would not been the case then the
whole
> package will eat a lot of HARDDISK SPACE and
> more env variable.
> Just read a beginners series for JAVA which will explain
the
> concept of packages and .jar files
>
>
> Sorry but this is how java work and we in the java community really like
> this concept since it is one time compilation and thne can be put on any
> platform
>
>
> Regards
> guru
>
>
> -Original Message-
> From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
> Sent: 25 February 2002 16:45
> To: [EMAIL PROTECTED]
> Subject: classpath/servlet compilation error: javax package not found!
>
>
> I am at a loss as to what I must modify in this file?
> I managed to compile the program with javac -classpath "C:\Program
> Files\Apache ...\common\lib\servlet.jar"
> What I don't understand is why I put import javax.servlet.*;
> if there is nothing on my drive called javax?
> If Java is supposedly such a serious programing language and they pretend
on
> making it work? They aught to make easy for new commers to the language to
> follow a details explination on how to do set the path to the respective
> libraries that one is suppose to use to write one's servlets!
> I appologize if this is simply my ignorace, but The least they can do is
try
> to include a page for newbies that will explain things in IDIOT PROOF
TERMS.
>
> I am going to follow Markus Spath's lead and read on about ANT and Tomcat
> Manager HOW-TO.
>
> Thanks for the replies.
>
>
> - Original Message -
> From: "Williams, William H"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 10:53 AM
> Subject: Re: classpath/package question?
>
>
> > There is a limit on how long environment variables like CLASSPATH can
be.
> >
> > See if this helps...
> >
> >  <>
> >
> >
>
>
___

Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

thanks,
So for each package I use I must set classpath each time?
Is there a way to somehow tell the compiler to make use of all files in some
folder example *.jar or *.*?
Thank you very much!

- Original Message -
From: "Markus Spath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:53 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Leon Vermaak wrote:
>
>
> > How does the compiler find the javax.servlet.* classes
> > in the servlet.jar file... WHERE do you tell the compiler to find the
class
> > files or jar for that matter.
>
>
> this is the job of the classpath;
>
> if you call:
> javac -classpath C:\yourjars\servlet.jar
> for instance, all files contained in servlet.jar will be visible to the
compiler;
>
> if your classes reside in a dir called C:\yourclasses
> javac -classpath C:\yourclasses
> will make them visible to the compiler.
>
> you can add as many entries as you like, seperating them by ;
>
> hth,
> markus
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

I understand the jar file concept, but I have a hard time understanding how
the compiler finds them. Because of the error: javax package not found! I
the installation instructions it said to set classpath=
to nothing that way I can compile from anyhwere without having to set the
classpath?
If you can tell me where to find hte beginners series I would gladly read
it.
Thanks

- Original Message -
From: "Raghupathy, Gurumoorthy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:36 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Actually,
> servlet.jar file is a collection of classes known as
> packages zipped into a bundle ( usually a .jar or .zip file ).
> javax.servlet.* is a part of the package which is bundled
in
> servlet.jar.
> Just imagine if this would not been the case then the
whole
> package will eat a lot of HARDDISK SPACE and
> more env variable.
> Just read a beginners series for JAVA which will explain
the
> concept of packages and .jar files
>
>
> Sorry but this is how java work and we in the java community really like
> this concept since it is one time compilation and thne can be put on any
> platform
>
>
> Regards
> guru
>
>
> -Original Message-
> From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
> Sent: 25 February 2002 16:45
> To: [EMAIL PROTECTED]
> Subject: classpath/servlet compilation error: javax package not found!
>
>
> I am at a loss as to what I must modify in this file?
> I managed to compile the program with javac -classpath "C:\Program
> Files\Apache ...\common\lib\servlet.jar"
> What I don't understand is why I put import javax.servlet.*;
> if there is nothing on my drive called javax?
> If Java is supposedly such a serious programing language and they pretend
on
> making it work? They aught to make easy for new commers to the language to
> follow a details explination on how to do set the path to the respective
> libraries that one is suppose to use to write one's servlets!
> I appologize if this is simply my ignorace, but The least they can do is
try
> to include a page for newbies that will explain things in IDIOT PROOF
TERMS.
>
> I am going to follow Markus Spath's lead and read on about ANT and Tomcat
> Manager HOW-TO.
>
> Thanks for the replies.
>
>
> - Original Message -
> From: "Williams, William H"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 10:53 AM
> Subject: Re: classpath/package question?
>
>
> > There is a limit on how long environment variables like CLASSPATH can
be.
> >
> > See if this helps...
> >
> >  <>
> >
> >
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Markus Spath

Leon Vermaak wrote:


> How does the compiler find the javax.servlet.* classes
> in the servlet.jar file... WHERE do you tell the compiler to find the class
> files or jar for that matter.


this is the job of the classpath;

if you call:
javac -classpath C:\yourjars\servlet.jar
for instance, all files contained in servlet.jar will be visible to the compiler;

if your classes reside in a dir called C:\yourclasses
javac -classpath C:\yourclasses
will make them visible to the compiler.

you can add as many entries as you like, seperating them by ;

hth,
markus

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

One last thing regarding the last part:
> check out the posts of the veterans of this list like Christopher, Nic
> Ferrier, Milt Epstein or Mark Galbreath (and alot of others who I hate to
> leave out but must cut this short :-)
>
If you can tell me where I find these posts. I would gladly look at them
- Original Message -
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:28 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Servlet.jar is from an older version of the J2SDKEE. As a newbie, you
really
> should stick to the latest and greatest as Christopher K. St. John will
> probably tell you when he sees ur postings. ;-)
>
> Installing J2EE for Dummies.
> 1) Uninstall everything from java :)
> 2) Download the J2SDK (now at version 1.4)
> 3) Download the J2SDKEE (now at version 1.3.1_02)
> 4) Run the J2SDK install
> 5) Edit ur path environment variable to include the bin directory of
> that install. Make sure that u use full path names.
> ie. C:\jdk1.3.1_01\bin (for help on updating ur path)
> 6) Run the J2SDKEE install
> 7) Do the outline below (from java.sun.com with comments by me)
>
> Before running the J2EE SDK, you must set these environment variables:
> *   J2EE_HOME - the directory where you installed this release.
> *   This is something like C:\j2sdkee1.3 (depends on the versus). It
> will be the path up to the folder right above the bin for J2EE install
> *   JAVA_HOME - the directory where the Java 2 SDK Standard Edition is
> installed.
> *   This is something like C:\jdk1.3.1_01 (depends on the versus). It
> will be the path up to the folder right above the bin for J2SDK install
> *   PATH - include the bin directory beneath the directory where
you've
> installed this release
> *   This is something like C:\j2sdkee1.3\bin (depends on the versus).
It
> will be the path up to the bin folder for J2EE install
> 8) Edit ur classpath to include C:\j2sdkee1.3\lib\j2ee.jar (depends on
> the versus)
> Appendix: Tomcat for dummies
> 9) Download the version of tomcat that u want.
> 10) Unzip it into whereever. (note that if ur planning to intergrate
it
> through IIS, u should not have any spaces in ur paths)
> I usually unzip my into a directory called Tomcat under C:\
> 11) Set an environment variable CATALINA_HOME to the path of the
> directory into which you have installed Tomcat 4.0
> in my case C:\Tomcat (note that Catalina is for Tomcat 4.x and above
>
> Now you should be ready to run.
>
> BTW, if you really want to get off on the right foot,  you really
should
> check out the posts of the veterans of this list like Christopher, Nic
> Ferrier, Milt Epstein or Mark Galbreath (and alot of others who I hate to
> leave out but must cut this short :-)
>
> -Tim
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

I will do this and let you know how it goes.
I will un-intall everything ang begin from scratch.
Just so you know I have:
JDK1.3.1_02 --> I will get 1.4
I have
J2SDKEE1.3.1 already
and I have
Tomcat 4.0.2 installed!

Will go through the whole process and let you know!
- Original Message -
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:28 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Servlet.jar is from an older version of the J2SDKEE. As a newbie, you
really
> should stick to the latest and greatest as Christopher K. St. John will
> probably tell you when he sees ur postings. ;-)
>
> Installing J2EE for Dummies.
> 1) Uninstall everything from java :)
> 2) Download the J2SDK (now at version 1.4)
> 3) Download the J2SDKEE (now at version 1.3.1_02)
> 4) Run the J2SDK install
> 5) Edit ur path environment variable to include the bin directory of
> that install. Make sure that u use full path names.
> ie. C:\jdk1.3.1_01\bin (for help on updating ur path)
> 6) Run the J2SDKEE install
> 7) Do the outline below (from java.sun.com with comments by me)
>
> Before running the J2EE SDK, you must set these environment variables:
> *   J2EE_HOME - the directory where you installed this release.
> *   This is something like C:\j2sdkee1.3 (depends on the versus). It
> will be the path up to the folder right above the bin for J2EE install
> *   JAVA_HOME - the directory where the Java 2 SDK Standard Edition is
> installed.
> *   This is something like C:\jdk1.3.1_01 (depends on the versus). It
> will be the path up to the folder right above the bin for J2SDK install
> *   PATH - include the bin directory beneath the directory where
you've
> installed this release
> *   This is something like C:\j2sdkee1.3\bin (depends on the versus).
It
> will be the path up to the bin folder for J2EE install
> 8) Edit ur classpath to include C:\j2sdkee1.3\lib\j2ee.jar (depends on
> the versus)
> Appendix: Tomcat for dummies
> 9) Download the version of tomcat that u want.
> 10) Unzip it into whereever. (note that if ur planning to intergrate
it
> through IIS, u should not have any spaces in ur paths)
> I usually unzip my into a directory called Tomcat under C:\
> 11) Set an environment variable CATALINA_HOME to the path of the
> directory into which you have installed Tomcat 4.0
> in my case C:\Tomcat (note that Catalina is for Tomcat 4.x and above
>
> Now you should be ready to run.
>
> BTW, if you really want to get off on the right foot,  you really
should
> check out the posts of the veterans of this list like Christopher, Nic
> Ferrier, Milt Epstein or Mark Galbreath (and alot of others who I hate to
> leave out but must cut this short :-)
>
> -Tim
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

That was very helpful Thank you!
So if you can tell me one more thing I will have understood this for now I
THINK!
How does the compiler find the javax.servlet.* classes
in the servlet.jar file... WHERE do you tell the compiler to find the class
files or jar for that matter.
Thank again!
- Original Message -
From: "Markus Spath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:11 PM
Subject: Re: classpath/servlet compilation error: javax package not found!


> Leon,
>
> Leon Vermaak wrote:
>
> > I am at a loss as to what I must modify in this file?
> > I managed to compile the program with javac -classpath "C:\Program
> > Files\Apache ...\common\lib\servlet.jar"
> > What I don't understand is why I put import javax.servlet.*;
> > if there is nothing on my drive called javax?
>
>
> copy servlet.jar in some convenient directory, go there, open a shell and
type:
> jar xvf servlet.jar
> some directories should expand, there you will find the classes.
>
> packaging various .class files in a .jar file just helps keeping overview
and
> consistency (not always ;) i hope you don't run in any sealing
violation...)).
>
> see also:
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
>
>
> > If Java is supposedly such a serious programing language and they
pretend on
> > making it work? They aught to make easy for new commers to the language
to
> > follow a details explination on how to do set the path to the respective
> > libraries that one is suppose to use to write one's servlets!
> > I appologize if this is simply my ignorace, but The least they can do is
try
> > to include a page for newbies that will explain things in IDIOT PROOF
TERMS.
>
>
> see: http://java.sun.com/docs/books/tutorial/servlets/index.html
>
> hth,
> markus
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Raghupathy, Gurumoorthy

Actually,
servlet.jar file is a collection of classes known as
packages zipped into a bundle ( usually a .jar or .zip file ).
javax.servlet.* is a part of the package which is bundled in
servlet.jar.
Just imagine if this would not been the case then the whole
package will eat a lot of HARDDISK SPACE and
more env variable.
Just read a beginners series for JAVA which will explain the
concept of packages and .jar files


Sorry but this is how java work and we in the java community really like
this concept since it is one time compilation and thne can be put on any
platform


Regards
guru


-Original Message-
From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 16:45
To: [EMAIL PROTECTED]
Subject: classpath/servlet compilation error: javax package not found!


I am at a loss as to what I must modify in this file?
I managed to compile the program with javac -classpath "C:\Program
Files\Apache ...\common\lib\servlet.jar"
What I don't understand is why I put import javax.servlet.*;
if there is nothing on my drive called javax?
If Java is supposedly such a serious programing language and they pretend on
making it work? They aught to make easy for new commers to the language to
follow a details explination on how to do set the path to the respective
libraries that one is suppose to use to write one's servlets!
I appologize if this is simply my ignorace, but The least they can do is try
to include a page for newbies that will explain things in IDIOT PROOF TERMS.

I am going to follow Markus Spath's lead and read on about ANT and Tomcat
Manager HOW-TO.

Thanks for the replies.


- Original Message -
From: "Williams, William H"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 10:53 AM
Subject: Re: classpath/package question?


> There is a limit on how long environment variables like CLASSPATH can be.
>
> See if this helps...
>
>  <>
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/package question?

2002-02-25 Thread Leon Vermaak

Could you be a bit more specific

set YOUR_HOME="C:\Progarm Files\Apache Tocat 4.0\common\lib\servlet.jar" is
this right?
set JDK_PATH=C:\jdk1.3.1_02
--> I don't quite understand the
%YOUR_HOME%

thanks for your patience.

- Original Message -
From: "Williams, William H"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 11:26 AM
Subject: Re: classpath/package question?


> set YOUR_HOME=C:\Program Files\??
> set JDK_PATH=C:\jdk\1.?
> cd %YOUR_HOME%
>
> Make YOUR_HOME relative to the working directory.
> This is required because there is a limit on how long environment
variables
> like CLASSPATH can be.
>
> set YOUR_HOME=.
>
> set CLASSPATH=
>
> set CLASSPATH=%CLASSPATH%;%JDK_PATH%\lib\tools.jar
>
> set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\lib\.jar
>
> set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\beans\.jar
>
> %JDK_PATH%\bin\java YourStuff %ARGS%
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Chen, Gin

Servlet.jar is from an older version of the J2SDKEE. As a newbie, you really
should stick to the latest and greatest as Christopher K. St. John will
probably tell you when he sees ur postings. ;-)

Installing J2EE for Dummies.
1) Uninstall everything from java :)
2) Download the J2SDK (now at version 1.4)
3) Download the J2SDKEE (now at version 1.3.1_02)
4) Run the J2SDK install
5) Edit ur path environment variable to include the bin directory of
that install. Make sure that u use full path names.
ie. C:\jdk1.3.1_01\bin (for help on updating ur path)
6) Run the J2SDKEE install
7) Do the outline below (from java.sun.com with comments by me)

Before running the J2EE SDK, you must set these environment variables:
*   J2EE_HOME - the directory where you installed this release.
*   This is something like C:\j2sdkee1.3 (depends on the versus). It
will be the path up to the folder right above the bin for J2EE install
*   JAVA_HOME - the directory where the Java 2 SDK Standard Edition is
installed.
*   This is something like C:\jdk1.3.1_01 (depends on the versus). It
will be the path up to the folder right above the bin for J2SDK install
*   PATH - include the bin directory beneath the directory where you've
installed this release
*   This is something like C:\j2sdkee1.3\bin (depends on the versus). It
will be the path up to the bin folder for J2EE install
8) Edit ur classpath to include C:\j2sdkee1.3\lib\j2ee.jar (depends on
the versus)
Appendix: Tomcat for dummies
9) Download the version of tomcat that u want.
10) Unzip it into whereever. (note that if ur planning to intergrate it
through IIS, u should not have any spaces in ur paths)
I usually unzip my into a directory called Tomcat under C:\
11) Set an environment variable CATALINA_HOME to the path of the
directory into which you have installed Tomcat 4.0
in my case C:\Tomcat (note that Catalina is for Tomcat 4.x and above

Now you should be ready to run.

BTW, if you really want to get off on the right foot,  you really should
check out the posts of the veterans of this list like Christopher, Nic
Ferrier, Milt Epstein or Mark Galbreath (and alot of others who I hate to
leave out but must cut this short :-)

-Tim

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Markus Spath

Leon,

Leon Vermaak wrote:

> I am at a loss as to what I must modify in this file?
> I managed to compile the program with javac -classpath "C:\Program
> Files\Apache ...\common\lib\servlet.jar"
> What I don't understand is why I put import javax.servlet.*;
> if there is nothing on my drive called javax?


copy servlet.jar in some convenient directory, go there, open a shell and type:
jar xvf servlet.jar
some directories should expand, there you will find the classes.

packaging various .class files in a .jar file just helps keeping overview and
consistency (not always ;) i hope you don't run in any sealing violation...)).

see also: http://java.sun.com/docs/books/tutorial/java/interpack/packages.html


> If Java is supposedly such a serious programing language and they pretend on
> making it work? They aught to make easy for new commers to the language to
> follow a details explination on how to do set the path to the respective
> libraries that one is suppose to use to write one's servlets!
> I appologize if this is simply my ignorace, but The least they can do is try
> to include a page for newbies that will explain things in IDIOT PROOF TERMS.


see: http://java.sun.com/docs/books/tutorial/servlets/index.html

hth,
markus

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/package question?

2002-02-25 Thread Williams, William H

set YOUR_HOME=C:\Program Files\??
set JDK_PATH=C:\jdk\1.?
cd %YOUR_HOME%

Make YOUR_HOME relative to the working directory.
This is required because there is a limit on how long environment variables
like CLASSPATH can be.

set YOUR_HOME=.

set CLASSPATH=

set CLASSPATH=%CLASSPATH%;%JDK_PATH%\lib\tools.jar

set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\lib\.jar

set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\beans\.jar

%JDK_PATH%\bin\java YourStuff %ARGS%

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Christopher K. St. John

> Naveen Sharma wrote:
>
> The reason why you couldn't find any "javax*" on your machine
> is because it is included in jsdk.jar
>

 The JSDK should not longer be used. It has been replaced
by the Tomcat project. Please see:

  http://java.sun.com/products/servlet/index.html

 or the Tomcat project home at:

  http://jakarta.apache.org/tomcat/

 If you don't like that, then any of the servlet containers
listed at:

  http://servlets.com/engines/index.html

 should have everything you need to develop and run
servlets.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Naveen Sharma
Title: RE: classpath/servlet compilation error: javax package not found!





The reason why you couldn't find any "javax*" on your machine is because it is included in jsdk.jar




-Original Message-
From:   Leon Vermaak [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, February 25, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject:    classpath/servlet compilation error: javax package not found!


I am at a loss as to what I must modify in this file?
I managed to compile the program with javac -classpath "C:\Program
Files\Apache ...\common\lib\servlet.jar"
What I don't understand is why I put import javax.servlet.*;
if there is nothing on my drive called javax?
If Java is supposedly such a serious programing language and they pretend on
making it work? They aught to make easy for new commers to the language to
follow a details explination on how to do set the path to the respective
libraries that one is suppose to use to write one's servlets!
I appologize if this is simply my ignorace, but The least they can do is try
to include a page for newbies that will explain things in IDIOT PROOF TERMS.


I am going to follow Markus Spath's lead and read on about ANT and Tomcat
Manager HOW-TO.


Thanks for the replies.



- Original Message -
From: "Williams, William H"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 10:53 AM
Subject: Re: classpath/package question?



> There is a limit on how long environment variables like CLASSPATH can be.
>
> See if this helps...
>
>  <>
>
>


___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".


Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html





classpath/servlet compilation error: javax package not found!

2002-02-25 Thread Leon Vermaak

I am at a loss as to what I must modify in this file?
I managed to compile the program with javac -classpath "C:\Program
Files\Apache ...\common\lib\servlet.jar"
What I don't understand is why I put import javax.servlet.*;
if there is nothing on my drive called javax?
If Java is supposedly such a serious programing language and they pretend on
making it work? They aught to make easy for new commers to the language to
follow a details explination on how to do set the path to the respective
libraries that one is suppose to use to write one's servlets!
I appologize if this is simply my ignorace, but The least they can do is try
to include a page for newbies that will explain things in IDIOT PROOF TERMS.

I am going to follow Markus Spath's lead and read on about ANT and Tomcat
Manager HOW-TO.

Thanks for the replies.


- Original Message -
From: "Williams, William H"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 10:53 AM
Subject: Re: classpath/package question?


> There is a limit on how long environment variables like CLASSPATH can be.
>
> See if this helps...
>
>  <>
>
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/package question?

2002-02-25 Thread Markus Spath

Leon,

Leon Vermaak wrote:

> I made the modification you made and it did not work? Must I restart? or is
> it good enough by simply executing autoexec?
> Is there some way to specify *.jar instead of every single time having to
> set the classpath for the specific library you want to use?
> I know that these questions must have been asked previously I have looked on
> various Servlet related sites, but have not come accross any that explains
> the packages well. If anyone can refer me to a up-to-date page I would
> appreciate it.
>


I didn't follow this thread, but:

1.) have a look at ant: http://jakarta.apache.org/ant/index.html
 which lets you build your projects without messing around with the classpath

2.) have a look at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
which lets you start/stop/reload... your apps and probably saves some time


hope i'm not off the point ;)

markus

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/package question?

2002-02-25 Thread Williams, William H

-Original Message-
From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:06 AM
To: [EMAIL PROTECTED]
Subject: classpath/package question?


I made the modification you made and it did not work? Must I restart? or is
it good enough by simply executing autoexec?
Is there some way to specify *.jar instead of every single time having to
set the classpath for the specific library you want to use?
I know that these questions must have been asked previously I have looked on
various Servlet related sites, but have not come accross any that explains
the packages well. If anyone can refer me to a up-to-date page I would
appreciate it.

- Original Message -
From: "Shonk, Richard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 9:27 AM


> Leon,
> I think your problem has to do with installing Tomcat into a directory
with spaces in the name. Try moving you second quote to after the 4 in
Tomcat i.e.
> set CLASSPATH="C:\Program Files\Apache Tomcat 4".0\common\lib\servlet.jar
> Just a thought,
> Rich
>
>
> > I opened autoexec.bat
> > and typed the following:
> > set CLASSPATH="C:\Program Files\Apache Tomcat
4.0\common\lib\servlet.jar"
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: classpath/package question?

2002-02-25 Thread Williams, William H

There is a limit on how long environment variables like CLASSPATH can be.

See if this helps...

 <>



rem [Change as needed]   (DEFAULTS to C:\Program Files\??)
set YOUR_HOME=C:\Program Files\??

rem [Change as needed]   (DEFAULTS to C:\jdk1.?)
set JDK_PATH=C:\jdk\1.?

cd %YOUR_HOME%

rem Make YOUR_HOME relative to the working directory.
rem This is required because there is a limit on how
rem long environment variables like CLASSPATH can be.

set YOUR_HOME=.

set CLASSPATH=

set CLASSPATH=%CLASSPATH%;%JDK_PATH%\lib\tools.jar

rem Jars for Your Stuff
set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\lib\.jar

rem Jars for Your Beans
set CLASSPATH=%CLASSPATH%;%YOUR_HOME%\beans\.jar

echo 
echo java YourStuff %ARGS%
%JDK_PATH%\bin\java 1.2.3.4.YourStuff %ARGS%
echo 
echo Exiting YourStuff



classpath/package question?

2002-02-25 Thread Leon Vermaak

I made the modification you made and it did not work? Must I restart? or is
it good enough by simply executing autoexec?
Is there some way to specify *.jar instead of every single time having to
set the classpath for the specific library you want to use?
I know that these questions must have been asked previously I have looked on
various Servlet related sites, but have not come accross any that explains
the packages well. If anyone can refer me to a up-to-date page I would
appreciate it.

- Original Message -
From: "Shonk, Richard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 9:27 AM


> Leon,
> I think your problem has to do with installing Tomcat into a directory
with spaces in the name. Try moving you second quote to after the 4 in
Tomcat i.e.
> set CLASSPATH="C:\Program Files\Apache Tomcat 4".0\common\lib\servlet.jar
> Just a thought,
> Rich
>
>
> > I opened autoexec.bat
> > and typed the following:
> > set CLASSPATH="C:\Program Files\Apache Tomcat
4.0\common\lib\servlet.jar"
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Classpath for Servlets

2002-02-13 Thread Steve Spigarelli

I have an environment where I don't have access to the jserv.properties
file but would like to include some .jar files when my servlet is run by
the servlet engine (Apache JServ).  I am wondering how I can include
these .jar files.  I have access to the servlet.properties file located
in my zone where servlets are run from.  Also, I can compile the .java
files just fine, but the servlet engine cannot load the classes that I
use in my servlet since the engine classpath does not have the classes I
use.

Any help is appreciated,

Steve Spigarelli

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: Servlet.jar classpath problem

2002-01-07 Thread Raymond Cordero

List the path to your servlet.jar and the Classpath

R

-Original Message-
From: Saptha Girish Gadamsetty [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 1:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet.jar classpath problem


Pankaj,
I did close and re-opened the DOS shell but didn't
work. In fact I've also restarted the machine for some
other reason.

Thanks
Girish


--- Pankaj Dhokia <[EMAIL PROTECTED]> wrote:
> >
> > Can anyone explain this behavior??
> >
>
> after adding the environment variables, close the
> DOS window and re-open
> it.
>
> Pankaj.
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: Servlet.jar classpath problem

2002-01-07 Thread Saptha Girish Gadamsetty

Pankaj,
I did close and re-opened the DOS shell but didn't
work. In fact I've also restarted the machine for some
other reason.

Thanks
Girish


--- Pankaj Dhokia <[EMAIL PROTECTED]> wrote:
> >
> > Can anyone explain this behavior??
> >
>
> after adding the environment variables, close the
> DOS window and re-open
> it.
>
> Pankaj.
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: Servlet.jar classpath problem

2002-01-07 Thread Pankaj Dhokia

>
> Can anyone explain this behavior??
>

after adding the environment variables, close the DOS window and re-open
it.

Pankaj.

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Servlet.jar classpath problem

2002-01-07 Thread Saptha Girish Gadamsetty

Hi all,

I have a strange problem with the servlet.jar
classpath setting. I am using Tomcat. I have set the
CLASSPATH for servlet.jar in the Win2K environment
variables. But, when I try to compile the java file,
its not able to find javax.servlet package. It works
fine if I set the CLASSPATH in the DOS shell before
compiling the java file.

Can anyone explain this behavior??

Thanks in advance.
Girish

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: How to update the CLASSPATH in VJ++ 6.0

2001-07-30 Thread Purav

VJ++ is good as an editor. Requires less resources compared to JBuilder.



  _

Purav Parekh
Team Leader-Projects
Studentsguild.com Pvt. Ltd
321/1, Shantinagar Housing Society,
Timber Market Road,
Pune- 411 042
INDIA.
Office : +91-20-4003350
Fax:  +91-20-4003356
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.studentsguild.com/reflex.html
http://www.studentsguild.com   This e-mail, its content and any files
transmitted with it are intended
solely for the addressee(s) and may be legally privileged and/or
confidential. Access by any other party is unauthorised without the
express written permission of the sender. If you have received this e-mail
in
error  you may not copy or use the contents, attachments or information in
any
way. Please destroy it and contact the sender via e-mail return.   This
e-mail has been prepared using information believed by the author to be
reliable and
accurate, but Studentsguild Pvt. Ltd.  makes no warranty as to accuracy or
completeness.  In particular Studentsguild Pvt. Ltd. does not accept
responsibility for changes made to this e-mail after it was sent.   Any
opinions expressed in this document are those of the author and do not
necessarily
reflect the opinions of Studentsguild Pvt. Ltd.



-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of T.A.
Flores
Sent: Monday, July 30, 2001 10:58 PM
To: [EMAIL PROTECTED]
Subject: Re: How to update the CLASSPATH in VJ++ 6.0


Instead of hacking something together (which is bad) why don't you get
yourself a real Java IDE like JBuilder or Forte? Which BTW have no cost
versions.


Better yet learn to work without a net and dump the IDE altogether.

- Original Message -
From: Purav <[EMAIL PROTECTED]>
Date: Sunday, July 29, 2001 9:04 pm
Subject: Re: How to update the CLASSPATH in VJ++ 6.0

> I believe there is a hack for the same.
>
>  _
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java
> ServletAPI Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark
> Galbreath
> Sent: Friday, July 27, 2001 8:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to update the CLASSPATH in VJ++ 6.0
>
>
> VJ++ only supports SDK 1.1.
>
> Mark
>
> - Original Message -
> From: "Purav" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 1:24 AM
> Subject: How to update the CLASSPATH in VJ++ 6.0
>
>
> > Hello All,
> > I am using VJ++ as my java editor.
> > How do I update the CLASSPATH in VJ++ to reflect jdk1.3. I
> beleive there
> is
> > some hack available for the same.
> >
> > Please Help.
> >
> > Thanx in advance
> >
> > Regards
> >
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: How to update the CLASSPATH in VJ++ 6.0

2001-07-30 Thread T.A. Flores

Instead of hacking something together (which is bad) why don't you get
yourself a real Java IDE like JBuilder or Forte? Which BTW have no cost
versions.


Better yet learn to work without a net and dump the IDE altogether.

- Original Message -
From: Purav <[EMAIL PROTECTED]>
Date: Sunday, July 29, 2001 9:04 pm
Subject: Re: How to update the CLASSPATH in VJ++ 6.0

> I believe there is a hack for the same.
>
>  _
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java
> ServletAPI Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark
> Galbreath
> Sent: Friday, July 27, 2001 8:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to update the CLASSPATH in VJ++ 6.0
>
>
> VJ++ only supports SDK 1.1.
>
> Mark
>
> - Original Message -
> From: "Purav" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 1:24 AM
> Subject: How to update the CLASSPATH in VJ++ 6.0
>
>
> > Hello All,
> > I am using VJ++ as my java editor.
> > How do I update the CLASSPATH in VJ++ to reflect jdk1.3. I
> beleive there
> is
> > some hack available for the same.
> >
> > Please Help.
> >
> > Thanx in advance
> >
> > Regards
> >
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: How to update the CLASSPATH in VJ++ 6.0

2001-07-29 Thread Purav

I believe there is a hack for the same.

  _

Purav Parekh
Team Leader-Projects
Studentsguild.com Pvt. Ltd
321/1, Shantinagar Housing Society,
Timber Market Road,
Pune- 411 042
INDIA.
Office : +91-20-4003350
Fax:  +91-20-4003356
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.studentsguild.com/reflex.html
http://www.studentsguild.com   This e-mail, its content and any files
transmitted with it are intended
solely for the addressee(s) and may be legally privileged and/or
confidential. Access by any other party is unauthorised without the
express written permission of the sender. If you have received this e-mail
in
error  you may not copy or use the contents, attachments or information in
any
way. Please destroy it and contact the sender via e-mail return.   This
e-mail has been prepared using information believed by the author to be
reliable and
accurate, but Studentsguild Pvt. Ltd.  makes no warranty as to accuracy or
completeness.  In particular Studentsguild Pvt. Ltd. does not accept
responsibility for changes made to this e-mail after it was sent.   Any
opinions expressed in this document are those of the author and do not
necessarily
reflect the opinions of Studentsguild Pvt. Ltd.



-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
Galbreath
Sent: Friday, July 27, 2001 8:01 PM
To: [EMAIL PROTECTED]
Subject: Re: How to update the CLASSPATH in VJ++ 6.0


VJ++ only supports SDK 1.1.

Mark

- Original Message -
From: "Purav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 1:24 AM
Subject: How to update the CLASSPATH in VJ++ 6.0


> Hello All,
> I am using VJ++ as my java editor.
> How do I update the CLASSPATH in VJ++ to reflect jdk1.3. I beleive there
is
> some hack available for the same.
>
> Please Help.
>
> Thanx in advance
>
> Regards
>
> Purav Parekh
> Team Leader-Projects
> Studentsguild.com Pvt. Ltd
> 321/1, Shantinagar Housing Society,
> Timber Market Road,
> Pune- 411 042
> INDIA.
> Office : +91-20-4003350
> Fax:  +91-20-4003356
> Email: [EMAIL PROTECTED]
> http://www.studentsguild.com/reflex.html
> http://www.studentsguild.com
> This e-mail, its content and any files transmitted with it are intended
> solely for the addressee(s) and may be legally privileged and/or
> confidential. Access by any other party is unauthorised without the
> express written permission of the sender. If you have received this e-mail
> in
> error  you may not copy or use the contents, attachments or information in
> any
> way. Please destroy it and contact the sender via e-mail return.   This
> e-mail has been prepared using information believed by the author to be
> reliable and
> accurate, but Studentsguild Pvt. Ltd.  makes no warranty as to accuracy or
> completeness.  In particular Studentsguild Pvt. Ltd. does not accept
> responsibility for changes made to this e-mail after it was sent.   Any
> opinions expressed in this document are those of the author and do not
> necessarily
> reflect the opinions of Studentsguild Pvt. Ltd.
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: How to update the CLASSPATH in VJ++ 6.0

2001-07-27 Thread Mark Galbreath

VJ++ only supports SDK 1.1.

Mark

- Original Message -
From: "Purav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 1:24 AM
Subject: How to update the CLASSPATH in VJ++ 6.0


> Hello All,
> I am using VJ++ as my java editor.
> How do I update the CLASSPATH in VJ++ to reflect jdk1.3. I beleive there
is
> some hack available for the same.
>
> Please Help.
>
> Thanx in advance
>
> Regards
>
> Purav Parekh
> Team Leader-Projects
> Studentsguild.com Pvt. Ltd
> 321/1, Shantinagar Housing Society,
> Timber Market Road,
> Pune- 411 042
> INDIA.
> Office : +91-20-4003350
> Fax:  +91-20-4003356
> Email: [EMAIL PROTECTED]
> http://www.studentsguild.com/reflex.html
> http://www.studentsguild.com
> This e-mail, its content and any files transmitted with it are intended
> solely for the addressee(s) and may be legally privileged and/or
> confidential. Access by any other party is unauthorised without the
> express written permission of the sender. If you have received this e-mail
> in
> error  you may not copy or use the contents, attachments or information in
> any
> way. Please destroy it and contact the sender via e-mail return.   This
> e-mail has been prepared using information believed by the author to be
> reliable and
> accurate, but Studentsguild Pvt. Ltd.  makes no warranty as to accuracy or
> completeness.  In particular Studentsguild Pvt. Ltd. does not accept
> responsibility for changes made to this e-mail after it was sent.   Any
> opinions expressed in this document are those of the author and do not
> necessarily
> reflect the opinions of Studentsguild Pvt. Ltd.
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




How to update the CLASSPATH in VJ++ 6.0

2001-07-26 Thread Purav

Hello All,
I am using VJ++ as my java editor.
How do I update the CLASSPATH in VJ++ to reflect jdk1.3. I beleive there is
some hack available for the same.

Please Help.

Thanx in advance

Regards

Purav Parekh
Team Leader-Projects
Studentsguild.com Pvt. Ltd
321/1, Shantinagar Housing Society,
Timber Market Road,
Pune- 411 042
INDIA.
Office : +91-20-4003350
Fax:  +91-20-4003356
Email: [EMAIL PROTECTED]
http://www.studentsguild.com/reflex.html
http://www.studentsguild.com
This e-mail, its content and any files transmitted with it are intended
solely for the addressee(s) and may be legally privileged and/or
confidential. Access by any other party is unauthorised without the
express written permission of the sender. If you have received this e-mail
in
error  you may not copy or use the contents, attachments or information in
any
way. Please destroy it and contact the sender via e-mail return.   This
e-mail has been prepared using information believed by the author to be
reliable and
accurate, but Studentsguild Pvt. Ltd.  makes no warranty as to accuracy or
completeness.  In particular Studentsguild Pvt. Ltd. does not accept
responsibility for changes made to this e-mail after it was sent.   Any
opinions expressed in this document are those of the author and do not
necessarily
reflect the opinions of Studentsguild Pvt. Ltd.

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Setting classpath for OCI driver in Weblogic5.1 in Unix system

2001-07-20 Thread SUBSCRIBE JSP-INTEREST N.Arun Kumar

Hello,
 I am using Weblogic5.1 I need to know the path settings
for OCI driver in Unix system.
Also can you tell me what & where  Oracle client
 need to be included .

Regards
Arun

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html




Re: please help - setting classpath

2001-04-20 Thread K.S.SREEDHAR KUMAR

hey

better remove one of those two parts of ur CLASSPATH. i.e. either u retain
jdk1.3 or jsdk2.1... i think that will resolve that symbol ambiguity
error

Adios

ks

-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: FW: please help - setting classpath
Importance: High




>  -Original Message-
> From: Laban Thomas
> Sent: Friday, April 20, 2001 9:12 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  please help  -setting classpath
> Importance:   High
>
> hi there
>
> i've downloaded jsdk2.1 and also have the jdk1.3. when I caompile a
> servlet I get the "cannot resolve symbol error".
>
my jdk1.3 is in d:\jdk1.3

> I am running windows nt 4.0 and have set my classpath as follows
>
> d:\jdk1.3\lib\tools.jar;D:\jdk1.3\jsdk2.1\lib\servlet.jar;
>
> my servlet is located in
>
> D:\jsdk2.1\apps\jsdk21\webpages\WEB-INF\servlets> and i compile with
> javac HelloWorld2.java
>
> can you please tell me what i've done incorrectly
>
> thanks

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



FW: please help - setting classpath

2001-04-20 Thread Laban Thomas

>  -Original Message-
> From: Laban Thomas
> Sent: Friday, April 20, 2001 9:12 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  please help  -setting classpath
> Importance:   High
>
> hi there
>
> i've downloaded jsdk2.1 and also have the jdk1.3. when I caompile a
> servlet I get the "cannot resolve symbol error".
>
my jdk1.3 is in d:\jdk1.3

> I am running windows nt 4.0 and have set my classpath as follows
>
> d:\jdk1.3\lib\tools.jar;D:\jdk1.3\jsdk2.1\lib\servlet.jar;
>
> my servlet is located in
>
> D:\jsdk2.1\apps\jsdk21\webpages\WEB-INF\servlets> and i compile with
> javac HelloWorld2.java
>
> can you please tell me what i've done incorrectly
>
> thanks

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH struggles

2001-04-18 Thread Stephen Casey

now you need to update your servlet engine's CLASSPATH.




Bob Fyfe <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's 
Java  Servlet API
Technology." <[EMAIL PROTECTED]>


04/18/01 12:44 PM
Any replies will be addressed to: "A mailing list for discussion 
about Sun Microsystem's Java
Servlet API Technology."

 To:   [EMAIL PROTECTED]
     cc:
     Subject:   CLASSPATH struggles




I'm have a bit of a struggle with what I think is a CLASSPATH problem.

I want to put a class (x.java) into a package. It contains the
following package statement:

package a.b.c

I compile it in the following way on a unix (Solaris) box:

%javac -d $HOME/Packages

which creates x.class in $HOME/Packages/a/b/c

I modify my CLASSPATH variable to include $HOME/Packages and 'source'
it. Echoing it's value reveals that it is now including
$HOME/Packages.

Life is grand.

I want a servlet to have access to it and so in writing the servlet I
include the following import statement:

import a.b.c.x

I compile it and it compiles.

I move my servlet into a servlets directory and when I try to execute
it it blows up because it cannot find this 'x' class.

For the record,  it is running an apache server with jserv. I'd give
the particulars of those if it matters.

I give.


bob

--
*
*Bob Fyfe,  KG8FU,  NREMT-P "A King's Kid" John 1.12*
*
*Phone:(419) 372-2103   *
*Internet: [EMAIL PROTECTED]  *
*U.S.Post: c/o Information Technology Services  *
*   Rm.254 Hayes, BGSU  *
*   Bowling Green, OH 43403 *
*

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH struggles

2001-04-18 Thread Mark Galbreath

Do you have class x at $HOME/Packages/a/b/c/x?

Cheers!
Mark

- Original Message -
From: "Bob Fyfe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 4:44 PM
Subject: CLASSPATH struggles


> I'm have a bit of a struggle with what I think is a CLASSPATH
problem.
>
> I want to put a class (x.java) into a package. It contains the
> following package statement:
>
> package a.b.c
>
> I compile it in the following way on a unix (Solaris) box:
>
> %javac -d $HOME/Packages
>
> which creates x.class in $HOME/Packages/a/b/c
>
> I modify my CLASSPATH variable to include $HOME/Packages and
'source'
> it. Echoing it's value reveals that it is now including
> $HOME/Packages.
>
> Life is grand.
>
> I want a servlet to have access to it and so in writing the
servlet I
> include the following import statement:
>
> import a.b.c.x
>
> I compile it and it compiles.
>
> I move my servlet into a servlets directory and when I try to
execute
> it it blows up because it cannot find this 'x' class.
>
> For the record,  it is running an apache server with jserv. I'd
give
> the particulars of those if it matters.
>
> I give.
>
>
> bob
>
> --
>
*
> *Bob Fyfe,  KG8FU,  NREMT-P "A King's Kid" John 1.12
*
>
*
> *Phone:(419) 372-2103
*
> *Internet: [EMAIL PROTECTED]
*
> *U.S.Post: c/o Information Technology Services
*
> *   Rm.254 Hayes, BGSU
*
> *   Bowling Green, OH 43403
*
>
*
>
>
_
__
> To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



CLASSPATH struggles

2001-04-18 Thread Bob Fyfe

I'm have a bit of a struggle with what I think is a CLASSPATH problem.

I want to put a class (x.java) into a package. It contains the
following package statement:

package a.b.c

I compile it in the following way on a unix (Solaris) box:

%javac -d $HOME/Packages

which creates x.class in $HOME/Packages/a/b/c

I modify my CLASSPATH variable to include $HOME/Packages and 'source'
it. Echoing it's value reveals that it is now including
$HOME/Packages.

Life is grand.

I want a servlet to have access to it and so in writing the servlet I
include the following import statement:

import a.b.c.x

I compile it and it compiles.

I move my servlet into a servlets directory and when I try to execute
it it blows up because it cannot find this 'x' class.

For the record,  it is running an apache server with jserv. I'd give
the particulars of those if it matters.

I give.


bob

--
*
*Bob Fyfe,  KG8FU,  NREMT-P "A King's Kid" John 1.12*
*
*Phone:(419) 372-2103   *
*Internet: [EMAIL PROTECTED]  *
*U.S.Post: c/o Information Technology Services  *
*   Rm.254 Hayes, BGSU  *
*   Bowling Green, OH 43403 *
*

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Tomcat CLASSPATH access to servlet class files.

2001-03-28 Thread Milt Epstein

On Wed, 28 Mar 2001, Kieran Jones wrote:

> I've added the jar files containing all my servlet class files to
> Tomcat's classpath. When Tomcat starts up (in stand-alone mode)
> it displays the classpath in use and my jar files show up in it OK.
>
> My servlet's web.xml file is defining the servlet correctly as far as
> I can tell.
>
> However, attempts to then invoke the servlet with:
>
>   http://:/servlet/
>
> cause Tomcat to report a 404 - Not Found error, as if it's
> interpreting the URL as a simple webserver page request, rather
> than as a servlet invocation.
>
> Is Tomcat not finding my servlet code because I can't use the
> classpath/jar mechanism to tell it where to look? Do I need to
> explicitly populate a "classes" subdirectory within my servlet's
> WEB-INF directory with all my separate class files instead?

Looks like you're missing the context part of the URL, i.e., the
typical form is slightly different from what you have above, a la:

   http://://servlet/

I think it is possible to use a "default" context, but I don't know
the details on that.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Tomcat CLASSPATH access to servlet class files.

2001-03-28 Thread Kieran Jones

I've added the jar files containing all my servlet class files to
Tomcat's classpath. When Tomcat starts up (in stand-alone mode)
it displays the classpath in use and my jar files show up in it OK.

My servlet's web.xml file is defining the servlet correctly as far as
I can tell.

However, attempts to then invoke the servlet with:

  http://:/servlet/

cause Tomcat to report a 404 - Not Found error, as if it's
interpreting the URL as a simple webserver page request, rather
than as a servlet invocation.

Is Tomcat not finding my servlet code because I can't use the
classpath/jar mechanism to tell it where to look? Do I need to
explicitly populate a "classes" subdirectory within my servlet's
WEB-INF directory with all my separate class files instead?

Thanks,

Kieran Jones

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: how can I see my classpath in a servlet?

2001-02-20 Thread Vincent Stoessel

Thanks, it worked.

Kevin Mukhar wrote:

> Vincent Stoessel wrote:
>
>> is there a way to write a servlet that will display
>> the current classpath? because I am not believing
>> iplanet fasytrack right now.
>
>
> Properties p = System.getProperties();
> p.list(System.out); //you can change this to send the output to the
> client
> //see the javadoc for Properties
>
> On my JVM (Classic VM (build JDK-1.2.2_007, native threads, symcjit)
> this lists all the properties, including a property for java.class.path
> and sun.boot.class.path.
>
> KMukhar
>
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


--
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: how can I see my classpath in a servlet?

2001-02-20 Thread Kevin Mukhar

Vincent Stoessel wrote:
>
> is there a way to write a servlet that will display
> the current classpath? because I am not believing
> iplanet fasytrack right now.

Properties p = System.getProperties();
p.list(System.out); //you can change this to send the output to the
client
//see the javadoc for Properties

On my JVM (Classic VM (build JDK-1.2.2_007, native threads, symcjit)
this lists all the properties, including a property for java.class.path
and sun.boot.class.path.

KMukhar

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



how can I see my classpath in a servlet?

2001-02-20 Thread Vincent Stoessel

Hello,
I am having a very frustrating morning trying to get
iplanet to see my javamail classes (mail.jar)

is there a way to write a servlet that will display
the current classpath? because I am not believing
iplanet fasytrack right now.
Thanks.


--
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: classpath

2001-01-04 Thread Dan Mork

Daniel,

Remove the space in the classpath.
e.g. CLASSPATH=E:\jdk1.3\lib;e:\mysql

Regards,
Daniel Mork
[EMAIL PROTECTED]

-Original Message-
From: Daniel Lynn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 1:46 PM
To: [EMAIL PROTECTED]
Subject: classpath


OK, so, correc me if I'm wrong, but shouldn't

CLASSPATH=E:\jdk1.3\lib; e:\mysql

be a valid classpath? For some reason JSP wouldn't find any class in the
second path, but it did find the ones in e:\jdk1.3\lib

anyone have any ideas?

-Daniel

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



classpath

2001-01-04 Thread Daniel Lynn

OK, so, correc me if I'm wrong, but shouldn't

CLASSPATH=E:\jdk1.3\lib; e:\mysql

be a valid classpath? For some reason JSP wouldn't find any class in the
second path, but it did find the ones in e:\jdk1.3\lib

anyone have any ideas?

-Daniel

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH?

2000-11-15 Thread Abhay

If u specify the classpath as /usr/jakarta-tomcat/lib , compiler would
searchfir the class in Lib folder and ofcourse, he won't get the class. But
if u specify the jar file, the compiler will search for the class in the jar
file and not the folder.

Abhay

- Original Message -
From: William Yeo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 7:07 AM
Subject: CLASSPATH?


> Hi all,
> I would appreciate if someone could tell me the answer to my
question.
> Thank you.
>
> I try to compile my servlet but the complier complains that the
package
> javax.servlet   could not be found. My servlet.jar is at
> /usr/jakarta-tomcat/lib and I have included that in my $CLASSPATH. I try
to
> compile the program again, but this time I add
> /usr/jakarta-tomcat/lib/servlet.jar to my $CLASSPATH and it works fine.
Can
> anyone tell me why I have to do this? Why it works fine for other package
> like java.io when I just add /usr/jdk1.3/jre/lib to my $CLASSPATH but not
> for java.servlet?
>
> I am platform is Linux 7.0.
>
> Regards
> William
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH?

2000-11-15 Thread William Yeo

Hi Vikram,
Cheers!

Regards
William

-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Vikram
Gokhale
Sent: Wednesday, November 15, 2000 6:01 PM
To: [EMAIL PROTECTED]
Subject: Re: CLASSPATH?


Hi William,

The packages like java.io or java.lang etc. are
default java packages and are readily available for
java compiler. Thats why u need not include jars for
them. The packages like servler or ejb for instance
are java extensions and come in the form  of jar
files. The jar file itself should be the part of
classpath. The contents of jar file are treated as
package. If there are more than one jars in the folder
and if we just set classpath to folder name without
specifying jar file, there is no way for the compiler
to know which jar file has to be used.

Hope this helps...


Vikram
--- William Yeo <[EMAIL PROTECTED]> wrote:
> Hi all,
> I would appreciate if someone could tell me
> the answer to my question.
> Thank you.
>
> I try to compile my servlet but the complier
> complains that the package
> javax.servlet   could not be found. My servlet.jar
> is at
> /usr/jakarta-tomcat/lib and I have included that in
> my $CLASSPATH. I try to
> compile the program again, but this time I add
> /usr/jakarta-tomcat/lib/servlet.jar to my $CLASSPATH
> and it works fine. Can
> anyone tell me why I have to do this? Why it works
> fine for other package
> like java.io when I just add /usr/jdk1.3/jre/lib to
> my $CLASSPATH but not
> for java.servlet?
>
> I am platform is Linux 7.0.
>
> Regards
> William
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH?

2000-11-15 Thread Vikram Gokhale

Hi William,

The packages like java.io or java.lang etc. are
default java packages and are readily available for
java compiler. Thats why u need not include jars for
them. The packages like servler or ejb for instance
are java extensions and come in the form  of jar
files. The jar file itself should be the part of
classpath. The contents of jar file are treated as
package. If there are more than one jars in the folder
and if we just set classpath to folder name without
specifying jar file, there is no way for the compiler
to know which jar file has to be used.

Hope this helps...


Vikram
--- William Yeo <[EMAIL PROTECTED]> wrote:
> Hi all,
> I would appreciate if someone could tell me
> the answer to my question.
> Thank you.
>
> I try to compile my servlet but the complier
> complains that the package
> javax.servlet   could not be found. My servlet.jar
> is at
> /usr/jakarta-tomcat/lib and I have included that in
> my $CLASSPATH. I try to
> compile the program again, but this time I add
> /usr/jakarta-tomcat/lib/servlet.jar to my $CLASSPATH
> and it works fine. Can
> anyone tell me why I have to do this? Why it works
> fine for other package
> like java.io when I just add /usr/jdk1.3/jre/lib to
> my $CLASSPATH but not
> for java.servlet?
>
> I am platform is Linux 7.0.
>
> Regards
> William
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



CLASSPATH?

2000-11-14 Thread William Yeo

Hi all,
I would appreciate if someone could tell me the answer to my question.
Thank you.

I try to compile my servlet but the complier complains that the package
javax.servlet   could not be found. My servlet.jar is at
/usr/jakarta-tomcat/lib and I have included that in my $CLASSPATH. I try to
compile the program again, but this time I add
/usr/jakarta-tomcat/lib/servlet.jar to my $CLASSPATH and it works fine. Can
anyone tell me why I have to do this? Why it works fine for other package
like java.io when I just add /usr/jdk1.3/jre/lib to my $CLASSPATH but not
for java.servlet?

I am platform is Linux 7.0.

Regards
William

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



classpath for tomcat

2000-08-31 Thread Aaron Stromas

hi,

i'm using tomcat and can't figure out how to configure it to find the
jars that my webapp uses. in other words, my jsp imports some classes
from jars installed on the system. in server.html there is under the
 i specify docBase for the web application. do i need to copy
my jars into that directory or, perhaps, i can have more than one
docBase for a given context? tia,

--
Aaron Stromas| "Tick-tick-tick!!!... ja, Pantani is weg..."
Oracle Corp  | BRTN commentator
+1 703.708.68.21 |  L'Alpe d'Huez
1995 Tour de France

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: CLASSPATH

2000-08-30 Thread Brevsville Administrator

Benicio

You have to put the classes in your classpath. Depending on what operating
system you set this differently and for instance if you use apach jserv
you can also add it to your wrapper.classpath.

One thing I notice people often do is not to put the classes in the
correct directories. For instance say you have a class:

com.mypackage.myclass

you must put the classfiles in /com/mypackage/myclass.class
structure.

Also remember the JVM is case sensitive.

hth

Chris


On Wed, 30 Aug 2000 12:12:26 -0400, Benicio M. Sanchez wrote:

>Where do I have to put my classes to be able to import them from a servlet.
>
>I am having a problem where I am being able to compile my servlet but I get
>an "Internal Server Error" (error 500) at run time.
>
>Thanks in advance for any help you can provide
>
>Benicio Sanchez
>Carnegie Mellon University
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



CLASSPATH

2000-08-30 Thread Benicio M. Sanchez

Where do I have to put my classes to be able to import them from a servlet.

I am having a problem where I am being able to compile my servlet but I get
an "Internal Server Error" (error 500) at run time.

Thanks in advance for any help you can provide

Benicio Sanchez
Carnegie Mellon University

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Classpath issues - multiple web applications

2000-08-02 Thread Craig R. McClanahan

Amos Shapira wrote:

> [snip]
>The take-way I got from this is that the WEB-INF/classes of each web
>application is "private" to this application alone, which sounds
>reasonable to me.  Is this true?
>

Yes.

If your application classes live in JAR files, you can also put them (the JAR
files themselves) under WEB-INF/lib -- all the classes in all these JAR files
will also be made available to that web application privately -- same as the
unpacked classes under WEB-INF/classees.

>
> 2. The other problem we encountered yesterday is that we updated the
>.class files of one of the web applications (but not the other), and
>in the process changed a few method names.  This caused the un-updated
>web application to complain about missing methods.  Updating the JSP
>file to call the new method names from the classes directory of the
>updated web application fixed the problem.
>
> So now we are confused - are the WEB-INF/classes directories of each web
> application available to all web applications on the same servlet engine
> or not?  How can I manage separate versions of class files for each
> web application?
>

When the JSP page was compiled, it had the old method names in it.  Changing
the underlying classes does *not* cause the JSP page to be recompiled, so it
still referred to the old names.

The same thing can happen in general Java programming if you change and
recompile one class, but do not recompile some other class that depends on it.
That's why most build environments have the option to "recompile everything",
so you can detect such cases.

>
> Either way, how do others tuckle deployment of multiple web applications
> on a single servlet engine?  And what about use of JNI in servlets?
>
> Thanks,
>
> --Amos Shapira
> WebCollage
>

Craig McClanahan

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Classpath issues - multiple web applications

2000-08-02 Thread Amos Shapira

Hello,

(environment: Windows 2000 and Windows NT 4 sp 6 with Unify ServletExec 3.0
and Sun's JDK 1.2.2_5)

We are deplyoing two web applications which use the same code for their
"backend" (almost everything but the JSP and image files), but we want to
keep them as separate self-contained products.  So for that goal we put
each package's copy of all .class files under its own WEB-INF/classes
directory.

We encountered two problems which I'm not sure if they are related or not:

1. Both packages use a locally writen small LockFile class which uses
   Win32 calls through JNI to lock files.  When one of the applications
   loads this class (as a result of access to one of its JSP interfaces)
   then the other application is accessed, the second application would
   fail to load its own copy of LockFile complaining that "the other
   application" already loaded this DLL.

   So I figured it treats the already-loaded LockFile class as "not the
   same" because it was loaded from a "foreign" classpath component, but
   fails on the DLL which IS the same file.  We got around this
   by putting a single copy of LockFile in ServletExec's global "classes"
   directory.

   The take-way I got from this is that the WEB-INF/classes of each web
   application is "private" to this application alone, which sounds
   reasonable to me.  Is this true?

2. The other problem we encountered yesterday is that we updated the
   .class files of one of the web applications (but not the other), and
   in the process changed a few method names.  This caused the un-updated
   web application to complain about missing methods.  Updating the JSP
   file to call the new method names from the classes directory of the
   updated web application fixed the problem.

So now we are confused - are the WEB-INF/classes directories of each web
application available to all web applications on the same servlet engine
or not?  How can I manage separate versions of class files for each
web application?

Either way, how do others tuckle deployment of multiple web applications
on a single servlet engine?  And what about use of JNI in servlets?

Thanks,

--Amos Shapira
WebCollage

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: problem with path & classpath

2000-07-25 Thread Ade Permana

add servlet.jar to your CLASSPATH (..\jswdk-1.0.1\lib directory)

-Original Message-
From: jit som [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 3:44 PM
To: [EMAIL PROTECTED]
Subject: problem with path & classpath


I have installed JSWDK-1.0.1 & JDK-1.2 in my system,
when I'm trying to compile my servlet code getting
error like :
C:\jswdk-1.0.1\src>javac HelloWorld.java
HelloWorld.java:4: Package javax.servlet not found in
import.
import javax.servlet.*;
HelloWorld.java:5: Package javax.servlet.http not
found in import.
import javax.servlet.http.*;
HelloWorld.java:7: Superclass HttpServlet of class
HelloWorld not found.
public class HelloWorld extends HttpServlet
3 errors
Seems problem with path & classpath, can anyone helpme
to fix it?

Autoexec.bat:
@ECHO OFF
PATH=C:\DOS;C:\MSSQL7\BINN;C:\jdk1.2.2\BIN;C:\jdk1.2.2\LIB;C:\ORAWIN95\BIN
set CLASSPATH=C:\jdk1.2.2\LIB\tools.jar;
IF EXIST TOSCD001 LH C:\WINDOWS\COMMAND\MSCDEX.EXE
/D:TOSCD001

Where should I keep the  source code(HelloWorld.java)?
thanks in advance,
jit


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: problem with path & classpath

2000-07-25 Thread Chintan Thakker

The follwing files should also be in your classpath

JSWDK_HOME\lib\xml.jar
JSWDK_HOME\lib\jspengine.jar
JSWDK_HOME\lib\servlet.jar




jit som <[EMAIL PROTECTED]> on 07/25/2000 02:14:27 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
  Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Chintan Thakker/LTITLPUN)

Subject:  problem with path & classpath



I have installed JSWDK-1.0.1 & JDK-1.2 in my system,
when I?m trying to compile my servlet code getting
error like :
C:\jswdk-1.0.1\src>javac HelloWorld.java
HelloWorld.java:4: Package javax.servlet not found in
import.
import javax.servlet.*;
HelloWorld.java:5: Package javax.servlet.http not
found in import.
import javax.servlet.http.*;
HelloWorld.java:7: Superclass HttpServlet of class
HelloWorld not found.
public class HelloWorld extends HttpServlet
3 errors
Seems problem with path & classpath, can anyone helpme
to fix it?

Autoexec.bat:
@ECHO OFF
PATH=C:\DOS;C:\MSSQL7\BINN;C:\jdk1.2.2\BIN;C:\jdk1.2.2\LIB;C:\ORAWIN95\BIN
set CLASSPATH=C:\jdk1.2.2\LIB\tools.jar;
IF EXIST TOSCD001 LH C:\WINDOWS\COMMAND\MSCDEX.EXE
/D:TOSCD001

Where should I keep the  source code(HelloWorld.java)?
thanks in advance,
jit


__
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



problem with path & classpath

2000-07-25 Thread jit som

I have installed JSWDK-1.0.1 & JDK-1.2 in my system,
when I’m trying to compile my servlet code getting
error like :
C:\jswdk-1.0.1\src>javac HelloWorld.java
HelloWorld.java:4: Package javax.servlet not found in
import.
import javax.servlet.*;
HelloWorld.java:5: Package javax.servlet.http not
found in import.
import javax.servlet.http.*;
HelloWorld.java:7: Superclass HttpServlet of class
HelloWorld not found.
public class HelloWorld extends HttpServlet
3 errors
Seems problem with path & classpath, can anyone helpme
to fix it?

Autoexec.bat:
@ECHO OFF
PATH=C:\DOS;C:\MSSQL7\BINN;C:\jdk1.2.2\BIN;C:\jdk1.2.2\LIB;C:\ORAWIN95\BIN
set CLASSPATH=C:\jdk1.2.2\LIB\tools.jar;
IF EXIST TOSCD001 LH C:\WINDOWS\COMMAND\MSCDEX.EXE
/D:TOSCD001

Where should I keep the  source code(HelloWorld.java)?
thanks in advance,
jit


__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Setting Classpath using JRun

2000-06-28 Thread ajaikumar peddapanga

Hi siva!
That is so cool ...
Thankyou very very much .
Ajai



>From: Sivakumar Sankarasubramanian <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Setting Classpath using JRun
>Date: Mon, 26 Jun 2000 15:40:56 -0700
>
>Check the file
>
>/jrun/jsm-default/properties/jsm.properties
>
>there wil be a property called as java.classpath.
>
>Include jar files or the path where the class files resides.
>You may have to restart the Jrun for the changes to take effect
>
>Regards
>
>-ss
>
>
>
>-Original Message-
>From: ajaikumar peddapanga [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 26, 2000 3:04 PM
>To: [EMAIL PROTECTED]
>Subject: Setting Classpath using JRun
>
>
>Can anyone tell me how to set the classpath to the classes that my servlet
>uses ,using JRun ...
>Thanx in advance
>
>
>
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


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

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Setting Classpath using JRun

2000-06-26 Thread Sivakumar Sankarasubramanian

Check the file

/jrun/jsm-default/properties/jsm.properties

there wil be a property called as java.classpath.

Include jar files or the path where the class files resides.
You may have to restart the Jrun for the changes to take effect

Regards

-ss



-Original Message-
From: ajaikumar peddapanga [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 26, 2000 3:04 PM
To: [EMAIL PROTECTED]
Subject: Setting Classpath using JRun


Can anyone tell me how to set the classpath to the classes that my servlet
uses ,using JRun ...
Thanx in advance



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

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Setting Classpath using JRun

2000-06-26 Thread ajaikumar peddapanga

Can anyone tell me how to set the classpath to the classes that my servlet
uses ,using JRun ...
Thanx in advance



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

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: classpath settings

2000-06-15 Thread john

www.omnicore.com
try their IDE called codeguide
It will make the classpath more understandable

-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Chen
Li Wen
Sent: Thursday, June 15, 2000 1:53 AM
To: [EMAIL PROTECTED]
Subject: classpath settings


A little off-topic, but I met it when developing servlets:).

When I was compiling my servlet files after reinstalling my windows nt
server
4.0 system, I encountered the following problem: it cannot find the jar
files
specified in classpath if the file name is uppercases. After I changing all
the
files in my classpath to lowercase, it works. But I remember uppercase also
works before.

Any comments?

Thanks!

Regards
Liwen

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Antwort: classpath settings

2000-06-15 Thread Chen Li Wen

I am sure I installed the same softwares as before...
I installed service pack 4 and option pack 4

liwen

- Original Message -
From: SUBSCRIBE SERVLET-INTEREST Anonymous <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 15, 2000 5:30 PM
Subject: Antwort: classpath settings


> Did you install all the service packs as well?
>
>
>
>
>
> Chen Li Wen <[EMAIL PROTECTED]>
> Gesendet von: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
> 15.06.00 10:52
> Bitte antworten an "A mailing list for discussion about Sun Microsystem's
> Java Servlet API Technology."
>
>
> An: [EMAIL PROTECTED]
> Kopie:
> Thema:  classpath settings
>
> A little off-topic, but I met it when developing servlets:).
>
> When I was compiling my servlet files after reinstalling my windows nt
> server
> 4.0 system, I encountered the following problem: it cannot find the jar
> files
> specified in classpath if the file name is uppercases. After I changing
> all
> the
> files in my classpath to lowercase, it works. But I remember uppercase
> also
> works before.
>
> Any comments?
>
> Thanks!
>
> Regards
> Liwen
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Antwort: classpath settings

2000-06-15 Thread SUBSCRIBE SERVLET-INTEREST Anonymous

Did you install all the service packs as well?





Chen Li Wen <[EMAIL PROTECTED]>
Gesendet von: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
15.06.00 10:52
Bitte antworten an "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology."


An: [EMAIL PROTECTED]
Kopie:
Thema:  classpath settings

A little off-topic, but I met it when developing servlets:).

When I was compiling my servlet files after reinstalling my windows nt
server
4.0 system, I encountered the following problem: it cannot find the jar
files
specified in classpath if the file name is uppercases. After I changing
all
the
files in my classpath to lowercase, it works. But I remember uppercase
also
works before.

Any comments?

Thanks!

Regards
Liwen

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



classpath settings

2000-06-15 Thread Chen Li Wen

A little off-topic, but I met it when developing servlets:).

When I was compiling my servlet files after reinstalling my windows nt
server
4.0 system, I encountered the following problem: it cannot find the jar
files
specified in classpath if the file name is uppercases. After I changing all
the
files in my classpath to lowercase, it works. But I remember uppercase also
works before.

Any comments?

Thanks!

Regards
Liwen

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



classpath problem?

2000-05-15 Thread Arun Sivashankaran

Hi-

I have a servlet, which calls a function in another class that I wrote (for XML
parsing).  The function uses classes found in a file, xerces.jar, that I placed
in the /WEB-INF/lib folder.  Everything compiles fine, but when I go to run the
servlet, I get a Class not found error (one of the classes from the xerces.jar
file).

java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser

Doesn't the container automatically include the lib folder in the classpath
when executing?  Or is there something else that I am forgetting to do.

Thanks a lot in advance.

Arun

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: ClassPath Help

2000-05-08 Thread Nic Ferrier

>>> JOSE ADRIANO BALTIERI <[EMAIL PROTECTED]> 08-May-00
4:12:02 PM >>>
>Hello List

Hello!

> Sorry to bother the list with such a simple question like that
but,

> And, I have WSJava.zip, wich I suppose contains WebSite.Servlet.*,
>how am I supposed to set classpath in order to avoid this
compilation
>error :

Winodws:
classpath=servlet.jar;WSJava.zip;...

Unix:
classpath=servlet.jar:WSJava.zip:...


where ... is any other directories or jar files you need to include.



Nic Ferrier

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: ClassPath Help

2000-05-08 Thread Bo Xu

Hi JOSE,

I think the "CLASSPATH" is like the following:
CLASSPATH=c:\\WSJava.zip;...

and you need to "package" all the classes in "Package WebSite.Servlet" into
WSJava.zip.


Bo
May 09,2000



JOSE ADRIANO BALTIERI wrote:

> Hello List
>
>  Sorry to bother the list with such a simple question like that but,
>
>  If I have c:\classes\servlet.java, which :
>
>   import java.util.Date;
>   import java.util.Enumeration;
>   import java.io.IOException;
>   import java.text.SimpleDateFormat;
>   import WebSite.Servlet.*;
>
>  And, I have WSJava.zip, wich I suppose contains WebSite.Servlet.*,
> how am I supposed to set classpath in order to avoid this compilation error :
>
> servlet.java:6: Package WebSite.Servlet not found in import.
> import WebSite.Servlet.*;
>
>  ThanXs !
>
> Obrigado/Thanks a lot,
>
> Jose Adriano Baltieri
> Analista de Sistemas
> CPD - CENTRO
> UNIMEP - Universidade Metodista de Piracicaba
> PIRACICABA - SP - BRASIL
> Fone : 055 0 XX 19 430-1858 (english spoken)
> Fax  : 055 0 XX 19 430-1898 (cx postal 42778)
>
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



ClassPath Help

2000-05-08 Thread JOSE ADRIANO BALTIERI

Hello List

 Sorry to bother the list with such a simple question like that but,

 If I have c:\classes\servlet.java, which :

  import java.util.Date;
  import java.util.Enumeration;
  import java.io.IOException;
  import java.text.SimpleDateFormat;
  import WebSite.Servlet.*;

 And, I have WSJava.zip, wich I suppose contains WebSite.Servlet.*,
how am I supposed to set classpath in order to avoid this compilation error :

servlet.java:6: Package WebSite.Servlet not found in import.
import WebSite.Servlet.*;

 ThanXs !




Obrigado/Thanks a lot,

Jose Adriano Baltieri
Analista de Sistemas
CPD - CENTRO
UNIMEP - Universidade Metodista de Piracicaba
PIRACICABA - SP - BRASIL
Fone : 055 0 XX 19 430-1858 (english spoken)
Fax  : 055 0 XX 19 430-1898 (cx postal 42778)

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Classpath?

2000-05-01 Thread Eric Noriega

I never mind a simple question, as long as it's been considered
beforehand (besides, you've got a somewhat pertenant subject, so you're
ahead of the game.)

You should double check that the system has a servlet container
installed (Suns JSDK, JSWDK, or some other vendors.)  These are _not_ part
of the Java Standard Edition, so java would work, but not servlets
specifically.  Also, the name servlet.jar changed to JSDK.jar (or vice
versa, I don't recall) at one point.  On Unix (given the fwd slash, I
assume) try running a "find /usr ~ \( -name \*.jar -o -name \*.zip \)" to
see what libraries are there.

On Fri, 28 Apr 2000, Nagamani Nutulapati wrote:

> Hi
>
> I'm sorry for posting a basic question in this advanced forum.
>
> I've installed JavaWebServer on my system and the class path is set to its
> lib/servlet.jar, which is working fine. When I use a similar class path in
> another system, the error message saying javax not found in import is
> displayed. What could be the reason??
>
> Thanks,
> Mani
>

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Classpath?

2000-04-28 Thread Nagi Reddy Vuyyuru

Hi Nagamani,

Probably in other system u have not installed JSDK.
Thats why it is showing the error like Javax not found
in import. U need to install JSDK on that system and
try again. If not let me know about it..

Nagi


--- Nagamani Nutulapati
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm sorry for posting a basic question in this
> advanced forum.
>
> I've installed JavaWebServer on my system and the
> class path is set to its
> lib/servlet.jar, which is working fine. When I use a
> similar class path in
> another system, the error message saying javax not
> found in import is
> displayed. What could be the reason??
>
> Thanks,
> Mani
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

__
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Classpath?

2000-04-28 Thread Nagamani Nutulapati

Hi

I'm sorry for posting a basic question in this advanced forum.

I've installed JavaWebServer on my system and the class path is set to its
lib/servlet.jar, which is working fine. When I use a similar class path in
another system, the error message saying javax not found in import is
displayed. What could be the reason??

Thanks,
Mani

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



SV: JWS2.0 + Oracle8i(8.1.5) CLASSPATH PROBLEMS?

2000-04-22 Thread dan



Problem solved! Sorry to have disturbed you about 
this...
-dan
PS The solution?:
I unzipped the .zip-files in 
\JavaWebServer2.0\classes 
so the conclusion seems to be JWS takes .jar-files (in 
..\lib)
and unzipped files in classes

  - Original Message - 
  From: 
  dan 
  To: [EMAIL PROTECTED] 
  Sent: Saturday, April 22, 2000 12:06 
  PM
  Subject: JWS2.0 + Oracle8i(8.1.5) 
  CLASSPATH PROBLEMS?
  
  According to the JWS2.0Doc .zip files for classes shall be 
  placed in \JavaWebServer2.0\classes (I run NT4).
  So I have placed classes111.zip and classes12.zip from 
  Oracle in the classes folder...
   
  For compilation I use JBuilder3.5 (java2) and have added 
  classpaths all necessary extra .class files in the .jar form 
  to
  \JavaWebServer2.0\lib (according to the 
  JWS2.0Doc) and .class files in the .zip form to
  \JavaWebServer2.0\classes.
  Compilation == no problems (except for my own programming 
  errors...) 
  But running a servlet with an Oracle8i-connection == 
  problems, I get:
   
  Unable to find class 
  oracle.jdbc.driver.OracleDriver
   
  Any help would be very much appreciated. 
  -dan
  PS Both classes111.zip and classes12.zip contain 
  oracle\jdbc\driver\OracleDriver.class 
  ===Dan Östberg (Oestberg)www.familydream.comwww.elvberg.comwww.swesuzuki.org==


JWS2.0 + Oracle8i(8.1.5) CLASSPATH PROBLEMS?

2000-04-22 Thread dan



According to the JWS2.0Doc .zip files for classes shall be 
placed in \JavaWebServer2.0\classes (I run NT4).
So I have placed classes111.zip and classes12.zip from Oracle 
in the classes folder...
 
For compilation I use JBuilder3.5 (java2) and have added 
classpaths all necessary extra .class files in the .jar form 
to
\JavaWebServer2.0\lib (according to the JWS2.0Doc) 
and .class files in the .zip form to
\JavaWebServer2.0\classes.
Compilation == no problems (except for my own programming 
errors...) 
But running a servlet with an Oracle8i-connection == problems, 
I get:
 
Unable to find class 
oracle.jdbc.driver.OracleDriver
 
Any help would be very much appreciated. 
-dan
PS Both classes111.zip and classes12.zip contain 
oracle\jdbc\driver\OracleDriver.class 
===Dan Östberg (Oestberg)www.familydream.comwww.elvberg.comwww.swesuzuki.org==


Re: CLASSPATH

2000-03-27 Thread Sudipto Paul (CTS)



Classpath means the absolute path in terms of directory 
where you have your class files, also javac compiler requires this to compile 
your Java program.
 
Regards,
Sudipto

  -Original Message-From: lena 
  [mailto:[EMAIL PROTECTED]]Sent: Sunday, March 26, 2000 12:21 
  AMTo: [EMAIL PROTECTED]Subject: 
  
  Who can tell me what's mean of CLASSPATH?
  How  i set it on NT4?
   
     Thanks
     
  lena


  1   2   >