Re: jsp java compile error on v5

2004-10-21 Thread Vic Cekvenich
Thanks Tim, but this is 5.029.
You can see it here:
http://boardvu.com/roller
Any additional hints?
.V
Tim Funk wrote:
Check out the archives for tomcat-dev and bugzilla. There have been 
compile gotchas with respect to 5.5 and JDK5.0

Otherwise - the logs should have (localhost_log_XXX.txt) - should have 
more detail.

-Tim
Vic Cekvenich wrote:
I hava JAVA_HOME, tools.jar in common and permisions. I am running on 
a JDK1.5 64 bit for Redhat3.
I installed jRoller but it says it can't copile the jsp.
Hints?
Here is the error.
.V


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

exception
Compile failed; see the compiler error output for details.
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.roller.presentation.filters.RequestFilter.doFilter(RequestFilter.java:154) 


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


jsp java compile error on v5

2004-10-20 Thread Vic Cekvenich
I hava JAVA_HOME, tools.jar in common and permisions. I am running on a 
JDK1.5 64 bit for Redhat3.
I installed jRoller but it says it can't copile the jsp.
Hints?
Here is the error.
.V


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

exception
Compile failed; see the compiler error output for details.
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.roller.presentation.filters.RequestFilter.doFilter(RequestFilter.java:154)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SunONE versus Tomcat performance

2004-08-02 Thread Vic Cekvenich
http://news.netcraft.com/archives/2003/04/10/java_servlet_engines.html
Above is Sun's market share of production sites.
So...
.V


On Friday 30 July 2004 05:40 pm, David Wall wrote:
It is worth noting that Sun Java Web Server has better performance than
Apache Tomcat; you can learn more about this from Sun Java Web Server vs.
Apache/Tomcat Benchmarks.
The link to the KeyLabs report is at
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf
Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
They also suggest that Tomcat would start to show errors when loading 200
users at a time, whereas SunONE could handle up to 500 users without any
errors.
David

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


Re: [tomcat] proxy to php app

2004-08-02 Thread Vic Cekvenich
I can't use Apache. It has to go to Tomcat.
Servlets ideas to write proxy?
.V
Ernesto Echeverría wrote:
I've started to use apache with mod_jk2, meaning that apache handles the web
server content and forwards request to tomcat according to your
configuration.
In that way you keep using all your apache "goodies", cgi-bin, php, etc...
So my recommendation is: use mod_jk2, keep apache for everything else...
José Ernesto Echeverría
[EMAIL PROTECTED]
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] proxy to php app
I know how to write servlets and filters.
How do I create a proxy app on tomcat that would forward to a php app? I do
not know how to start.
tia,
.V
-
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]


proxy to php app

2004-08-01 Thread Vic Cekvenich
I know how to write servlets and filters.
How do I create a proxy app on tomcat that would forward to a php app? I 
do not know how to start.

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


Re: auto reload a class

2004-07-22 Thread Vic Cekvenich
FYI, this reloads:
http://127.0.0.1/manager/reload?path=/
.V
QM wrote:
On Fri, Jul 16, 2004 at 07:28:13AM -0500, Vic Cekvenich wrote:
: One feature I like in resin is that it reloads a class (for example a 
: servlet) automaticaly if I change it.
: 
: IS there a way to make tomcat reload any of the classes if they got changed?

Search the docs for the "reloadable" attr of .
-or, for specific examples, search the archives.  This comes up every so
often.
-QM

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


auto reload a class

2004-07-16 Thread Vic Cekvenich
One feature I like in resin is that it reloads a class (for example a 
servlet) automaticaly if I change it.

IS there a way to make tomcat reload any of the classes if they got changed?
tia,
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


OT Ann: North East Conference on MVC Frameworks and Struts in 3 weeks:

2004-03-07 Thread Vic Cekvenich
Most people already know what MVC is, once you know what it is, here is 
the next step. Presenting will be the popular frameworks and components 
in use by 8 speakers:

