Doesn't find import classes...

 

Hi Wei,
          I removed everything that was related to JVIEW in the script and it's the
          same thing :(... can you explaine one thing to me?
          My GenerateHTML bean is compiled and if I don't import anything in it, it
          works fine and I can call methods of it... no problem. But when I import
          some libraries (jar files) in my, it compiles fine but when I want to use it
          in my jsp page it can't find the import packages... why? It's already
          compiled and those packages are in my system classpath... it even works if I
          open a prompt and do it at the commandline!
          Is there a rule to follow when using a bean in jsp that applies to importing
          packages in that bean?
          Thanks !
          Regards,
          David Pare
          "Wei Guan" <[email protected]> wrote in message
          news:[email protected]...
          > You have JDK and JVIEW in your startup script, and it is hard for me to
          > figure which one you are using. Without accessing your machine, it will be
          > hard for me to figure out what's wrong. If you are using jview, there is
          no
          > /cp to specify classpath in your script.
          >
          > I suggest you make your startup script simple, and check your GenerateHTML
          > is in CLASSPATH (jview) or in WEBLOGIC_CLASSPATH (JDK). If it is still not
          > working, try to use javap to figure whehter your class is in CLASSPATH
          > (jview) or in WEBLOGIC_CLASSPATH (JDK).
          >
          > My 2 cents
          >
          > --
          > Cheers - Wei
          > David Pare <[email protected]> wrote in message
          > news:[email protected]...
          > > Hi Wei,
          > >
          > > I tried that already but it doesn't work...
          > >
          > > I have attached 3 files to this mail:
          > >
          > > - Merchant.jsp
          > > - GenerateHTML.java
          > > - wls.cmd
          > >
          > > if you could take a look I would appreciate it :)
          > >
          > > Thanks in advance!
          > >
          > > Regards,
          > >
          > > David Pare
          > > Accor Corporate Services
          > >
          > > Wei Guan <[email protected]> wrote in message
          > > news:[email protected]...
          > > > Just put these classes in WEBLOGIC_CLASSPATH, do not put them in
          > > > JAVA_CLASSPATH.
          > > >
          > > > My 2 cents.
          > > >
          > > > --
          > > > Cheers - Wei
          > > > David Pare <[email protected]> wrote in message
          > > > news:[email protected]...
          > > > > Hi,
          > > > >
          > > > > I have a simple .jsp file that uses a bean and in that bean
          import
          > > some
          > > > > classes... it compiles perfectly but then when I run my .jsp file,
          WLS
          > > > tells
          > > > > me that it cannot find the classes I'm importing in my bean? I don't
          > get
          > > > it!
          > > > >
          > > > > I've put those import packages in the CLASSPATH and
          > > WEBLOGIC_CLASSPATH...
          > > > > but it doesn't work!
          > > > >
          > > > > Any help would be appreciated :)
          > > > >
          > > > > FYI: I'm using WLS 5.1 SP 3 on NT 4 SP5
          > > > >
          > > > > Thanks!
          > > > >
          > > > > David Pare
          > > > > ACS
          > > > >
          > > > >
          > > > >
          > > > >
          > > > >
          > > > >
          > > >
          > > >
          > >
          > >
          > >
          >
          >
          

