RE: Weird Problems

2004-02-10 Thread Vernon Wu
Thanks Yoav for your response. 

The first problem is the session counter. It is implemented with the
HttpSessionListener. It works fine until recently. Under the TC5.0.X,
the
counter can be a negative figure.

The problem is obviously in your session counter code: if you posted it,
we could help more.


I wish I can say the same. It, however, doesn' explain why the problem only occurs 
recently. I note it on TC 5.0.x with the same code (I believe). Here is the code 
segment:

public final class MyListener
implements
ServletContextListener,
HttpSessionListener,
HttpSessionActivationListener {


private static int activeSessionCount = 0;

public void contextInitialized(ServletContextEvent evt) {

// ...
}

public void contextDestroyed(ServletContextEvent evt) {

// ...
}

public void sessionCreated(HttpSessionEvent evt) {

activeSessionCount++;
HttpSession session = evt.getSession();
// ...
logger.info(
The session ID: 
+ session.getId()
+ , the total # of active sessions: 
+ activeSessionCount);
}

public void sessionDestroyed(HttpSessionEvent evt) {

activeSessionCount--;
logger.debug(The number of active sessions:  + activeSessionCount);
}

public void sessionWillPassivate(HttpSessionEvent evt) {
// ...
}

public void sessionDidActivate(HttpSessionEvent evt) {
logger.info(sessionDidActivate);
}

public static int getActiveSessionCount() {
return activeSessionCount;
}
}

The second is a quite severe problem. I configure the welcome file to
map a
JSP file. Sometimes, an incoming URL of the default domain leads to the
404
error. After I click the reload button on my browser, the JSP file
shows
up.

You need to do better than sometimes in order to get precise help.
When does it happen, when does it not happen, and what's in the logs in
both cases?

If I could pin point the occasion, I might solve it by now. I don't observe any logs 
from the container during the time when the error occurs, but I would like to know how 
set up logging messages for the problem. I don't know whether it is related with the 
container configuration. The tag pool is disable. 

Also, some users report the 404 error on some other use scenario, but we haven't 
observe the same. The error rate is above 7-8% of the total hits. If a user follows 
the action options on a screen, the error shall never happen. 

Vernon



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav and Andrew,

Thanks both for your helpful responses.

What if the container was restarted with several active sessions,
causing their serialization to disk, then deserialization when the
context starts back up, and then they timeout normally?  That will give
you a negative counter.


I didn't know the container save the information when it is down. Is it new for the 
5.0?


If I could pin point the occasion, I might solve it by now. I don't
observe
any logs from the container during the time when the error occurs, but
I
would like to know how set up logging messages for the problem. I don't
know whether it is related with the container configuration. The tag
pool
is disable.

For starters, enable the AccessLogValve so that you can see both
requests (the one that fails and the one that succeeds) and their
response codes.  You can also add logging to your JSP page.


After I enable the AccessLogValve, here is what I get in the access log file:

127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /jsp/templates/stylesheet.css 
HTTP/1.1 200 1558
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /favicon.ico HTTP/1.1 404 3362
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET / HTTP/1.1 200 3738

I don't know what the favicon.ico is. It is not a part of the application. After I 
click the reload button, the log message is the following:

127.0.0.1 - - [10/Feb/2004:09:30:15 -0800] GET /jsp/templates/stylesheet.css 
HTTP/1.1 304 -

So, the cause of the error is still a mystery to me.

What informat in a JSP file can be used to figure out the problem if I insert a log in 
a JSP file?
 
Thanks again. I have taken a big one step to solve the problem with both your helps.
 
- v.



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



Re: Tomcat 5 and applet

2004-02-10 Thread Vernon Wu
Since an Applet runs on a client box, you first need to place the .class in a client 
accessible directory, not underWEB-INF. 
--

- Original Message -

DATE: Wed, 11 Feb 2004 00:51:30
From: #214;#163;#189;#240;#212;#170; [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 

How to deplay applet in tomcat ?

Can somebody give a sample ?


When I request a page on tomcat contain a  applet , 
IE tell me can find the applet class,
but when I explore the IE cache dir ,I found the class is there


Can somebody tell me why ?



Sorry for my pool englist



Thanks

zhengjinyuan


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






Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav:


127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 200 1558
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /favicon.ico HTTP/1.1
404
3362
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET / HTTP/1.1 200 3738

I don't know what the favicon.ico is. It is not a part of the
application. After I click the reload button, the log message is the
following:

The favicon request is from Internet Explorer, looking for a little icon
to show by the address bar (and in bookmarks if users bookmark your
page).  You can ignore it.  The 200 responses are fine, no errors.


I got the error handling page at the time. In other words, a user see the error page 
and can't use the application any further when it happens. So, I need do something 
about it. The 404 error handling page is invoked through the configuration in the 
web.xml:

  error-page
error-code404/error-code
location/jsp/notfound.jsp/location
  /error-page
 
How can I change the way the notfound.jsp is invoked so that the type of 404 error is 
ignored?

