Problem with Tomcat upgrading

2004-09-03 Thread Bedrijven.nl
Hello,

I am testing the new Tomcat version. So what dit I do:

- Installed Tomcat 5.0.19 (older version was 4.0.25)
- copied my webapps to the new installation
- restarting tomcat

Everything seems to work fine. However when I tried to start my
webapplications everything goes fine but Tomcat trowns a ClassNotFound
Exception.

example:

the logonuser.jsp

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD
etc.

Tomcat throws teh following exception:

javax.servlet.jsp.JspException: Exception creating bean of class
nl.intervision.formbeans.LogonUserForm: java.lang.ClassNotFoundException:
nl.intervision.formbeans.LogonUserForm at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at
org.apache.jsp.logonuser_jsp._jspService(logonuser_jsp.java:106) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:702) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644) at java.lang.Thread.run(Thread.java:536)


My webapps is structered as follows:

C:\tomcat\webapps\template\WEB-INF\classes\nl\intervision\formbeans\LogonUse
rForm.java.


So why is a class not found exception thrown?

I tried so many classpath settings but none of them works!

Please help me out!!

Tnx in advanced

Maarten



-Oorspronkelijk bericht-
Van: news [mailto:[EMAIL PROTECTED] Vic
Verzonden: Friday, September 03, 2004 11:53 AM
Aan: [EMAIL PROTECTED]
Onderwerp: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))


Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds

Where can I get the new 5.5s from?
Do I have to go to cvs and build?

tia,
.V

Vic wrote:
 Yes, but where? What URL?

 (the commons download link I think is for the 5.0 trunk? or is that 5.5?)

 .V

 ps: Thax tomcat team on very nice product!

 Remy Maucherat wrote:

 On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED]
 wrote:

 Where can we get 5.5.1? Or 5.5 nightlies?



 Don't worry: since this is heavy development mode, new binaries are
 going to be released often (unless Yoav doesn't have time to do the
 releases).





--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com


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

RE: Problem with Tomcat upgrading

2004-09-03 Thread Shapira, Yoav

Hi,
Import your classes if you're not doing so already.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:27 AM
To: 'Tomcat Users List'
Subject: Problem with Tomcat upgrading

Hello,

I am testing the new Tomcat version. So what dit I do:

- Installed Tomcat 5.0.19 (older version was 4.0.25)
- copied my webapps to the new installation
- restarting tomcat

Everything seems to work fine. However when I tried to start my
webapplications everything goes fine but Tomcat trowns a ClassNotFound
Exception.

example:

the logonuser.jsp

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD
etc.

Tomcat throws teh following exception:

javax.servlet.jsp.JspException: Exception creating bean of class
nl.intervision.formbeans.LogonUserForm:
java.lang.ClassNotFoundException:
nl.intervision.formbeans.LogonUserForm at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at
org.apache.jsp.logonuser_jsp._jspService(logonuser_jsp.java:106) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
2
10) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
n
FilterChain.java:237) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
h
ain.java:157) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
a
va:214) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
x
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
ntex
t
Valve.java:198) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
a
va:152) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
x
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:13
7
) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
x
t.java:104) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:11
7
) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
x
t.java:102) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a
:109) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
x
t.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7
93)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
e
ction(Http11Protocol.java:702) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
71)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
v
a:644) at java.lang.Thread.run(Thread.java:536)


My webapps is structered as follows:

C:\tomcat\webapps\template\WEB-
INF\classes\nl\intervision\formbeans\LogonUse
rForm.java.


So why is a class not found exception thrown?

I tried so many classpath settings but none of them works!

Please help me out!!

Tnx in advanced

Maarten



-Oorspronkelijk bericht-
Van: news [mailto:[EMAIL PROTECTED] Vic
Verzonden: Friday, September 03, 2004 11:53 AM
Aan: [EMAIL PROTECTED]
Onderwerp: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))


Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds

Where can I get the new 5.5s from?
Do I have to go to cvs and build?

tia,
.V

Vic wrote:
 Yes, but where? What URL?

 (the commons download link I think is for the 5.0 trunk? or is that
5.5?)

 .V

 ps: Thax tomcat team on very nice product!

 Remy Maucherat wrote:

 On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED]
 wrote:

 Where can we get 5.5.1? Or 5.5 nightlies?



 Don't worry: since this is heavy development mode, new binaries are
 going

RE: Problem with Tomcat upgrading

2004-09-03 Thread Bedrijven.nl
Hello,

I tried this see below. But same the same error that the Class is not Found.
For my imagination: is't possible to install the new Tomcat 5.0.25 version
and then copy a webapplication (in my case is called template) in the
webapps director..stop/start services and it should work. Isn't it?? Or do I
need to do something more??

