RE: Help please

2006-09-15 Thread Caldarale, Charles R
> From: Robert Harper [mailto:[EMAIL PROTECTED] 
> Subject: RE: Help please
> 
> Does anyone have experience with Tomcat on a mainframe?

Works fine on ours, as does JBoss.  But we're not silly enough to use
EBCDIC...

 - Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help please

2006-09-15 Thread Robert Harper
I think the problem has more to do with Tomcat on a mainframe and conversion
from ASCII to EBCDIC. The XML parser is having problems translating the XML
records in the configuration files. Does anyone have experience with Tomcat
on a mainframe?

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 11:54 AM
To: Tomcat Users List
Subject: Re: Help please

Kevin-

To use CompressionFilter you 
1)override doFilter method to provide filtering response via previously
defined 'FilterChain'
2)wrap your regular response as a CompressionServletResponse before sending
back to client (as in this example from Kief Morris)

public void doFilter(ServletRequest request
 ServletResponse response,

 FilterChain chain)

throws IOException, ServletException 

{ 


long startTime = System.currentTimeMillis();

chain.doFilter(request, response);

long stopTime = System.currentTimeMillis();

System.out.println("Time to execute request: " + (stopTime -
startTime) + 

" milliseconds"); 


}

Later on in the service() doGet() or doPut() methods check the response to
build the appropriate CompressionServletResponseWrapper

if (response instanceof HttpServletResponse) {
CompressionServletResponseWrapper wrappedResponse =

new
CompressionServletResponseWrapper((HttpServletResponse)response);

wrappedResponse.setCompressionThreshold(compressionThreshold);

if (debug > 0) {

System.out.println("doFilter gets called with compression");

}
}

Make SURE the actual class (which is displayed from your web.xml) 
is on your classpath or your class is located in
$TOMCAT_HOME/webapps/NameOfYourWebApp/WEB-INF/classes)

The example $TOMCAT_HOME\webapps\servlets-examples\WEB-INF\web.xml displays


Compression Filter
compressionFilters.CompressionFilter



HTH
Martin--

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  - Original Message - 
  From: Kevin Mullin 
  To: users@tomcat.apache.org 
  Sent: Friday, September 15, 2006 11:27 AM
  Subject: Help please



  I've just downloaded Tomcat 5.5.17 and am trying to run it on our
mainframe system that is running z/OS 1.7 operating system.  I am getting a
failure in Tomcat that says: 
  java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
  Does anyone know what is causing this, and what I can do to correct it?



Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help please

2006-09-15 Thread Martin Gainty
Kevin-

To use CompressionFilter you 
1)override doFilter method to provide filtering response via previously defined 
'FilterChain'
2)wrap your regular response as a CompressionServletResponse before sending 
back to client (as in this example from Kief Morris)

public void doFilter(ServletRequest request
 ServletResponse response,

 FilterChain chain)

throws IOException, ServletException 

{ 


long startTime = System.currentTimeMillis();

chain.doFilter(request, response);

long stopTime = System.currentTimeMillis();

System.out.println("Time to execute request: " + (stopTime - startTime) 
+ 

" milliseconds"); 


}

Later on in the service() doGet() or doPut() methods check the response to  
build the appropriate CompressionServletResponseWrapper

if (response instanceof HttpServletResponse) {
CompressionServletResponseWrapper wrappedResponse =

new 
CompressionServletResponseWrapper((HttpServletResponse)response);

wrappedResponse.setCompressionThreshold(compressionThreshold);

if (debug > 0) {

System.out.println("doFilter gets called with compression");

}
}

Make SURE the actual class (which is displayed from your web.xml) 
is on your classpath or your class is located in  
$TOMCAT_HOME/webapps/NameOfYourWebApp/WEB-INF/classes)

The example $TOMCAT_HOME\webapps\servlets-examples\WEB-INF\web.xml displays


Compression Filter
compressionFilters.CompressionFilter