-Ted Husted – Author – Struts Chains/2.0 – the dominant framework in 
use, from Ziff Davis, to Apple Store to most large commercial sites.
Husted.com

-Rod Johnson – Author – EJB/Spring
springFrameWork.com
-Christophe Coenraets – Flex-MacroMedia  - “back to rich UI w/SOA” 
(Great blog entry on Struts + Flex)
markMe.com/cc

-Howard Lewis Ship – Author – HiveMind (SOA, IOC, AOP) –  commonly 
referred to as “the next big thing”
javaTapestry.blogspot.com

-Clinton Begin – DAO/iBatis/SQLMaps – the best DAO layer
imo, used by Spring, jPetStore, basicPortal, etc.
-Matt Raible – Author – displayTag/strutsMenu – (displayTag is my 
favorite J2EE component)
Raibledesigns.com

-Jason Carreira – WebWork 2
freeroller.net/page/jCarreira
- Vic Cekvenich – Author – basicPortal (J2EZ – easy and simple to 
customize application for membership, portal, cms, community, store, 
etc. using bestPractices for large, profitable commercial sites. )

+ more
You will get a CD mailed to you once you register.
April 3rd from 8AM to 7PM in NYC at nyhotel.com, next to MSG. Advertised 
in JDJ, NY Times, etc. My guess is that you won’t find half as many good 
sessions at Sun’s Java One.
It $99 to register now at baseBeans.com, in a few day's price keeps 
going up.



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


Re: Best JVM for Tomcat

2003-12-03 Thread Vic Cekvenich
I use BEA's jRockit (but with tomcat 5) on Fedora.
.V
Walter do Valle wrote:
What is the best version of J2SDK to run Tomcat 4.1.29 over Linux?

Thanks for any tip


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


Re: Equipt a DBMS to Tomcat

2003-11-08 Thread Vic Cekvenich
http://advocacy.postgresql.org/advantages

pgSQL is ANSI SQL (unions, stored procs), is considered faster than most 
dbs and is a free license, even on windows, no mater how you use it.

MySQL is not realy full SQL, it is sort of like MS Access.

Steven Woody wrote:
Hi, folks

MySQL and PostgreSQL, which one is the better choice for tomcat ?

--
Steven Woody
[EMAIL PROTECTED]
--
Victor Cekvenich,
Struts Instructor
(215) 321-9146
Advanced Struts Training
 Server Side Java
training with Rich UI, mentoring, designs, samples and project recovery
in North East.
Simple best practice basic Portal, a Struts CMS, Membership, Forums,
Shopping and Credit processing,  software, ready
to develop/customize; requires a db to run.


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


Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Vic Cekvenich
I speak for many: THANK YOU

Remy Maucherat wrote:
The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.29 Stable and Apache Tomcat 5.0.14 Beta.
Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team
--
Victor Cekvenich,
Struts Instructor
(215) 321-9146
Advanced Struts Training
 Server Side Java
training with Rich UI, mentoring, designs, samples and project recovery
in North East.
Simple best practice basic Portal, a Struts CMS, Membership, Forums,
Shopping and Credit processing,  software, ready
to develop/customize; requires a db to run.


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


FYIL My favoirete JSP tag is:

2003-10-11 Thread Vic Cekvenich
Here is my favorite tag: http://displaytag.sf.net and see examples (in 
upper right). Grid, Sorting, nested, group, export, everything you like, 
plus it’s free.

Here is example code of how I used it:
http://cvs.sourceforge.net/viewcvs.py/basicportal/bPproj/bP/WEB-INF/pgs/forums/ArticleLst.jsp
You can view here run time by clicking here:
http://basebeans.com/do/channelsPg
Any better tags?

--
Victor Cekvenich,
Struts Instructor
(215) 312-9146
Advanced Struts Training 
 Server Side Java 
training with Rich UI, mentoring, designs, samples and project recovery 
in North East.
Simple best practice basic Portal, a Struts CMS, Membership, Forums, 
Shopping and Credit processing,  software, ready 
to develop/customize; requires a db to run.



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