I tried this...import the LogonUserForm
___

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ page import=nl.intervision.formbeans.LogonUserForm %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD

My LogonUserForm
___

package nl.intervision.formbeans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import nl.intervision.util.*;

public final class LogonUserForm extends ActionForm  {

private String username = null;
private String password = null;

public String getUsername() {
return (this.username);
}

public void setUsername(String username) {
this.username = username;
}

public String getPassword() {
return (this.password);
}

public void setPassword(String password) {
this.password = password;
}

public void reset(ActionMapping mapping, HttpServletRequest request) {
this.username = null;
this.password = null;
}


/**
 * Validate the properties that have been set from this HTTP request,
 * and return an codeActionErrors/code object that encapsulates any
 * validation errors that have been found.  If no errors are found,
return
 * codenull/code or an codeActionErrors/code object with no
 * recorded error messages.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
if (!CheckInput.checkTextLength(username, 1, 50)) {
errors.add(username, new
ActionError(error.username.required));
errors.add(usernamewrong, new
ActionError(error.usernamewrong.display));
}
if (!CheckInput.checkTextLength(password, 1, 50)) {
errors.add(password, new
ActionError(error.password.required));
errors.add(passwordwrong, new
ActionError(error.passwordwrong.display));
}
if (errors.size()  0)
{
errors.add(textheader, new
ActionError(error.textheader.display));
}
return errors;
}
}
___





-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:11 PM
Aan: Tomcat Users List; [EMAIL PROTECTED]
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
Import your classes if you're not doing so already.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:27 AM
To: 'Tomcat Users List'
Subject: Problem with Tomcat upgrading

Hello,

I am testing the new Tomcat version. So what dit I do:

- Installed Tomcat 5.0.19 (older version was 4.0.25)
- copied my webapps to the new installation
- restarting tomcat

Everything seems to work fine. However when I tried to start my
webapplications everything goes fine but Tomcat trowns a ClassNotFound
Exception.

example:

the logonuser.jsp

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD
etc.

Tomcat throws teh following exception:

javax.servlet.jsp.JspException: Exception creating bean of class
nl.intervision.formbeans.LogonUserForm:
java.lang.ClassNotFoundException:
nl.intervision.formbeans.LogonUserForm at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at
org.apache.jsp.logonuser_jsp._jspService(logonuser_jsp.java:106) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137

RE: Problem with Tomcat upgrading

2004-09-03 Thread Shapira, Yoav

Hi,
It's possible to copy over webapps that adhere strictly to the Servlet
Specification and general Java guidelines, which include importing all
used classes.  It seems like you're doing that and still getting a CNFE,
and I'm not sure why you're getting the error.  Are there other errors,
e.g. during server startup, that might be affecting your webapp?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:30 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hello,

I tried this see below. But same the same error that the Class is not
Found.
For my imagination: is't possible to install the new Tomcat 5.0.25
version
and then copy a webapplication (in my case is called template) in the
webapps director..stop/start services and it should work. Isn't it?? Or
do
I
need to do something more??

I tried this...import the LogonUserForm
___

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ page import=nl.intervision.formbeans.LogonUserForm %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD

My LogonUserForm
___

package nl.intervision.formbeans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import nl.intervision.util.*;

public final class LogonUserForm extends ActionForm  {

private String username = null;
private String password = null;

public String getUsername() {
   return (this.username);
   }

   public void setUsername(String username) {
   this.username = username;
}

public String getPassword() {
   return (this.password);
   }

   public void setPassword(String password) {
   this.password = password;
}

public void reset(ActionMapping mapping, HttpServletRequest
request) {
   this.username = null;
   this.password = null;
}


/**
 * Validate the properties that have been set from this HTTP
request,
 * and return an codeActionErrors/code object that encapsulates
any
 * validation errors that have been found.  If no errors are found,
return
 * codenull/code or an codeActionErrors/code object with no
 * recorded error messages.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
   if (!CheckInput.checkTextLength(username, 1, 50)) {
   errors.add(username, new
ActionError(error.username.required));
   errors.add(usernamewrong, new
ActionError(error.usernamewrong.display));
   }
   if (!CheckInput.checkTextLength(password, 1, 50)) {
   errors.add(password, new
ActionError(error.password.required));
   errors.add(passwordwrong, new
ActionError(error.passwordwrong.display));
   }
   if (errors.size()  0)
   {
   errors.add(textheader, new
ActionError(error.textheader.display));
   }
   return errors;
}
}
___





-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:11 PM
Aan: Tomcat Users List; [EMAIL PROTECTED]
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
Import your classes if you're not doing so already.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:27 AM
To: 'Tomcat Users List'
Subject: Problem with Tomcat upgrading

Hello,

I am testing the new Tomcat version. So what dit I do:

- Installed Tomcat 5.0.19 (older version was 4.0.25)
- copied my webapps to the new installation
- restarting tomcat

Everything seems to work fine. However when I tried to start my
webapplications everything goes fine but Tomcat trowns a ClassNotFound
Exception.

example:

the logonuser.jsp

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ include file=/includes

RE: Problem with Tomcat upgrading

2004-09-03 Thread Bedrijven.nl
Hi,

No not that I can see in the log. What I know is that ven not all the
examples work as well. Some does other not.
ITs seems that Tomcat can interpretet my classes. My structure is at
follows:

WEB-INF/classes/nl/intervision/formbeans/LogonUserForm.class.

Pff I really flipping..



-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:37 PM
Aan: Tomcat Users List
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
It's possible to copy over webapps that adhere strictly to the Servlet
Specification and general Java guidelines, which include importing all
used classes.  It seems like you're doing that and still getting a CNFE,
and I'm not sure why you're getting the error.  Are there other errors,
e.g. during server startup, that might be affecting your webapp?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:30 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hello,

I tried this see below. But same the same error that the Class is not
Found.
For my imagination: is't possible to install the new Tomcat 5.0.25
version
and then copy a webapplication (in my case is called template) in the
webapps director..stop/start services and it should work. Isn't it?? Or
do
I
need to do something more??

I tried this...import the LogonUserForm
___

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ page import=nl.intervision.formbeans.LogonUserForm %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD

My LogonUserForm
___

package nl.intervision.formbeans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import nl.intervision.util.*;

public final class LogonUserForm extends ActionForm  {

private String username = null;
private String password = null;

public String getUsername() {
   return (this.username);
   }

   public void setUsername(String username) {
   this.username = username;
}

public String getPassword() {
   return (this.password);
   }

   public void setPassword(String password) {
   this.password = password;
}

public void reset(ActionMapping mapping, HttpServletRequest
request) {
   this.username = null;
   this.password = null;
}


/**
 * Validate the properties that have been set from this HTTP
request,
 * and return an codeActionErrors/code object that encapsulates
any
 * validation errors that have been found.  If no errors are found,
return
 * codenull/code or an codeActionErrors/code object with no
 * recorded error messages.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
   if (!CheckInput.checkTextLength(username, 1, 50)) {
   errors.add(username, new
ActionError(error.username.required));
   errors.add(usernamewrong, new
ActionError(error.usernamewrong.display));
   }
   if (!CheckInput.checkTextLength(password, 1, 50)) {
   errors.add(password, new
ActionError(error.password.required));
   errors.add(passwordwrong, new
ActionError(error.passwordwrong.display));
   }
   if (errors.size()  0)
   {
   errors.add(textheader, new
ActionError(error.textheader.display));
   }
   return errors;
}
}
___





-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:11 PM
Aan: Tomcat Users List; [EMAIL PROTECTED]
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
Import your classes if you're not doing so already.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:27 AM
To: 'Tomcat Users List'
Subject: Problem with Tomcat upgrading

Hello,

I am testing the new Tomcat version. So what dit I do:

- Installed Tomcat 5.0.19 (older

RE: Problem with Tomcat upgrading

2004-09-03 Thread Shapira, Yoav

Hi,
Make sure you do a clean installation of Tomcat to a new directory:
don't override the old $CATALINA_HOME.  If you do the latter you might
end up with some old jars and config files loaded.  The fact the
examples don't run suggest a screwy Tomcat installation.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:54 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hi,

No not that I can see in the log. What I know is that ven not all the
examples work as well. Some does other not.
ITs seems that Tomcat can interpretet my classes. My structure is at
follows:

WEB-INF/classes/nl/intervision/formbeans/LogonUserForm.class.

Pff I really flipping..



-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:37 PM
Aan: Tomcat Users List
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
It's possible to copy over webapps that adhere strictly to the Servlet
Specification and general Java guidelines, which include importing all
used classes.  It seems like you're doing that and still getting a
CNFE,
and I'm not sure why you're getting the error.  Are there other errors,
e.g. during server startup, that might be affecting your webapp?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:30 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hello,

I tried this see below. But same the same error that the Class is not
Found.
For my imagination: is't possible to install the new Tomcat 5.0.25
version
and then copy a webapplication (in my case is called template) in the
webapps director..stop/start services and it should work. Isn't it??
Or
do
I
need to do something more??

I tried this...import the LogonUserForm
__
_

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ page import=nl.intervision.formbeans.LogonUserForm %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD

My LogonUserForm
__
_

package nl.intervision.formbeans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import nl.intervision.util.*;

public final class LogonUserForm extends ActionForm  {

private String username = null;
private String password = null;

public String getUsername() {
  return (this.username);
  }

  public void setUsername(String username) {
  this.username = username;
}

public String getPassword() {
  return (this.password);
  }

  public void setPassword(String password) {
  this.password = password;
}

public void reset(ActionMapping mapping, HttpServletRequest
request) {
  this.username = null;
  this.password = null;
}


/**
 * Validate the properties that have been set from this HTTP
request,
 * and return an codeActionErrors/code object that
encapsulates
any
 * validation errors that have been found.  If no errors are
found,
return
 * codenull/code or an codeActionErrors/code object with
no
 * recorded error messages.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
  if (!CheckInput.checkTextLength(username, 1, 50)) {
  errors.add(username, new
ActionError(error.username.required));
  errors.add(usernamewrong, new
ActionError(error.usernamewrong.display));
  }
  if (!CheckInput.checkTextLength(password, 1, 50)) {
  errors.add(password, new
ActionError(error.password.required));
  errors.add(passwordwrong, new
ActionError(error.passwordwrong.display));
  }
  if (errors.size()  0)
  {
  errors.add(textheader, new
ActionError(error.textheader.display));
  }
  return errors;
}
}
__
_





-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:11 PM

RE: Problem with Tomcat upgrading

2004-09-03 Thread Bedrijven.nl
Hi,

I tried this, but the first example came withe following error:

HTTP Status 500 - 




type Exception report

message 

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

exception 

javax.servlet.ServletException:
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(Ljava/lang/Str
ing;Ljava/lang/Class;Ljavax/servlet/jsp/PageContext;Lorg/apache/jasper/runti
me/ProtectedFunctionMapper;Z)Ljava/lang/Object;

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)

org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithm
etic_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause 

java.lang.NoSuchMethodError:
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(Ljava/lang/Str
ing;Ljava/lang/Class;Ljavax/servlet/jsp/PageContext;Lorg/apache/jasper/runti
me/ProtectedFunctionMapper;Z)Ljava/lang/Object;

org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithm
etic_jsp.java:44)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.25 logs.


What;s wrong?? I don't understand it anymore iam hopeless

Maarten


-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:58 PM
Aan: Tomcat Users List
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
Make sure you do a clean installation of Tomcat to a new directory:
don't override the old $CATALINA_HOME.  If you do the latter you might
end up with some old jars and config files loaded.  The fact the
examples don't run suggest a screwy Tomcat installation.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:54 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hi,

No not that I can see in the log. What I know is that ven not all the
examples work as well. Some does other not.
ITs seems that Tomcat can interpretet my classes. My structure is at
follows:

WEB-INF/classes/nl/intervision/formbeans/LogonUserForm.class.

Pff I really flipping..



-Oorspronkelijk bericht-
Van: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Verzonden: Friday, September 03, 2004 2:37 PM
Aan: Tomcat Users List
Onderwerp: RE: Problem with Tomcat upgrading



Hi,
It's possible to copy over webapps that adhere strictly to the Servlet
Specification and general Java guidelines, which include importing all
used classes.  It seems like you're doing that and still getting a
CNFE,
and I'm not sure why you're getting the error.  Are there other errors,
e.g. during server startup, that might be affecting your webapp?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:30 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Tomcat upgrading

Hello,

I tried this see below. But same the same error that the Class is not
Found.
For my imagination: is't possible to install the new Tomcat 5.0.25
version
and then copy a webapplication (in my case is called template) in the
webapps director..stop/start services and it should work. Isn't it??
Or
do
I
need to do something more??

I tried this...import the LogonUserForm
__
_

%@ page language=java %
%@ page errorPage = errorpage.jsp %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%! String title =Inloggen; %
%@ page import=nl.intervision.formbeans.LogonUserForm %
%@ include file=/includes/prelogintop.jsp %
html:form method=POST action=/LogonUser focus=username
%@ include file=/includes/top.jsp %
HR
TRTD

My LogonUserForm
__
_

package nl.intervision.formbeans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import nl.intervision.util.*;

public final class LogonUserForm extends ActionForm  {

private String username = null;
private String password = null;

public String getUsername() {
  return (this.username);
  }

  public void setUsername(String username) {
  this.username = username;
}

public String getPassword() {
  return (this.password);
  }

  public void setPassword(String password

Re: Problem with Tomcat upgrading

2004-09-03 Thread QM
On Fri, Sep 03, 2004 at 03:54:18PM +0200, Bedrijven.nl wrote:
: No not that I can see in the log. What I know is that ven not all the
: examples work as well. Some does other not.

What was your upgrade process?
Did you recompile everything against the new JARs, etc?

There's a brief list of steps on my website (http://www.brandxdev.net).

-QM

-- 

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


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