HTH
Martin--

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  - Original Message - 
  From: Kevin Mullin 
  To: users@tomcat.apache.org 
  Sent: Friday, September 15, 2006 11:27 AM
  Subject: Help please



  I've just downloaded Tomcat 5.5.17 and am trying to run it on our mainframe 
system that is running z/OS 1.7 operating system.  I am getting a failure in 
Tomcat that says: 
  java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
  Does anyone know what is causing this, and what I can do to correct it?



Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   



RE: Help please

2006-09-15 Thread Robert Harper
Check your definition of the servlet in the [app_root]/WEB-INF/web.xml file.
There is a reference to where the filters are located. You probably need to
either create this class or remove the reference from the web.xml file.

 

Robert S. Harper

Information Access Technology, Inc.

  _  

From: Kevin Mullin [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 9:27 AM
To: users@tomcat.apache.org
Subject: Help please

 


I've just downloaded Tomcat 5.5.17 and am trying to run it on our mainframe
system that is running z/OS 1.7 operating system.  I am getting a failure in
Tomcat that says: 
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
Does anyone know what is causing this, and what I can do to correct it?





Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED] 

  

 



Re: help please?

2006-03-27 Thread Asegid Debebe
Thanks Mark,


On 3/27/06, Mark Eggers <[EMAIL PROTECTED]> wrote:
>
>
> http://www.wickedlysmart.com/HeadFirst/HeadFirstDesignPatterns/HeadFirstPatternsIndex.html
>
> Grab the examples.  I think the last ones have a full
> blown MVC example.  One uses Spring and one is coded
> plain.
>
> Of course, any prof worth his or her salt is going to
> both read this mailing list and know the online
> examples . . . so please use 'em as templates, not
> verbatum.
>
> BTW, I've found the Head First series of books to be
> really good.  They're more conversational than more
> traditional texts, which may help some people to learn
> more easily.
>
> I'll skip the editorializing . . . except to say that
> a little bit of scheduling might help in the future.
>
> Oh - and a day without sleep is not necessarily a bad
> thing.
>
> Just my two cents . . . .
>
> /mde/
> --- Asegid Debebe <[EMAIL PROTECTED]> wrote:
>
> > Do you have any suggestion, David?
> >
> > Thanks,
> >
> >
> > On 3/27/06, David Kerber <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Waited a bit too long to start your homework, did
> > you?  ;-)
> > >
> > > Asegid Debebe wrote:
> > >
> > > >Dear all,  I really need to complete a very
> > "simple" web application
> > > which
> > > >demonstrate the MVC architecture fully. I would
> > love to do it myself from
> > > >scratch but given the time I have, I can't!. I
> > really appreciate if
> > > someone
> > > >can point me where I can find a very simple
> > implementation of MVC using
> > > >Servlet, JSP on tomcat platform. I promise I will
> > never ask such a
> > > question
> > > >and take your worthy time in the future. I really
> > don't have time!! have
> > > to
> > > >submit it in 24 hours!!
> > > >
> > > >please?
> > > >
> > > >Regards,
> > > >
> > > >Asegid
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help please?

2006-03-27 Thread Steve Ochani
On 27 Mar 2006 at 23:31, Asegid Debebe wrote:

> Thanks David, I am currently in a class on e-Apps development using
> J2EE and tomcat server. MVC is designed to make complex applications
> design simpler by breaking down the applicatioin in to three separate
> and virtually-independent components, the Model (the application
> Data), the View (the way the data is displayed to the user) and the
> controller ( that handles all the request and invokes the necessary
> methods on the model according to the request and finally determines
> which view should be displayed). This is the overall description of
> MVC and it is the best choice complex  enterprise applications.
> 

According to books yes it is, however in the "real world" that is often not the 
case.




