You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christophe Andreoli <an...@gsf.de> on 2003/05/02 09:22:23 UTC
Urgent. Big Problem with 4.18 update !
Hello,
I have updated from tomcat 4.0 to 4.18.
Since nothing more is working with my application.
1. Tomcat cannot find my class oracle.jdbc.driver.OracleDriver
DataBase: Caught Exception ex=java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
although the same library classes12.zip that contains this class is
present in the common directory !!
Tomcat finds for example the struts library (struts.jar). Why not
classes12.zip ?
-rw-r--r-- 1 tomcat tomcat 717666 Mar 19 10:42 ant.jar
-rwxrwxrwx 1 tomcat tomcat 1207068 Apr 30 18:10 classes12.zip
-rw-r--r-- 1 tomcat tomcat 165119 Mar 19 10:42
commons-collections.jar
-rw-r--r-- 1 tomcat tomcat 18404 Mar 19 10:42
commons-logging-api.jar
-rw-r--r-- 1 tomcat tomcat 183342 Mar 19 10:42
jasper-compiler.jar
-rw-r--r-- 1 tomcat tomcat 73012 Mar 19 10:42 jasper-runtime.jar
-rw-r--r-- 1 tomcat tomcat 6727 Apr 30 18:10 jdbc2_0-stdext.jar
-rw-r--r-- 1 tomcat tomcat 8809 Apr 30 18:28 jta-spec1_0_1.jar
-rw------- 1 tomcat tomcat 87412 May 2 09:11 mitop.jar
-rw-r--r-- 1 root other 211470 Apr 30 16:36
mysql-connector-java-3.0.6-stable-bin.jar
-rw-r--r-- 1 tomcat tomcat 28491 Mar 19 10:42 naming-common.jar
-rw-r--r-- 1 tomcat tomcat 18183 Mar 19 10:42 naming-factory.jar
-rw-r--r-- 1 tomcat tomcat 39042 Mar 19 10:42
naming-resources.jar
-rw-r--r-- 1 tomcat tomcat 78350 Apr 30 18:10 servlet.jar
-rw-r--r-- 1 tomcat tomcat 330459 Apr 30 18:47 struts.jar
-rw-r--r-- 1 root other 19096 Apr 30 16:36
webcalendar-1.17-src.jar
2. Another problem: once again there was no problem with tomcat 4.0:
I instantiate in my action class a role bean and save it to the session
with the following code:
RoleBean role = new RoleBean();
request.getSession().setAttribute("roleBean", role);
But then in the jsp pages using the role bean, as:
<jsp:useBean id="roleBean" scope="session"
class="com.ihg.mitop.gui.RoleBean"/>
<% if (((RoleBean)roleBean).getHolgerUser() == 1 ){ %> etc .....
I get the following exception:
java.lang.ClassCastException: com.ihg.mitop.gui.RoleBean
??
CAN you help me ? Thank you !!!
Chris
Re: Urgent. Big Problem with 4.18 update !
Posted by Christophe Andreoli <an...@gsf.de>.
Thank you . It works !
(it means zip are not more recognized in 4.1?)
Do you have an idea for the second problem ?
thank you!
Rosdi bin Kasim wrote:
>
> try to rename it from classes12.zip to classes12.jar
> see whether it work..
>
> ----- Original Message -----
> From: "Christophe Andreoli" <an...@gsf.de>
> To: <to...@jakarta.apache.org>
> Sent: Friday, May 02, 2003 3:22 PM
> Subject: Urgent. Big Problem with 4.18 update !
>
> >
> >
> > Hello,
> >
> >
> > I have updated from tomcat 4.0 to 4.18.
> >
> > Since nothing more is working with my application.
> >
> > 1. Tomcat cannot find my class oracle.jdbc.driver.OracleDriver
> >
> > DataBase: Caught Exception ex=java.lang.ClassNotFoundException:
> > oracle.jdbc.driver.OracleDriver
> >
> > although the same library classes12.zip that contains this class is
> > present in the common directory !!
> >
> > Tomcat finds for example the struts library (struts.jar). Why not
> > classes12.zip ?
> >
> > -rw-r--r-- 1 tomcat tomcat 717666 Mar 19 10:42 ant.jar
> > -rwxrwxrwx 1 tomcat tomcat 1207068 Apr 30 18:10 classes12.zip
> > -rw-r--r-- 1 tomcat tomcat 165119 Mar 19 10:42
> > commons-collections.jar
> > -rw-r--r-- 1 tomcat tomcat 18404 Mar 19 10:42
> > commons-logging-api.jar
> > -rw-r--r-- 1 tomcat tomcat 183342 Mar 19 10:42
> > jasper-compiler.jar
> > -rw-r--r-- 1 tomcat tomcat 73012 Mar 19 10:42 jasper-runtime.jar
> > -rw-r--r-- 1 tomcat tomcat 6727 Apr 30 18:10 jdbc2_0-stdext.jar
> > -rw-r--r-- 1 tomcat tomcat 8809 Apr 30 18:28 jta-spec1_0_1.jar
> > -rw------- 1 tomcat tomcat 87412 May 2 09:11 mitop.jar
> > -rw-r--r-- 1 root other 211470 Apr 30 16:36
> > mysql-connector-java-3.0.6-stable-bin.jar
> > -rw-r--r-- 1 tomcat tomcat 28491 Mar 19 10:42 naming-common.jar
> > -rw-r--r-- 1 tomcat tomcat 18183 Mar 19 10:42 naming-factory.jar
> > -rw-r--r-- 1 tomcat tomcat 39042 Mar 19 10:42
> > naming-resources.jar
> > -rw-r--r-- 1 tomcat tomcat 78350 Apr 30 18:10 servlet.jar
> > -rw-r--r-- 1 tomcat tomcat 330459 Apr 30 18:47 struts.jar
> > -rw-r--r-- 1 root other 19096 Apr 30 16:36
> > webcalendar-1.17-src.jar
> >
> >
> >
> > 2. Another problem: once again there was no problem with tomcat 4.0:
> > I instantiate in my action class a role bean and save it to the session
> > with the following code:
> >
> > RoleBean role = new RoleBean();
> > request.getSession().setAttribute("roleBean", role);
> >
> >
> > But then in the jsp pages using the role bean, as:
> >
> > <jsp:useBean id="roleBean" scope="session"
> > class="com.ihg.mitop.gui.RoleBean"/>
> >
> > <% if (((RoleBean)roleBean).getHolgerUser() == 1 ){ %> etc .....
> >
> >
> >
> > I get the following exception:
> >
> > java.lang.ClassCastException: com.ihg.mitop.gui.RoleBean
> >
> > ??
> >
> >
> >
> >
> > CAN you help me ? Thank you !!!
> >
> >
> > Chris
> >
>
> ----------------------------------------------------------------------------
> ----
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Urgent. Big Problem with 4.18 update !
Posted by Rosdi bin Kasim <ro...@epantai.com.my>.
try to rename it from classes12.zip to classes12.jar
see whether it work..
----- Original Message -----
From: "Christophe Andreoli" <an...@gsf.de>
To: <to...@jakarta.apache.org>
Sent: Friday, May 02, 2003 3:22 PM
Subject: Urgent. Big Problem with 4.18 update !
>
>
> Hello,
>
>
> I have updated from tomcat 4.0 to 4.18.
>
> Since nothing more is working with my application.
>
> 1. Tomcat cannot find my class oracle.jdbc.driver.OracleDriver
>
> DataBase: Caught Exception ex=java.lang.ClassNotFoundException:
> oracle.jdbc.driver.OracleDriver
>
> although the same library classes12.zip that contains this class is
> present in the common directory !!
>
> Tomcat finds for example the struts library (struts.jar). Why not
> classes12.zip ?
>
> -rw-r--r-- 1 tomcat tomcat 717666 Mar 19 10:42 ant.jar
> -rwxrwxrwx 1 tomcat tomcat 1207068 Apr 30 18:10 classes12.zip
> -rw-r--r-- 1 tomcat tomcat 165119 Mar 19 10:42
> commons-collections.jar
> -rw-r--r-- 1 tomcat tomcat 18404 Mar 19 10:42
> commons-logging-api.jar
> -rw-r--r-- 1 tomcat tomcat 183342 Mar 19 10:42
> jasper-compiler.jar
> -rw-r--r-- 1 tomcat tomcat 73012 Mar 19 10:42 jasper-runtime.jar
> -rw-r--r-- 1 tomcat tomcat 6727 Apr 30 18:10 jdbc2_0-stdext.jar
> -rw-r--r-- 1 tomcat tomcat 8809 Apr 30 18:28 jta-spec1_0_1.jar
> -rw------- 1 tomcat tomcat 87412 May 2 09:11 mitop.jar
> -rw-r--r-- 1 root other 211470 Apr 30 16:36
> mysql-connector-java-3.0.6-stable-bin.jar
> -rw-r--r-- 1 tomcat tomcat 28491 Mar 19 10:42 naming-common.jar
> -rw-r--r-- 1 tomcat tomcat 18183 Mar 19 10:42 naming-factory.jar
> -rw-r--r-- 1 tomcat tomcat 39042 Mar 19 10:42
> naming-resources.jar
> -rw-r--r-- 1 tomcat tomcat 78350 Apr 30 18:10 servlet.jar
> -rw-r--r-- 1 tomcat tomcat 330459 Apr 30 18:47 struts.jar
> -rw-r--r-- 1 root other 19096 Apr 30 16:36
> webcalendar-1.17-src.jar
>
>
>
> 2. Another problem: once again there was no problem with tomcat 4.0:
> I instantiate in my action class a role bean and save it to the session
> with the following code:
>
> RoleBean role = new RoleBean();
> request.getSession().setAttribute("roleBean", role);
>
>
> But then in the jsp pages using the role bean, as:
>
> <jsp:useBean id="roleBean" scope="session"
> class="com.ihg.mitop.gui.RoleBean"/>
>
> <% if (((RoleBean)roleBean).getHolgerUser() == 1 ){ %> etc .....
>
>
>
> I get the following exception:
>
> java.lang.ClassCastException: com.ihg.mitop.gui.RoleBean
>
> ??
>
>
>
>
> CAN you help me ? Thank you !!!
>
>
> Chris
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org