[ANN][Solaris] Availability of blastwave tomcat packages

2005-09-22 Thread william
Dear all,

To whom this may help...

Tomcat 4.1.31 and 5.5.9 have been packaged for solaris by BlastWave and are
available to people who use the BlastWave packages.

You can report any problem to http://www.blastwave.org/bugtrack/

Kind regards,

-- 
William Bonnet

SunWizard - Le site francais dédié aux amateurs de stations Unix
http://www.sunwizard.net

Community SoftWare for Solaris
http://www.blastwave.org

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



mandatory packages for beans in Tomcat 5.0?

2004-10-14 Thread Jonathan Wilson
I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3.
I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes 
directory(windows perms all good). If I put the bean into a package and 
create the proper subdirectory under WEB-INF/classes/ it sees the bean. 
I don't have to use a package in TC3.3.1 - is this something new or ???

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


RE: mandatory packages for beans in Tomcat 5.0?

2004-10-14 Thread Shapira, Yoav

Hola,
http://jakarta.apache.org/tomcat/faq/classnotfound.html

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Jonathan Wilson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 4:27 PM
To: Tomcat Users List
Subject: mandatory packages for beans in Tomcat 5.0?

I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3.
I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes
directory(windows perms all good). If I put the bean into a package and
create the proper subdirectory under WEB-INF/classes/ it sees the bean.
I don't have to use a package in TC3.3.1 - is this something new or ???

Thanks,
JW

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




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


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



Re: mandatory packages for beans in Tomcat 5.0?

2004-10-14 Thread Larry Meadors
Yes, this was added in tomcat 4.x, and is required.

 [EMAIL PROTECTED] 10/14/04 2:27 PM 
I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3.
I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes 
directory(windows perms all good). If I put the bean into a package and 
create the proper subdirectory under WEB-INF/classes/ it sees the bean. 
I don't have to use a package in TC3.3.1 - is this something new or ???


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



Re: mandatory packages for beans in Tomcat 5.0?

2004-10-14 Thread Jonathan Wilson
Thanks to Larry and Yoav.
I'm sorry that I didn't search hard enough(TC FAQ. duh!) and asked such 
a simple question. :)

--JW
Shapira, Yoav wrote:
Hola,
http://jakarta.apache.org/tomcat/faq/classnotfound.html
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Jonathan Wilson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 4:27 PM
To: Tomcat Users List
Subject: mandatory packages for beans in Tomcat 5.0?
I'm evaluating TC 5.0 on Windows XP, coming from TC 3.3.1 on RH7.3.
I can't get TC 5.0 to recognize any beans I put in the WEB-INF/classes
directory(windows perms all good). If I put the bean into a package and
create the proper subdirectory under WEB-INF/classes/ it sees the bean.
I don't have to use a package in TC3.3.1 - is this something new or ???
Thanks,
  JW
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



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



RE: Tomcat 5.0.24 can't see third party packages?!

2004-06-03 Thread Nadia Kunkov
val = new ParameterFieldDiscreteValue();
// set report end date value
if (rptMonth == null) {
val.setValue(null);
} else {
val.setValue(rptMonth.getTime());
}
// get report end date parameter
field_old = (ParameterField)param_collection.getField(1);
// clone a parameter field
field_new = (ParameterField)field_old.clone(true);
// add a current value
field_new.getCurrentValues().add(val);
// replace old parameter with new one

rptDoc.getDataDefController().getParameterFieldController().modify(field_old, 
field_new);

// save the exported pdf file to the file asset
faName.setFileName(pdfName);
faName.setContentType(application/pdf);
InputStream istr = 
rptDoc.getPrintOutputController().export(ReportExportFormat.PDF);
faName.setLength(istr.available());
faName.setData(istr);
success = faName.update(theUser);
if (!success) {
message += Failed to update file asset.  + 
Data.makeJSAlert(faName.getExceptionString());
}

}
catch (Exception e) {
message += Failed on opening and creating report.  + 
Data.makeJSAlert(e.toString());
success = false;
}
} // end if report name
} else {  // end CR creation
message += No asset ID to run.;
success = false;
}
} else {
message += User does not have update access.;
success = false;
}

ras = null;

if (success) {
response.sendRedirect(containerAssetDualList.jsp?fpContainerID= + fpContainerID);
return;
}

%
html 
head
titleCTCMS - Run Report/title

link href=css/sitestyle.css rel=stylesheet type=text/css
/head
body
p class=header2Run Report/p
p
% if (listing.length()  0 ) { %
FORM METHOD=post NAME=frmAction
INPUT TYPE=hidden NAME=fpContainerID 
VALUE=%=request.getParameter(fpContainerID)%
INPUT TYPE=hidden NAME=fpAssetID VALUE=%=request.getParameter(fpAssetID)%
INPUT TYPE=hidden NAME=fpReturnTo VALUE=fileEdit.jsp
table
tr
td colspan=1nbsp;/td
/tr
%=listing.toString()%
tr
td colspan=1nbsp;/td
/tr
/TABLE
/FORM
% } else { %
p class=errorlabelError: %=message%/p
% } %
/p

/body
/html

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 12:58 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.0.24 can't see third party packages?!



Hi,
Can you post your JSP?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 12:02 PM
To: Tomcat help (E-mail)
Subject: Tomcat 5.0.24 can't see third party packages?!

I have posted this before and got some pointers but still it didn't
help.
I narrowed the problem down and it is reflected in the new subject.
I run Tomcat5.0.24 on Fedora Core 1.  I have a jsp site that works
without
a problem on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora
and
Tomcat 5.0.24 I get the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp
.jav
a:15: package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing
com.crystaldecisions.sdk.occa.report.*
in  /var/tomcat5/webapps/WebTest/WEB-INF/lib
I have all other jsp working all of them reference packages that are
defined locally.
com.crystaldecisions.sdk.occa.report.*  is a third party package and
that
is what kills my app. I have seen a posting with the same exact
question
but there were no responses.

I would appreciate any help.
Thanks in advance
N.K.

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




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


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

Re: Tomcat 5.0.24 can't see third party packages?!

2004-06-03 Thread QM
On Thu, Jun 03, 2004 at 09:10:48AM -0400, Nadia Kunkov wrote:
: Here it is.  It breaks on the import statment in Tomcat 5.0.24 and Fedora but
: runs fine in Tomcat 4 and Red Hat.  Same exact setup.

I have a wild guess, so take that for what it's worth -- assuming the
files and dir structures are the same between the two machines, what
happens if you:

1/  rearrange or split the import list?

2/  remove the offending line?  (i.e. are there classes in the
occa.report package, or does it just have other
subpackages?)

-QM


-- 

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


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



Tomcat 5.0.24 can't see third party packages?!

2004-06-02 Thread Nadia Kunkov
I have posted this before and got some pointers but still it didn't help.  I narrowed 
the problem down and it is reflected in the new subject.
I run Tomcat5.0.24 on Fedora Core 1.  I have a jsp site that works without a problem 
on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora and Tomcat 5.0.24 I get 
the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp.java:15: 
package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in  
/var/tomcat5/webapps/WebTest/WEB-INF/lib 
I have all other jsp working all of them reference packages that are defined locally. 
com.crystaldecisions.sdk.occa.report.*  is a third party package and that is what 
kills my app. I have seen a posting with the same exact question but there were no 
responses.

I would appreciate any help.
Thanks in advance
N.K.

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



Tomcat 5.0.24 can't see third party packages!

2004-06-02 Thread Nadia Kunkov
I have posted this before and got some pointers but still it didn't help.  I narrowed 
the problem down and it is reflected in the new subject.
I run Tomcat5.0.24 on Fedora Core 1.  I have a jsp site that works without a problem 
on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora and Tomcat 5.0.24 I get 
the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp.java:15: 
package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in  
/var/tomcat5/webapps/WebTest/WEB-INF/lib 
I have all other jsp working all of them reference packages that are defined locally. 
com.crystaldecisions.sdk.occa.report.*  is a third party package and that is what 
kills my app. I have seen a posting with the same exact question but there were no 
responses.

I would appreciate any help.
Thanks in advance
N.K.


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



RE: Tomcat 5.0.24 can't see third party packages!

2004-06-02 Thread Benjamin Armintor
What happens if you deploy this app as a WAR file? If that works, it
probably indicates that your jar files are misplaced.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 02, 2004 9:33 AM
To: Tomcat help (E-mail)
Subject: Tomcat 5.0.24 can't see third party packages! 


I have posted this before and got some pointers but still it didn't
help.  I narrowed the problem down and it is reflected in the new
subject. I run Tomcat5.0.24 on Fedora Core 1.  I have a jsp site that
works without a problem on a Red Hat 9 box with Tomcat 4, but when I ran
it on Fedora and Tomcat 5.0.24 I get the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp.
java:15: package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing
com.crystaldecisions.sdk.occa.report.* in
/var/tomcat5/webapps/WebTest/WEB-INF/lib 
I have all other jsp working all of them reference packages that are
defined locally. 
com.crystaldecisions.sdk.occa.report.*  is a third party package and
that is what kills my app. I have seen a posting with the same exact
question but there were no responses.

I would appreciate any help.
Thanks in advance
N.K.


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


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



RE: Tomcat 5.0.24 can't see third party packages?!

2004-06-02 Thread Shapira, Yoav

Hi,
Can you post your JSP?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 12:02 PM
To: Tomcat help (E-mail)
Subject: Tomcat 5.0.24 can't see third party packages?!

I have posted this before and got some pointers but still it didn't
help.
I narrowed the problem down and it is reflected in the new subject.
I run Tomcat5.0.24 on Fedora Core 1.  I have a jsp site that works
without
a problem on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora
and
Tomcat 5.0.24 I get the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp
.jav
a:15: package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing
com.crystaldecisions.sdk.occa.report.*
in  /var/tomcat5/webapps/WebTest/WEB-INF/lib
I have all other jsp working all of them reference packages that are
defined locally.
com.crystaldecisions.sdk.occa.report.*  is a third party package and
that
is what kills my app. I have seen a posting with the same exact
question
but there were no responses.