Re OT: Java/JSP vs C#/.NET

2003-08-27 Thread Vic Cekvenich
It's fun to complain sometimes.

Here is more:
http://www.onjava.com/pub/a/onjava/2003/07/23/java_qa.html
It seems that JCP and Vendors are leaving a lot of developers behind.
I can download Borland C# for free, more choices are better for developers:
http://borland.com/products/downloads/download_csharpbuilder.html#
C# is ECMA standard of course and you can do MVC w/ Mav-Net for example.
.V

Shawn Zernik wrote:

Lance:

100% Multi-Platform Support: Microsoft doesn't have it.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net
-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET
Hi,

I am a pure java supporter. I don't like C# or .Net because of Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more and
more people pick up C#/.NET due to their new advantages. I also heard that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten by
Microsoft since it borrowed so many ideas from java to make up the so-called
"C#".
ok, feel free to talk about this topic.

Lance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training, mentoring and 
project recovery in North East.
Struts conversion and  fixed bid development.



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


Re: how to suppor 30000 concurrent users

2003-08-10 Thread Vic Cekvenich
If you use Resin/J:Rockit/NewISys 2100, you can do at least 4,000 
cocurent users w/ sub second response time. (test your app w/ free 
DiselTest - part of Jasic and linked on basicPortal.com, other links 
there to)
NewIsys is a 1U.
A 19" rack can hold 40. You need 3-4 racks.
He.net charges $400 per month per rack, so $1200-$1400 for 3-4 full 
racks to co/lo. (I might cost out blade performance to lower rack cost).
Tou migh want to use pgSQL.

Open source is great at large sites that are run for profit. (I wonder 
what MS SQL/Share point costs for 4 racks?)

Good luck.
.V
Heart Prince wrote:
howmany concurrent users does tomcat support? if i want to design a web 
application for 30,000 concurrent users, what is the step?  clustering 
is related to this? how many servers i need if i am clustering

_
Latest movie trailers. On your mobile. 
http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training, mentoring and 
project recovery in North East.
Open Source Portal Content Management 
basicPortal  software.



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


Ann: new bP release now ships w/ Tomcat 5 and has JSTL v1.1.

2003-06-21 Thread Vic Cekvenich
basicPortal is a Struts CMS app, that requires a DB to run.

New release  v  97_2 has JSTL v1.1 (for JSP 2) and includes Tomcat 5 and 
IDE integrated. (Prior release was JSTL 1.03 for JSP 1.2)

Download links from baseBeans.com

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North 
East.
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress


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


Advanced Struts best practices web cast training by winner of besttraining with money back guarantee(this is not Intro To Struts):

2003-05-31 Thread Vic Cekvenich
Advanced Struts best practices web cast training by winner of best 
training with money back guarantee(this is not Intro To Struts):

Register now for the best rate by going to
www.baseBeans.com and click training, then click register. The cost is 
very reasonable to and cost effective take web training, compared to a 
conference cost. The rate goes up a lot as we get closer to the start 
date to $300+. Training starts in a few weeks, right after JavaOne on 
6/21. We will meet every Saturday for 3 Saturdays via a web cast 
(DSL/Cable recommended) at 10AM Eastern (NYC) Time to complete the labs.

Best training hands on labs, voted by Java Developers Journal (search 
for Training)
http://www.sys-con.com/2001/PR/code.cfm?page=10302002a
or ask around on the mail lists to see who has best training.
Dont take a chance that training is too intro, or & . We give you money 
back guarantee, take the 3 classes, you must do the labs, and after you 
watch all the sessions, ask for money back if you do not think it was 
valuable, no questions asked.

Shortly after you register, you will receive the training materials, a 
book and the labs.