> Thx,
> 
> 
> On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
> >
> > No, I don't know anything about MVC as such.  I know MVC stands for
> > "Model View Controller", but have no idea how it applies to writing
> > a real application.  I'm purely a self-taught programmer and
> > database designer/administrator.  I've been programming since 8th
> > grade in the mid-70's (on an HP-2000 mini computer), but the only
> > formal programming course I've had was Fortran in college, and I've
> > never taken any computer science or programming theory courses.
> >
> >
> > Asegid Debebe wrote:
> >
> > >Do you have any suggestion, David?
> > >
> > >Thanks,
> > >
> > >
> > >On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >>Waited a bit too long to start your homework, did you?  ;-)
> > >>
> > >>Asegid Debebe wrote:
> > >>
> > >>
> > >>
> > >>>Dear all,  I really need to complete a very "simple" web
> > >>>application
> > >>>
> > >>>
> > >>which
> > >>
> > >>
> > >>>demonstrate the MVC architecture fully. I would love to do it
> > >>>myself
> > from
> > >>>scratch but given the time I have, I can't!. I really appreciate
> > >>>if
> > >>>
> > >>>
> > >>someone
> > >>
> > >>
> > >>>can point me where I can find a very simple implementation of MVC
> > >>>using Servlet, JSP on tomcat platform. I promise I will never ask
> > >>>such a
> > >>>
> > >>>
> > >>question
> > >>
> > >>
> > >>>and take your worthy time in the future. I really don't have
> > >>>time!!
> > have
> > >>>
> > >>>
> > >>to
> > >>
> > >>
> > >>>submit it in 24 hours!!
> > >>>
> > >>>please?
> > >>>
> > >>>Regards,
> > >>>
> > >>>Asegid
> > >>>
> > >>>
> >
> >
> >
> > 
> > - 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: help please?

2006-03-27 Thread David Kerber
So it's just another variation on the old 3-layer application 
architecture...



Asegid Debebe wrote:


Thanks David, I am currently in a class on e-Apps development using J2EE and
tomcat server. MVC is designed to make complex applications design simpler
by breaking down the applicatioin in to three separate and
virtually-independent components, the Model (the application Data), the View
(the way the data is displayed to the user) and the controller ( that
handles all the request and invokes the necessary methods on the model
according to the request and finally determines which view should be
displayed). This is the overall description of MVC and it is the best choice
complex  enterprise applications.

Thx,


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
 


No, I don't know anything about MVC as such.  I know MVC stands for
"Model View Controller", but have no idea how it applies to writing a
real application.  I'm purely a self-taught programmer and database
designer/administrator.  I've been programming since 8th grade in the
mid-70's (on an HP-2000 mini computer), but the only formal programming
course I've had was Fortran in college, and I've never taken any
computer science or programming theory courses.


Asegid Debebe wrote:

   


Do you have any suggestion, David?

Thanks,


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:


 


Waited a bit too long to start your homework, did you?  ;-)

Asegid Debebe wrote:



   


Dear all,  I really need to complete a very "simple" web application


 


which


   


demonstrate the MVC architecture fully. I would love to do it myself
 


from
   


scratch but given the time I have, I can't!. I really appreciate if


 


someone


   


can point me where I can find a very simple implementation of MVC using
Servlet, JSP on tomcat platform. I promise I will never ask such a


 


question


   


and take your worthy time in the future. I really don't have time!!
 


have
   

 


to


   


submit it in 24 hours!!

please?

Regards,

Asegid
 





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



Re: help please?

2006-03-27 Thread Asegid Debebe
Thanks David, I am currently in a class on e-Apps development using J2EE and
tomcat server. MVC is designed to make complex applications design simpler
by breaking down the applicatioin in to three separate and
virtually-independent components, the Model (the application Data), the View
(the way the data is displayed to the user) and the controller ( that
handles all the request and invokes the necessary methods on the model
according to the request and finally determines which view should be
displayed). This is the overall description of MVC and it is the best choice
complex  enterprise applications.

