Solved

java.lang.classcastexception

Posted on 2002-05-03
3
758 Views
Last Modified: 2012-06-21
What is this telling me?  Is it saying the java.lang.classcastexception
cannot be found or is it one or more of the others that the java.lang.classcastexception calls that can't be found? Is java.lang.classcastexception not part of the base java package?  What are all those com.ibm.servlet things for?
[5/3/02 16:33:45:814 PDT] 6821c026 WebGroup      X Servlet Error-[CSUHDatabaseConnLoader]: Failed to load servlet: java.lang.ClassCastException: DatabaseConnLoader
     at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
     at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
     at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1172)
     at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:141)
     at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:235)
     at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:144)
     at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
     at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
     at com.ibm.ws.runtime.Server.startModule(Server.java:617)
     at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
     at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
     at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
     at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
     at java.lang.reflect.Method.invoke(Native Method)
     at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
0
Comment
Question by:xoxomos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 6990071
A ClassCastException is part of the base Java package and is throw when an invalid cast is attempted.
From the Javadoc:

Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:


     Object x = new Integer(0);
     System.out.println((String)x);

> What are all those com.ibm.servlet things for?

Thats just the stack trace showing the call stack when the error occurred.

0
 

Author Comment

by:xoxomos
ID: 6990576
The com.ibm.servlet things are from Visual Age java's Websphere Test Environment.  I compiled a bunch of servlets using VAJava then tried moving to WebSphere Application Server.  I get exceptions then have to import these packages from WTE to Websphere to get to the next exception. Finally added entire WTE as part of classpath but now its calling for a method in a class, but the method does not exist in that class.
Got a whole bunch of questions over in the Websphere section you might understand.  Will be putting this out as question later.
Error Message: com.ibm.servlet.engine.webapp.ServletReference: method isJspType()Z not found
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NoSuchMethodError: com.ibm.servlet.engine.webapp.ServletReference: method isJspType()Z not found
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:359)
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
     at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
     
0
 

Author Comment

by:xoxomos
ID: 6990612
The com.ibm.servlet things are from Visual Age java's Websphere Test Environment.  I compiled a bunch of servlets using VAJava then tried moving to WebSphere Application Server.  I get exceptions then have to import these packages from WTE to Websphere to get to the next exception. Finally added entire WTE as part of classpath but now its calling for a method in a class, but the method does not exist in that class.
Got a whole bunch of questions over in the Websphere section you might understand.  Will be putting this out as question later.
Error Message: com.ibm.servlet.engine.webapp.ServletReference: method isJspType()Z not found
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NoSuchMethodError: com.ibm.servlet.engine.webapp.ServletReference: method isJspType()Z not found
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:359)
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
     at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
     at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
     
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet example 11 56
servlet example 17 59
pagenation logic how it is working in my code 1 69
Hibernate Inheritance Strategy for Abstract Base class and two concrete classes 3 17
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question