Yes, this is advanced Struts labs, only for people that already know 
Struts, learn by doing.
We will write an application from scratch in Struts with DB access, 
updates, master detail processing, validation, navigation, tiles, JSTL, 
testing, reporting, mail, etc. We will cover good practices and bad. 
Full agenda to follow on the mail list (sign up for mail list on the 
main page of baseBeans.com).

Students are always able to retake future training for FREE (even live 
in person training offered in the big north east cities)
Struts Instructors: If you want to teach Advanced Struts in the future 
with baseBeans materails, you must sit trough a class!

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North 
East.
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress


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


Ann: new bB release

2003-05-28 Thread Vic Cekvenich
basicPortal  is an open source Portal app  that stores content via DB 
access,  a sample Struts v.1 webapp. It is built on
scaffoldingXPress, Struts v1.1 best practices, commercially supported, 
with JSTL and DAO.
Both are available on http://basicPortal.sf.net

New release (v095) includes a video demo sample, Resin (as did old 
version),  reporting (helper based on Jasper), includes stress test, 
async operations, options collection example and mis. fixes.
I  intend to user Resin 3 ASAP.

.V

PS: In the next day I will announce a special rate only for the MVC mail 
list (on baseBeans.com) to sign up for an online advanced Struts class 
that will cover Master Detail Processing, Reporting, Security, etc. 
Online web class will star

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training and project recovery in North East. 
Open Source Content Management  basicPortal sofware
Best practiceStruts Support v.1.1 helper ScafflodingXPress



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


new sample "best practice" Struts data driven web app for Tomcat5/Resin 3

2003-03-21 Thread Vic Cekvenich
I released a new basicPortal implementation called "bP v0.8k" available 
for download on basicPortal.sf.net.

- The new version is same simple "bean has a dao helper design", but it 
uses ibatis.com db layer. (the "older" design used RowSet) Ibatis db 
layer is very nice.

- It now works fine and is tested with MYSQL. (and pgSQL)

- It is build for JSP 2.0 containers, like a late build of resin 3 and 
tomcat 5, tested to work with both (but could be converted to JSP 1.2 
with addition of the c tag)

- It now has a list of maps backed beans for more flexibility. (old 
design was rows of columns), aka list backed bean.

- It uses display tag (struts menu, JSP2, JSTL, tiles, etc.)

- Like before, the base action dispatches, DAO is a interface (so you do 
not have to use iBatis db layer) and beans knows how to CRUD, via very 
nice OO.

Of course... still more to do

.V



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


JK and Apache

