Tomcat-4.0.2 can not locate Java Class

I have an application which runs fine under Tomcat-3.x. Now I am trying to run under Tomcat-4.0.2, right after I login to my application (As you can see the new Tomcat does find my application's index.html fine), I got an error:
Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred between lines: 8 and 13 in the jsp file: /login.jsp
Generated servlet error:
C:\jakarta-tomcat-4.0.2\work\localhost\adms\login$jsp.java:80: Undefined variable or class name: Utility
boolean auth=Utility.ldapAuthenticate(userEmail,password);
It looks Tomcat can not find the Utility class, even though it is under usual place: WEB-INF/classes.
Now, I even copies all the directory structures into $CATALINA_HOME\webapps, still no luck.
I am running on W2K.
Can anyone shed me some light? Thanks.

Oh! I can do it now.
Just import the class you want...
<%@page import="Utilities" %>
and put that class in WEB-INF/classes

Similar Messages

  • Can not locate Java class using JNI within C++ DLL

    I am using trying to use JNI to call a Java class from C++. The Java class uses JMS to send messages to a JMS message queue. At first I coded the C++ in a console application that created the JavaVM and used JNI to access the Java class. All worked fine. Then I called the Java class using JNI from threads and ran into the problem of the Java class not able to locate the JMS related classes. This was solved by placing the following line in the constructor of the Java class.
    Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
    Then I moved the JNI code from a console application to a DLL in specific an extension DLL that is called by SQL Server or Oracle server. The DLL will use JNI to call the Java class and send messages to a JMS message queue.
    The problem I am having now when the DLL code is called by SQL Server the call to
    JNI_CreateJavaVM
    appears to work correctly but the call to find the Java class using
    jvmEnv->FindClass(pName)
    fails. It appears the is a class loading problem which occurs due to the fact JNI is called from a DLL. When the VM is created I pass the class path information using the statement
    -Djava.class.path=
    And as I stated before it all works when running from a console application. I am new to JNI and really need help in the form of some sample code that will solve this problem. I believe I need to somehow load the classpath information from the DLL but I can not find examples on how to do this using JNI. I have tried several ways using URLClassLoader and getSystemClassLoader from JNI and either it does not work or it crashes very badly.
    I used the following code to determine what the existing class path is and the string returns empty.
    jcls = jvmEnv->FindClass("java/lang/System");
    jmid = jvmEnv->GetStaticMethodID(jcls, "getProperty", "(Ljava/lang/String;)Ljava/lang/String;");
    jstrClassPath = jvmEnv->NewStringUTF("java.class.path");
    jstr = (jstring)jvmEnv->CallStaticObjectMethod(jcls, jmid, jstrClassPath);
    m_jstr = (jstring)jvmEnv->NewGlobalRef(jstr);
    pstr = jvmEnv->GetStringUTFChars(m_jstr, 0);
    Can anyone please help with example code that will solve this problem. Thanks in advance for any help.
    Charles�

    I have determined the problem occurs when the application/component is compiled using VC 6.0. The test application was compiled using VC 7.1 and works correctly by locating the class path information. If the test application is compiled using VC 6.0 it has the same problem.
    The jvm.dll I am using is version 1.4.2.80. Currently this is not an option to compile all the applications that use JNI using VC 7.1 so can someone please tell me how to solve this problem.

  • TOMCAT NOT LOCATING JAVA CLASSES

    Environment : NT4/JDK1.3.1/TOMCAT3.3
    Application: Javamail
    We are trying to execute a javaapplication, under tomcat/NT. We have tried copying the classes to all sorts of directories but that does not seem to work...the error appears as below
    ++++++++++++++
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile C:\tomcat\work\DEFAULT\examples\sendMMSMail_1.java:9: Class SendMMSMail not found in import.
    import SendMMSMail;
    ^
    1 error
         at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
         at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
         at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
         at org.apache.tomcat.core.ContextManager.service(Unknown Source)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)

    Try to locate the classes you need in a jar file and add the path to this jar in your classpath,reboot and it will possibly work.

  • I can not drag java class onto uml class diagram - why??

    Hi
    1. I created a new java web project
    2. I created a new uml project.
    3. I created new classes in the java web project.
    4. I created a new "class diagram" in the uml project.
    PROBLEM:
    1. When I drag one of the classes onto the class diagram screen, nothing happens. That is, when I perform the "drop"...nothing happens.
    (NOTE: when I drag a "package" to the class diagram, a box representing the java package appears... I just cant get this to work for a class(s) )
    QUESTION:
    Should I be able to drag a class (or classes) from my web project src folder onto the UML project's class diagram and have UML representations of the classes appear?

    Hi Shay
    Unfortunately, I cannot view the suggested youtube stuff at work. (I'll try to view it when I get home)
    But, in the meantime, I did kind of get things working...
    After creating the java project and uml project (and initial class diagram), I had to
    1. drag the java packages (containing the classes I wanted diagrammed) onto the root node of the UML project (i.e., located on the left side "navigation" bar). Afterward, the package appeared under the UML project....Then,
    2. One by one I had to drag the individual java classes from the java project onto the root node of the UML project (i.e,. the classes then appeared under their respective packages under the UML project) . Then,
    3. Then, finally, I could drag the java classes (listed under their respective packages under the UML project) onto the class diagram panel, where the rendered properly.
    I dont know if this is supposed to be the way to "reverse engineer" java classes to be part of a UML class diagram... But, it was the only way I found that worked... thus far, anyway.
    Thanks again for reading my post and answering so promptly.... That was much appreciated!
    s

  • Tomcat can't locate my class files

    Tomcat can't locat my class file for my javabeans in a jsp page.
    (Tomcat 4.1.24/windows XP)
    I have created inside of webapps a directory thesis and also the WEB-INF\classes and WEB-INF\lib. I don't know what should I put in web.xml so it is basically almost empty.
    this is the error I get where Searcher is my javabean:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:89: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] Searcher seek = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:91: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) pageContext.getAttribute("seek", PageContext.PAGE_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:94: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Searcher");
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:111: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] out.print(JspRuntimeLibrary.toString((((Searcher)pageContext.findAttribute("seek")).getAnalyze())));
    [javac] ^
    [javac] 4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         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(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)

    did you create the Searcher class? if so stick it in a package and put it under your web-inf directory. then use an <%@ page import="" %> statement to import the code.
    if you didn't create the class is it in some jar library you downloaded? if so stick the jar file in your web-inf/lib folder.
    -S-

  • Http to RFC [http adapter issue] - The system can not locate the resource.

    Hi,
    When I post the message with http client, I am getting the below error.
    Line 33: The system can not locate the resource specified.
    i.e --> xhttp.send (payload);
    It is a java script error.
    Result URL:
    http://xxx.xxx.xxx.xxx:8000/sap/xi/adapter_plain?namespace=http%3A//www.cisco.com/httptobapi&interface=MI_request_response_cisco&service=BS_HTTP_CISCO&party=&agency=&scheme=&QOS=BE&sap-user=xxxxX&sap-password=xxxx&sap-client=500&sap-language=EN
    Any idea what went wrong?
    Thanks
    Balaji

    hi,
    I have given all the details correct.
    Server Host,Port, Client, Sender Service, Interface and namespace and then payload.
    It looks like problem is with http client. It is not posting the data correctly.
    I tried on 2 different systems.
    On one system it gave a problem at line 33 which i mentioned at the first post.
    And second system gave line: 27 Permission denied.
    Line 27 :  xhttp.open ("POST", reqString, false);
    Payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_request_sales_cisco xmlns:ns0="http://www.cisco.com/httptobapi">
      <Customer_Number>1002</Customer_Number>
      <Sales_Organization>1000</Sales_Organization>
    </ns0:MT_request_sales_cisco>
    Thanks
    Balaji

  • Can not locate driver download page.

    Can not locate driver download page.
    Officejet Pro 8500 A909a
    MS Vista Ultimate 64 Bit.
    When using my Linux PC to try and locate drivers for another PC, the website just keeps sending me in circles and never displays the drivers to download.  Seems like in the past this has been a problem too.  This occures with latest version of Firefox-37.0.1 and the current version of Chromium-37.0.2062.120 Built on Debian 7.6, running on Debian 7.8 (281580) (64-bit).
    Navigate to hp.com
    Select: Support | Download Drivers
    Under 'Drivers and Downloads' tab
    - enter product id: officejet pro 8500 A909a
    - Select 'Go'
     Expand the '+' that lists one link and select it.
    None of the following links give a driver download!
    - Troubleshooting
    - How To
    - Product Info.
    - Users Guide
    - Video Tutorials
    - More Options
    Maybe one of the options should be 'Driver Downloads'.
    Just my $.02.
    This question was solved.
    View Solution.

    Hi,
    Many links in there. Please use the following direct driver (for Windows all):
       http://ftp.hp.com/pub/softlib/software12/COL31041/mp-110033-2/OJ_AIO_P8500_A909_Full_Win_WW_140_408-...
    (Note: Many printers for the whole 8500 series use same drivers).
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pr

    My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pro.

    Hello Sandra,
    The article linked below details how to go about restoring items from Time Machine in Snow Leopard.
    Mac OS X 10.6: Recovering items using Time Machine and Spotlight
    http://support.apple.com/kb/PH6379
    Sincerely,
    Allen

  • I have downloaded iTunes 10.5 but after it downloads it vanishes and I can not locate the file anyway on my PC.  I have done this a few times now. Any ideas?

    have downloaded iTunes 10.5 but after it downloads it vanishes and I can not locate the file anyway on my PC.  I have done this a few times now. Any ideas?

    This has happened to me over the last few hours. iTunes just would not open, so I uninstalled and downloaded again. Still refuses to open. iPhone cannot be synced as a result. Help anyone...

  • Err - iTunes can not locate files

    I recently had to reload itunes and start again. Once I downloaded iTunes and started up my external harddrive it almost as if automatically imported all of my files to the library.  It took awhile but I was in heaven as I wasn't having to do the work.
    Now iTunes is failing to recognize content from my external harddrive. It says it can not locate the files, but if I ask File< Get Info it knows where the files are. I did not move the files. If I locate them manually then the file does work. Is there an easy fix for this? We just finished syncing all our iPods. I don't want to have to start that process over again. Thanks for any help.

    Try going to edit-preferences-advanced- then change the location of your iTunes library to your hard drive.
    Hope that helps.

  • I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.

    I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.
    Also, does reinstallation takes the back up automatically or the files will be lost. Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • I recently synced my iphone 5s to itunes. It erased my photos and I can not locate them on itunes. They are nowhere to be found. How can I restore them back to my phone?

    I recently synced my iphone 5s to itunes. It erased my photos and I can not locate them on itunes. They are nowhere to be found. How can I restore them back to my phone?

    Restore them from where?
    The pic sync is one way - computer to iPhone.
    You should be storing all of your photos on your computer.  Jut sync them to your iPhone.

  • When sending mail I get can not locate your gmail password

    When I try to email using Tbird which is my IMAP default via gmail. It says can not locate google password. I can send email out with no problem using gmail via Tbird.

    I'm with Matt. I have trouble believing it did what you seem to say it did. I've never seen Thunderbird say it cannot "locate" a password.
    You say you can't "email" using Thunderbird, then you tell us you can send. Which is it?

  • HT1473 I am trying to connect to Itunes & add content to my library but I can not locate my Itunes account from a different computer which I have changed computers & Iphones.

    I had an Itunes account on another computer & another Iphone, I have tried to access my previous account to add some new tones from my new Iphone & can not locate or access my previous account or previous library. Can someone help?

    I cannot find "Other" devices. I found Apple Mobile Device under Universal Bus Controllers but cannot see "recovery mode" or any other status. I use Windows Vista.
    When I try to restart Apple Mobile Device Service I get the following message: "The Apple Mobile Device Service on Local Computer started then stopped. Some services stop automatically if they are not in use by other services or programs". What does this mean?
    During the last 48 hours I was able to see my iPad in iTunes only one time during many attemnpts to connect . I haven't been able to see it during the llast several attempts.
    Any suggestions? The standard suggestions have not worked: i.e. stop then start AMDS; tuurn off iPad and PC, then restart both and reconfrom iPad to PC; reload iTunes.

  • My iPod got stolen  and I did not turn on find my ipod and they restored the ipod so I can not locate it on the map

    my iPod got stolen  and I did not turn on find my ipod and they restored the ipod so I can not locate it on the map
    please help me because it was a birthday present from my Grand ma.

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

Maybe you are looking for

  • HT5029 Subscription Calendars in iCal with iCloud

    I tried this (changing location of subscription calendar) with Lion, and it didn't offer me the choice to select iCloud as a location...only On My Mac

  • Find Friends app keeps saying "location not available" on iOS7?

    After I updated my 4S to iOS 7, Find Friends will not actually find the person, it just pops up with "location not availble" everytime. I have tried restoring the phone, logging out then back in, and deleting the app then redownloading it and nothing

  • What's simpler than mail merge?

    I have a Pages '09 document which will be used again and again by multiple people. Rather than make them perform a find and replace for each string like, "<%FirstName%>, <%LastName%>, <%Email%>" I wish I could attach a form to the file so that when s

  • Zigbee Wireless Boards - Do they work?

    Hey Archies, I have a question about Arch Linux and it's compatibility with Zigbee Wireless. I currently am dual booting windows because of the drivers for Zigbee which I need to develop for school. http://www.ti.com/tool/z-stack Is the Components. M

  • Lenovo Twist - keyboard

    Hi everyone, I bought a Lenovo twist in EEUU and it has the keyboard from there. I am from Argentina, so, I decided to change the keyboard configuration to the latin version ( this is caused because in Argentina we use the "ñ"). But there is a little