Thx,


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
>
> No, I don't know anything about MVC as such.  I know MVC stands for
> "Model View Controller", but have no idea how it applies to writing a
> real application.  I'm purely a self-taught programmer and database
> designer/administrator.  I've been programming since 8th grade in the
> mid-70's (on an HP-2000 mini computer), but the only formal programming
> course I've had was Fortran in college, and I've never taken any
> computer science or programming theory courses.
>
>
> Asegid Debebe wrote:
>
> >Do you have any suggestion, David?
> >
> >Thanks,
> >
> >
> >On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Waited a bit too long to start your homework, did you?  ;-)
> >>
> >>Asegid Debebe wrote:
> >>
> >>
> >>
> >>>Dear all,  I really need to complete a very "simple" web application
> >>>
> >>>
> >>which
> >>
> >>
> >>>demonstrate the MVC architecture fully. I would love to do it myself
> from
> >>>scratch but given the time I have, I can't!. I really appreciate if
> >>>
> >>>
> >>someone
> >>
> >>
> >>>can point me where I can find a very simple implementation of MVC using
> >>>Servlet, JSP on tomcat platform. I promise I will never ask such a
> >>>
> >>>
> >>question
> >>
> >>
> >>>and take your worthy time in the future. I really don't have time!!
> have
> >>>
> >>>
> >>to
> >>
> >>
> >>>submit it in 24 hours!!
> >>>
> >>>please?
> >>>
> >>>Regards,
> >>>
> >>>Asegid
> >>>
> >>>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help please?

2006-03-27 Thread Mark Eggers
http://www.wickedlysmart.com/HeadFirst/HeadFirstDesignPatterns/HeadFirstPatternsIndex.html

Grab the examples.  I think the last ones have a full
blown MVC example.  One uses Spring and one is coded
plain.

Of course, any prof worth his or her salt is going to
both read this mailing list and know the online
examples . . . so please use 'em as templates, not
verbatum.

BTW, I've found the Head First series of books to be
really good.  They're more conversational than more
traditional texts, which may help some people to learn
more easily.

I'll skip the editorializing . . . except to say that
a little bit of scheduling might help in the future.

Oh - and a day without sleep is not necessarily a bad
thing.

Just my two cents . . . .

/mde/
--- Asegid Debebe <[EMAIL PROTECTED]> wrote:

> Do you have any suggestion, David?
> 
> Thanks,
> 
> 
> On 3/27/06, David Kerber <[EMAIL PROTECTED]>
> wrote:
> >
> > Waited a bit too long to start your homework, did
> you?  ;-)
> >
> > Asegid Debebe wrote:
> >
> > >Dear all,  I really need to complete a very
> "simple" web application
> > which
> > >demonstrate the MVC architecture fully. I would
> love to do it myself from
> > >scratch but given the time I have, I can't!. I
> really appreciate if
> > someone
> > >can point me where I can find a very simple
> implementation of MVC using
> > >Servlet, JSP on tomcat platform. I promise I will
> never ask such a
> > question
> > >and take your worthy time in the future. I really
> don't have time!! have
> > to
> > >submit it in 24 hours!!
> > >
> > >please?
> > >
> > >Regards,
> > >
> > >Asegid
> > >
> > >
> > >
> >
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: help please?

2006-03-27 Thread David Kerber
No, I don't know anything about MVC as such.  I know MVC stands for 
"Model View Controller", but have no idea how it applies to writing a 
real application.  I'm purely a self-taught programmer and database 
designer/administrator.  I've been programming since 8th grade in the 
mid-70's (on an HP-2000 mini computer), but the only formal programming 
course I've had was Fortran in college, and I've never taken any 
computer science or programming theory courses. 



Asegid Debebe wrote:


Do you have any suggestion, David?

Thanks,


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
 


Waited a bit too long to start your homework, did you?  ;-)

Asegid Debebe wrote:

   