Similar Messages

  • JRE doesn't find TcpConnection.class

    Hi.
    I've got a problem using the email-function of the UTL_SMTP package.
    I copied the example from the Documentation and tried to make it work, but if i start it following Error occures:
    ORA-29540: Class oracle/plsql/net/TCPConnection not found
    ORA-06512: in "SYS.UTL_TCP", line 533
    Installed is Oracle 8.1.6.1 Enterprise Edt.
    When i searched in the Oracle directiory i found the file "TcpConnection.class". The class name is TcpConnection, too, regarding to the output of javap.
    Could this be the Prolem? ("TCPConnection" called by Oracle, but class name is "TcpConnection")
    And if so, can i solve it or do i need a patch?
    Thanks for your help.
    Regards,
    Christoph

    Finally it works!
    The Problem was that the Java VM was not installed. The email function uses a Java class, so the VM is needed.
    null

  • Tomcat 4.1 class problem. Doesn't identify the class.

    Hi
    I just installed J2SDK and tomcat in windows xp. I've made jsp files and beans. The first page is customerlogin.jsp which takes user id and password in a form. It sends the request to authenticate.jsp. Would you please give me a few important steps that need to be done?
    My directory structure is as follows:
    C:\Tomcat 4.1\Webapps\Log -> jsps
    c:\Tomcat 4.1\Webapps\Log\WEB-INF\classes\Log -> java beans
    The jsp doesn't find AuthenBean class. It complains about it.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /authenticate.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 4.1\work\Standalone\localhost\Log\authenticate_jsp.java:43: package Log does not exist
    Log.AuthenBean Authen = null;
    ^
    ******** AuthenBean is : *********
    package Log;
    public class AuthenBean{
         String userid;
         String password;
         public void setUserid (String tuserid) {
                   userid = tuserid;
         public void setPassword (String tpassword) {
                   password = tpassword;
         public String getUserid() { return userid; }
         public String getPassword() { return password; }
    ******** Authenticate.jsp ***********
    <jsp:useBean id="Authen" class="Log.AuthenBean" scope="session"/>
    <jsp:useBean id="select" class="Log.ExecuteQuery"/>
    <jsp:setProperty name="Authen" property="*"/>
    <%
    String id = Authen.getUserid();
    String passwd = Authen.getPassword();
    out.print("User id is " + id);
    out.print("Password is " + passwd);
    %>
    <%@ page import="java.util.Vector" %>
    <% Vector aResult = select.getResult();
    select.connect();
    boolean idCheck = false;
    String query = new String();
    query = "SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, PASSWORD, COUNTY, AREA FROM EMPLOYEE, LOCATION WHERE EMPLOYEE_ID = '" + id + "' AND PASSWORD = '" + passwd + "' AND (EMPLOYEE.LOCATION_ID = LOCATION.LOCATION_ID)";
    select.select(query, 6);
    select.disconn();
    int size = aResult.size();
    if(size > 0){
    idCheck = true;
    if(idCheck)
         session.setAttribute("loginId",id);
         session.setAttribute("firstName",(String)aResult.elementAt(1));
         session.setAttribute("lastName",(String)aResult.elementAt(2));
         session.setAttribute("county",(String)aResult.elementAt(4));
         session.setAttribute("area",(String)aResult.elementAt(5));
    %>
    <jsp:forward page="customer.jsp"/>
    <%
    else
    String error_msg = "Error: User Authentication Failed!";
    String link = "customerlogin.jsp";
    session.setAttribute("prevPage", link);
    session.setAttribute("errorMsg", error_msg);
    }%>
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    Your help would be appreciated
    Thanks!

    Your problem is in web.xml. Only servlet classes need to be mapped. Your bean class should not be.
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    If you have only jsps, u mau use
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    Hope it works.
    Hafizur Rahman
    SCJP

  • My JSP can't find a class file

    Hi
    I am trying to view a JSP but I get ClassNotFoundException. I know that it means that it can't find the class but I can't understand why.
    my directory structure:
    Intranet->source
    ->jsp
    ->WEB-INF->classes->source-><class file here>
    first line of .java file:
    package source;
    JSP code:
    <%@page import="java.sql.*, source.*, java.util.*;" %>
    <jsp:useBean id="dbConnect" scope="session" class="source.DBConnect">
    <jsp:getProperty name="dbConnect" property="jdbc:odbc:Auto_Intranet" />
    </jsp:useBean>
    Must I create an environment variable for 'Windows': with classpath " .....\WEB-INF\classes"
    The Windows environment variable doesn't exist----using XP Pro

    Looks right to me.
    You don't need a classpath variable. Web containers ignore it anyway.
    Which class is not found? source.DBConnect?
    Is DBConnect in a package called source?
    Is your database driver in the web-inf/lib directory?
    Please post the full error message with stack trace - it will be easier to sort out.
    Good luck,
    evnafets

  • Cannot import classes such as ObjectFile, Scene, ...

    Hi Java'ers,
    I wanted to load some ObjectFile into my Java program but I have no idea what's wrong about my method.
    I need do this so I can load an objectfile (.obj) into my program:
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    Eclipse says that it doesn't exists. But, when I import this:
    import com.sun.j3d.loaders.objectfile.*;
    This line is good, Eclipse says that this exists. So the directory is good but he can't find the classes in the directory's.
    I imported this jar-files in my project:
    - j3dcore.jar
    - j3dutils.jar
    - vecmath.jar
    My steps for importing the jar-files
    import -> Archive File -> Browse... -> (jar-file)
    Can you programmers help me to get this working?
    Thank you

    use the flash help files.  for example, this is the explanation of the intrinsic keyword from the help files:
    "Allows compile-time type checking of previously defined classes. Flash uses  intrinsic class declarations to enable  compile-time type checking of built-in classes such as Array,  Object, and String. This keyword indicates to the  compiler that no function implementation is required, and that no bytecode  should be generated for it.
    The intrinsic keyword can also be used with variable and function declarations. Flash uses  this keyword to enable compile-time type checking for global functions and  properties.
    The intrinsic keyword was created specifically to enable compile-time type checking for  built-in classes and objects, and global variables and functions. This keyword  was not meant for general purpose use, but may be of some value to developers  seeking to enable compile-time type checking with previously defined classes,  especially if the classes are defined using ActionScript 1.0.
    This keyword is supported only when used in external script files, not in  scripts written in the Actions panel."

  • Importing classes confusion AS3

    I must admit, I don't know Actionscript 3.0 extremely well but I know my way around it and am able to get by as a designer.
    I'm just wondering if classes should ALWAYS be imported. The reason I ask is because sometimes I don't import classes but my Actionscript still works without any problems.
    Just wondering if anyone could shed some light on this please?
    Thanks

    Are you using custom classes? If so then all of the ones you use will be required.
    So suppose you have in your code:
    var myInstance:SomeClass = new SomeClass();
    Then at the top you should add
    import com.mydomain.somePackage.SomeClass;
    Or if you are using packages like TweenLite or such. Even if you have added that to your classpath and it works without the import statement, it would be a surprise if you move it to another machine that doesn't have that installed.
    And of course the best way to find out is to have a problem where something goes wrong. That is really all that separates the noobs from the "pros" -- we have made a lot more mistakes than you've even thought of yet!

  • Import classes that are not part of any package

    I have this problem with the JDK1.4 compiler:
    I have a few classes that were created outside of any package for some JNI uses. When I used JDK1.3 to compile, I was able to get the compiler to find these classes by doing the following in the calling classes:
    import ClassOutSideOfPackage;
    Now that I am trying to use JDK 1.4, the compiler complains with the following error:
    "." expected
    import ClassOutSideOfPackage;
    I tried to take the import out and had no luck. The compiler complained that it can't find this class. What can I do or is the only solution to change the class to include it in a package and change all relavant JNI native calls... etc. Thank you.

    Removing the entire import statement should work. Check for a classpath problem if it
    doesn't. It is not necessary to place in a package and recompile, though.I tried your suggestion. However, it keeps complaining that it can't find the class. The class file resides in the current directory and I have "." at the beginning of my class path. I don't see anything wrong with the classpath. Did you have this working?

  • Cannot find servlet class

    I have a new computer and I have installed the latest version of Tomcat but kept the old free version of the Sun One Studio which I still had a setup file for (as I couldn't find it on this site anywhere for free anymore). The new version of Tomcat puts my webapps in a different area now being s1studio\tomcat401\webapps but there is another area for the server: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\tomcat-docs. I use the first directory and that shows my jsp's etc but it doesn't find my servlets.
    My problem I am having is that my log file is showing this:
    2005-10-24 10:27:48 StandardHost[localhost]: Removing web application at context path /webdav
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /examples
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /tomcat-docs
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /manager
    2005-10-24 10:28:11 WebappLoader[manager]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\manager
    2005-10-24 10:28:11 StandardManager[manager]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[manager]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[manager]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 ContextConfig[manager]: Configured an authenticator for method BASIC
    2005-10-24 10:28:11 StandardWrapper[manager:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[manager:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT
    2005-10-24 10:28:11 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\_
    2005-10-24 10:28:11 StandardManager[]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 StandardWrapper[:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\tomcat-docs
    2005-10-24 10:28:11 WebappLoader[tomcat-docs]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\tomcat-docs
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[tomcat-docs]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:28:12 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\webdav
    2005-10-24 10:28:12 WebappLoader[webdav]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\webdav
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[webdav]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[webdav:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[webdav:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:29:55 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:29:55 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.ClassNotFoundException: CourseList
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:801)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    2005-10-24 10:54:35 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:54:35 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    and so it goes on.
    My classes are in the directory as:
    C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF\classes\virtualward\java
    and my web.xml is here: C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF
    and the code for the CourseList servlet is:
    <servlet>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <servlet-class>virtualward.java.CourseList</servlet-class>
           </servlet>
    <servlet-mapping>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <url-pattern>/servlet/CourseList</url-pattern>
       </servlet-mapping>The example servlets work fine and all .jsp's work within my project.
    Can anyone spot what's wrong?
    Thanks!!!

    I did a basic .jsp page and that worked so at least that's something. Here is my code for the .jsp that won't work. It worked perfectly on my old computer on the configuration with Tomcat4
    <%@page import="virtualward.java.Student"%>
    <jsp:useBean id="student" class="virtualward.java.Student" scope="session"/>
    <%
    String error = null; // set the error message to null for the initial visit
                        //to the page
    if (request.getParameter("SUBMITTED") != null)
        Student s = Student.findStudent(request.getParameter("userid"));
        if (s == null)
            error = "Login ID not found, please try again.";
        else
            //if the input password = the stored password
            if (request.getParameter("userpword").equals(s.getPWord()))
                //if login priviledges are 1 give them student access
                if (s.getPrivilegeLevel()==1)
                    //store the details of that students details in a session from the object.
                    session.setAttribute("student", s);
                    //go to the page to display the details
                    response.sendRedirect("stuProfile.jsp");
                } //if login priviledges are 2 or 3 direct them to a page that
                  //gives them Lecturer priviledges
                else if (s.getPrivilegeLevel()==2 || s.getPrivilegeLevel()==3)
                        //store the details of that students details in a session from the object.
                        session.setAttribute("student", s);
                        //go to the page to display the details
                        //response.sendRedirect("selectProfile.jsp"); //old link
                             response.sendRedirect("maintenance/courseIdenti.jsp");
            else
                error = "Invalid Password";
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Student Profile</title>
    <link href="VWStyle.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
         background-color: #515151;
    -->
    </style>
    </head>
    <body>
    <table width="450" height="125" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="8" colspan="3"><img src="images/tit_studentProf.gif" width="200" height="27"></td>
        <td height="8"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner01.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/top_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner02.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
      <tr>
        <td background="images/left_tble.gif"> </td>
        <td width="8" align="left" valign="top" class="bodyText"> </td>
        <td align="left" valign="top" class="bodyText"><form method = POST ACTION="profileLogin.jsp">
            <Input type="HIDDEN" name="SUBMITTED" VALUE="T">
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <% if (error != null){%>
                <strong> <FONT COLOR = "#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><%= error %></FONT></strong><br>
                <% } %>
                <td valign="top" class="bodyText">Login ID:</td>
                <td valign="top" class="bodyText">Password:</td>
                <td> </td>
              </tr>
              <tr>
                <td width="155" valign="top" class="bodyText"><input name="userid" type="text" width="25">
                </td>
                <td width="136" valign="top" class="bodyText"><input name="userpword" type="password" size=25>
                </td>
                <td width="126" align="right" valign="top"><div align="left">
                    <input name="Submit" type="image" id="Submit" src="images/but_go.gif" alt="Click to login" width="36" height="26" border="0">
                </div></td>
              </tr>
              <tr>
                <td colspan="3" valign="top" class="bodyText"><strong>Login to view your profile<br>
                  </strong><font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif">In the case of forgetting your login details, contact your module co-ordinator.</font></td>
              </tr>
            </table>
        </form></td>
        <td background="images/right_tbl.gif"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner03.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/bot_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner04.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
    </table>
    </body>
    </html>

  • When is necessary to use import statements to import classes?

    Hi,
    I'm sure that it must be necessary to use import statements
    in some situations, I'm finding that my code often works fine
    without them. For example, some instructions will say it is
    necessary to use import.flash.events.MouseEvent; before
    MouseEvent.CLICK will work, or that I must import the loader class
    before loading an SWF, but I'm finding that I can skip timporting
    and it works fine. Could anyone please explain why this it, and
    give me some idea of how to knew when to import and when I don't
    have to?
    Thank you in advance!

    Importing is only necessary when you create you own classes
    or are using a class that Flash doesn't auto import such as the
    fscommand package. Any time you create your own custom
    package/class, it is also necessary to use import statements unless
    you add the folder containing your custom packages to the default
    class path.

  • Search engine doesn't find vcards

    The search engine in Address book doesn't find cards that exist in my ALL. They were cards imported via Time Machine. Any way I can get AB to index it's content ?

    One week later, I'm still hoping (praying ?) for a solution...

  • Jar file could not find main class.. I cant see why?

    I have read loads of tutorials on this and it should be very straight forward but i STILL cant make a working jar file of my program.. please see if you can see anything wrong with what im doing..
    my program is one .java file that compiles perfectly, and is runnable both through eclipse and by using the command prompt.. i made a jar file using both eclipse and the command prompt, and neither worked.. every time i run it by double clicking it i get the error "could not find main class, program will exit". here is the contents of my jar:
    CorePackage\IPEmailer.class
    CorePackage\IPEmailer$1.class
    CorePackage\IPEmailer$SMTPAuthenticator.class
    META-INF\MANIFEST.MF
    the MANIFEST.MF file contains:
    Manifest-Version: 1.0
    Class-path: .
    Created-By: 1.6.0_02 (Sun Microsystems Inc.)
    Main-Class: CorePackage.IPEmailer
    (yes there is a blank line at the end)
    the class mentioned in 'Main-Class' has a main method that looks like this:
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        new IPEmailer();
    }the program uses 2 external jar files:
    activation.jar
    mail.jar
    and reads a file called:
    ipemailer.ini
    and writes a file called:
    ip.txt
    the program has no GUI and is intended to run 'silently' in the background
    please help me understand what is wrong with this

    package CorePackage;
    import javax.mail.*;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    public class IPEmailer implements Runnable{
          * @param args
         String recipientsinput[]={""};
         String subject;
         String body;
         String server;
         String user;
         String pass;
         String from;
         String urlString = "http://www.whatismyip.org";
         String currentIP;
         String ipFromFile;
         boolean webFailed;
         long interval = 900000; //15 mins
         long oldInterval;
         Thread t = new Thread(this);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new IPEmailer();
         public IPEmailer(){
                         ..........etccould the problem be that the class is a thread? i cant see why it would be, but ive never made a jar where the main class also 'implements runnable'

  • Importing Class

    I was reading the tutorial on importing class's. This is what
    I read
    Importing classes
    To reference a class in another script, you must prefix the
    class name with the class's package path. The combination of a
    class's name and its package path is the class's fully qualified
    class name. If a class resides in a top-level classpath
    directory--not in a subdirectory in the classpath directory--then
    its fully qualified class name is its class name.
    To specify package paths, use dot (.) notation to separate
    package directory names. Package paths are hierarchical, where each
    dot represents a nested directory. For example, suppose you create
    a class named Data that resides in a com/xyzzycorporation/ package
    in your classpath. To create an instance of that class, you could
    specify the fully qualified class name, as shown in the following
    example:
    var dataInstance = new com.xyzzycorporation.Data();
    My Question is about com/xyzzycorporation/ . would the full
    class parth be c:/com/xyzzycorporation/ . Why do they never state
    the drive letter when teaching about directories.

    Because there is no need. you don't need to reference the
    drive letter.
    Here's the basic jist of what they are saying....
    Single Class File...
    If you create your own custom class and want to use it in
    your flash file, save it into the same directory as the fla file
    and call the classes constructor. By default flash will look inside
    the folder where the fla resides in for the class files if it
    cannot find it inside the default directory.
    Multiple Class Files - 1 Project (often referred to as
    packages)
    Use your qualified domain name but backwards.....
    my domain is www.sd-dezign.com so if I was going to include a
    package of utility class files in my document I would do the
    following
    Create a folder in the same folder with my fla name it com
    and inside that a folder called sddezign and inside that utils and
    all my as files would be in there...the folder structure might look
    like this....
    myfile.fla
    com
    >sddezign
    >>utils
    >>>box.as
    >>>circle.as
    To call the constructor for each class, I have two options.
    The first which is by far the easiest looks like this
    In whatever frame you need to call that class constructor
    include "com.sddezign.utils.*";
    var myBox:Box = new Box();
    The second method requires more typing and can get tedious
    var myBox = new com.sddezign.utils.Box();
    Hope this helps you a bit better.

  • Not allowed to import classes without package names?

    Hi,
    I have a few questions on Packages and importing?
    1. Is the following true that it is illegal to import classes in the same package as the current class, will this cause a comilation error? If this is the case where in the Java Language specification is this actually written as I could not find it?
    2. This has probably been answered by question 1 but if I have 2 classes in the same package and if I import 1 of the classes into the other class, is it illegal to import it by just using the class name and not the package name as well, ie
    if the package name is ie.tcd
    and the 2 class names are exp1.class and exp2.class, can I do this in class 2
    package ie.tcd;
    import exp1;
    public class exp2 {
    3. Is it illegal to import classes that are not explicitly part of any package or must a class be part of a package to be imported. I read somewhere that while this was always illegal it is only after jdk 1.4.2 that this is being enforced? If this is the case where in the Java Language specification is this actually written as I could not find it either?
    Thanks very much for any help,
    John

    Was just also wondering, 1 other thing, I am looking
    at someone elses code they have 2 classes (Class A
    and Class B) in the same package (pkg). The person
    imports class A into B:
    package pkg;
    import A;
    public class B {
    Is this legal code (or was it ever)?Not if A is really in pkg.A. If there is an A in the unnamed package it was legal, or at least it was understood by the compiler, and now it isn't (to both).
    Can you import or is there a point in importing a class in the same
    package?Only by naming the package in the import statement. If the current and the import statement are in the same package the import is redundant.
    If there is a point would you import just be
    using the class name (this would be illegal after jdk
    1.4) or should you use the whole package name even
    though it is in the package anyways?As I understand it you must always use the whole package name in imports.

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Cannot find symbol     class Usernamebean

    hi i am new in j2ee
    can some body help to give the solution.
    i am always thankfull to everybody
    i have a servlet where i am calling a bean of same package but servlet not compile giving that error
    cannot find symbol class Usernamebean
    servlet code
    package ecomm; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import bengalcom.*; public class Loginservelet extends HttpServlet { public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { try {         String accnum=req.getParameter("username");   String pinnum=req.getParameter("password"); try { Class.forName("com.mysql.jdbc.Driver"); Connection dbcon=DriverManager.getConnection("jdbc:mysql://localhost/ecomm","root",""); PreparedStatement s = dbcon.prepareStatement("select * from vendordetails where email = ? and password = ? and blocking='No' "); s.setString(1,accnum); s.setString(2,pinnum); ResultSet result=s.executeQuery(); boolean rowfound=false; rowfound=result.next();   if(rowfound==true) { String vname=result.getString("fname"); String  vid=result.getString("vid"); String email=result.getString("email");   UsernameBean nameBean =new UsernameBean();   nameBean.setFirstName(accnum); HttpSession session = req.getSession(true); session.setAttribute("vname",vname); session.setAttribute("vid",vid); session.setAttribute("email",email);   RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/earea.jsp?vname=vname&vid=vid&email=email"); dispatcher.forward(req,res); dbcon.close(); } else{ RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/eblock.jsp"); dispatcher.forward(req,res); }   } catch(ClassNotFoundException e) { } } catch(SQLException e) { System.out.println(e.toString()); } } public void doPost(HttpServletRequest req, HttpServletResponse res)         throws ServletException, IOException     {         doGet(req, res);     } }

    Hi,
    java is case sensitive, Check the case in class name.
    Regards,
    Ram

Maybe you are looking for

  • Abap-hr real time questions

    hi friends kindly send me ABAP-HR REAL TIME QUESTION to my mail [email protected] Thanks&Regards babasish

  • Upgrade 2013 mac book air

    Hi i want to know anybody who have upgrade mac book air on 2013 13 inch 256 gb....from 1.3 ghz to 1.7 ghz,from 4 to 8 sd ram,from 256 to 512 gb flash storage how this perform is that very fast,any problems upgrade pls can anybody give advice as i hav

  • I own a Zen Vison: M and am wanting a speaker system for my player

    I know there aren't any docking speaker systems for them yet, and I honestly doubt there will be any real soon. So what would be the best way to go? My X girlfriend had an I-Pod (poooo) and she had this speaker system. http://www.alteclansing.com/pro

  • Motherboard Monitor compatible with K7N2 Delta2 Platinum??

    When installing the above mentioned software, which (if any) is the most apropriate model to select from the K7N2 range of boards, as the Platinum version is not listed....?? thx D.

  • It´s possible disable CONTROL+C in sqlplus???

    Hi friends, i have some scripts that will run in sqlplus... They are waiting for parameters to be will insert for users... But then this problem, if user use CTRL+C, the prompt will go to the sqlplus prompt and the database will be open for execute a