127.0.0.1 - - [10/Feb/2004:09:30:15 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 304 -

So, the cause of the error is still a mystery to me.

304 is fine (and typical for a stylesheet): not modified, telling the
browser to use the copy it has cached.  So all of this looks fine in
your access log.  Repeat the test after clearing your browser's cache.


I can clear my browser's cache, but I can't ask all users to do the same. The too 
sensitive error report drives people away as far as I can tell.

I also enable the access log at the production box and I will observe the log file for 
any other causes.



Thank very much for your helps.

Vernon 




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav,

  error-page
  error-code404/error-code
  location/jsp/notfound.jsp/location
  /error-page

How can I change the way the notfound.jsp is invoked so that the type
of
404 error is ignored?

I don't understand the question.  If you don't want notfound.jsp to be
invoked for 404 errors, don't declare the error-page in web.xml.


The current configuration catches all of the 404 error although the final reported 
code is 200. I can remove the error-page from the web.xml. If I do so, how can I still 
catch any other 404 error? A solution I try to find out is to ignore some type of 404 
error, but not others.


Vernon 




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Mike,

There aren't any 'subtypes' of 404, and there is no way for a request to
be 404 at one point in its life, and then finally a 200.
 
To avoid the 404 you're seeing, why not put a favicon.ico gif image in
the root of the web directory?  It can be a transparent gif. It's an
annoyance, courtesy of certain versions of IE.

That is a good work-around solution. Hopefully, that is the only cause of all of 
nonsense 404 error. 

Wait a minute. I didn't use IE at all when I tested this problem this morning. What I 
had is the Netscape 7.1. I don't know whether this browser pretend itself as IE or 
not. 

Vernon



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



Weird Problems

2004-02-09 Thread Vernon Wu

I have these two wired problems on TC for some time. I need to resolve them now with 
some helps.

The first problem is the session counter. It is implemented with the 
HttpSessionListener. It works fine until recently. Under the TC5.0.X, the counter can 
be a negative figure. 

The second is a quite severe problem. I configure the welcome file to map a JSP file. 
Sometimes, an incoming URL of the default domain leads to the 404 error. After I click 
the reload button on my browser, the JSP file shows up.

Do someone know the solution of these two problems?

Thanks,

v.



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



The sessionCreated is not called at TC 4.1.27

2003-09-01 Thread Vernon Wu
I have moved my project to TC 4.1.27 recently. Today, I notice the
sessionCreated method of HttpSessionListener is not called when a new
session is created, but the sessionDestroyed is called when a session is
deceased.

It a bug in the 4.1.27 (it is fine in the 4.1.24), or something is not
right in the application itself?

Anyone else has the same experience?

Thanks,

Vernon


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



Any changes on listener cofiguration for TC4.1?

2003-02-28 Thread Vernon Wu

I am updating my project from TC4.0 to 4.1 once again this morning. For some reason, 
the sessionCreated method of 
HttpSessionListener  is not called at all. The whole application is blocked as a 
result. 

Any configuration needs to be changed or something else?

Thanks for your input.

Vernon



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



Re: ejbs and sql server

2003-02-28 Thread Vernon Wu

It doesn't seem to be a right mail list for your question.


28/02/2003 11:28:05 AM, Michael Ni [EMAIL PROTECTED] wrote:

Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
have different queries that i want to run but i want to make my connection 
and queries in a EJB so i dont have to retype it in my JSP pages every time 
i need it.  Also does anyone have examples of JSP pages calling EJBs?

mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


-
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: RE: ejbs and sql server

2003-02-28 Thread Vernon Wu

Neither did I.


28/02/2003 11:41:53 AM, Robert Csiki [EMAIL PROTECTED] wrote:





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



Re: RE: ejbs and sql server

2003-02-28 Thread Vernon Wu

Do you know there is a huge difference between EJB and Java Bean?

Many have responsed correctly to your wrong question. Please do know what you ask for 
next time!

 
28/02/2003 1:43:54 PM, Michael Ni [EMAIL PROTECTED] wrote:

http://128.91.107.144:8080/examples/jsp/index.html

in the tomcat examples there is an example date as shown in the url above.  
that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
this is use of a jsp page making an instance of a ejb (java bean).  how come 
they didn't have to set up additional software?  but everyone is saying you 
need to install additional software so that tomcat can use ejbs?

mike ni






From: Jeremy Whitlock [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: ejbs and sql server
Date: Fri, 28 Feb 2003 13:23:04 -0700

Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
Later, J

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:24 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server

nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org

Filip

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server


im unclear how EJBs work with tomkat.  do we just put all the classfiles

inside WEB-INF and they work?

mike






 From: Tam, Michael [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: ejbs and sql server
 Date: Fri, 28 Feb 2003 15:01:10 -0500
 
 Well, you should try search example online i.e. through google.  EJB is
a
 standard and should work with any DBMS (usually ;) ). Once you find an
 example and it should work on your choice of DBMS.
 
 -Original Message-
 From: Michael Ni [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:28 AM
 To: [EMAIL PROTECTED]
 Subject: ejbs and sql server
 
 
 Hi does anyone have examples of EJBs that connect to SQL Server 2000?
I
 have different queries that i want to run but i want to make my
connection
 and queries in a EJB so i dont have to retype it in my JSP pages every
time
 i need it.  Also does anyone have examples of JSP pages calling EJBs?
 
 mike
 
 
 
 
 
 _
 The new MSN 8: advanced junk mail protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail
 
 
 -
 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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


-
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]



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


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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: RE: web.xml servlet and resources

2003-02-22 Thread Vernon Wu
One way to deal with this issue is to break down the file type in the someservlet 
directory rathen than having a URL 
mapping for the whole directory. Say for all JSP files, you have 

servlet-mapping
servlet-nameTheServlet/servlet-name
url-pattern/*.jsp/url-pattern
/servlet-mapping

Hope this helps.

30/01/2003 10:40:33 AM, Richard Wallace [EMAIL PROTECTED] wrote:

On Thu, 2003-01-30 at 05:43, Daniel Brown wrote:
 Richard,
 
 You could use HttpServletRequest.getPathInfo() to read the extra path
 information after servlet name, read the corresponding object from disk, set
 an appropriate MIME type, and then send the object back in the response.
 
 But it's a lot of new code for something that doesn't seem like a good thing
 to do.
 

I had thought about that and decided it was a bit inelegant a solution
(especially when it should be easier and require no additional code).

 Why not just,
 - use a standard webapp structure,
 - map the servlet to '/someservlet' as you describe,
 - make an images subdirectory, and
 - link to the images using img src=images/foo.gif from within your
 servlet?
 

That's what I'm trying to do.  The question I have is where should the
images directory go in the webapp layout and how do I configure web.xml
so that the servlet doesn't catch requests to
/someservlet/images/foo.gif?

Right now what I have is a situation where the servlet is mapped to /. 
So the servlet address is http://localhost:8080/someservlet.  I have the
images directory at the root of the webapp (so there is a drectory
$CATALINA_HOME/webapps/someservlet/images).  But when I try and retrieve
an image using http://localhost:8080/someservlet/images/foo.gif the
servlet is sent the request.  My web.xml is as below.

webapp
display-nameSomeServletOfMine/display-name

servlet
servlet-nameTheServlet/servlet-name
servlet-classcom.some.Servlet/servlet-name
/servlet

servlet-mapping
servlet-nameTheServlet/servlet-name
url-pattern//url-pattern
/servlet-mapping
/webapp

So what above needs to change so that a URL of
http://localhost:8080/someservlet/images/foo.gif is not processed by
TheServlet?

Thanks.

 Then, Tomcat does all the work for you. Use the ROOT webapp if you don't
 want the name of the webapp in the URL.
 
 If you want all requests to run through the servlet for security reasons, or
 something, then you should possibly consider using a Servlet 2.3 Filter
 instead - this is exactly what they're designed for.
 
 Dan.
 
  -Original Message-
  From: Richard Wallace [mailto:[EMAIL PROTECTED]
  Sent: 30 January 2003 00:17
  To: [EMAIL PROTECTED]
  Subject: web.xml servlet and resources
 
 
  Hello all,
 
  This is a fairly simple problem but I haven't been able to find an
  answer anywhere (I've been looking for the past day or two).  I'm hoping
  this is a common situation and is possible, but from what I've seen I
  can't see how.
 
  What I want is for the resources (images, css files, etc.) to be in a
  path relative to the servlet.  So, if I have an images directory and the
  servlet URL is http://www.domain.com/some-servlet, the images should be
  accessible from this URL, http://www.domain.com/some-servlet/images.
  So, I want to set the URL pattern for some-servlet to be /.  If I do
  that then every URL beginning with that will be grabbed by the servlet,
  including http://www.domain.com/some-servlet/images/logo.gif (as an
  example).
 
  Suggestions?  Thanks.
  --
  Richard Wallace
  AIM, Inc. (www.a--i--m.com)
  Information Systems Consultants
 
  Providing New Technology,
   the Old-Fashioned Way
 
 
  -
  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]
-- 
Richard Wallace
AIM, Inc. (www.a--i--m.com)
Information Systems Consultants

Providing New Technology,
 the Old-Fashioned Way


-
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: [OT] a good book for (pre) web design ?

2003-02-22 Thread Vernon Wu

If you intend to employ the J2EE technologies to build a web application, Rod 
Johnson's 
new book, Expert One on One J2EE Design and Development shall be a very good 
resource.


22/02/2003 1:52:35 PM, Jens Skripczynski [EMAIL PROTECTED] wrote:

Hi,

I'm looking for a book, that helps/guides me through a website planning.

Explanation will get rather lenghty, so I'm looking for some experienced guy,
I can ask for some ressources.

(* replies please in PM, since i do not want to clutter the mailinglist *)
(* I believe the amount here is enourmourous (?)  100  mails / day*)
   
- I have  oreily 'Information architecture' which says, you need 
- navigation
- meta data
- search
- books about jsp, servlet, xslt
- i know how to use html, ssi and php

But i'm really stuck in planing a new site from scratch.

One thing i'm interested in, is a book, that asks me the right questions,
guides me through the process.

[...] I wrote down many questions, but mainly it boils down to 2 questins:

- How to architect a site ? (Here i have some ideas / help)
   - layout
   - directory structure
   - URL structure (they should not change in the future)
   - do's - don'ts

- How do i implement the site (howto combine the tools avaible) ?
  (here i'm totally lost, in the sheer amount of things avaible.
   they are all good, for the stuff, they were written, 
   but for most, i can't determine the purpose, and they all seem like
   hen-cow-pig soltions (egg, milk  meat) so  one 4 all solution)

   - what tools are avaible, and where are they usefull (strength, weaknesses,
 small solution  enterprise solution, setup time, administration,
 stable...)
- content solutions
   - static xhtml from xslt
   - struts
   - jsp  servlets
- metadata manangement for search engines
- database comparison (this was already solved in another email)


Currently I'm very afraid of a redisign or at worst a total relaunch, because
i used the wrong technic - so i want to do things right from the
scratch, or at least try to minimize the number of flaws.

I've been searching for a book, that gives me support for my questions, but
those books i found explain one technics (like jsp, servlet, html,... ) but they do 
not
tell me, how the combine those.


P.S.: Where is a good place to ask tomcat, jsp, servlet, logging related
  questions ? 
  [OT] is quiet popular here and the answers were always very helpfull to
  me, but they do not belong here. Who knows a good community ?

Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

Gehe Grosse Dinge mit Gelassenheit an. [...] Und nehme kleine Dinge ernst.
-- aus Ghost Dog


-
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: RE: web.xml servlet and resources

2003-02-22 Thread Vernon Wu

After sent out the previous email, I just recoginzed the orginal one was more than two 
weeks ago. 

Sorry for unwanted reply.


22/02/2003 3:46:48 PM, Vernon Wu [EMAIL PROTECTED] wrote:

One way to deal with this issue is to break down the file type in the someservlet 
directory rathen than having a URL 
mapping for the whole directory. Say for all JSP files, you have 

servlet-mapping
servlet-nameTheServlet/servlet-name
url-pattern/*.jsp/url-pattern
/servlet-mapping

Hope this helps.

30/01/2003 10:40:33 AM, Richard Wallace [EMAIL PROTECTED] wrote:

On Thu, 2003-01-30 at 05:43, Daniel Brown wrote:
 Richard,
 
 You could use HttpServletRequest.getPathInfo() to read the extra path
 information after servlet name, read the corresponding object from disk, set
 an appropriate MIME type, and then send the object back in the response.
 
 But it's a lot of new code for something that doesn't seem like a good thing
 to do.
 

I had thought about that and decided it was a bit inelegant a solution
(especially when it should be easier and require no additional code).

 Why not just,
 - use a standard webapp structure,
 - map the servlet to '/someservlet' as you describe,
 - make an images subdirectory, and
 - link to the images using img src=images/foo.gif from within your
 servlet?
 

That's what I'm trying to do.  The question I have is where should the
images directory go in the webapp layout and how do I configure web.xml
so that the servlet doesn't catch requests to
/someservlet/images/foo.gif?

Right now what I have is a situation where the servlet is mapped to /. 
So the servlet address is http://localhost:8080/someservlet.  I have the
images directory at the root of the webapp (so there is a drectory
$CATALINA_HOME/webapps/someservlet/images).  But when I try and retrieve
an image using http://localhost:8080/someservlet/images/foo.gif the
servlet is sent the request.  My web.xml is as below.

webapp
display-nameSomeServletOfMine/display-name

servlet
servlet-nameTheServlet/servlet-name
servlet-classcom.some.Servlet/servlet-name
/servlet

servlet-mapping
servlet-nameTheServlet/servlet-name
url-pattern//url-pattern
/servlet-mapping
/webapp

So what above needs to change so that a URL of
http://localhost:8080/someservlet/images/foo.gif is not processed by
TheServlet?

Thanks.

 Then, Tomcat does all the work for you. Use the ROOT webapp if you don't
 want the name of the webapp in the URL.
 
 If you want all requests to run through the servlet for security reasons, or
 something, then you should possibly consider using a Servlet 2.3 Filter
 instead - this is exactly what they're designed for.
 
 Dan.
 
  -Original Message-
  From: Richard Wallace [mailto:[EMAIL PROTECTED]
  Sent: 30 January 2003 00:17
  To: [EMAIL PROTECTED]
  Subject: web.xml servlet and resources
 
 
  Hello all,
 
  This is a fairly simple problem but I haven't been able to find an
  answer anywhere (I've been looking for the past day or two).  I'm hoping
  this is a common situation and is possible, but from what I've seen I
  can't see how.
 
  What I want is for the resources (images, css files, etc.) to be in a
  path relative to the servlet.  So, if I have an images directory and the
  servlet URL is http://www.domain.com/some-servlet, the images should be
  accessible from this URL, http://www.domain.com/some-servlet/images.
  So, I want to set the URL pattern for some-servlet to be /.  If I do
  that then every URL beginning with that will be grabbed by the servlet,
  including http://www.domain.com/some-servlet/images/logo.gif (as an
  example).
 
  Suggestions?  Thanks.
  --
  Richard Wallace
  AIM, Inc. (www.a--i--m.com)
  Information Systems Consultants
 
  Providing New Technology,
   the Old-Fashioned Way
 
 
  -
  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]
-- 
Richard Wallace
AIM, Inc. (www.a--i--m.com)
Information Systems Consultants

Providing New Technology,
 the Old-Fashioned Way


-
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]






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



Re: including header, footer in jsp

2003-02-22 Thread Vernon Wu

Read David Greay's Advanced JavaServer Pages. You will get the answer for your 
question.

 
22/02/2003 10:25:02 AM, runu rathi [EMAIL PROTECTED] wrote:

Hi all,
  
If I want to design an application such that I have a
template for the footer, header, side menus etc.. And
I want to include that in all my jsp pages without
copying the whole of it. How can I do it?

Thanks for any help.
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
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]



Session crossing over

2003-02-18 Thread Vernon Wu


Here is a test case of my project on TC 4.0.4:

When two or three sessions submit actions simultaneously, outputs are mixed up or  
malfunctioning. The situation can 
be one data fetching result show up on two sessions' page: unable to retrieve session 
attributes. 

All clients and the server as well as the DB are on the same box. The box is a very 
old PC (233MH CPU), which is good 
on a load test (right?). I do see the different session ID when a session is 
initialized. The application utilizes a DB 
connection pool and all sessions share the same DAO.  

What is the cause here: one client one machine, box too slow, architecutre problems, 
DB connection pool problems?

Thanks for your advice.

Vernon



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




Integration between JTA and TC4

2003-01-30 Thread Vernon Wu

While I am looking for a  JTA implement for my Java web project, I saw this news: 
http://www.theserverside.com/home/thread.jsp?thread_id=17638article_count=10. Have 
anyone integrated  JOTM 
(Java Open Transaction Manager) with Tomcat 4? Any recommendation for other JTA 
implemention with TC4?

Thanks for your input.

Vernon



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




Re: AW: AW: How can I achieve thread safe for context attributes?

2002-09-23 Thread Vernon Wu

Ralph,

Thanks again for your information.

Before I posted this question, I was thinking about how to make the object thread 
safe, but not the other object that it is 
contained thread safe. The approach works. I just help it would drag the performance 
since the application can have a 
very large number of users.

Vernon

9/22/2002 11:24:09 PM, Ralph Einfeldt [EMAIL PROTECTED] wrote:

That depends on how much work is done inside the synchronized block
compared to the amount of work that is done outside this block.
The more is done inside the block the more the server will slow down
when concurrent requests hit blocks that are synchronized on the same 
object.

 -Ursprüngliche Nachricht-
 Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 20. September 2002 16:42
 An: Tomcat Users List
 Betreff: Re: AW: How can I achieve thread safe for context attributes?
 
 Thanks Ralph for the solutation. I, however, wonder whether 
 the server will be slow down a lot after the servlet context 
 is synchronized for the operation. The context is the center 
 object in the servlet.
  






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




Re: AW: How can I achieve thread safe for context attributes?

2002-09-20 Thread Vernon Wu


Thanks Ralph for the solutation. I, however, wonder whether the server will be slow 
down a lot after the servlet context 
is synchronized for the operation. The context is the center object in the servlet.
 
9/20/2002 12:17:09 AM, Ralph Einfeldt [EMAIL PROTECTED] wrote:


synchronized (cxt) {
  CurrentUsers cs = 
(CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
  String user = (String)session.getAttribute(WebKeys.UserID);
  cs.remove(user); // or other modification
  // cxt.setAttribute(WebKeys.CurrentUsers, cs); 
  // This one is not needed, as cs is just a reference to 
  // the object that is stored in the context.
  // You only need this if you want to replace an object in 
  // the context with a different object. 
}

 -Ursprüngliche Nachricht-
 Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 19. September 2002 23:27
 An: [EMAIL PROTECTED]
 Betreff: How can I achieve thread safe for context attributes?
 
 
 
 I have an attribute stored in the servlet context scope. 
 Various sessions can access it at any giving moment. It must be 
 thread safe. How can achieve thread safe?
 
  CurrentUsers cs = 
 (CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
  String user = (String)session.getAttribute(WebKeys.UserID);
  cs.remove(user); // or other modification
  cxt.setAttribute(WebKeys.CurrentUsers, cs);
  
 
 
 
 
 --
 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: Incorrect on display Traditional Chinese in JSP

2002-09-20 Thread Vernon Wu


With %@ page contentType='text/html; charset=UTF-8' %, Chinese character can be 
displayed in my jsp files.

9/20/2002 2:14:04 AM, Daniel [EMAIL PROTECTED] wrote:





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




How can I achieve thread safe for context attributes?

2002-09-19 Thread Vernon Wu


I have an attribute stored in the servlet context scope. Various sessions can access 
it at any giving moment. It must be 
thread safe. How can achieve thread safe?

CurrentUsers cs = (CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
String user = (String)session.getAttribute(WebKeys.UserID);
cs.remove(user); // or other modification
cxt.setAttribute(WebKeys.CurrentUsers, cs);
 




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




Same specification, different behavior ? what shall I do?

2002-09-10 Thread Vernon Wu


In the past four months, I have been working on a web application along with Catalina 
? Tomcat 4.0.x. For the reason 
that a large number of JSTL i18n message tag isn't working on one page, I was told to 
migrate 4.1.x as one of the 
solutions. The problem is the application doesn't behavior properly under the 4.1. I 
had posted a question in this mail list 
in regarding of the problem some weeks ago with no any response. 

Can someone point out what shall I do, report a bug or something else?   

That is only problem left to complete the application development right now.
 
BTW, the problem is only one of two template files is used in 4.1.x version, but not 
in 4.0.x.

Thanks for your advice.


Vernon



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




Re: RE: Same specification, different behavior ? what shall I do?

2002-09-10 Thread Vernon Wu


Yes, that is the other solution. But I would like to use the import tag of JSTL 
instead. I, however, don't know how to 
pass form bean around those JSP files. Any suggestion?

 
9/10/2002 4:39:46 PM, Martin Cooper [EMAIL PROTECTED] wrote:

If the problem is just too many tags on one page, breaking that page into
multiple pages and using jsp:include should solve the problem.

--
Martin Cooper


 -Original Message-
 From: Vernon Wu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 10, 2002 4:32 PM
 To: [EMAIL PROTECTED]
 Subject: Same specification, different behavior ? what shall I do?
 Importance: High
 
 
 
 In the past four months, I have been working on a web 
 application along with Catalina ? Tomcat 4.0.x. For the reason 
 that a large number of JSTL i18n message tag isn't working on 
 one page, I was told to migrate 4.1.x as one of the 
 solutions. The problem is the application doesn't behavior 
 properly under the 4.1. I had posted a question in this mail list 
 in regarding of the problem some weeks ago with no any response. 
 
 Can someone point out what shall I do, report a bug or 
 something else?   
 
 That is only problem left to complete the application 
 development right now.
  
 BTW, the problem is only one of two template files is used in 
 4.1.x version, but not in 4.0.x.
 
 Thanks for your advice.
 
 
 Vernon
 
 
 
 --
 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: RE: RE: Same specification, different behavior ? what shall I do?

2002-09-10 Thread Vernon Wu


That shall work. I, however, still like to get my app on 4.1.x for the performance 
reason. As you alrady know, I use a lot 
of JSTL tags.

Vernon


9/10/2002 5:08:30 PM, Martin Cooper [EMAIL PROTECTED] wrote:



 -Original Message-
 From: Vernon Wu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 10, 2002 4:53 PM
 To: 'Tomcat Users List'; Martin Cooper
 Subject: Re: RE: Same specification, different behavior ? what shall I
 do?
 
 
 
 Yes, that is the other solution. But I would like to use the 
 import tag of JSTL instead. I, however, don't know how to 
 pass form bean around those JSP files. Any suggestion?

Just store the bean as a request attribute.

--
Martin Cooper


 
  
 9/10/2002 4:39:46 PM, Martin Cooper 
 [EMAIL PROTECTED] wrote:
 
 If the problem is just too many tags on one page, breaking 
 that page into
 multiple pages and using jsp:include should solve the problem.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Vernon Wu [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 10, 2002 4:32 PM
  To: [EMAIL PROTECTED]
  Subject: Same specification, different behavior ? what shall I do?
  Importance: High
  
  
  
  In the past four months, I have been working on a web 
  application along with Catalina ? Tomcat 4.0.x. For the reason 
  that a large number of JSTL i18n message tag isn't working on 
  one page, I was told to migrate 4.1.x as one of the 
  solutions. The problem is the application doesn't behavior 
  properly under the 4.1. I had posted a question in this mail list 
  in regarding of the problem some weeks ago with no any response. 
  
  Can someone point out what shall I do, report a bug or 
  something else?   
  
  That is only problem left to complete the application 
  development right now.
   
  BTW, the problem is only one of two template files is used in 
  4.1.x version, but not in 4.0.x.
  
  Thanks for your advice.
  
  
  Vernon
  
  
  
  --
  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]




Application malfunctioning on TC4.1.7b

2002-08-03 Thread Vernon Wu

I have been working on my current project for past four month on TC4.0. Due to  JSTL 
performance issue and the fmt
message tag memory usage issue, I would like to try the 4.1 version. The  application 
is runing fine on TC4.0. After I put
the application on TC4.1.7b, I encounter the following two problems so far and  can't 
use the application.

1. No resource files is loaded.  I employ the i18n tags in the application. On  the 
only page I can bring up, all text is the
question mark. Do I need to configure the 4.1 version in order to load resource  files?

2. I get the follow exception from the log in page:

javax.servlet.jsp.JspException: class  com.vernonwu.mm.accountinfo.model.AccountInfo :
java.lang.InstantiationException: com.vernonwu.mm.accountinfo.model.AccountInfo

The AccountInfo instance is not used in the page at all, but the next page after  a 
user log in.

I don't understand where this error comes from.

Thanks for your helps.

Vernon



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




Missing attributes - TC Bugs?

2002-06-14 Thread Vernon Wu


I am currently using TC4.0.4.b2 and experienced a strange situation. In my current 
project, a context listener initiates a 
DB connection pool and save it in the servlet context while the server is initiating; 
it also initiates an agent class when a 
session is up and save the instance in the session. 

A few day ago, I found for some unknown reason the connection pool was dereferred to 
null. 
Today, I find for an unknown reason the agent instance can not be retrieved. Do they 
caused by some bugs in TC?

The following error is related with the problem, but the message doesn't show all of 
time when the problem occures.

2002-06-14 05:40:59 StandardManager[/mm] Exception loading sessions from persistent 
storage
java.io.InvalidClassException: com.vernonwu.match.controller.web.MatchAgent; local 
class incompatible: stream 
classdesc serialVersionUID = 5047219192640347664, local class serialVersionUID = 
-7337541456441715806   


Thanks for your help.

Vernon



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




Unable to find setter: a problem with custom tag in TC 4.0.4b2

2002-06-01 Thread Vernon Wu

Hi, all,

I run into an error message on Tomcat 4.0.4b2 when I use a custom tag in a JSP   file. 
The error message is:

/jsp/fullsearchlist/content.jsp(4,0) Unable to find setter method for attribute:   
numItems

The code fragment is  the followings:

public abstract class ListTag extends TagSupport {
// ...
  protected int numItems = -1;
//...

  // setters
  public void setNumItems(String numItemsStr) {
numItems = Integer.parseInt(numItemsStr);
  }
}

public abstract class SearchListTag extends ListTag {
//...
  // setters (overloaded to fix bug in tomcat)
  public void setNumItems(String numItemsStr) {
super.setNumItems(numItemsStr);
  }
}

public class FullSearchListTag extends SearchListTag {
//...
  public void setNumItems(String numItemsStr) {
super.setNumItems(numItemsStr);
  }
}

I have tried to remove the setNumItems method from SearchList and/or   FullSearchList, 
but can't resolute the problem. 
I
learn that there was a bug led to this problem in the early version of Tomcat. Is   
the bug unresolved yet? How I can
overcome this problem?

Thanks very much in advance.

Vernon



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




Re: Unable to find setter: a problem with custom tag in TC 4.0.4b2

2002-06-01 Thread Vernon Wu
can usually pinpoint your problem.

fillup

P.S.  Subclasses inherit all the public methods of all superclasses, so I
don't really understand your overrides.

On 5/29/02 8:04 PM, Vernon Wu [EMAIL PROTECTED] wrote:

 Hi, all,
 
 I run into an error message on Tomcat 4.0.4b2 when I use a custom tag in a JSP
 file. The error message is:
 
 /jsp/fullsearchlist/content.jsp(4,0) Unable to find setter method for
 attribute:   numItems
 
 The code fragment is  the followings:
 
 public abstract class ListTag extends TagSupport {
 // ...
 protected int numItems = -1;
 //...
 
 // setters
 public void setNumItems(String numItemsStr) {
   numItems = Integer.parseInt(numItemsStr);
 }
 }
 
 public abstract class SearchListTag extends ListTag {
 //...
 // setters (overloaded to fix bug in tomcat)
 public void setNumItems(String numItemsStr) {
   super.setNumItems(numItemsStr);
 }
 }
 
 public class FullSearchListTag extends SearchListTag {
 //...
 public void setNumItems(String numItemsStr) {
   super.setNumItems(numItemsStr);
 }
 }
 
 I have tried to remove the setNumItems method from SearchList and/or
 FullSearchList, but can't resolute the problem.
 I
 learn that there was a bug led to this problem in the early version of Tomcat.
 Is   the bug unresolved yet? How I can
 overcome this problem?
 
 Thanks very much in advance.
 
 Vernon
 
 
 
 --
 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: Unable to find setter: a problem with custom tag in TC 4.0.4b2

2002-06-01 Thread Vernon Wu

I don't run the PetStore at all, but use a small portion of the framework with a litte 
modification. I don't observe any 
compatible problem other than the tag names changed in the new tld file.

Here is the jsp file.
~
%@ page contentType='text/html; charset=UTF-8' %
%@ taglib uri=/WEB-INF/tlds/taglib.tld prefix=mm %

p
mm:fullSearchList numItems=15 emptyList=No matches found.
/p


table width=100% border=0 cellspacing=1 cellpadding=0 align=center
mm:items
  tr 
td rowspan=3nbsp;/td
tdmm:matchAttribute attribute=headline//td
  /tr
  tr 
tdnbsp;/td
  /tr
  tr 
tdmm:matchAttribute attribute=age//td
  /tr
  tr 
tdmm:matchAttribute attribute=id//td
tdmm:matchAttribute attribute=location//td
  /tr
/mm:items
  tr 
  mm:prevForm action='%=response.encodeURL(full-search-action.do)%'
tda href=Previous/a/td
  /mm:prevForm

  mm:nextForm action='%=response.encodeURL(full-search-action.do)%'
td
  div align=righta href=Next/a/div
/td
  /mm:nextForm
  /tr
/table
/mm:fullSearchList
~~
If I change the numItems as not request in the tld file and remove it in this jsp 
file. It can be translated and verything is 
fine. Otherwise, the exception occures and as you know no Java file is created in the 
work directory. Strange enough, 
the emptyList is done in the same fashion and has no problem at all. 



6/2/2002 8:05:41 AM, Phillip Morelock [EMAIL PROTECTED] wrote:

Are you just running the pet store example, cold or with your own edits?
how old is it?  You must be running tomcat 4, right?  maybe the example is
for 3, although in theory most stuff is backward compatible...

Also, it might help of course to see some jsp -- I assume you're already
doing everything right of course.  You didn't respond about what you found
under the /work directory for this.  What do you see there?  I am assuming
nothing.

fillup


On 6/1/02 1:46 AM, Vernon Wu [EMAIL PROTECTED] wrote:

 
 Thanks very much, Philip for your quick response.
 
 You are right. Theoretically, the numItems should be declaimed as a private
 but not protected attribute. I, however,
 don't think that is the cause, but why the TC keeps a blind eye on the setter
 method. The fragment of code is based on
 petstore 1.1.2 to have list of items. The commend, setters (overloaded to fix
 bug in tomcat), is made by the PetStore
 team. So I can assume there was a bug at the time. Now, the question whether
 the bug is still there.
 
 I had have a look at the stack trace and can't find any cue of the problem at
 all.  Here is it:
 
 2002-05-30 04:20:25 ApplicationDispatcher[/mm] Servlet.service() for servlet
 jsp threw exception
 org.apache.jasper.compiler.CompileException:
 /jsp/fullsearchlist/content.jsp(4,0) Unable to find setter method for
 attribute: numItems
 at 
 org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator
 .java:214)
 at 
 org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements
 (TagBeginGenerator.java:332)
 at 
 org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java:3
 94)
 at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate
 (JspParseEventListener.java:834)
 at 
 org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventList
 ener.java:241)
 at 
 org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEve
 ntListener.java:197)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ
 let.java:177)
 at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java
 :189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.ja
 va:683)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher
 .java:574)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.j
 ava:497)
 at 
 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819
)
 at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
 at com.vernonwu.waf.view.template.Section.render(Section.java:41)
 at com.vernonwu.waf.view.template.tags.RenderTag.doEndTag(RenderTag.java:57)
 at org.apache.jsp.hscf$jsp._jspService(hscf$jsp.java:167)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java
 :202)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382

Re: RE: The Catalina installation path

2002-05-04 Thread Vernon Wu


Thanks John. I know there is a way to retrieve a short path name from a DOS prompt 
window, just couldn't record what 
it shall be. There was not any other path starting with Apache. Anyway, I already 
switched back to the old installation 
method, which I have used since the 3.2.x version.

As a programmer, I, like you somewhat, used to be very  paranoid when I come to 
software installation. I could easily 
get very  frustrated on installation problems..
 
5/3/2002 11:06:50 PM, John Niven [EMAIL PROTECTED] wrote:

 -Original Message-
 From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
 Sent: 2 May 2002 09:54
 To: Tomcat Users List
 Subject: Re: The Catalina installation path
 
 
 
 Thanks, Jake for your input.
 
 In fact, I had tried using Apache~1. (Indeed, it is on 
 Windows). It doesn't work. 

Vernon,
Have you tried Apache~2 etc?  If you have any other Apache software
installed (eg. the HTTP server) that would change the number after the ~.
There's a way to get the DOS 8.3 name of files, but it escapes me at the
moment - I tend to still use the 8.3 naming convention for Java stuff.

 
 If there is not solution, I have to uninstall and reinstall 
 using the zip file format.
 

I'd probably recommend this anyway - but I'm a little too paranoid when it
comes to software installers...!

Best of luck
John

 
 

 --
John Niven
Please reply through mailing list

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






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




Re: The Catalina installation path

2002-05-03 Thread Vernon Wu


Thanks, Jake for your input.

In fact, I had tried using Apache~1. (Indeed, it is on Windows). It doesn't work. 

If there is not solution, I have to uninstall and reinstall using the zip file format.



5/3/2002 2:17:20 PM, Jacob Kjome [EMAIL PROTECTED] wrote:





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




The Catalina installation path

2002-05-02 Thread Vernon Wu

Today, I installed the Tomcat 4.0.4b2 using the self-expanded version first time. The 
installation directory Apache 
Tomcat 4.0 is created after running the installation shell. Since I use Ant to do the 
deployment, I need to set up the 
catalina home path (the installation doesn't take care of this). After hacking around 
many times, I still can't set the path 
right. What shall I type for the Apache Tomcat 4.0?

Thx.



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




Re: Why deployment using xml file doesn't work?

2002-04-29 Thread Vernon Wu


Can someone please help me on this problem.

Thx.


4/26/2002 1:24:18 PM, Vernon Wu [EMAIL PROTECTED] wrote:

During the development phrase, I would like to use xml to deploy my application  
without copy all file, directories to the
tomcat installation directory. My deployment xml is very simple with two or three  
lines as

Context path=/mm
   docBase=c:\eclipse\workspace\nicematch\build\webapp
   debug=2 reloadable=true

/Context

The error message I got in the localhost log file is:

Error initializing resources: Document base c:\tomcat\jakarta-tomcat-4.0.4-b2- 
01\webapps\mm does not exist or is 
not
a readable directory

I think the problem is a incorrect docBase. But I am very sure the path is right.  I 
also have tried to use another format 
of
the path as:

../../../eclipse/workspace/nicematch/build/webapp

What am I missing here?

v.



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






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




Re: Why deployment using xml file doesn't work?

2002-04-29 Thread Vernon Wu


Thanks Brett for your thought. The problem, unfortunately, is not the one you 
mentioned. It seems to be very tough. No 
one has any clue yet.




4/30/2002 4:40:04 AM, Brett M. Bergquist [EMAIL PROTECTED] wrote:

Vernon, is the error message below cut'n'pasted to your email?  If so, it looks like 
you have a space between the in 
the 
directory.  It looks like there is a space between b2- and the 01.

Document base c:\tomcat\jakarta-tomcat-4.0.4-b2- 01\webapps\mm
  ^
   Looks like 
a space here.

Tomcat does not like spaces in paths.

Hope this helps.

Brett

- Original Message - 
From: Vernon Wu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 11:18 AM
Subject: Re: Why deployment using xml file doesn't work?


 
 Can someone please help me on this problem.
 
 Thx.
 
 
 4/26/2002 1:24:18 PM, Vernon Wu [EMAIL PROTECTED] wrote:
 
 During the development phrase, I would like to use xml to deploy my application  
without copy all file, directories to 
the
 tomcat installation directory. My deployment xml is very simple with two or three  
lines as
 
 Context path=/mm
  docBase=c:\eclipse\workspace\nicematch\build\webapp
  debug=2 reloadable=true
 
 /Context
 
 The error message I got in the localhost log file is:
 
 Error initializing resources: Document base c:\tomcat\jakarta-tomcat-4.0.4-b2- 
01\webapps\mm does not exist or is 
 not
 a readable directory
 
 I think the problem is a incorrect docBase. But I am very sure the path is right.  
I also have tried to use another 
format 
 of
 the path as:
 
 ../../../eclipse/workspace/nicematch/build/webapp
 
 What am I missing here?
 
 v.
 
 
 
 --
 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]




Why deployment using xml file doesn't work?

2002-04-27 Thread Vernon Wu

During the development phrase, I would like to use xml to deploy my application  
without copy all file, directories to the
tomcat installation directory. My deployment xml is very simple with two or three  
lines as

Context path=/mm
docBase=c:\eclipse\workspace\nicematch\build\webapp
debug=2 reloadable=true

/Context

The error message I got in the localhost log file is:

Error initializing resources: Document base c:\tomcat\jakarta-tomcat-4.0.4-b2- 
01\webapps\mm does not exist or is not
a readable directory

I think the problem is a incorrect docBase. But I am very sure the path is right.  I 
also have tried to use another format of
the path as:

../../../eclipse/workspace/nicematch/build/webapp

What am I missing here?

v.



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




Library files

2002-01-24 Thread Vernon Wu

Hi,

Our application uses a few existing library files. Some of them, such as xerces and 
mail, 
activation, are already in the Tomcat 4 library directories. After I remove those 
library files 
from the webapps/myapp/WEB-INF/lib directory, the application malfunctions. 

Some months ago, Craig McClanahan had one email in regarding of the class visibility 
(see the bottom part of this email). Although it is not the same issue, all libraries 
shall be 
visible for all applications installed under the Tomcat by the same token. What I miss 
here? (I have set up the class path included %catalina_home%/common/lib)

Thanks,

Vernon 


On Fri, 24 Aug 2001, Ju Yan Jery Qin wrote:

 Date: Fri, 24 Aug 2001 16:58:14 +0800
 From: Ju Yan Jery Qin [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: How do I make Tomcat include needed jars for my servlet?

 First thank Vladimir Grishchenko and Rob S. for your help

 But in my case, since our product has its own framework and we just do some
customization. So the directory structure is fixed, it looks like this
 d:\vendor\webapp1\codebase\
 under this directory there are classes used by webapp1
 d:\vendor\webapp1\codebase\
 under this directory there are classes used by webapp2
 The two webapps has many other directories and also they have many similar
classes with the same package name.

 In our case,
 server.xml has these entries:

  Context path=/webapp1
   docBase=d:\vendor\webapp1\codebase
   debug=0
   reloadable=true 
   /Context
  Context path=/webapp2
   docBase=d:\vendor\webapp2\codebase
   debug=0
   reloadable=true 
   /Context
 Our developer is used to generate classes in d:\vendor\webapp1\codebase\ and
d:\vendor\webapp1\codebase\

 If I can redirect d:\vendor\webappx\WEB-INF\classes to
 d:\vendor\webappx\codebase\ just like symbolic link under UNIX, this
 problem will be resolved. So I wonder if there is a place where we can
 define CLASSPATH in our webapp instead of put our classes in a fixed
 place( although it is relavant to our webapp ). I think this is a good
 feature if implemented.


I would suggest, on the other hand, that your developers should learn to
understand the concepts behind web applications, and the features of your
servlet container, instead.

If you want classes visible to only a single web app, they go inside
/WEB-INF/classes or /WEB-INF/lib for that web app.  A huge advantage is
that this architecture is portable to *all* servlet containers, and doing
something wierd in Tomcat to break it would lock apps into running only on
Tomcat (as well as break the servlet spec).

If you want classes visible to more than one web app, every servlet
container provides mechanisms for this (although they vary in details).
For Tomcat, you've got two choices:

* Put your classes on the system CLASSPATH (Tomcat 3.2 only)

* Put your classes in JAR files in the lib directory under
  Tomcat's top-level directory.  These are automatically
  made visible to all webapps.

Copying files from where they are developed to where they are deployed is
a trivially simple task to automate -- for example, see the deploy
target in the Ant script included in the Application Developer's Guide:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/appdev/index.html

and the cost of the extra few bytes is trivial compared to the robustness
of the resulting deployment (i.e. you can still compile in your
development directories without breaking existing running apps :-).

Craig McClanahan





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




Re: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.

2001-11-24 Thread Vernon Wu

Thanks Ben. The cause in fact is the catalina home environment variable was not set. 
Strang enough, tc 4 runs on 
jdk 1.3.02 in Window 2K, without the catalina home environment variable, using the 
tomat home instead. I guess 
once the catalina environment variable is set, the tomcat home environment variable is 
not needed any more. 

Thanks.

Vernon

11/23/2001 2:43:45 PM, ben [EMAIL PROTECTED] wrote:

vernon,
sounds like you havent configured the path for jdk1.3.1_01 yet. thats about
the only thing that i could imagine..if you have configured the path for
both tomcat and jdk1.3.1_01 with : set JAVA_HOME= c:\jdk1.3.1_01..(for
instance)
- Original Message -
From: Vernon Wu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 23, 2001 1:36 PM
Subject: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.


 Due to some problems on running TC 4.0.1, I get a suggestion from the Sun
support to use the new jdk 1.3.1_01.
 Now, I can't start up the TC. After I issue the startup command, an
exception  occurs. I am unable to see what the
 exception is. The catalina window only stays for a very few seconds.

 Do anyone know how to handle this problem.

 Thanks in advance.

 Vernon



 --
 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]




Two duplicated directories for jsp files

2001-11-19 Thread Vernon Wu

I note recently two duplicated jsp file directories for each application, one under 
the application directory and the other 
under WEB-INF. In my build.xml file, there is only one jsp file directory. The portion 
of file is the followings:
mkdir  dir=${deploy.home}/WEB-INF/jsp/
copy todir=${deploy.home}/WEB-INF/jsp
  fileset dir=web/jsp/
/copy
I learn that a jsp file under the application directory is used when a request is 
issued as a URL on a browser; under the 
WEB-INF is used when a request is issued from another jsp file, or the servlet. 
I haven?t see any related documentation. Is it what it mean to be, or something I 
don?t do it right?




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




Re: Is Tomcat 4.0 Backward Compatible with 3.2.3 App??

2001-10-25 Thread Vernon Wu

We run into the compatible problem in our one module of servlet/JSP
application. A few months ago, I implemented it using the 3.x version of
Tomcat. After the 4.x version was stable, I had tried to move it over to the
Tomcat 4 for a better performence. The problem we run into is an exception
on a serializable from the DB access utility. The non-standard DB access
utility is from IBM, Informix formerly. We had reported this problem on the
support mailing list for more than a month, not response yet. I don't know
whether the problem is related with the Servlet/JSP spec or not. I would
like to know the cause.

Thanks in advance.

v.
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 1:27 PM
Subject: Re: Is Tomcat 4.0 Backward Compatible with 3.2.3 App??




 On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:

  Date: Tue, 25 Sep 2001 09:53:26 -0700
  From: [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Is Tomcat 4.0 Backward Compatible with 3.2.3 App??
 
  How backward compatible is Tomcat 4.0?
 
  I have an application that I developed with tomcat 3.2 and deployed on
  JRun 3.0. Since then I have installed the final 4.0 and now have some
  changes to make to my application and I am getting all kinds of errors
  using the same .WAR file.
 
  I have re-installed 3.2.3 to make sure that I did not screw up a config
file
  or something else and it works fine. Is there something that I missed
  where I have to do a conversion on my older apps to use them in Tomcat
4.0?
 

 If an application that works on Tomcat 3.2.3 meets the following criteria,
 it should run unchanged on Tomcat 4.0:

 * Compliant with the Servlet 2.2 and JSP 1.1 specs

 * Does not rely on bugs in Tomcat 3.2.3 that have been fixed in 4.0

 * Does not rely on non-specification-related behavior that might
   have changed in 4.0

 Failure to run is a bug in 4.0 if all these criteria are met.  By far the
 most common problem people have is web.xml files that have elements not
 conforming to the DTD requirements (which violates the first requirement
 above) -- Tomcat 3.2.3 accepted such web.xml files anyway, but Tomcat 4.0
 will not.

  Thanks
 
  Eric Wright, Programmer / Analyst
  Vivid Solutions Inc.
  INTERNET : [EMAIL PROTECTED]

 Craig






RE: The 4.0b5 doesn't recognize a servlet class

2001-07-18 Thread Vernon Wu

Hi, 

As you suggested, I moved the j2ee.jar from the web-inf\lib to common\lib. And then I restarted the Tomcat 4.0b5. Here is what I got:
Catalina.start: LifecycleException: start: : java.lang.NoSuchMethodErrorLifecycleException: start: : java.lang.NoSuchMethodError at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)- Root Cause -java.lang.NoSuchMethodError at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:627) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

If I don't relocate the j2ee.jar file, when I try to open up the main page which doesn't call any servlet instance. What I get is the followings:
Exception Report:javax.servlet.ServletException: Class org.apache.jasper.servlet.JspServlet is not a Servlet...Root Cause:java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet...Please advise what steps I shall takeThanks.

Original Message Follows 
From: Wells Tiedeman <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: The 4.0b5 doesn't recognize a servlet class 
Date: Tue, 17 Jul 2001 16:06:10 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1DE6CE00214004389F40D02A290FE90; Tue, 17 Jul 2001 13:10:55 -0700 
Received: (qmail 38493 invoked by uid 500); 17 Jul 2001 20:10:46 - 
Received: (qmail 38486 invoked from network); 17 Jul 2001 20:10:45 - 
Received: from salesvision-gw.youcentric.com (HELO yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) by h31.sny.collab.net with SMTP; 17 Jul 2001 20:10:45 - 
Received: by yc_exchange.yc_exchange.salesvision.com with Internet Mail Service (5.5.2653.19)id 3XZSJXH3; Tue, 17 Jul 2001 16:06:11 -0400 
From tomcat-user-return-41410-vwu0 Tue, 17 Jul 2001 13:11:00 -0700 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
Precedence: bulk 
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED] 
Message-ID: [EMAIL PROTECTED] 
X-Mailer: Internet Mail Service (5.5.2653.19) 
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 

Any of the jars/classes containing the packages java.*, com.sun.*, javax.*, 
etc. If any of these are included in your /WEB-INF/lib directory the class 
loaders get confused. 

-Wells 

-----Original Message- 
From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 17, 2001 3:49 PM 
To: [EMAIL PROTECTED] 
Subject: The 4.0b5 doesn't recognize a servlet class 







Hi, Wells, 



Thanks for your response. 



It took me awhile trying to figure how the CLASSPATH relates with the 
problem. I build up the JSP application using Tomcat 3.x with the standard 
procedure. Nothing inside the project is set up in the CLASSPATH. I don't 
know what you means by "all j2ee platform classes". Are the classes used 
j2ee APIs? 



Thx. 



Vernon 



Original Message Follows 
From: Wells Tiedeman 
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" 
Subject: RE: ServletException in 4.0b5 
Date: Tue, 17 Jul 2001 08:46:44 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
MHotMailBD1D7FCF00164004376140D02A290F500; Tue, 17 Jul 2001 05:51:28 -0700 
Rece

RE: The 4.0b5 doesn't recognize a servlet class

2001-07-18 Thread Vernon Wu



Hi, Aditya,


I think you mean the two jar files: jasper-runtime.jar and namingfactory.jar in the tomcat4.0/lib.

I use the JBuilder as the IDE where I can check any syntax errors or not.I have j2ee.jar inside of the JBuilder library setting. When I want to deploy it, I compile it again using ant, where the j2ee.jar is from the jdk1.3 directory. AfterIchange the j2ee.jar pointto the common/lib (a copy of the jar isin the directory), and include the two jars from tomcat/lib, and recompile it, the result is the same: recycle the tomcat and have the following error messages:

Catalina.start: LifecycleException: start: : java.lang.NoSuchMethodErrorLifecycleException: start: : java.lang.NoSuchMethodError

DoI get the message right?



Thanks.




Original Message Follows 

From: Aditya Anand <[EMAIL PROTECTED]>

Reply-To: [EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 

Subject: RE: The 4.0b5 doesn't recognize a servlet class 

Date: Wed, 18 Jul 2001 12:10:16 -0700 (PDT) 

MIME-Version: 1.0 

Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1F2A1D00B0400438AD40D02A2911A50; Wed, 18 Jul 2001 12:10:21 -0700 

Received: (qmail 4427 invoked by uid 500); 18 Jul 2001 19:10:14 - 

Received: (qmail 4420 invoked from network); 18 Jul 2001 19:10:14 - 

Received: from web4704.mail.yahoo.com (216.115.105.204) by h31.sny.collab.net with SMTP; 18 Jul 2001 19:10:14 - 

Received: from [199.97.64.16] by web4704.mail.yahoo.com via HTTP; Wed, 18 Jul 2001 12:10:16 PDT 

From tomcat-user-return-41583-vwu0 Wed, 18 Jul 2001 12:11:35 -0700 

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 

Precedence: bulk 

list-help: <mailto:[EMAIL PROTECTED]>

list-unsubscribe: <mailto:[EMAIL PROTECTED]>

list-post: <mailto:[EMAIL PROTECTED]>

Delivered-To: mailing list [EMAIL PROTECTED] 

Message-ID: [EMAIL PROTECTED] 

In-Reply-To: <[EMAIL PROTECTED]>

X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 



hmm... did you recompile the classes using the tomcat 

lib jars? 

--- Vernon Wu <[EMAIL PROTECTED]>wrote: 













Hi, 







As you suggested, I moved the j2ee.jar from the 

web-inf\lib to common\lib. And then I restarted the 

Tomcat 4.0b5. Here is what I got: 





Catalina.start: LifecycleException: start: 

: 

java.lang.NoSuchMethodErrorLifecycleException: 

start: : 

java.lang.NoSuchMethodError 

at 

org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649) 

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100) 





 at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) 

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





 at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





 at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) 

at 

org.apache.catalina.core.StandardService.start(StandardService.java:353) 

at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:458) 

at 

org.apache.catalina.startup.Catalina.start(Catalina.java:725) 

at 

org.apache.catalina.startup.Catalina.execute(Catalina.java:647) 

at 

org.apache.catalina.startup.Catalina.process(Catalina.java:177) 

at java.lang.reflect.Method.invoke(Native 

Method) 

at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)- 

Root Cause 

-java.lang.NoSuchMethodError 

at 

org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:627) 

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100) 





 at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) 

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





 at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





 at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) 

at 

org.apache.catalina.core.StandardService.start(StandardService.java:353) 

at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:458) 

at 

org.apache.catalina.startup.Catalina.start(Catalina.java:725) 

at 

org.apache.catalina.startup.Catalina.execute(Catalina.java:647) 

at 

org.apache.catalina.startup.Catalina.process(Catalina.java:177) 

at java.lang.reflect.Method.invoke(Native 

Method) 

at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196) 









If I don't relocate the j2ee.jar file, when I try 

to open up the main page which doesn't call any 

servlet instance. What I get is the followings: 





Exception 

Report:javax.servlet.ServletException: Class
org.apache.jasper.servlet.JspServlet is not a
Servlet...Root
Cause:java.lang.ClassCastException:
org.apache.jasper.servlet.JspServlet...Please
advise what steps I shall
takeThanks.









Original Message Follows 



From: Wells Tiedeman 

<[EMAIL PROTECTED]>



Reply-To: [EMAIL PROTECTED] 



To: "'[EMAIL PROTECTED]'" 

<[EMAIL 

The 4.0b5 doesn't recognize a servlet class

2001-07-17 Thread Vernon Wu



Hi, Wells,


Thanks for your response. 



It took me awhile trying to figure how the CLASSPATH relates with the problem. I build up the JSP application using Tomcat 3.x with the standard procedure. Nothing inside the project is set up in the CLASSPATH. I don't know what you means by "all j2ee platform classes". Are the classes used j2ee APIs?

Thx.

Vernon




Original Message Follows 

From: Wells Tiedeman <[EMAIL PROTECTED]>

Reply-To: [EMAIL PROTECTED] 

To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

Subject: RE: ServletException in 4.0b5 

Date: Tue, 17 Jul 2001 08:46:44 -0400 

MIME-Version: 1.0 

Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1D7FCF00164004376140D02A290F500; Tue, 17 Jul 2001 05:51:28 -0700 

Received: (qmail 73852 invoked by uid 500); 17 Jul 2001 12:51:21 - 

Received: (qmail 73845 invoked from network); 17 Jul 2001 12:51:21 - 

Received: from salesvision-gw.youcentric.com (HELO yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) by h31.sny.collab.net with SMTP; 17 Jul 2001 12:51:21 - 

Received: by yc_exchange.yc_exchange.salesvision.com with Internet Mail Service (5.5.2653.19)id 3XZSJV86; Tue, 17 Jul 2001 08:46:45 -0400 

From tomcat-user-return-41367-vwu0 Tue, 17 Jul 2001 05:52:26 -0700 

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 

Precedence: bulk 

list-help: <mailto:[EMAIL PROTECTED]>

list-unsubscribe: <mailto:[EMAIL PROTECTED]>

list-post: <mailto:[EMAIL PROTECTED]>

Delivered-To: mailing list [EMAIL PROTECTED] 

Message-ID: [EMAIL PROTECTED] 

X-Mailer: Internet Mail Service (5.5.2653.19) 

X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 



I experienced the same problem. It's due to a class loader issue. Multiple 

class loaders have been introduced in V4.0 to implement the requirements 

found in Section 9.6.2 of the Servlet 2.3 Spec. These class loaders are 

used to load all of the jars and classes rather than using the CLASSPATH. 



I was able to resolve this problem as follows : 



- Add all supporting jars for your web application (except J2EE jars) to 

the /WEB-INF/lib directory rather than including them in the CLASSPATH 

- Add all of the required classes for your web application to the 

/WEB-INF/classes directory rather than including them in the CLASSPATH 

- Add the j2ee.jar from the /j2sdkee1.3/lib directory to the 

TOMCAT_HOME/common/lib directory. All J2EE platform classes must be placed 

in the common/lib or common/classes directories rather than with the web 

application. 



-Wells 



Wells Tiedeman 

YOUcentric, Inc. 

P: 704.401.1109 

F: 704.401.1240 

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



For more information on YOUcentric, please visit our web site at 

www.youcentric.com 







-Original Message- 

From: Vernon Wu [mailto:[EMAIL PROTECTED]] 

Sent: Monday, July 16, 2001 7:53 PM 

To: [EMAIL PROTECTED] 

Subject: ServletException in 4.0b5 





I move one our small JSP application from 3.x to 4.0b5 for the reason of 

using servlet 2.3 specification: ServletContextListener, HttpSessionListener 

be more specific. 



I get the exception under the 4.0b5 with the following messages: 





Exception Report: 



javax.servlet.ServletException: Class abc.control.ControllerServlet is not a 

Servlet 



 









Root Cause: 



java.lang.ClassCastException: abc.control.ControllerServlet 



... 



There is not any indication that anywhere my code is not approprt. What I 

shall do at this situation? 



I believe that I encounter the similar situation in the 3.x, and it can be 

resolved by recycle the Tomcat server. That method doesn't work for 4.0b5. 



Thanks. 



Vernon 



_ 



Get your FREE download of MSN Explorer at http://explorer.msn.com 











Get your FREE download of MSN Explorer at http://explorer.msn.com


ServletException in 4.0b5

2001-07-16 Thread Vernon Wu
I move one our small JSP application from 3.x to 4.0b5 for the reason of using servlet 2.3 specification: ServletContextListener, HttpSessionListener be more specific. 

I get the exception under the 4.0b5 with the following messages:


Exception Report:javax.servlet.ServletException: Class abc.control.ControllerServlet is not a Servlet
Root Cause:java.lang.ClassCastException: abc.control.ControllerServlet
...There is not any indication that anywhere my code is not approprt. What I shall do at this situation?I believe that I encounter the similar situation in the 3.x, and it can be resolved by recycle the Tomcat server. That method doesn't work for 4.0b5.Thanks.Vernon  Get your FREE download of MSN Explorer at http://explorer.msn.com


What I shall look for the cause for ContextManager: Error

2001-06-22 Thread Vernon Wu
I run an application on Tomcat 3.x. I get an error message: "ContextManager: Error reading request, ignored - java.lang.ArrayIndexOutOfBoundsException" in one JSP page. I have looked at the page and can't see anything wrong. What I shall look for the cause? Ithappens when I submit a form.

v.Get your FREE download of MSN Explorer at http://explorer.msn.com


Parsing error on the web.xml file on Tomcat 4.0b5

2001-06-12 Thread Vernon Wu
I posted this message yesterday. It donesn't seem going throught. I have to repost it again. Here isthe problem.

After I deploy my small application and start Tomcat version 4.0 beta 5, I get the following error:2001-06-11 11:53:48 ContextConfig[/q3] Parse error in application web.xmlorg.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247)at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413)at org.apache.catalina.core.StandardHost.install(StandardHost.java:641)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)at org.apache.catalina.core.StandardService.start(StandardService.java:353)at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)at org.apache.catalina.startup.Catalina.start(Catalina.java:725)at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)at org.apache.catalina.startup.Catalina.process(Catalina.java:177)at java.lang.reflect.Method.invoke(Native Method)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

The web.xml is a small one as the followings:web-app display-name/display-name description servlet servlet-nameControllerServlet/servlet-name display-nameCentralServlet/display-name servlet-classControllerServlet/servlet-class /servlet servlet-mapping servlet-nameControllerServlet/servlet-name url-pattern/controller/*/url-pattern /servlet-mapping.../web-appI can't see any problem. It works fine on 3.x. Anything needs to been doneto let 4.0 happy?Thanks.

VernonGet your FREE download of MSN Explorer at http://explorer.msn.com


RE: Parsing error on the web.xml file on Tomcat 4.0b5

2001-06-12 Thread Vernon Wu

Thanks for the response. I currently don't have a non-html email address. So there is no an option for me to get on this mail list with a non-html email address.
In regarding of my problem, the web.xml file in fact is 
web-app
 display-name... Application/display-name description. /description
 servlet servlet-nameControllerServlet/servlet-name display-nameCentralServlet/display-name servlet-class..ControllerServlet/servlet-class /servlet servlet-mapping servlet-nameControllerServlet/servlet-name url-pattern/controller/*/url-pattern /servlet-mapping.../web-app
The previous two syntax errors are caused by cutpaste. Onec again,the same project works find on tomcat 3.x, but get a parsingerror on 4.0b5. 

Thx.

Original Message Follows 
From: Robert Slifka <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Parsing error on the web.xml file on Tomcat 4.0b5 
Date: Tue, 12 Jun 2001 12:52:53 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBCEF96B800624004379740D02A290B350; Tue Jun 12 10:04:57 2001 
Received: (qmail 61441 invoked by uid 500); 12 Jun 2001 16:53:17 - 
Received: (qmail 61397 invoked from network); 12 Jun 2001 16:53:16 - 
Received: from proxyd.rim.net (HELO mhs99ykf.rim.net) (206.51.26.194) by h31.sny.collab.net with SMTP; 12 Jun 2001 16:53:16 - 
Received: from ngw02ykf.rim.net (ngw02ykf.rim.net [10.101.20.118])by mhs99ykf.rim.net (Postfix) with SMTP id 23258B465Cfor <[EMAIL PROTECTED]>; Tue, 12 Jun 2001 12:53:34 -0400 (EDT) 
Received: from xch02ykf.rim.net ([10.1.3.71]) by ngw02ykf.rim.net (NAVIEG 2.1 bld 63) with SMTP id M2001061212525229061 for <[EMAIL PROTECTED]>; Tue, 12 Jun 2001 12:52:52 -0400 
Received: by xch02ykf.rim.net with Internet Mail Service (5.5.2653.19)id ; Tue, 12 Jun 2001 12:52:55 -0400 
From tomcat-user-return-37734-vwu0 Tue Jun 12 10:06:57 2001 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
Precedence: bulk 
list-help: 
list-unsubscribe: 
list-post: 
Delivered-To: mailing list [EMAIL PROTECTED] 
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: Internet Mail Service (5.5.2653.19) 
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 

Please no HTML mail to this mailing list =) 

If you're not familiar with XML, a good site to check out is w3schools.com. 

http://www.w3schools.com/xml/default.asp 

Two potential errors right off the bat: 


 
 = Error 2 
ControllerServlet 
CentralServlet 
ControllerServlet 
=== Error 1 

ControllerServlet 
/controller/* 


Hope that helps! 

- r 
Get your FREE download of MSN Explorer at http://explorer.msn.com


Parsing error on web.xml 4.0b5

2001-06-11 Thread Vernon Wu

After I deploy my small application and start Tomcat version 4.0 beta 5, I get the following error:

2001-06-11 11:53:48 ContextConfig[/q3] Parse error in application web.xmlorg.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247)at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413)at org.apache.catalina.core.StandardHost.install(StandardHost.java:641)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)at org.apache.catalina.core.StandardService.start(StandardService.java:353)at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)at org.apache.catalina.startup.Catalina.start(Catalina.java:725)at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)at org.apache.catalina.startup.Catalina.process(Catalina.java:177)at java.lang.reflect.Method.invoke(Native Method)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
The web.xml is a small one asthe followings.

web-app
 display-name/display-name descriptionservlet servlet-nameControllerServlet/servlet-name display-nameCentralServlet/display-name servlet-classControllerServlet/servlet-class /servlet servlet-mapping servlet-nameControllerServlet/servlet-name url-pattern/controller/*/url-pattern /servlet-mapping
...
/web-app

I can't see any problem. It works fine on 3.x. Anything needs to been done on 4.0?

Thanks in advance.

VernonGet your FREE download of MSN Explorer at http://explorer.msn.com


Parsing error on web.xml 4.0b5

2001-06-11 Thread Vernon Wu


After I deploy my small application and start Tomcat version 4.0 beta 5, I get the following error:

2001-06-11 11:53:48 ContextConfig[/q3] Parse error in application web.xmlorg.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247)at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413)at org.apache.catalina.core.StandardHost.install(StandardHost.java:641)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)at org.apache.catalina.core.StandardService.start(StandardService.java:353)at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)at org.apache.catalina.startup.Catalina.start(Catalina.java:725)at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)at org.apache.catalina.startup.Catalina.process(Catalina.java:177)at java.lang.reflect.Method.invoke(Native Method)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
The web.xml is a small one asthe followings.

web-app
 display-name/display-name descriptionservlet servlet-nameControllerServlet/servlet-name display-nameCentralServlet/display-name servlet-classControllerServlet/servlet-class /servlet servlet-mapping servlet-nameControllerServlet/servlet-name url-pattern/controller/*/url-pattern /servlet-mapping
...
/web-app

I can't see any problem. It works fine on 3.x. Anything needs to been done on 4.0?

Thanks in advance.

VernonGet your FREE download of MSN Explorer at http://explorer.msn.com