Dear all,  I really need to complete a very "simple" web application
 


which
   


demonstrate the MVC architecture fully. I would love to do it myself from
scratch but given the time I have, I can't!. I really appreciate if
 


someone
   


can point me where I can find a very simple implementation of MVC using
Servlet, JSP on tomcat platform. I promise I will never ask such a
 


question
   


and take your worthy time in the future. I really don't have time!! have
 


to
   


submit it in 24 hours!!

please?

Regards,

Asegid
 





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



Re: help please?

2006-03-27 Thread Asegid Debebe
Do you have any suggestion, David?

Thanks,


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
>
> Waited a bit too long to start your homework, did you?  ;-)
>
> Asegid Debebe wrote:
>
> >Dear all,  I really need to complete a very "simple" web application
> which
> >demonstrate the MVC architecture fully. I would love to do it myself from
> >scratch but given the time I have, I can't!. I really appreciate if
> someone
> >can point me where I can find a very simple implementation of MVC using
> >Servlet, JSP on tomcat platform. I promise I will never ask such a
> question
> >and take your worthy time in the future. I really don't have time!! have
> to
> >submit it in 24 hours!!
> >
> >please?
> >
> >Regards,
> >
> >Asegid
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help please?

2006-03-27 Thread Asegid Debebe
Yes, I took too much time with other stuff and realized that it is due
tomorrow . . . I don't think I will ever sleep today . . .

AD


On 3/27/06, David Kerber <[EMAIL PROTECTED]> wrote:
>
> Waited a bit too long to start your homework, did you?  ;-)
>
> Asegid Debebe wrote:
>
> >Dear all,  I really need to complete a very "simple" web application
> which
> >demonstrate the MVC architecture fully. I would love to do it myself from
> >scratch but given the time I have, I can't!. I really appreciate if
> someone
> >can point me where I can find a very simple implementation of MVC using
> >Servlet, JSP on tomcat platform. I promise I will never ask such a
> question
> >and take your worthy time in the future. I really don't have time!! have
> to
> >submit it in 24 hours!!
> >
> >please?
> >
> >Regards,
> >
> >Asegid
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help please?

2006-03-27 Thread David Kerber

Waited a bit too long to start your homework, did you?  ;-)

Asegid Debebe wrote:


Dear all,  I really need to complete a very "simple" web application which
demonstrate the MVC architecture fully. I would love to do it myself from
scratch but given the time I have, I can't!. I really appreciate if someone
can point me where I can find a very simple implementation of MVC using
Servlet, JSP on tomcat platform. I promise I will never ask such a question
and take your worthy time in the future. I really don't have time!! have to
submit it in 24 hours!!

please?

Regards,

Asegid

 





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



Re: help please?

2006-03-27 Thread Asegid Debebe
Thanks Michael, I am checkig it.

Thanks!!

AD


On 3/27/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 3/27/06, Asegid Debebe <[EMAIL PROTECTED]> wrote:
> > Dear all,  I really need to complete a very "simple" web application
> which
> > demonstrate the MVC architecture fully. I would love to do it myself
> from
> > scratch but given the time I have, I can't!. I really appreciate if
> someone
> > can point me where I can find a very simple implementation of MVC using
> > Servlet, JSP on tomcat platform.
>
> For example:
>
> http://weblogs.java.net/blog/simongbrown/archive/2006/03/comparing_webap_10.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help please?

2006-03-27 Thread Michael Jouravlev
On 3/27/06, Asegid Debebe <[EMAIL PROTECTED]> wrote:
> Dear all,  I really need to complete a very "simple" web application which
> demonstrate the MVC architecture fully. I would love to do it myself from
> scratch but given the time I have, I can't!. I really appreciate if someone
> can point me where I can find a very simple implementation of MVC using
> Servlet, JSP on tomcat platform.

For example:
http://weblogs.java.net/blog/simongbrown/archive/2006/03/comparing_webap_10.html

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