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-

Similar Messages

  • Tomcat can't detect the class file of the JApplet.

    Hi,
    I am relatively new in the applet field. I am trying to invoke an JApplet through JSP.
    Problem is that i have to package the JApplet class files as it has to access other packages. also the JSP with the embedded JApplet exists in a different folder from the JApplet class files.
    I am getting the class not found exception.
    Context Path: http://localhost:8080/sncdatagate
    folder structure as follows.
    sncdatagate\jsp\myApplet.jsp
    sncdatagate\WEB-INF\classes\datagate\ui\myApplet.class
    package for myApplet.java : datagate.ui
    The JSP code is as follows :-
    <jsp:plugin
    type="applet"
    code="datagate.ui.myApplet"
    codebase="/sncdatagate/"
    width ="700"
    height="400"
    iepluginurl="http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_01a-win.cab#version=1,3,1,1"
    nspluginurl="http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_01a-win.cab#version=1,3,1,1"
    jreversion="1.3.1_01">
         <jsp:params>
                             <jsp:param name = "encodedString" value="<%=encodedString%>"/>
              </jsp:params>
    </jsp:plugin>
    The error on Java console is as follows:-
    load: class datagate.ui.myApplet not found.
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: File not found: http://localhost:8080/sncdatagate/datagate/ui/myApplet.class
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Kind help!
    Would greatly appreciate any suggestions.
    Thank You.
    regards,
    Priya

    The WEB-INF\classes\ folder is meant for servlets and the files insides are accessed thru the "servlet/" folder. To run applets, place them outside of the web-inf folder together with your jsp files.
    If your applet has a package, remember to create appropriate folders for it. Eg.
    sncdatagate\jsp\myApplet.jsp
    sncdatagate\datagate\ui\myApplet.class
    <applet
    code="datagate.ui.myApplet"
    codebase="/sncdatagate/" ...

  • How can I hide the class file ??

    Hi !
    I has a question, when i write a program of Java, then use the command "javac" to compiler to class file for other people using, but the class file can be disassembled and convert to source code. How can I hide the class file and let people can not disassemble, or can not see the source code. Thinks

    See these....
    http://www.saffeine.com/
    http://www.jarsafe.com/
    I recently read this. This will help you.
    http://developer.java.sun.com/developer/qow/archive/160/index.jsp
    Enojy....
    Rajesh

  • How can I convert a class file to Exe file

    hai
    How can I convert a class file to Exe file

    Please search the forums before asking questions - this has been answered hundreds (really!) of times.

  • The hard drive on my MacBook died and I had it replaced. I can't locate my website files and every time I try to open my idisk it looks for a name and password (even reset my apple id as prompted) I keep being told that it's the wrong name or password?

    The hard drive on my MacBook died and I had it replaced. Now I can't locate my website files and every time I try to open my finder/idisk it looks for a name and password (even reset my apple id as prompted) I keep being told that it's the wrong name or password? Any suggestions out there

    Arty ~ Welcome to the Support Communities. iWeb can't import/open published HTML/media files on your iDisk. iWeb can only open its key Domain file which contains your site data — it's usually located here:
    ...If you don't have a backup of your Domain file (e.g. via Time Machine), paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWeb_Backup_retrieve.html
    Also this thread may help:
    Hard Drive replacement causes new/unknown user password?

  • ITunes 11.0.4. can't locate thousands of files (they are still on the harddisk though) - is there a way to simply relocate them (without having to do it for each individual song which would take forever)?

    After updating to iTunes 11.0.4.,
    iTunes 11.0.4. can't locate thousands of files (they are still on the harddisk though).
    is there a way to simply relocate them (without having to do it manually for each individual song which would take forever)?

    Are these "thousands of files" in an iTunes library that simply cannot be found?
    If so, assuming you know exactly where they are, hold the "Option" key while opening iTunes from your dock.  You will then be given a "Choose Library" option.  Choose it and point to your library.

  • Can't locate imported iPhoto files in Finder

    I recently imported a series of pictures into iPhoto. However I can't locate these picture files on Finder..What happened was I had to fire up iPhoto app each time and right click to 'Show File'. It said the path was user/Pictures/iPhoto Library/Originals/2007/...
    I want to locate these files on Finder, however, when I clicked on user directory user/Pictures/iPhoto Library I can't drill down further. It seems that 'Originals' folder is missing. When I show package contents though, this folder showed up. This is a frustrating experience for me because I can't upload the pictures to the web, or easily find them.
    Does anyone has any idea if this is normal behavior or is there a way I can easily access the list of pictures I've imported without firing up the iPhoto? Appreciate any response. Thanks very much.

    spirlie
    Welcome to the Apple Discussions.
    Does anyone has any idea if this is normal behavior or is there a way I can easily access the list of pictures I've imported without firing up the iPhoto
    This is perfectly normal behaviour for v7 of iPhoto. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves. If you're willing to risk database corruption, you can restore the older functionality simply by right clicking on the iPhoto Library and choosing 'Show Package Contents'. Then simply make an alias to the folders you require and put that alias on the desktop or where ever you want it. Be aware though, that this is a hack and not supported by Apple.
    However, better to use one of these:
    10.5 users: If you use the extended Open or Attach dialogue (with Column View) you can scroll to the bottom of the Shortcuts and find the Media browser there. Select any pic you want from there.
    Another way to access the files with iPhoto not running, is to create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Otherwise:
    There are three ways (at least) to get files from the iPhoto Window.
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    To upload to MySpace or any site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Regards
    TD

  • Application can't locate Impuse Response Files

    I recently replaced my failed hard drive. After restoring from my backup, Logic can not locate impulse response files. If i am loading a preset in space designer, or loading a software instrument that has the space designer set, Logic tells me it can not find the response file and asks me to find it.
    I know the location of the files, but it is annoying and inconvenient to have to locate the files every time I want to change instruments or load a preset.
    How can I get Logic to permanently remember the location of the Impulse Response Files?

    There is no such path System/Library/application support/logic/impulse responses on my computer. The Impulse Response files reside in HD>Lib>Audio>Impulse Response.
    This difference of opinion between bill borez and immo gave me an idea, though. I put an alias of the folder into User>Lib>Application Support>Logic. Bingo!
    Thanks for the help.
    Chris

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • Tomcat Web-server uses old .class files

    Hi Friends,
    My Tomcat webserver uses old .class files. The problem persists even if I delete old class files. The new ones are formed but then if i again recompile, the new-old ones are used :)
    Am I doing something wrong????
    Please suggest!!

    I have experienced this problem before as well. Tomcat seems to cache compiled class files for better speed. To get Tomcat to reload class files that I've recently recompiled here is what I do:
    1. Go into the Tomcat server administration area (http://localhost/admin)
    2. Choose the context that is using the classes that you want to reload (from Service / Host)
    3. Make sure reloadable is set to true
    3. Click save, and then commit changes
    Hope this helps, but if there is a better way to get Tomcat to use the most recent class files I would love to hear it!

  • I've just updated itunes and it has disappeared from my PC- the previous shortcut won't work and it can't locate on my file search- this is the second time this has happened when updating itunes- APPLE you're going donw the tubes slowly but surely..

    I've just updated itunes and it has disappeared from my PC- the previous shortcut won't work and it can't locate on my file search- this is the second time this has happened when updating itunes- APPLE you seem to be going down the tubes slowly but surely..

    its not apple going "down the tubes" its that you have windows junk.  These opinion best left at apple.com/feedback
    you need to completely uninstall itunes and all components
    see these for help
    http://support.apple.com/kb/HT1925
    http://support.apple.com/kb/HT1923
    Peace, Clyde

  • The saved Firefox extracts when double clicked but does nothing else, nor can I locate the extracted files

    I downloaded Firefox 4.0 and saved it. When I double-click on the saved file it says it is extracting the files which it appears to do, however even though I clicked run nothing else happens and I can't locate the extracted files to find the extracted executable file. ....Thanks for your help!

    For Flash, could you try downloading the "full" installers from this page:
    https://www.adobe.com/products/flashplayer/distribution3.html
    In the first table, there are two rows for Windows: one for the ActiveX control for IE, and one for the plugin for Firefox. You might want to grab both. And try the .msi files instead of the .exe files to see whether those work better.
    Will either of those install?
    It's odd that on a newly rebuilt system your More System Details shows that you have a user.js file, which is an optional settings files used to override your previous session settings. This is not part of the standard Firefox installation, so if you did not create that file yourself, you may want to investigate or delete it. This article has more information on that: [[How to fix preferences that won't save]].

  • 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

  • How can i locate the resource file in the weblogic?

    hello
    in struts, i can leave some parameter in a resource file (such as "Application.properties")outside of my code,and get them in the "Action" class by the "getResource" method.
    in my data access tier,i still want to use such a machanism but i can't use the "getResource()" method,for example,there is a ConnectionPool class,i want to read some parameters from a resource file ("param.properties") that is under the same directory as the ConnectionPool class,the following is the code snippet:
    public static void init(DataSource ds){
    myself=new ConnectionPool(ds);
    java.util.Properties prop=new java.util.Properties();
    try{
    java.io.FileInputStream fin=new java.io.FileInputStream("./param.properties");
    prop.load(fin);
    }catch(Exception e){
    e.printStackTrace();
    System.out.println(prop.get("help.create"));
    the "ConnectionPool" class is in the "com.jhtop.task.forum.db.util" package,the "param.properties" is in the same package (com.jhtop.task.forum.db.util),
    but when i execute the program,it tell me that it can't find the file.if i use the absolute path,it works.
    i wonder how can i locate the file path in the weblogic,or what's my current path,or how may i setup my work directory?
    in tomcat,my current directory is bin directory,how about weblogic?
    who can help me?thank you!

    My english is bad and I'm not sure I've well understood your problem.
    How have you created your file ?
    Why do you put it in such a directory and not an other ?

  • Tomcat Jasper-Unable to rename class file

    I keep getting the following error, whenever i first get
    concurrent hits on a JSP page under tomcat. Successive
    concurrent hits are then ok but sometimes only.
    Can any one help me out in solving this problem.
    Thanks...
    The error is shown below as follows.
    org.apache.jasper.JasperException: Unable to rename class file C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fisa\ipp\_0002fipp_0002fdettagcutsectwise_0002ejspdettagcutsectwise_jsp_18.class to C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fisa\_0002fipp_0002fdettagcutsectwise_0002ejspdettagcutsectwise.class
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:270)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)

    Hi,
    Most of the time error occurs on Windows plateform.
    The main reason behind this is nesting of the directories.
    Also the long directory names causes this problem.
    Thus try to keep the directory name small and the try to nest the directories to store the jsp's
    I have faced same problem when i used to work on Tomcat. But this problem is never occurd on Resin.
    Well try these options. This may help u...
    Kind regards
    Chetan Chandarana