I would appreciate any help.
Thanks in advance
N.K.

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




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


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



Where I can find the apache 2.0.x and tomcat 4.1.2x debian packages ?

2004-03-25 Thread Salvador Santander Gutiérrez
Where I can find the apache 2.0.x and tomcat 4.1.2x debian packages ?
Thanks.


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



RE: tomcat won't read classes unless in explicit packages

2003-09-22 Thread Shapira, Yoav

http://tomcatfaq.sourceforge.net/classnotfound.html


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Luke Vanderfluit [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 11:47 PM
To: Tomcat Users List
Subject: tomcat won't read classes unless in explicit packages

Hi,

Does anyone have a solution or workaround for the following problem.

I'm running an application under /tomcat/webapps. The application
consists of a number of JSPs, servlets and bean classes,

The package structure looks like this

/tomcat/tutorialbeans
  |
 ---
 | |
  WEB-INF JSPs(.jsp files)
 |
   
   |   |
web.xml(file)   classes(dir)
   |
  tutorialbeans
   |
  tb(dir)
   |
 
||
  classes(src and class files)   tbbeans(dir)
 |
 -
 |   |
  classes(files)tb2(dir)
 |

classes(files)



Initially with tomcat 4.0 it was possible to have all the class
files(servlets and beans) in one directory, namely WEB-INF/classes,
however trying to run the exact same application with tomcat 4.1.x
results in compilation errors.
It seems 4.1.x needs explicitly stipulated packages in order to work.

I've had to devise the above package structure to get the application
to
run under 4.1.x

QUESTION:
Is there any workaround or other way to get tomcat 4.1.xx to run the
application with all classes in one directory, be it the default
package
or explicitly specified?

I've read about this problem, but not to the extent that a solution or
workaround or has been presented.

Any input is appreciated,
kind regards,
Luke

--

when my computer smiles, I'm happy
===.~ ~,
Luke Vanderfluit   |'/']
Mobile: 0421 276 282\~/`


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




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


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



Re: tomcat won't read classes unless in explicit packages

2003-09-22 Thread Paul
for what it is worth:

i may not understand problem statement correctly, but if the problem is
having all classes in one directly, why not place them all in same package;
or possibly jar them alltogether and place in /commons directory.???

-paul lomack

- Original Message - 
From: Luke Vanderfluit [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 11:47 PM
Subject: tomcat won't read classes unless in explicit packages


 Hi,

 Does anyone have a solution or workaround for the following problem.

 I'm running an application under /tomcat/webapps. The application
 consists of a number of JSPs, servlets and bean classes,

 The package structure looks like this

 /tomcat/tutorialbeans
   |
  ---
  | |
   WEB-INF JSPs(.jsp files)
  |

|   |
 web.xml(file)   classes(dir)
|
   tutorialbeans
|
   tb(dir)
|
   
 ||
   classes(src and class files)   tbbeans(dir)
  |
  -
  |   |
   classes(files)tb2(dir)
  |
   classes(files)



 Initially with tomcat 4.0 it was possible to have all the class
 files(servlets and beans) in one directory, namely WEB-INF/classes,
 however trying to run the exact same application with tomcat 4.1.x
 results in compilation errors.
 It seems 4.1.x needs explicitly stipulated packages in order to work.

 I've had to devise the above package structure to get the application to
 run under 4.1.x

 QUESTION:
 Is there any workaround or other way to get tomcat 4.1.xx to run the
 application with all classes in one directory, be it the default package
 or explicitly specified?

 I've read about this problem, but not to the extent that a solution or
 workaround or has been presented.

 Any input is appreciated,
 kind regards,
 Luke

 -- 
 
 when my computer smiles, I'm happy
 ===.~ ~,
 Luke Vanderfluit   |'/']
 Mobile: 0421 276 282\~/`


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





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



tomcat won't read classes unless in explicit packages

2003-09-21 Thread Luke Vanderfluit
Hi,

Does anyone have a solution or workaround for the following problem.

I'm running an application under /tomcat/webapps. The application
consists of a number of JSPs, servlets and bean classes,

The package structure looks like this

/tomcat/tutorialbeans
  |
 ---
 | |
  WEB-INF JSPs(.jsp files)
 |
   
   |   |
web.xml(file)   classes(dir)
   |
  tutorialbeans
   |
  tb(dir)
   |
    
||
  classes(src and class files)   tbbeans(dir)
 | 
 -
 |   |
  classes(files)tb2(dir)
 |
  classes(files)



Initially with tomcat 4.0 it was possible to have all the class
files(servlets and beans) in one directory, namely WEB-INF/classes,
however trying to run the exact same application with tomcat 4.1.x
results in compilation errors.
It seems 4.1.x needs explicitly stipulated packages in order to work.

I've had to devise the above package structure to get the application to
run under 4.1.x

QUESTION:
Is there any workaround or other way to get tomcat 4.1.xx to run the
application with all classes in one directory, be it the default package
or explicitly specified?

I've read about this problem, but not to the extent that a solution or
workaround or has been presented.

Any input is appreciated,
kind regards,
Luke

-- 