2003-03-16 Thread Vic Cekvenich
This list is becoming a JK/Apace list. :-(

Not starting to try a flame, but a word to the wise:
IMO, using Apache or JK in most circumstances is a bad practice. This 
goes back when sales people would say you need Apache, and Tomcat and 
EJB server. No need for that. Fact is Tomcat can do it all, display HTML 
and do JavaBean persistance.

http://www.caucho.com/articles/benchmark.xtp
See last line says JSP and static performance is similar, only in JSP 
you can CMS to DB.
Plus a lot less admin time.

hth,
V


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


Re: Apache and Tomcat: a bad practice

2003-02-24 Thread Vic Cekvenich
No need to use big words.

I was just giving you good practice, vs no so good practice.

I take it you disagree. You can load balance Tomcat just fine.

IMO: It's a good practice to try to avoid using Apache. Mostly newbies 
think that this is required. I am just saying, this is not required or 
possibly good.

It makes operations and development easier not to have Apache, and my 
clients have removed it to great sucess. Take it into consideration a 
word to the wise.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg85780.html

.V


Please don't troll the list.  There are all sorts of reasons besides "need
CGI" to use Apache.  I can think of one right now (load balancing) that
would pretty much make using Apache mandatory in many installations.
Instead of bashing people for the software they choose to use, a more
helpful response might be to help them use it easily.
John

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 7:00 AM
To: [EMAIL PROTECTED]
Subject: Apache and Tomcat: a bad practice

Lot's of Apache to Tomcat questions.
In the past, (Hardware sales) people would say you need a html server 
(Apache) and a jsp server (Tomcat).

Now Tomcat can server HTML pages very fast and can do SSL, etc.

There is no reason to maintain and configure in operations 
communications between the two.

Recomendation: It is *a good practice to deprecate Apache!, and use 
Tomcat*  (or other J2EE, such as Resin) as your only server, SSL and 
HTML, etc.
The speed is just fine.

There are only a few exceptions, such as you need CGI, but you can save 
money, time now, but de-instaling Apache and put Tomcat on port 88 and 443.

.V



-
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: Database load balancing?

2003-02-24 Thread Vic Cekvenich
Try caching first; with Poolman.sf.net or 
http://www.phworks-online.com/cache.html

Replication could slow you down.

.V

Ralph Einfeldt wrote:
It depends on your requirements.

For read only load balancing to achieve more performance
you might also consider to use replication:
http://gborg.postgresql.org/project/pgreplication/projdisplay.php

This way you could for exapmle setup 4 instances of
tomcat and 2 instances of postgreSQL where one db instance
is shared by two tomcats.
This is no true loadbalancing, but might give you 
enough power through the use of serveral db instances.

The main drawbacks against true load balancing are:
- no simple fail over (you would have to implement on your own)
- no load based switching between databases. (The 
  connectiones between the tomcat instances and
  the databases are rather static)

You migh also read the following article
http://conferences.oreillynet.com/presentations/os2002/johnson_darren.pdf
with pointers to other replication solution to postgreSQL.




-Original Message-
From: Hawkeye I. King [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:39 AM
To: Tomcat Users List
Subject: Database load balancing?
Does anyone have a clue about load balancing read-only 
database requests to PostgreSQL?  I'm developing a 
data-intensive application that requires scalability, 
not just from Tomcat, but from Postgres as well. 
I will use hardware load balancing to Tomcat, but I cannot 
do the same to a database using persistent connections.

The only thing I've seen (after several days of searching) is
DBBalancer, an alpha release load balancer with no JDBC support.


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


Apache and Tomcat: a bad practice

2003-02-24 Thread Vic Cekvenich
Lot's of Apache to Tomcat questions.
In the past, (Hardware sales) people would say you need a html server 
(Apache) and a jsp server (Tomcat).

Now Tomcat can server HTML pages very fast and can do SSL, etc.

There is no reason to maintain and configure in operations 
communications between the two.

Recomendation: It is *a good practice to deprecate Apache!, and use 
Tomcat*  (or other J2EE, such as Resin) as your only server, SSL and 
HTML, etc.
The speed is just fine.

There are only a few exceptions, such as you need CGI, but you can save 
money, time now, but de-instaling Apache and put Tomcat on port 88 and 443.

.V



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


Re: web.xml

2002-05-26 Thread Vic Cekvenich

http://edocs.bea.com/wls/docs61/webapp/web_xml.html

deneb shah wrote:

>Hi
>
>could someone briefly explain to me how the web.xml
>parsing is done.
>
>i am particularly interested in servlet and its
>mapping elements
>
>Also how are they stored and how are the objects
>generated out of those.
>
>Is it all reflection ??? 
>
>deneb
>
>__
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Connection Pooling Solution

2002-05-26 Thread Vic Cekvenich

http://sourceforge.net/project/showfiles.php?group_id=4899 is most 
popular I think.

Cindy Ballreich wrote:

>What do you guys think of DBCP? Any specific comments on performance or 
>functionality? Do you think it's ready for a "production" project? Should 
>I use it over DbConnectionBroker (obviously not a JNDI solution, but it 
>works pretty well).
>
>I'd love to hear a review from someone who's been using DBCP.
>
>Cindy
>
>On Sun, 26 May 2002, Jacob Kjome wrote:
>
>  
>
>>See...
>>
>>http://marc.theaimsgroup.com/?l=tomcat-user&m=102230335008606&w=2
>>
>>and
>>
>>http://marc.theaimsgroup.com/?l=tomcat-user&m=102230398708809&w=2
>>
>>which both reference...
>>
>>http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2
>>
>>it provides a pretty definitive and working solution for using DBCP
>>
>>Jake
>>
>>
>>At 11:38 AM 5/26/2002 +0100, you wrote:
>>
>>
>>>You probably only downloaded the source, try a nightly build
>>>http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/
>>>
>>>And could you keep your mails to the list instead of direct? That way (a)
>>>someone else might answer first and (b) the answer will end up in the mail
>>>archives.
>>>
>>>Thanks
>>>
>>>Les
>>>
>>>
>>>  
>>>
-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2002 18:37
To: [EMAIL PROTECTED]
Subject: Re: Connection Pooling Solution


Thanks a million Les,

This is very helpful.

Quick question: I didn't see a jar in th DBCP nightly build after I
downloaded it, how do you build this thing?

Thanks again,

Rick

- Original Message -



>Hi all,
>
>Having "felt the pain" in getting connection pooling to
>  
>
work with TC 4.0.3


>I've knocked up a simple howto. This is for TC 4.0.3 JDK
>  
>
1.4, mySQL 4.0


>Alpha so YMMV.
>
>Enjoy,
>
>Les
>
>I Downloaded:
>
>Tomcat 4.0.3 LE JDK 1.4 Build
>mySQL4.0.1 alpha
>mm.mysql 2.0.14
>
>Jakarta-Commons projects
>DBCP Nightly Build 20020523
>collections 2.0
>pool1.0
>
>Install mm.mysql, DBCP, collections and pool jars into
>CATALINA_HOME/common/lib
>
>In mySQL, I created a simple DB call javatest with a single table
>  
>
(testdata)


>and a new user (javauser) with the password javadude.
>
>
>I created a new Context for my test web app, here's the
>  
>
full server.xml


>entry:
>
> debug="5" reloadable="true" crossContext="true">
>
>    prefix="localhost_DBTest_log." suffix=".txt"
>  timestamp="true"/>
>
>  type="javax.sql.DataSource"/>
>
>  
>  
>factory
>
>  
>
org.apache.commons.dbcp.BasicDataSourceFactory


>  
>
>  
>
maxActive100


maxIdle3


>  maxWait100
>
>
>
>  
>
usernamejavauser


passwordjavadude


> 
>
>  
>
driverClassNameorg.gjt.mm.mysql.Driver


> 
>
>
>
>  
>
urljdbc:mysql://localhost:3306/javatest


>
>  
>
>
>And of course, you'll need this in your web.xml
>
>
>  
>
Web Application


>2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>  mySQL Test App
>  
>DB Connection
>jdbc/TestDB
>javax.sql.DataSource
>Container
>
>
>
>And a snippet of Java to use this:-
>
>try{
>Context ctx = new InitialContext();
>if(ctx == null ) throw new Exception("Boom - No
>  
>
Context");


>DataSource ds =
>(DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
>if (ds != null) {
>
>Connection conn = ds.getConnection();
>
>if(conn != null)  {
>foo = "Got Connection "+conn.toString();
>Statement stmt = conn.createStatement();
>ResultSet rst =
>  
>
stmt.executeQuery("select id, foo, bar


>from testdata");
>if(rst.next()) {
>foo=rst.getString(2);
>bar=rst.getInt(3);
>}
>conn.close();
>}
>}
>}catch(Exception e) {
>e.print

[Fwd: [MVC-Programmers@basebeans.com] [Struts Tips] #2 - Use DispatchAction to organize related operations]

2002-03-25 Thread Vic Cekvenich

To get these articles 2 times a week, the only place you can get these 
articles is at www.basebeans.com/forums.jsp (and sign up at the bottom 
link) for the BaseBeans MVC mail list.

(also daily Java News feed at www.strutsplus.com/news.jsp)

hth, Vic

 Original Message 
Subject: [[EMAIL PROTECTED]] [Struts Tips] #2 - Use 
DispatchAction to organize related operations
Date: Mon, 25 Mar 2002 09:11:07 -0500
From: Ted Husted <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]

Newsgroups: MVC-Programmers
References: <[EMAIL PROTECTED]>

Any software application is defined by the things it can do for you. In
a Struts Web application, the things an application does is usually
defined by its action-mapping elements. An action-mapping is designed to
be the target of an HTML form, and is often used with hyperlinks as
well.

Each action-mapping can specify a Struts Action class as its handler. In
larger applications, developers can find themselves managing dozens or
even hundreds of Action classes.

In practice, many of these Action classes handle related operations,
often evidenced by their name. A package might include separate
RegCreate, RegSave, and RegDelete Actions, which just perform different
operations on the same RegBean object. Since all of these operations are
usually handled by the same JSP page, it would be handy to also have
them handled by the same Struts Action.

A very simple way to do this is to have the submit button modify a field
in the form which indicates which operation to perform.


function set(target) {
  document.forms[0].dispatch.value=target;
}



SAVE
SAVE AS NEW
DELETE

Then, in the Action you can setup different methods to handle the
different operations, and branch to one or the other depending on which
value is passed in the dispatch field.

String dispatch = myForm.getDispatch();

if ("create".equals(dispatch)) { ...

if ("save".equals(dispatch)) { ...

The Struts Dispatch Action is designed to do exactly the same thing, but
without messy branching logic. The base perform method will check a
dispatch field for you, and invoke the indicated method. The only catch
is that the dispatch methods must use the same signature as perform.
This is a very modest requirement, since in practice you usually end up
doing that anyway.

To convert an Action that was switching on a dispatch field to a
DispatchAction, you simply need to create methods like this

 public ActionForward create(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException { ...

 public ActionForward save(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException { ...

Cool. But do you have to use a property named dispatch? No, you don't.
The other step is to specify the name of of the "dispatch" property as
the "parameter" property of the action-mapping. So a mapping for our
example might look like this:

  // Which parameter to use

If you wanted to use the property "o" instead, as in o=create, you would
change the mapping to

  // Look for o=dispatchMethod

Again, very cool. But why use a JavaScript button in the first place?
Why not use several buttons named "dispatch" and use the values to
specify the operation.

You can, but the value of the button is also its label. This means if
the page designers want to label the button something different, they
have to coordinate with the Action programmer. Worse, localization
becomes virtualy impossible.

If you prefer not to use JavaScript buttons, you can use the
DispatchLookup Action instead. This works much like the DispatchAction,
but requires more setup. We'll explore the DispatchLookup Action in Tip
#3.

HTH, Ted.


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




Announce / Commercial: Struts training on West Cost

2002-02-27 Thread Vic Cekvenich

Lecture on real life cookbook style good coding practices, with full 
example.
Register now at baseBeans.com. San Francisco, CA on 3/28 at 7:30 AM
3 hour lecture, step by step. Includes T-Shirt, Workbook, and a full 
working Struts 1.1 sample. $150 this week. (price goes up as we get 
closer, and registration closes in 2 weeks). Hope to see you there.
Special: $25 off with JavaOne pass.

Also, following is a  FREE open mike panel discussion on Struts, free to 
anyone, just show up, San Francisco on 3/28 at 11:15AM.
(If you want to present, send me the slides 2 weeks prior, you keep 
copyright)

For more information, sign up here:
http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers

We also do hands on private and public training, and project recovery.
Vic


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




Re: Announce: Struts hands on public training in NJ

2002-02-07 Thread Vic Cekvenich

I have 2 more seats. If you want to master Struts by March, the class is 
2/20, in less than 2 weeks.
Vic

Vic Cekvenich wrote:

> in Atlantic City, NY on 2/20 or see.
> 
> http://www.basebeans.com/students.jsp
> 
> 
> You have to register this week(on above page, we do not do last minute 
> registration. So we still have a few seats left
> This is the only east coast class this year that we will do. More 
> information is on the above page.
> 
> 
> Vic
> 
> 
> 
> 
> 
>>>
>>>
>>> Can anyone recommend a very simple working example of struts? I'm 
>>> familiar
>>> with MVC, have been working with Turbine but would like to use Struts.
>>>
>>> Thanks,
>>> Mark Glass
>>>
>>>
>>> -- 
>>> To unsubscribe, e-mail:
>>> <mailto:struts-user->[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:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: JAAS support in Tomcat 4

2001-12-28 Thread Vic Cekvenich

I have used JDBC realms in Tomcat w/Struts. Works great.
Vic

Craig R. McClanahan wrote:

>
>On Thu, 27 Dec 2001, Amine AMAR wrote:
>
>>Date: Thu, 27 Dec 2001 18:33:31 -
>>From: Amine AMAR <[EMAIL PROTECTED]>
>>Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: JAAS support in Tomcat 4
>>
>>Hi all,
>>
>>Does Tomcat 4 have support for JAAS?
>>I know TC is not a full J2EE Server, but I'm just wondering.
>>
>
>In the nightly downloads of Tomcat 4, you'll find an experimental
>JAASRealm implementation.  Right now, it only supports authentication, not
>roles -- I don't know how you're supposed to program that in a generic way
>using the JAAS APIs.
>
>>If there is, no support in TC for that do you know of any other
>>security framework supported in TC (especially compatible with
>>Struts)?
>>
>
>It would be technically feasible to implement this yourself.  The best way
>would be to write a Filter that was mapped to all requests, and checked
>for a valid login (with a redirect to the login page as needed).  The
>filter would also have to receive the username/password and use JAAS to
>look up the user.
>
>Essentially, you'd be simulating what a container like Tomcat does for
>form-based login.  IMHO, it's better to let the container do this kind of
>thing for you, but doing it at the application level can be more portable,
>so sometimes it's worth it.
>
>>Thanks all
>>
>>Amine
>>
>
>Craig
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



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




[ANNOUNCE] Fast Track to MVC / JSP Framework Public Workshop

2001-10-22 Thread Vic Cekvenich

http://java.sun.com/j2ee/blueprints/introduction/summary/index.html


This is the first MVC and JSP public training class. The framework we 
will be learning is open standard Struts. For more on Struts and related 
technologies, click on:

http://jakarta.apache.org


You will master Struts in three days in Dallas ( 
http://www.wyndham.com/Anatole), starting Dec. 2nd. This class is for 
trainers who will teach this class in the future, but a limited number 
of students are also permitted.

Trainers will be able to establish themselves as leaders in the 
upcoming technology. Students will upgrade their skills and become more 
marketable as well as learn proper development techniques.

For more information, including a list of topics and details on 
registration, please click on:

http://www.basebean.com


What Will be Covered:

*  DB Connection /Warm-up with JDBC and RowSet
   
*  Test Framework and RDBMS, Install Struts
   
*  Retrieving Data from SQL to Struts

*  OO Based Development and Extension

*  Drill Down from Screen-to-Screen
   
*  Data Entry Crud, Update, Insert and Delete

*  Master Detail Processing

*  Security Based on DB Roles

*  Portal Tiles (build real portal applications w/ layout for
headers and footers)

*  Menu - Build a Struts Menu for Navigation

*  Deployment


You will  discover why flexibility is enhanced by using MVC/J2EE 
architecture in conjunction with a SQL database. This is the first and 
only public MVC/JSP class of its kind. We will learn to utilize applied 
technology toward solving business problems.


Tomcat is used for developing, then we deploy to OrionServer.com.

/ Open standards are an alternative to MS .NET./








Re: web.xml and servlet mapping problem.

2001-09-13 Thread Vic Cekvenich

Please don't BCC.

Paul Downs wrote:

> IMPORTANT! This message has been blind-carbon-copied to you.
> Do not reply-to-all or forward it without the author's permission.