Maybe you are looking for

  • Need a Help with instalation SAP IDES 2005 SR2

    Hi All, I'm trying to install SAP IDES 2005 SR2 on my notebook HP (2GB RAM, 120GB HDD, 700 HDD external, dual core procesor), Win Server 2003 Enterpise, Oracle 10g (patch 2), jave 1.4.2.13, I've downloaded all installation files DVDs from SAP Marketp

  • I have 100's of photos in Window Live Photo Gallery, hoe can I stream them to TV via App TV?

    I have 100's of photos in Window Live Photo Gallery, how can I stream them from computer to TV via App TV?

  • System Tray Icon Not Displaying - Depending on Launch Style

    Good Morning- I'm using the java.awt.SystemTray and TrayIcon classes from 1.6 to create a system tray that acts essentially as a temperature monitor. It's very little code. When I test it from Eclipse, it works great. When I double-click the .jar on

  • XI design decision - New

    The project would like to upload PO from Legacy system to SAP using XI  and SAP IDOC . My question is do we need to split PO dataset from legacy by the PO number to feed XI? For example, if we have 5 POs , do we have to split PO data file into 5 piec

  • SQL Server 2014 Standard, but only 2 GB RAM used

    Hello, I just installed MS SQL Server 2014 Standard Single x64 on a Windows 8 PC. It was bought to replace the Server Express because the RAM limitation of Express. I set min server memory to 500 MB and max server memory to 28672 MB. PC has 32 GB Ram