when my computer smiles, I'm happy
===.~ ~,
Luke Vanderfluit   |'/']
Mobile: 0421 276 282\~/`


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



Re: advise on updating some commons packages

2003-07-16 Thread Kevin HaleBoyes

--- Tim Funk [EMAIL PROTECTED] wrote:
 Yes thats ok.
 
 You don't need to be wary as long as you Test test test
 
 -Tim
 

Thanks Tim.
I will indeed test.  I've got it all setup on my development
machine and won't be committing for some time.
Kevin.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



advise on updating some commons packages

2003-07-15 Thread Kevin HaleBoyes
I'm using Tomcat 4.1.24 and Struts in my web application.
I've just migrated to the final release of Struts and have run
into a few problems.

As many of you are aware, Struts removed commons-pool and
commons-dbcp from their distribution.  As it turns out, the releases
that they had provided in the RC (and beta) releases were newer than
those shipped with Tomcat 4.1.24.  In particular, many of the
delegate classes supported the getDelegate() method in the newer
releases.  I was using those in my application as I needed to operate
on the underlying ResultSet (Oracle).

Now that commons-pool and commons-dbcp are not provided my
application uses those provided with Tomcat but as I mentioned above
getDelegate() isn't available.

To fix it,
I've checked out commons from cvs and rebuilt the commons-collection,
commons-pool, and commons-dbcp packages and dropped them into
CATALINA_HOME/common/lib replacing the packages that shipped with
Tomcat.

My questions are:
Is this OK?
What are the issues that I should be aware of?

Thanks for your help
Kevin.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: advise on updating some commons packages

2003-07-15 Thread Tim Funk
Yes thats ok.

You don't need to be wary as long as you Test test test

-Tim

Kevin HaleBoyes wrote:
To fix it,
I've checked out commons from cvs and rebuilt the commons-collection,
commons-pool, and commons-dbcp packages and dropped them into
CATALINA_HOME/common/lib replacing the packages that shipped with
Tomcat.
My questions are:
Is this OK?
What are the issues that I should be aware of?
Thanks for your help
Kevin.


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


RE: packages

2003-01-20 Thread Shapira, Yoav
Hi,
1. RTFM.
2. This is not a tomcat question.  Include [OFF-TOPIC] in the subject.
3. http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
has the answer you're looking for.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 19, 2003 11:49 PM
To: Tomcat Users List
Subject: packages

hey

can anyone tell me wwhat is the standard package in
java
and which package wich we don't have to explictly
mention and what are the conditions we have to mention
them..

regards


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

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


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




RE: packages

2003-01-20 Thread Ghershony, Arie
Are you familiar with WebServices deployment?

thanks
Arie

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 8:50 AM
To: Tomcat Users List
Subject: RE: packages


Hi,
1. RTFM.
2. This is not a tomcat question.  Include [OFF-TOPIC] in the subject.
3. http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
has the answer you're looking for.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 19, 2003 11:49 PM
To: Tomcat Users List
Subject: packages

hey

can anyone tell me wwhat is the standard package in
java
and which package wich we don't have to explictly
mention and what are the conditions we have to mention
them..

regards


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

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


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

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




packages

2003-01-19 Thread puneet sachar
hey

can anyone tell me wwhat is the standard package in
java
and which package wich we don't have to explictly
mention and what are the conditions we have to mention
them..

regards


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

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




Re: Debian packages

2003-01-12 Thread Charles Baker

--- Reynir_Hübner [EMAIL PROTECTED] wrote:
 Has anyone created debian packages of tomcat 4.1.x ?
 Please inform me of where to find these if there are
 any available (I've only found some unstable
 packages). 
 
 Thanx
 [EMAIL PROTECTED]

That is one of the reasons I upgraded my machine to
unstable. I've had few problems so far, and none
related to tomcat and java. Of course the machine in
question is not a mission critical server. YMMV.

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
If you cannot in the long run tell everyone what you have been doing,
your doing was worthless. -- Edwim Schrodinger

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

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




RE: Debian packages

2003-01-12 Thread Reynir Hübner
Ok...Thanx for your comment...

-reynir


 -Original Message-
 From: Charles Baker [mailto:[EMAIL PROTECTED]] 
 Sent: 12. janúar 2003 15:05
 To: Tomcat Users List
 Subject: Re: Debian packages
 
 
 
 --- Reynir_Hübner [EMAIL PROTECTED] wrote:
  Has anyone created debian packages of tomcat 4.1.x ?
  Please inform me of where to find these if there are
  any available (I've only found some unstable
  packages).
  
  Thanx
  [EMAIL PROTECTED]
 
 That is one of the reasons I upgraded my machine to
 unstable. I've had few problems so far, and none
 related to tomcat and java. Of course the machine in
 question is not a mission critical server. YMMV.
 
 =
 [EMAIL PROTECTED]
 http://www.charleshbaker.com/~chb/
 If you cannot in the long run tell everyone what you have 
 been doing, your doing was worthless. -- Edwim Schrodinger
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now. 
http://mailplus.yahoo.com

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


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




Tomcat configuration? Unable to find packages or classes

2003-01-02 Thread Bowsher, Jason P
Hello, I am having trouble getting Tomcat to find my class and jar files
when compiling custom jsp pages (Tomcat examples work fine).  Having spent a
week or so looking at this I am hoping someone can help or point me in the
right direction.  I get the following error from
http://me.mydomain.com:8080/MyPage.jsp

java:50: cannot resolve symbol 
symbol : class MyClass location: class org.apache.jsp.MyPage_jsp 
MyClass adb = new MyClass(); 

Regards Jason

Setup:  
Redhat 7.1, Apache 1.3.27,  Tomcat 4.1.18, sdk 1.4.1_01, sdkee 1.3.1
___
Config:
I have the following virtual host defined in my server.xml:
Host name=me.mydomain.com appBase=~myhome/webdev/ debug=0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger directory=logs
prefix=me. suffix=.log timestamp=true/
Context path= docBase=ROOT debug=0 reloadable=true/
/Host
___
App:
I have the following jsp in ~myhome/webdev/ROOT with MyClass.class placed in
WEB_INF/classes (also tried with ajar in WEB_INF/lib and the class and jar
in variuos potential classpath and tomcat common directories);
%@ page language=java import =java.util.Vector%
!-- also tried with MyClass, MyClass.* in import statement --
htmlheadtitleMyPage.jsp/titlehead
body
%MyClass adb = new MyClass();
if (adb.openConnection()!=null)
{ % 
%=adb.openConnection()%
Connected
% } else
{ %
%=adb.openConnection()%
Not Connected
% } %
/body/html

Have also tried moving the entire app tree to the $CATALINA_HOME/webapp
directory and copied $CATALINA_HOME/webapp/examples to ~myhome/webdev/ROOT
(they don't work their).








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




Packages at Tomcat 4.0.6 vs 5.0

2002-11-05 Thread Ronaldo Juliatto
Fellows
 
Recently I installed Tomcat 5.0, and noticed that I could not run anymore
JSP whose classes did not use packages. A simple Hello, world program
needed to be implemented in a package to be understood by the Java compiler.
What could be wrong?
 
Thanks in advance
 
Ronaldo Juliatto



packages

2002-10-31 Thread Andy Wickson
Hi all,

If I put a servlet called Hello.class into a package called com.myco.test and have a 
suitable dir structure under WEB-INF\classes to reflect this, do I still need to give 
the full URL of the class in the web.xml file e.g.,

servlet-nameHello/servlet-name
servlet-classcom.myco.test.Hello/servlet-class

servlet-mapping
servlet-nameHello/servlet-name
 url-patterncom.myco.test.Hello/url-pattern
/servlet-mapping

Also when referencing this servlet from an html form do I need to give the full URL?

I've tried every combination I can think of.

Regards

Andy Wickson



RE: packages

2002-10-31 Thread Cox, Charlie


 -Original Message-
 From: Andy Wickson [mailto:andy;awtech.co.uk]
 Sent: Thursday, October 31, 2002 7:57 AM
 To: Tomcat Users List
 Subject: packages
 
 
 Hi all,
 
 If I put a servlet called Hello.class into a package called 
 com.myco.test and have a suitable dir structure under 
 WEB-INF\classes to reflect this, do I still need to give the 
 full URL of the class in the web.xml file e.g.,
 

yes

 servlet-nameHello/servlet-name
 servlet-classcom.myco.test.Hello/servlet-class
 
 servlet-mapping
 servlet-nameHello/servlet-name
  url-patterncom.myco.test.Hello/url-pattern
 /servlet-mapping
 
 Also when referencing this servlet from an html form do I 
 need to give the full URL?
 

url-pattern is what you type into the browser to get to your servlet. You do
not want the package name here. Try a mapping of '/Hello' and you can access
it with http://myhost/Hello 

Charlie

 I've tried every combination I can think of.
 
 Regards
 
 Andy Wickson
 

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




Re: packages

2002-10-31 Thread Nikola Milutinovic
Andy Wickson wrote:

Hi all,

If I put a servlet called Hello.class into a package called com.myco.test and have a suitable dir structure under WEB-INF\classes to reflect this, do I still need to give the full URL of the class in the web.xml file e.g.,

servlet-nameHello/servlet-name
servlet-classcom.myco.test.Hello/servlet-class

servlet-mapping
servlet-nameHello/servlet-name
 url-patterncom.myco.test.Hello/url-pattern
/servlet-mapping

Also when referencing this servlet from an html form do I need to give the full URL?


The URL pattern is wrong - it should be and URL :-)

servlet
  servlet-nameHello/servlet-name
  servlet-classcom.myco.test.Hello/servlet-class
/servlet
servlet-mapping
  servlet-nameHello/servlet-name
  url-pattern/whatever/helloServlet/url-pattern
/servlet-mapping

Then the access URL (from browser) is http://FQDN of your server/path to the 
webapp deployment/whatever/helloServlet

For example: http://www.myserver.domain.com/mywebapps/whatever/hellServlet

Nix.


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



Re: packages

2002-10-31 Thread Craig R. McClanahan


On Thu, 31 Oct 2002, Andy Wickson wrote:

 Date: Thu, 31 Oct 2002 12:57:16 -
 From: Andy Wickson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: packages

 Hi all,

 If I put a servlet called Hello.class into a package called
 com.myco.test and have a suitable dir structure under WEB-INF\classes to
 reflect this, do I still need to give the full URL of the class in the
 web.xml file e.g.,

 servlet-nameHello/servlet-name
 servlet-classcom.myco.test.Hello/servlet-class

 servlet-mapping
 servlet-nameHello/servlet-name
  url-patterncom.myco.test.Hello/url-pattern
 /servlet-mapping

 Also when referencing this servlet from an html form do I need to give
 the full URL?

 I've tried every combination I can think of.


The legal syntax for url patterns is defined in the servlet spec, but is
normally either a path match pattern (/foo/*) or an extension match
pattern (*.foo).  Note that the URL to be used does not need to have
anything to do with the name of the servlet class.  For example, if you
used the following servlet mapping:

  servlet-mapping
servlet-nameHello/servlet-name
url-pattern/bar/*/url-pattern
  /servlet-mapping

and you install this webapp with a context path of /foo, then you could
access this servlet with a URL like this, with the various parts of the
URL defined.

  http://localhost:8080/foo/bar/extra/path
 ^   ^  \/
 |   |   |
 |   |   + Path info
 |   |
 |   + Servlet path
 |
 + Context path

 Regards

 Andy Wickson


Craig



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




packages and paths?

2002-10-03 Thread Don Fike


I have packaged a group of servlets into a package.
Now to access my servlet I am using an URL similar to
the one below;

http://mysite:8080/example/servlet/path.to.my.package.myServlet

My servlets are located in a directory structure like;

... tomcat/webapps/example/WEB-INF/classes/path/to/my/package/myServlet

moving them to where they were [and prolly breaking a path-package rule]
doesn't work, i.e placing them here fails with errors;

... tomcat/webapps/example/WEB-INF/classes/myServlet 

Before I packaged my servlets I used an URL similar to this one;

http://mysite:8080/example/servlet/myServlet

I would prefer the shorter version of the URL.  Do I have
this app and package configured wrong for tomcat?  
Is it possible to still use packages but not have to 
use an URL that includes the entire package path info 
with the servlet name?

Thanks,

Don
[EMAIL PROTECTED]



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




TR: Using Packages for Bean Classes

2002-09-02 Thread Nicolas S i l b e r z a h n

for your information...

N i c o l a s   S i l b e r z a h n

100% Java, Mobile, Offline awareWapaka Browser for mobile development
(XHTML, WML)/100% Java, Mobile, Offline aware www.Wapaka.com


-Message d'origine-
De : A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]De la part de Hans Bergsten
Envoye : dimanche 1 septembre 2002 00:44
A : [EMAIL PROTECTED]
Objet : Re: Using Packages for Bean Classes


Nicolas S i l b e r z a h n wrote:
 Hans Bergsten, author of JavaServer Pages in its paper Hans's Top Ten JSP
 Tips (google it for URL)
 wrote:



 Using Packages for Bean Classes

 When you develop a bean to be used in a JSP page, I recommend that you
make
 it part
 of a named package. A Java class that does not use a package statement
ends
 up in the
 so-called unnamed package. The servlet class generated from the JSP page
is,
 however,
 typically assigned to a named package. If you try to refer to a class in
the
 unnamed
 package from a class in a named package, Java cannot find the class unless
 you use an
 import statement to import it. In a JSP page that means you must use both
a
 page
 directive to import the class, and the jsp:useBean action to make it
 available:

 %@ page import=UserInfoBean %
 jsp:useBean id=userInfo class=UserInfoBean /

 

 it seems it does not work anymore with Tomcat 4.1.9:

 F:\Tomcat 4.1.9\work\Standalone\localhost\ecomm\contact_jsp.java:11: '.'
 expected
 import UserInfoBean;
   ^

 How to write it now if I don't want my beans in a package?

This has nothing to do with Tomcat 4.1.x. It's due to a correction in
Sun's JDK 1.4.x, see Sun's Bug Parade:

http://developer.java.sun.com/developer/bugParade/bugs/4361575.html

Based on the comments there, it's breaking code in many places and is
a very unpopular change that I wasn't aware of until I saw your mail and
did some research. Your choices at this point is to use a different
compiler (e.g. Jikes or Sun's JDK 1.3.x) or place your beans in a
package (which I recommend no matter what).

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


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




Re: jsp in packages

2002-08-14 Thread Craig R. McClanahan



On Wed, 14 Aug 2002, D Bamud wrote:

 Date: Wed, 14 Aug 2002 11:20:59 +0530
 From: D Bamud [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: jsp in packages

  Writing functions in a JSP page (wrapped in %! ... % delimiters) is evil
  ... don't even bother learning how to do it.

 Well not true Craig! If something is used more than ONCE one should use a
 method even inside a JSP. One could use custom tags but I believe one should
 bother to learn %! ... %. I recommend it :)


If readers of this list listen to only one piece of advice from me, PLEASE
listen to this one: Java code does not belong in well designed JSP pages
at *all*.

In JSP 1.1 and 1.2, there sometimes isn't a lot of choice about using
runtime expressions %= ... % in tag attributes to grab some things that
are not otherwise accessible.  In JSP 2.0, the advent of the expression
language takes away that last excuse.  And, fortunately, JSP 2.0 includes
directives that can force the page compiler to prohibit scriptlets -- you
can be sure that such directives will be used on any application I'm in
charge of, and that developers who try to undo this will be either
retrained or fired.

Besides the fact that people who start down this path succumb to spaghetti
code (I've had people proudly show off their 5000-line JSP pages --
sheesh), embedding Java code in your page seriously reduces the ability of
the JSP page compiler to generate optimized code for you.  So, besides
being less maintainable, your code will be at a competitive performance
disadvantage to that of developers who learn the correct development
habits -- not good for career advancement :-).

Craig





   Craig,
  
   Your response confirms what I thought. My questions was purely
 educational
   and not that I am having such cases in my code. Thanks for your
 response.
   Surely no one should put logic in the PL (jsp). But someone could define
 and
   use a utility method (eg putting a HTML table showing some data eg date
 etc)
   in jsp. I positive that this is something that could be done if not in
   current JSP version but in future versions. There could be a directive
 eg
   THIS.doit() that gets translated by the JSP engine into something like
   colrs$jsp.doit() (colrs.jsp is the jsp file). Though it is certainly not
   that important as required but could be done. Perhaps also at instance
   level!
  
 
  In general, that is what JSP custom tags are for.  Among other things,
  they let you create arbitrary dynamic output, based on the parameters you
  specify for that tag.  Good examples to look at include:
 
  * The JSP standard tag library (available via Apache as the 'standard
tag library at http://jakarta.apache.org/taglibs.
 
  * Tags that generate arbitrarily complex HTML output, such as the tags
provided by the Struts framework http://jakarta.apache.org.struts/.
 
  However, in none of these cases do you see any processing functions being
  stored in a JSP page and called from another - that would not conform to
  good object oriented design principles.  Instead, you see the common
  paradigm of using request attributes to share information within the time
  frame of a given request, or session attributes to share information
  across multiple requests for a given user.
 
  Writing functions in a JSP page (wrapped in %! ... % delimiters) is evil
  ... don't even bother learning how to do it.
 
   Thanks
  
 
  Craig
 
 
  
   - Original Message -
   From: Craig R. McClanahan [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Tuesday, August 13, 2002 9:18 PM
   Subject: Re: jsp in packages
  
  
   
   
On Tue, 13 Aug 2002, D Bamud wrote:
   
 Date: Tue, 13 Aug 2002 12:27:53 +0530
 From: D Bamud [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: jsp in packages

 Q1. Can I declare my jsp files in packages? How?

   
No.  You have zero control over what package the JSP compiler
puts
 your
page in, or even what the class name of the generated servlet is.
   
 Q2. I have written a static method in one jsp page. I want to call
 this
 method in another jsp page. How to do it? I do not want to take this
   method
 out from the jsp and put into a class (.java) and use it in both the
 jsp
 files.

   
You need to rethink your do not want to take this method out
statement.  JSP pages and servlets are designed to be totally
 independent
components, and you can't get a reference to an instance of one page
 or
servlet from another.  Shared logic and shared data *must* be stored
 in
separate classes.
   
And, you're going to need to understand how to organize your code
 properly
to work on larger scale projects anyway, so now is a good time to
 start.
Hint -- putting logic in your JSP pages is not a good design practice

jsp in packages

2002-08-13 Thread D Bamud

Q1. Can I declare my jsp files in packages? How?

Q2. I have written a static method in one jsp page. I want to call  this
method in another jsp page. How to do it? I do not want to take this method
out from the jsp and put into a class (.java) and use it in both the jsp
files.


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




RE: jsp in packages

2002-08-13 Thread Shapira, Yoav

Hi,
Time-saver: I don't have an answer to your questions in this message.

Q2. I have written a static method in one jsp page. I want to call
this
method in another jsp page. How to do it? I do not want to take this
method
out from the jsp and put into a class (.java) and use it in both the
jsp
files.

Why not put in a Java file?  JSPs are not meant for programming.  When
you start getting into static methods containing reusable functionality,
it sounds like you're stepping out of pure JSP development and into the
world of bean libraries if not servlets.  The right approach for Q2
above seems to be to package the common method in a bean called by both
JSP pages, or a servlet (maybe a filter?) connected to both, depending
on what the common code does.

Just my $0.02, IMHO...

Yoav Shapira
Millennium ChemInformatics

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




Re: jsp in packages

2002-08-13 Thread Craig R. McClanahan



On Tue, 13 Aug 2002, D Bamud wrote:

 Date: Tue, 13 Aug 2002 12:27:53 +0530
 From: D Bamud [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: jsp in packages

 Q1. Can I declare my jsp files in packages? How?


No.  You have zero control over what package the JSP compiler puts your
page in, or even what the class name of the generated servlet is.

 Q2. I have written a static method in one jsp page. I want to call  this
 method in another jsp page. How to do it? I do not want to take this method
 out from the jsp and put into a class (.java) and use it in both the jsp
 files.


You need to rethink your do not want to take this method out
statement.  JSP pages and servlets are designed to be totally independent
components, and you can't get a reference to an instance of one page or
servlet from another.  Shared logic and shared data *must* be stored in
separate classes.

And, you're going to need to understand how to organize your code properly
to work on larger scale projects anyway, so now is a good time to start.
Hint -- putting logic in your JSP pages is not a good design practice.

Craig


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




Re: jsp in packages

2002-08-13 Thread R.C.Nougain

Craig,

Your response confirms what I thought. My questions was purely educational
and not that I am having such cases in my code. Thanks for your response.
Surely no one should put logic in the PL (jsp). But someone could define and
use a utility method (eg putting a HTML table showing some data eg date etc)
in jsp. I positive that this is something that could be done if not in
current JSP version but in future versions. There could be a directive eg
THIS.doit() that gets translated by the JSP engine into something like
colrs$jsp.doit() (colrs.jsp is the jsp file). Though it is certainly not
that important as required but could be done. Perhaps also at instance
level!

Thanks


- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 9:18 PM
Subject: Re: jsp in packages




 On Tue, 13 Aug 2002, D Bamud wrote:

  Date: Tue, 13 Aug 2002 12:27:53 +0530
  From: D Bamud [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: jsp in packages
 
  Q1. Can I declare my jsp files in packages? How?
 

 No.  You have zero control over what package the JSP compiler puts your
 page in, or even what the class name of the generated servlet is.

  Q2. I have written a static method in one jsp page. I want to call  this
  method in another jsp page. How to do it? I do not want to take this
method
  out from the jsp and put into a class (.java) and use it in both the jsp
  files.
 

 You need to rethink your do not want to take this method out
 statement.  JSP pages and servlets are designed to be totally independent
 components, and you can't get a reference to an instance of one page or
 servlet from another.  Shared logic and shared data *must* be stored in
 separate classes.

 And, you're going to need to understand how to organize your code properly
 to work on larger scale projects anyway, so now is a good time to start.
 Hint -- putting logic in your JSP pages is not a good design practice.

 Craig


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



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




Re: jsp in packages

2002-08-13 Thread Craig R. McClanahan



On Wed, 14 Aug 2002, R.C.Nougain wrote:

 Date: Wed, 14 Aug 2002 11:02:04 +0530
 From: R.C.Nougain [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: jsp in packages

 Craig,

 Your response confirms what I thought. My questions was purely educational
 and not that I am having such cases in my code. Thanks for your response.
 Surely no one should put logic in the PL (jsp). But someone could define and
 use a utility method (eg putting a HTML table showing some data eg date etc)
 in jsp. I positive that this is something that could be done if not in
 current JSP version but in future versions. There could be a directive eg
 THIS.doit() that gets translated by the JSP engine into something like
 colrs$jsp.doit() (colrs.jsp is the jsp file). Though it is certainly not
 that important as required but could be done. Perhaps also at instance
 level!


In general, that is what JSP custom tags are for.  Among other things,
they let you create arbitrary dynamic output, based on the parameters you
specify for that tag.  Good examples to look at include:

* The JSP standard tag library (available via Apache as the 'standard
  tag library at http://jakarta.apache.org/taglibs.

* Tags that generate arbitrarily complex HTML output, such as the tags
  provided by the Struts framework http://jakarta.apache.org.struts/.

However, in none of these cases do you see any processing functions being
stored in a JSP page and called from another - that would not conform to
good object oriented design principles.  Instead, you see the common
paradigm of using request attributes to share information within the time
frame of a given request, or session attributes to share information
across multiple requests for a given user.

Writing functions in a JSP page (wrapped in %! ... % delimiters) is evil
... don't even bother learning how to do it.

 Thanks


Craig



 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, August 13, 2002 9:18 PM
 Subject: Re: jsp in packages


 
 
  On Tue, 13 Aug 2002, D Bamud wrote:
 
   Date: Tue, 13 Aug 2002 12:27:53 +0530
   From: D Bamud [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: jsp in packages
  
   Q1. Can I declare my jsp files in packages? How?
  
 
  No.  You have zero control over what package the JSP compiler puts your
  page in, or even what the class name of the generated servlet is.
 
   Q2. I have written a static method in one jsp page. I want to call  this
   method in another jsp page. How to do it? I do not want to take this
 method
   out from the jsp and put into a class (.java) and use it in both the jsp
   files.
  
 
  You need to rethink your do not want to take this method out
  statement.  JSP pages and servlets are designed to be totally independent
  components, and you can't get a reference to an instance of one page or
  servlet from another.  Shared logic and shared data *must* be stored in
  separate classes.
 
  And, you're going to need to understand how to organize your code properly
  to work on larger scale projects anyway, so now is a good time to start.
  Hint -- putting logic in your JSP pages is not a good design practice.
 
  Craig
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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




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




Re: jsp in packages

2002-08-13 Thread D Bamud

 Writing functions in a JSP page (wrapped in %! ... % delimiters) is evil
 ... don't even bother learning how to do it.

Well not true Craig! If something is used more than ONCE one should use a
method even inside a JSP. One could use custom tags but I believe one should
bother to learn %! ... %. I recommend it :)





  Craig,
 
  Your response confirms what I thought. My questions was purely
educational
  and not that I am having such cases in my code. Thanks for your
response.
  Surely no one should put logic in the PL (jsp). But someone could define
and
  use a utility method (eg putting a HTML table showing some data eg date
etc)
  in jsp. I positive that this is something that could be done if not in
  current JSP version but in future versions. There could be a directive
eg
  THIS.doit() that gets translated by the JSP engine into something like
  colrs$jsp.doit() (colrs.jsp is the jsp file). Though it is certainly not
  that important as required but could be done. Perhaps also at instance
  level!
 

 In general, that is what JSP custom tags are for.  Among other things,
 they let you create arbitrary dynamic output, based on the parameters you
 specify for that tag.  Good examples to look at include:

 * The JSP standard tag library (available via Apache as the 'standard
   tag library at http://jakarta.apache.org/taglibs.

 * Tags that generate arbitrarily complex HTML output, such as the tags
   provided by the Struts framework http://jakarta.apache.org.struts/.

 However, in none of these cases do you see any processing functions being
 stored in a JSP page and called from another - that would not conform to
 good object oriented design principles.  Instead, you see the common
 paradigm of using request attributes to share information within the time
 frame of a given request, or session attributes to share information
 across multiple requests for a given user.

 Writing functions in a JSP page (wrapped in %! ... % delimiters) is evil
 ... don't even bother learning how to do it.

  Thanks
 

 Craig


 
  - Original Message -
  From: Craig R. McClanahan [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, August 13, 2002 9:18 PM
  Subject: Re: jsp in packages
 
 
  
  
   On Tue, 13 Aug 2002, D Bamud wrote:
  
Date: Tue, 13 Aug 2002 12:27:53 +0530
From: D Bamud [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: jsp in packages
   
Q1. Can I declare my jsp files in packages? How?
   
  
   No.  You have zero control over what package the JSP compiler puts
your
   page in, or even what the class name of the generated servlet is.
  
Q2. I have written a static method in one jsp page. I want to call
this
method in another jsp page. How to do it? I do not want to take this
  method
out from the jsp and put into a class (.java) and use it in both the
jsp
files.
   
  
   You need to rethink your do not want to take this method out
   statement.  JSP pages and servlets are designed to be totally
independent
   components, and you can't get a reference to an instance of one page
or
   servlet from another.  Shared logic and shared data *must* be stored
in
   separate classes.
  
   And, you're going to need to understand how to organize your code
properly
   to work on larger scale projects anyway, so now is a good time to
start.
   Hint -- putting logic in your JSP pages is not a good design practice.
  
   Craig
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


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



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-17 Thread @Basebeans.com

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
I was able to get struts-example running just fine by expanding it in the
webapps directory.  I was just curious to why it didn't expand on it's own,
when my server.xml has this line:

Host name=localhost debug=0 appBase=webapps unpackWARs=true

Irina Lishchenko [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 I am not sure whether my information can help you but just today I have
done
 similar action with upload.war from www.oreilly.com

 By the way I am running standalone tomcat 4.0.4 on SuSE Linux 7.3 (Apache
 1.3.20)

 So I did everything in the next order:
 1) Put upload.war to webapps folder
 2) from the manager window made

http://localhost:8080/manager/install?path=/uploadwar=jar:file:/path/to/upl
oad.war!/
 Here it has created folder with name upload itself and expanded file
 upload.war there
 3) then I rebooted my tomcat and how it has been already said on this list
 the application upload has disappeared but folder upload with it's context
 remained in webapp
 4) manually edited the server.xml file, add there something like
 Context path=/upload crossContext=true docBase=upload
  override=true reloadable=true
  debug=3
 /Context
 5) rebooted TC and the application upload runs perfectly

 May be this can help you
 ilis

 On Tuesday 16 July 2002 16:18, you wrote:
  I haven't been able to get that functionality to work myself :-(  I
  think that's a long-standing TC bug you're running into.  Someone said
  it would expand it when you created a folder for it, but I haven't even
  seen that.  I'm glad you have webapps now thought ;-)
 
  Regards,
 
  Eddie
 
  Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
  Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
 
  From: Matt Raible [EMAIL PROTECTED]
 
   ===
  Eddie,
  
  I got the webapps RPM and sure nough - all the examples work now.
   However, I dropped struts-example.war into the webapps directory, and
it
   doesn't get expanded.  The server.xml looks fine like it should expand
   wars by default.
  
  Any ideas?
  
  Thanks,
  
  Matt

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




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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-16 Thread Henri Gomez

On 15 Jul 2002 at 8:10, @Basebeans.com wrote:

 Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
 From: Matt Raible [EMAIL PROTECTED]
  ===
 I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
 
 And I've installed it and can successfully start it.  However, when I got to
 view a page (basically, the ROOT context), I get the following error:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
 this request

You need to have a webapp matching ROOT context, you could find one in
tomcat4-webapps-4.0.4-full ;)

But some production site provided their own webapps, that's why I splitted
tomcat4 in 2 rpms (and 4.1.7 will have another one, tomcat4-admin-webapps)

Regards


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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-16 Thread Eddie Bush

I haven't been able to get that functionality to work myself :-(  I 
think that's a long-standing TC bug you're running into.  Someone said 
it would expand it when you created a folder for it, but I haven't even 
seen that.  I'm glad you have webapps now thought ;-)

Regards,

Eddie

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
Eddie,

I got the webapps RPM and sure nough - all the examples work now.  However,
I dropped struts-example.war into the webapps directory, and it doesn't get
expanded.  The server.xml looks fine like it should expand wars by default.

Any ideas?

Thanks,

Matt




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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-16 Thread Irina Lishchenko

I am not sure whether my information can help you but just today I have done 
similar action with upload.war from www.oreilly.com

By the way I am running standalone tomcat 4.0.4 on SuSE Linux 7.3 (Apache 
1.3.20)

So I did everything in the next order:
1) Put upload.war to webapps folder 
2) from the manager window made 
http://localhost:8080/manager/install?path=/uploadwar=jar:file:/path/to/upload.war!/ 
Here it has created folder with name upload itself and expanded file 
upload.war there
3) then I rebooted my tomcat and how it has been already said on this list 
the application upload has disappeared but folder upload with it's context 
remained in webapp
4) manually edited the server.xml file, add there something like
Context path=/upload crossContext=true docBase=upload
 override=true reloadable=true
 debug=3
/Context
5) rebooted TC and the application upload runs perfectly

May be this can help you
ilis

On Tuesday 16 July 2002 16:18, you wrote:
 I haven't been able to get that functionality to work myself :-(  I
 think that's a long-standing TC bug you're running into.  Someone said
 it would expand it when you created a folder for it, but I haven't even
 seen that.  I'm glad you have webapps now thought ;-)

 Regards,

 Eddie

 Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
 Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

 From: Matt Raible [EMAIL PROTECTED]

  ===
 Eddie,
 
 I got the webapps RPM and sure nough - all the examples work now. 
  However, I dropped struts-example.war into the webapps directory, and it
  doesn't get expanded.  The server.xml looks fine like it should expand
  wars by default.
 
 Any ideas?
 
 Thanks,
 
 Matt

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




Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/

And I've installed it and can successfully start it.  However, when I got to
view a page (basically, the ROOT context), I get the following error:

Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
this request




type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured
to process this request) that prevented it from fulfilling this request.





So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
this as designed - is there a different RPM I should be downloading that
contains all the default webapps - or at least ROOT?

Thanks,

Matt



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Steven Citron-Pousty [EMAIL PROTECTED]
 ===
Matt:
IMHO the 4.0.4 RPM stinks. Better to go with a binary. I tried 
contacting the RPM contact on the bottom of the RPM download page and I 
posted messages here on the list and got no response (the direct message 
got bounced).
Don't use the rpm.
Steve


Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
 Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
 From: Matt Raible [EMAIL PROTECTED]
  ===
 I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
 
 And I've installed it and can successfully start it.  However, when I got to
 view a page (basically, the ROOT context), I get the following error:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
 this request
 
 
 
 
 type Status report
 
 message No Context configured to process this request
 
 description The server encountered an internal error (No Context configured
 to process this request) that prevented it from fulfilling this request.
 
 
 
 
 
 So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
 this as designed - is there a different RPM I should be downloading that
 contains all the default webapps - or at least ROOT?
 
 Thanks,
 
 Matt
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread Eddie Bush

LOL - I use it fine - no problems.  Of course, I'm using the LE version 
- I don't think it would make a difference though.  I'm sorry I didn't 
see either of your postings before now.

To get the webapps you need the webapps RPM :-P  It's right there in the 
same directory as the other RPMs.  Go look again ;-)  If you don't find 
it, post back here and I'll email it to you.  How is that?

Regards,

Eddie

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/

And I've installed it and can successfully start it.  However, when I got to
view a page (basically, the ROOT context), I get the following error:

Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
this request




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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread Joseph L. Savard

Here is a link you should be looking for...

A person from another group has been working with IIS and TOmcat and his suggestion is 
this link!

http://www.vacodi.com/howto/tomcat/iisnt/index.html



On 15 Jul 2002 at 8:10, @Basebeans.com wrote:

 Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
 From: Matt Raible [EMAIL PROTECTED]
  ===
 I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
 
 And I've installed it and can successfully start it.  However, when I got to
 view a page (basically, the ROOT context), I get the following error:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
 this request
 
 
 
 
 type Status report
 
 message No Context configured to process this request
 
 description The server encountered an internal error (No Context configured
 to process this request) that prevented it from fulfilling this request.
 
 
 
 
 
 So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
 this as designed - is there a different RPM I should be downloading that
 contains all the default webapps - or at least ROOT?
 
 Thanks,
 
 Matt
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
Eddie,

I got the webapps RPM and sure nough - all the examples work now.  However,
I dropped struts-example.war into the webapps directory, and it doesn't get
expanded.  The server.xml looks fine like it should expand wars by default.

Any ideas?

Thanks,

Matt

Eddie Bush [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 LOL - I use it fine - no problems.  Of course, I'm using the LE version
 - I don't think it would make a difference though.  I'm sorry I didn't
 see either of your postings before now.

 To get the webapps you need the webapps RPM :-P  It's right there in the
 same directory as the other RPMs.  Go look again ;-)  If you don't find
 it, post back here and I'll email it to you.  How is that?

 Regards,

 Eddie

 Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

 Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
 
 Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
 From: Matt Raible [EMAIL PROTECTED]
  ===
 I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
 
 And I've installed it and can successfully start it.  However, when I
got to
 view a page (basically, the ROOT context), I get the following error:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
 this request
 



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




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




Re: Beans in packages vs beans not in packages

2002-07-11 Thread jeff . guttadauro


Hi, Ron.

 This is because Tomcat puts the servlets generated from JSP's in the
org.apache.jsp package.  Therefore, when you reference your bean with no
package specified, it looks for it in this package and does not find it there.
You should see that as part of the error message - something like Cannot find
class org.apache.jsp.YourBean.

Hope that clears things up.
-Jeff



   

Ron Day  

ronday@rondaTo: [EMAIL PROTECTED]  

y.cccc:   

 Subject: Beans in packages vs beans not 
in packages   
07/10/02   

05:20 PM   

Please 

respond to 

Tomcat Users  

List  

   

   





Hi,

When I run a webapp with a bean in a package -- say com.form, everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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






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




Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

Hi,

When I run a webapp with a bean in a package -- say com.form, everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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




Re: Beans in packages vs beans not in packages

2002-07-10 Thread rsequeira


you need to import it using the import statement.
% import classname %

RS




Ron Day [EMAIL PROTECTED] on 07/10/2002 05:20:27 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Beans in packages vs beans not in packages

Hi,

When I run a webapp with a bean in a package -- say com.form, everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full
package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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










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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

but why does the package version work without the import

R

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:19 PM
To: Tomcat Users List
Subject: Re: Beans in packages vs beans not in packages



you need to import it using the import statement.
% import classname %

RS




Ron Day [EMAIL PROTECTED] on 07/10/2002 05:20:27 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Beans in packages vs beans not in packages

Hi,

When I run a webapp with a bean in a package -- say com.form, everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full
package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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










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





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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Larry Meadors

Just curious: Why not just put it in a package?

 [EMAIL PROTECTED] 07/10/02 16:26 PM 
but why does the package version work without the import


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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

I did, but something inside me says there is a class loading inconsistency
here, and it was bugging me.

R

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Beans in packages vs beans not in packages


Just curious: Why not just put it in a package?

 [EMAIL PROTECTED] 07/10/02 16:26 PM 
but why does the package version work without the import


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





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




Re: Beans in packages vs beans not in packages

2002-07-10 Thread Will Hartung

Actually, it's quite simple.

You see, your Java source files only have package scope for classes that
are not imported. This means, that your source can only refer to classes
within the same package directly. All others must have a fully qualified
package name (e.g. java.util.Collection) or be imported.

The 'import' statement requires a fully qualified class name, and the class
name includes its package.

Classes that have no 'package' statement are in an Unnamed package.
Typically this Unnamed package is the Current Directory, which is a
logical name, not usr.will.javacode.projects.test. But, since the classes
are unnamed, you can't get a fully qualified name for them in your source
code.

Packages are a wonderful thing, but their relationship with path names and
directories (which is an implementation detail) causes SO much confusion for
people.

You can 'import' your classes from the same package, even though its
unnamed, and even though you don't need to, it's legal.

If you have X.java and Y.java in the same directory, where Y imports X, and
with both files lacking a 'package' statement, the 'import' will work. It's
just unnecessary.

This is why the imports will fail for your classes, even though they're on
the CLASSPATH. You can't properly name them.

Q.E.D, that's why your classes need to be in a package.

Best Regards,

Will Hartung
([EMAIL PROTECTED])


- Original Message -
From: Ron Day [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 3:28 PM
Subject: RE: Beans in packages vs beans not in packages


 but why does the package version work without the import

 R

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 10, 2002 5:19 PM
 To: Tomcat Users List
 Subject: Re: Beans in packages vs beans not in packages



 you need to import it using the import statement.
 % import classname %

 RS




 Ron Day [EMAIL PROTECTED] on 07/10/2002 05:20:27 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:[EMAIL PROTECTED]
 cc:

 Subject:Beans in packages vs beans not in packages

 Hi,

 When I run a webapp with a bean in a package -- say com.form, everything
 works fine. But when I try to run a bean that is not in a package I always
 get class not found error.

 1)I am using usebean in both cases, one has class name, one has full
 package
 name.
 2)Bean has package name in one but no in the other.
 3)Bean is in class directory at top level for no package, and in correct
 package directory structure for package.

 There are no other changes, except to recompile bean, and restart tomcat.

 Any help appreciated.

 ron




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










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





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





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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

Thanks Will,

I think I understand what you are saying.

I will always use packages and it won't bite me again.

Thanks

R

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 6:50 PM
To: Tomcat Users List
Subject: Re: Beans in packages vs beans not in packages


Actually, it's quite simple.

You see, your Java source files only have package scope for classes that
are not imported. This means, that your source can only refer to classes
within the same package directly. All others must have a fully qualified
package name (e.g. java.util.Collection) or be imported.

The 'import' statement requires a fully qualified class name, and the class
name includes its package.

Classes that have no 'package' statement are in an Unnamed package.
Typically this Unnamed package is the Current Directory, which is a
logical name, not usr.will.javacode.projects.test. But, since the classes
are unnamed, you can't get a fully qualified name for them in your source
code.

Packages are a wonderful thing, but their relationship with path names and
directories (which is an implementation detail) causes SO much confusion for
people.

You can 'import' your classes from the same package, even though its
unnamed, and even though you don't need to, it's legal.

If you have X.java and Y.java in the same directory, where Y imports X, and
with both files lacking a 'package' statement, the 'import' will work. It's
just unnecessary.

This is why the imports will fail for your classes, even though they're on
the CLASSPATH. You can't properly name them.

Q.E.D, that's why your classes need to be in a package.

Best Regards,

Will Hartung
([EMAIL PROTECTED])


- Original Message -
From: Ron Day [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 3:28 PM
Subject: RE: Beans in packages vs beans not in packages


 but why does the package version work without the import

 R

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 10, 2002 5:19 PM
 To: Tomcat Users List
 Subject: Re: Beans in packages vs beans not in packages



 you need to import it using the import statement.
 % import classname %

 RS




 Ron Day [EMAIL PROTECTED] on 07/10/2002 05:20:27 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:[EMAIL PROTECTED]
 cc:

 Subject:Beans in packages vs beans not in packages

 Hi,

 When I run a webapp with a bean in a package -- say com.form, everything
 works fine. But when I try to run a bean that is not in a package I always
 get class not found error.

 1)I am using usebean in both cases, one has class name, one has full
 package
 name.
 2)Bean has package name in one but no in the other.
 3)Bean is in class directory at top level for no package, and in correct
 package directory structure for package.

 There are no other changes, except to recompile bean, and restart tomcat.

 Any help appreciated.

 ron




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










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





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





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






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




Jasper JSPC packages

2002-05-26 Thread Luis Reis

Hi,

I'm trying to use Jasper's JSPC to precompile my JSPs, but, instead of
getting a package for each directory in my docroot - which is what
Jasper does on Tomcat 4 - , I get a package with all the JSPs inside it.
It's easy to see that if you have an index.jsp file in each directory
they will all collide in the same place.

I'm using ant to call JSPC.

Any suggestions ?

Thanks in advance,
LR




Re: how can I put my classes in packages?

2002-05-24 Thread Phillip Morelock

I'm going to post this to the list because a few people have asked off-list
about how to make packages for their classes. Once you learn to do this, and
put all your classes in packages, it clears up a lot of basic problems,
such as the mysterious why can't my JSP find my class? problem.

It's also something you need to understand when you're working with code
from other people.  The end of the article treats what you're doing as a
standalone application, but you can ignore all that.

fillup

Start here:
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

and keep clicking the right-arrow to go to the next page for about 5-10
pages...



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




importing packages

2002-03-12 Thread Hammonds Nicholas

Hello,
I am doing some java servlet programming at the moment and I have the
following problem.  I would like to import some packages into my java
servlet code.  When normally doing this I would just make sure that the
package I want to include is in the 'classpath' variable and do something
like

import packageA.*;

However I don't know how to adjust the classpath variable which tomcat
knows.  I understand that its probably something to do with the web.xml
file.

Thanks everyone

Nic



don't found packages...

2002-03-05 Thread cyril vidal

Hello!

I'm a new french user of Apache Tomcat/4.0.3.
The installation was successfull!
But not the compilation of my first HelloWorld servlet.
The compilator does not found the right classes like javax.servlet, javax.servlet.http 
and  so  although I'well configurated my classpath like SET 
CLASSPATH=c:\tomcat\common\lib.
What do you think it's wrong? By the way, I'm under Windows Milllenium.

Thanks a lot for you answers
Cyril.



AW: don't found packages...

2002-03-05 Thread Ralph Einfeldt

You have to add the jars to the classpath, not the directory.

SET CLASSPATH=c:\tomcat\common\lib\a.jar;c:\tomcat\common\lib\b.jar

 -Ursprüngliche Nachricht-
 Von: cyril vidal [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 5. März 2002 11:36
 An: [EMAIL PROTECTED]
 Betreff: don't found packages...
snip/
 SET CLASSPATH=c:\tomcat\common\lib.
snip/

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




Re: don't found packages...

2002-03-05 Thread Lev Assinovsky

You should provide JAVA_HOME environment variable pointed
to your Java SDK.

cyril vidal wrote:

 Hello!

 I'm a new french user of Apache Tomcat/4.0.3.
 The installation was successfull!
 But not the compilation of my first HelloWorld servlet.
 The compilator does not found the right classes like javax.servlet, 
javax.servlet.http and  so  although I'well configurated my classpath like SET 
CLASSPATH=c:\tomcat\common\lib.
 What do you think it's wrong? By the way, I'm under Windows Milllenium.

 Thanks a lot for you answers
 Cyril.

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




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




Re: don't found packages...

2002-03-05 Thread cyril vidal

Thanks a lot for having helped me!!!
It's OK now!

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 11:45 AM
Subject: AW: don't found packages...


You have to add the jars to the classpath, not the directory.

SET CLASSPATH=c:\tomcat\common\lib\a.jar;c:\tomcat\common\lib\b.jar

 -Ursprüngliche Nachricht-
 Von: cyril vidal [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 5. März 2002 11:36
 An: [EMAIL PROTECTED]
 Betreff: don't found packages...
snip/
 SET CLASSPATH=c:\tomcat\common\lib.
snip/

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



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




Tomcat IIS optional packages

2002-02-08 Thread Martin Jussel

Hi,

I want to use optional packages like JavaMail. Installing and adding the
path to the CLASSPATH seems not to work. Running pages which import
classes (e.g. %@ page import='javax.mail.*' %) return a Package ***
not found in import. How to include these packages correctly?

Martin

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




RE: Tomcat IIS optional packages

2002-02-08 Thread Randy Layman


Tomcat ignores the Classpath (for good reason).  You need to add JAR
files to either WEB-INF/lib or TOMCAT_HOME/lib as appropriate.

Randy

 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 11:20 AM
 To: Tomcat Users List
 Subject: Tomcat  IIS  optional packages
 
 
 Hi,
 
 I want to use optional packages like JavaMail. Installing and 
 adding the
 path to the CLASSPATH seems not to work. Running pages which import
 classes (e.g. %@ page import='javax.mail.*' %) return a Package ***
 not found in import. How to include these packages correctly?
 
 Martin
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




AW: Tomcat IIS optional packages

2002-02-08 Thread Martin Jussel

Placing the jars in TOMCAT_HOME/lib does not work. But placing it in
TOMCAT_HOME/lib/common works!!!

Thanx for the help. 

Martin



 -Ursprüngliche Nachricht-
 Von: Randy Layman [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 08. Februar 2002 16:49
 An: 'Tomcat Users List'
 Betreff: RE: Tomcat  IIS  optional packages
 
 
 
   Tomcat ignores the Classpath (for good reason).  You 
 need to add JAR
 files to either WEB-INF/lib or TOMCAT_HOME/lib as appropriate.
 
   Randy
 
  -Original Message-
  From: Martin Jussel [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 08, 2002 11:20 AM
  To: Tomcat Users List
  Subject: Tomcat  IIS  optional packages
  
  
  Hi,
  
  I want to use optional packages like JavaMail. Installing and 
  adding the
  path to the CLASSPATH seems not to work. Running pages which import
  classes (e.g. %@ page import='javax.mail.*' %) return a 
 Package ***
  not found in import. How to include these packages correctly?
  
  Martin
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




com.oreilly packages

2002-01-28 Thread Lars Nielsen Lind

Hi.

Anyone that have installed:

Tomcat 4.0.1
Apache 1.3.22
mod_webapp

that have been able to sucessfully use the com.oreilly packages for
uploading files with JSP/Servlets (also MultiParts)?

Is it possible to receive a copy of that code?

Best regards,

Lars Nielsen Lind




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




having problems when using packages in Tomcat 4

2001-12-03 Thread Jovie Castaneda

Hi guys,

  Im trying to load my servlet from my webapps directory with which i
created a specific working
direcory($CATALINA_HOME/webapps/test) for it. Once, I access it to my
browser i do get a 404 error and when i check the log i see a huge mesg
(below is an excerpt from that log)

2001-11-30 15:27:14
StandardWrapper[/test:org.apache.catalina.INVOKER.PureGateway]: Marking
servlet org.apache.catalina.INVOKER.PureGateway as unavailable
2001-11-30 15:27:14 invoker: Cannot allocate servlet instance for path
/test/servlet/PureGateway
javax.servlet.ServletException: Wrapper cannot find servlet class
PureGateway or a class it depends on
 .

 ..what seems to be lacking here...my servlet by the way is using packages
which i stored in
$CATALINA_HOME/webapps/test/Web-inf/lib. What else is missing then? thanks
in advance!


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




2 classes with same name in dif packages

2001-11-21 Thread mwhitman

I am trying to run an older and newer version of a site on the same 
instance of tomcat.  The reason for this is because there will be a 
transition period from old to new - I want both to be running 
simaltaneously for a period at the same url.

The old and new site both have their own packages.  These packages, 
however, contain some beans with the same name.  The old and the new site 
appear to be referencing each others beans even though we reference them by 
package in the jsps
%@ page import=almbeans.* % for example.  Now in the beans inside the 
packages we do not always specify the package in a call to another bean 
within that package.  For example RegistrationBean may call 
BeanUtils.method1 in package 1.  Package 2 also has a 
BeanUtils.method1.  Both packages are in the classpath.  Can packages get 
crossed this way?  A call from a class in Package 1 won't necessarily go 
first to a class.method in Package 1, but may goto a class.method with the 
same name elsewhere in the classpath?

??


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




Packages and their property files.

2001-07-02 Thread Mehrdad Jahansoozi


--- Randy Layman [EMAIL PROTECTED] wrote:
 
   You must restart IIS the process, which means
 either a machine
 reboot, or stopping all of IIS's processes in the
 Control Panel (FTP, World
 Wide Web Publishing, IIS Admin, etc) and verifying
 that the inetinfo.exe
 process stops.
 
   If that's not it, look in your isapi and tomcat log
 files, they
 should be able to shed some light on where the
 disconnect is happening.
 
   Randy
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 02, 2001 1:22 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Multiple Hosting on IIS
  
  
  Hi, Randy,
  
  I add the following line into
 uriworkermap.properties:
  
  # Mount the admin context to the ajp12 worker
  /admin/*=ajp12
  
  But I still have to specify
  http://localhost:8080/admin/index.html
  to make it work? any idea about other file I need
 to change?
  
  Thanks.
  
  Minglong
  - Original Message -
  From: Randy Layman [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 02, 2001 9:19 AM
  Subject: RE: Multiple Hosting on IIS
  
  
  
   Because the default uriworkermap.properties file
 doesn't include
   mappings for the other URLs.
  
   Randy
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Monday, July 02, 2001 12:42 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Multiple Hosting on IIS
  
  
   Have you noticed that after plug in tomcat
 server into IIS
  
   http://localhost/examples/jsp/index.html work
 but
   http://localhost/admin/index.html and
   http://localhost/test/index.html not work? Why
 is that?
  
   Thanks.
   - Original Message -
   From: nilesh
   To: [EMAIL PROTECTED]
   Sent: Sunday, July 01, 2001 3:04 AM
   Subject: Multiple Hosting on IIS
  
  
   Dear Sir,
   We are one of leading ISP companies, I am trying
 to install 
  Jakarta-Tomcat
   3.2.1 on of our Windows 2000 Advance Server with
 IIS.
   I followed 
 jakarta-tomcat3.2.1\doc\tomcat-iis-howto.html 
  , everything
  is
   working perfectly except for multiple hosting.
 It works 
  only with default
   web but not with other web sites that I have
 created using 
  IIS Manager
  that
   I have been registered with NIC.
  
   Please help, How can I configure Tomcat to work
 with 
  multiple hosting ?
  
   With Regards,
   Nilesh Shrestha
   Manager, WorldLink Technologies
   Internet Building
   Dharmapath
   P.0. Box: 8207
   Kathmandu, Nepal.
   Tel:   +977 1 231 129
   Fax:  +977 1 526 318
   Email: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
  


=
Mehrdad Jahansoozi 
Java Developer Consultant
http://www.geocities.com/jahansoz/
2304-60 Pleasant Blv Toronto Ont M4T 1K1 Canada
Phone 416 924-0882
Best time to contact 9AM - 8PM. EST

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Packages and their property files.

2001-07-02 Thread Mehrdad Jahansoozi

Hi 
We are migrating from applet TCP/IP to HTML / JSP HTTP
server.

On the server side we have a number of packages that
use their own property files to read whatever data
they need and these data change regularly.

While on the applet TCP/IP we just edited the property
files and restarted the server.
I was hoping we could continue with this process after
migration to HTML / JSP HTTP server.

To my surprise after migration these packages can not
find their corresponding property files anymore.

When I hard code the data from the property files
everything works, however hard coding is not
acceptable, since these data change regularly.
Our design spec. Is very specific that only packages
should be dealing with the data they need and classes
outside the packages should not have any knowledge of
these property files and the data they contain.

Your suggestions / input is appreciated.


=
Mehrdad Jahansoozi 
Java Developer Consultant
http://www.geocities.com/jahansoz/
2304-60 Pleasant Blv Toronto Ont M4T 1K1 Canada
Phone 416 924-0882
Best time to contact 9AM - 8PM. EST

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: Packages and their property files.

2001-07-02 Thread Randy Layman


Use ClassLoader or ServletContext's getResourceAsStream method to
load the properties.  Then place the properties files in the WEB-INF/classes
directory.

Randy


 -Original Message-
 From: Mehrdad Jahansoozi [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 2:29 PM
 To: [EMAIL PROTECTED]
 Subject: Packages and their property files.
 
 
 Hi 
 We are migrating from applet TCP/IP to HTML / JSP HTTP
 server.
 
 On the server side we have a number of packages that
 use their own property files to read whatever data
 they need and these data change regularly.
 
 While on the applet TCP/IP we just edited the property
 files and restarted the server.
 I was hoping we could continue with this process after
 migration to HTML / JSP HTTP server.
 
 To my surprise after migration these packages can not
 find their corresponding property files anymore.
 
 When I hard code the data from the property files
 everything works, however hard coding is not
 acceptable, since these data change regularly.
 Our design spec. Is very specific that only packages
 should be dealing with the data they need and classes
 outside the packages should not have any knowledge of
 these property files and the data they contain.
 
 Your suggestions / input is appreciated.
 
 
 =
 Mehrdad Jahansoozi 
 Java Developer Consultant
 http://www.geocities.com/jahansoz/
 2304-60 Pleasant Blv Toronto Ont M4T 1K1 Canada
 Phone 416 924-0882
 Best time to contact 9AM - 8PM. EST
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/
 



packages under WEB-INF/classes

2001-04-16 Thread Mark

I have read on this list and in docs if
your servlet class is part of a package,
say com.foo.foobar...that
if you put it in a directory called

$TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar

assuming the source file has the statement

package com.foo.foobar;

it will be picked up by the class loader and will work.

I have tried this just that way and had this result:

 - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
- java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

[remainder of stack dump snipped]


--

Yet if I remove the package declaration and put the file
in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
it works.

All defaults are being used as far as the configuration files  (ie. for this
example I only added the directory under myapps and added nothing
to tomcat.con or server.xml).

What am I missing?  What is the correct way to add a servlet
that has a package declaration?

Thanks,

Mark





Re: packages under WEB-INF/classes

2001-04-16 Thread Sam Newman

Does your entry in the web.xml for your context reference the servlet using
its full path? Also, double check the case of the packages - the entry
web.xml, the package declaration and the actual directory strucutre all have
to match.

sam
- Original Message -
From: "Mark" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:10 PM
Subject: packages under WEB-INF/classes


 I have read on this list and in docs if
 your servlet class is part of a package,
 say com.foo.foobar...that
 if you put it in a directory called

 $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar

 assuming the source file has the statement

 package com.foo.foobar;

 it will be picked up by the class loader and will work.

 I have tried this just that way and had this result:

  - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
 - java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

 [remainder of stack dump snipped]

 --
--
 --

 Yet if I remove the package declaration and put the file
 in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
 it works.

 All defaults are being used as far as the configuration files  (ie. for
this
 example I only added the directory under myapps and added nothing
 to tomcat.con or server.xml).

 What am I missing?  What is the correct way to add a servlet
 that has a package declaration?

 Thanks,

 Mark






Re: packages under WEB-INF/classes

2001-04-16 Thread Mark

Sam,

I had no web.xml  for the context.  I was able
to fix things by adding it.   I guess web.xml
is not optional in a case like
this, where the servlet is in a package.  I think
the FM should be more clear on this.

Thanks a lot for the help!

Mark


- Original Message -
From: "Sam Newman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Mark" [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 10:15 AM
Subject: Re: packages under WEB-INF/classes


 Does your entry in the web.xml for your context reference the servlet
using
 its full path? Also, double check the case of the packages - the entry
 web.xml, the package declaration and the actual directory strucutre all
have
 to match.

 sam
 - Original Message -
 From: "Mark" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 16, 2001 3:10 PM
 Subject: packages under WEB-INF/classes


  I have read on this list and in docs if
  your servlet class is part of a package,
  say com.foo.foobar...that
  if you put it in a directory called
 
  $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar
 
  assuming the source file has the statement
 
  package com.foo.foobar;
 
  it will be picked up by the class loader and will work.
 
  I have tried this just that way and had this result:
 
   - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
  - java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 
  [remainder of stack dump snipped]
 

 --
 --
  --
 
  Yet if I remove the package declaration and put the file
  in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
  it works.
 
  All defaults are being used as far as the configuration files  (ie. for
 this
  example I only added the directory under myapps and added nothing
  to tomcat.con or server.xml).
 
  What am I missing?  What is the correct way to add a servlet
  that has a package declaration?
 
  Thanks,
 
  Mark
 
 






Re: importing multiple packages

2001-03-28 Thread William Brogden



Kris Gonzalez wrote:
 
 tej...
 
 you have to use multiple import items, one for each class or package you're
 importing
 
 such as:
 
 %@ page language="java" import="java.util.*" import="java.io.*" %

According to the spec, you import multiple items as a comma separated
list.
%@ page language="java" import="java.util.*,java.io.*" %

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2






importing multiple packages

2001-03-27 Thread teh j

Hello

I was wondering if I could get some help on something?

Is it possible to use a bean in a JSP and at the same
time, import another class (that I have created) for
use in the page?

I am trying to do this with the tag
%@ page language = "java" import = "java.util.Vector,
onSaleCalendar.onSaleCalendar"%

however my JSP gives me Error 500 and tells me that it
cannot find the class
onSaleCalendar (Vector works fine)

the bean tag I am using is 

jsp:useBean id = "selectBean" scope ="page" class =
"selectexamples.eventsOnday"/


I have place my bean on the directory 

jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/selectexamples
and called it eventsOnday

I have placed my class onSaleCalendar under 
jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/onSaleCalendar

thanks
J



_
http://my.yahoo.com.au - My Yahoo!
- Have news, stocks, weather, sports and more in one place.



RE: importing multiple packages

2001-03-27 Thread Mike Braden

Have you tried using:

%@ page language = "java" import = "java.util.Vector,
onSaleCalendar"%

Instead of:

%@ page language = "java" import = "java.util.Vector,
onSaleCalendar.onSaleCalendar"%

Does this also produce an error?

I usually use:

%@ page language="java" contentType="text/html" %
%@ page import="java.util.Vector" %
%@ page import="onSaleCalendar" %

To make it easier to read.  (Note: Import is the only attribute of page
that can be listed multiple times)

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 11:36 PM
To: [EMAIL PROTECTED]
Subject: importing multiple packages


Hello

I was wondering if I could get some help on something?

Is it possible to use a bean in a JSP and at the same
time, import another class (that I have created) for
use in the page?

I am trying to do this with the tag
%@ page language = "java" import = "java.util.Vector,
onSaleCalendar.onSaleCalendar"%

however my JSP gives me Error 500 and tells me that it
cannot find the class
onSaleCalendar (Vector works fine)

the bean tag I am using is

jsp:useBean id = "selectBean" scope ="page" class =
"selectexamples.eventsOnday"/


I have place my bean on the directory

jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/selectexamples
and called it eventsOnday

I have placed my class onSaleCalendar under
jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/onSaleCalendar

thanks
J




_
http://my.yahoo.com.au - My Yahoo!
- Have news, stocks, weather, sports and more in one place.




Re: importing multiple packages

2001-03-27 Thread Kris Gonzalez

tej...

you have to use multiple import items, one for each class or package you're
importing

such as:

%@ page language="java" import="java.util.*" import="java.io.*" %

however, i sometimes get a compilation error if i use more than one inline like
this, so the preferable way is:

%@ page language="java" %
%@ page import="java.util.*" %
%@ page import="java.io.*" %

et cetera

hope this helps

-kg


teh j wrote:

 Hello

 I was wondering if I could get some help on something?

 Is it possible to use a bean in a JSP and at the same
 time, import another class (that I have created) for
 use in the page?

 I am trying to do this with the tag
 %@ page language = "java" import = "java.util.Vector,
 onSaleCalendar.onSaleCalendar"%

 however my JSP gives me Error 500 and tells me that it
 cannot find the class
 onSaleCalendar (Vector works fine)

 the bean tag I am using is

 jsp:useBean id = "selectBean" scope ="page" class =
 "selectexamples.eventsOnday"/

 I have place my bean on the directory

 jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/selectexamples
 and called it eventsOnday

 I have placed my class onSaleCalendar under
 jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/onSaleCalendar

 thanks
 J

 _
 http://my.yahoo.com.au - My Yahoo!
 - Have news, stocks, weather, sports and more in one place.




Accessing Servlets In Packages

2000-11-16 Thread JTBldrCO

I seem to have my problem solved, but let me get this back on the mailing 
list for the benefit of the archives --

I was having trouble accessing servlets that reside in my own packages.  My 
test cases could access .class files in:
 
/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes
 
For example "SnoopServlet.class" in that subdir is accessed with:
 
http://www.mySiteName.com/myWebApp/servlet/SnoopServlet
 
Now, take a class, SomePackageClass, declared to be in package testapackage 
within its .java code file.  Its compiled form is in the following file:
 
/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa

ckageClass.class
 
I would like to (but CANNOT) access it with:
 
http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass
 
INSTEAD, I FIND I MUST USE:

http://www.mySiteName.com/myWebApp/servlet/testapackage.SomePackageClass
 
(Note the "." notation separating the package name and class name, rather 
than a "/".)

Unfortunately, the slash notation worked with JServ, for which I have tons of 
working code, but not with Tomcat.

Thanks for others' comments related to possible addition of servlet tags in 
file /webapps/myWebApp/WEB-INF/web.xml but it looks like I'd still have 
to change all my JServ code (the calling HTML) that used the slash notation. 

Incidentally, I found a sprinkling of material pertaining to my problem in 
the new book "Core Servlets and JavaServer Pages" by Marty Hall.  This was 
published this year (year 2000) for Sun Microsystems by Prentice Hall (see 
pages 30-42).  I wish to give them a plug for this very current effort 
complete with some updates based on Tomcat 3.1.  Price is US$42.99.

John Thompson
Boulder, Colorado, USA
[EMAIL PROTECTED]




Re: Accessing Servlets In Packages

2000-11-16 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

 [snip]
 Now, take a class, SomePackageClass, declared to be in package testapackage
 within its .java code file.  Its compiled form is in the following file:

 /usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa

 ckageClass.class

 I would like to (but CANNOT) access it with:

 http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass


Why can't you use a servlet definition and mapping like this:

servlet
servlet-nameMy Servlet/servlet-name
servlet-classtestpackage.SomePackageClass/servlet-class
/servlet

servlet-mapping
servlet-nameMy Servlet/servlet-name
url-pattern/servlet/testpackage/SomePackageClass/url-pattern
/servlet-mapping

which would support your desired URL?


 John Thompson
 Boulder, Colorado, USA
 [EMAIL PROTECTED]

Craig McClanahan