Tomcat config problem: jsp can't find a bean class

I've been working within a JSP/Javabeans/JDBC/MySQL architecture with Windows XP and Websphere. So far everything works perfectly. Now I need to get the same project and make it run with a Tomcat server.
I've already set the Tomcat server but its not working properly. I have a problem when a jsp tries to access any class inside my project's package.
For example, when I make the next call:
<jsp:useBean id="ctrl" class="myPack.myBean" scope="page"/>
I get an error saying:
Error: 500
Location: /myproj/login.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile C:\Program Files\jakarta-tomcat-3.3.1\work\DEFAULT\myproj\login_1.java:64: Class myPack.myBean not found.
myPack.myBean ctrl = null;
^
I believe that my problem cames when setting the Tomcat environment. So far what I have done is:
* install j2sdk-1.3.1.03
* install jakarta-tomcat-3.3.1
* install mysql-max-3.23.51-win
* set the environment variable JAVA_HOME
* set the environment variable TOMCAT_HOME
* set the environment variable MYSQL_HOME
* add the %JAVA_HOME%\bin to the PATH
* create 'myproj' directory inside TOMCAT_HOME\webapps
* create into 'myproj' the subdirectory WEB-INF\classes and copy into it the jar file with my java classes (myPack.jar).
* copy into TOMCAT_HOME\lib\apps the JDBC driver for MySQL.
* copy my project files (jsp, html, images, etc.) and its structure into 'myproj' directory.
I haven't include anything into the CLASSPATH because so far I've read that Tomcat will automatically include all the classes that are inside the directories TOMCAT_HOME\myproj\WEB-INF\classes and TOMCAT_HOME\lib\apps.
I really don't have a clue about what I'm doing wrong. I'd apreciate if anyone can help me out with this one ;) ... I thank you in advance!

Hi, it's me again!.
Since nobody replied to me I'm replying myself :D
Ok, seriously is just to let you know that I have solved my problem and I would like to tell you how I solved it ... somebody might be doing the same mistake than I was doing and could found this helpful. I just forgot to mention that I was using Tomcat 3.3.
Well, first of all let me tell you that there was nothing wrong with the previous configuration that I post in my first message. Everything is ok except that in the TOMCAT_HOME\webapps\myproj\WEB-INF\classes directory I was putting my classes as a jar file, so I deleted it and instead I put the directory myPack with its unpacked class files. THIS SOLVED MY PROBLEM!!!
First I was trying to do some complicated things editing bat and xml files, but as a matter of fact I found it's quite simple. Furthermore, I was really surprised by the performance of Tomcat. I'm relly happy for that !! ;)
Hope it works for you,
Ernesto

Similar Messages

  • JSP can't find bean class!!!!!

    First of all, I'm using jdk1.4 beta and Jakarta's tomcat version 4.0.1 release build.
    Hello. I desparately need help. I have a JavaBean class ("CarBean.class") saved in %catalina_home%\webapps\root\myapp\web-inf\classes\com\wrox\cars\CarBean.class
    I also have a jsp page saved as carpage.jsp in %catalina_home%\webapps\root\myapp\
    So when I point my browser to http://localhost:8080/myapp/carpage.jsp, I get an internal server error. It appears it can't find the JavaBean class for some reason. I'm pretty sure I have my envionment variables set up right. I can get it to work, if I save the JavaBean class in c:\jdk1.4\jre\class\com\wrox\cars
    Here's my JavaBean class source file:
    package com.wrox.cars;
    import java.io.Serializable;
    public class CarBean implements Serializable {
    public CarBean() {
    private String make = "Ford";
    public String getMake() {
    return make;
    public void setMake(String make) {
    this.make = make;
    and here's my jsp page:
    <html>
    <head>
    <title>Using a JavaBean</title>
    </head>
    <body>
    <h2>Using a JavaBean</h2>
    <% com.wrox.cars.CarBean myCar = new com.wrox.cars.CarBean(); %>
    I own a <%= myCar.getMake() %>
    <% myCar.setMake("Ferrari"); %>
    Now I own a <%= myCar.getMake() %>
    </body>
    </html>
    This is the only thing I've modified in the server.xml file:
    <Context path="/myapp" docBase="myapp" debug="0" reloadable="true"/>
    I'm not new to java, just JSP. I just don't know why I can't get the jsp to locate the JavaBean class. I remember I used to have an older version of Tomcat and I recall not having any problems. It seems the Tomcat 4.XX is somewhat significantly different than previous versions. Perhaps I configured my Tomcat or server.xml wrong? Help would be greatly appreciated. Thanks.

    Hi,
    I am having a similar problem. I was wondering if you found a solution. The error I get is listed below. I have my jsp file at ../webapps/ROOT/myapp/web and my bean file located at ../webapps/ROOT/myapp//src.
    Any help will be highly appreciated
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 8 in the jsp file: /DataBaseSelect.jsp
    Generated servlet error:
    D:\WeeklyReportProject\jwsdp-1_0_01\work\Standard Engine\localhost\Test\DataBaseSelect$jsp.java:61: Class org.apache.jsp.DataBaseSelect not found.
    DataBaseSelect select = null;
    ^
    An error occurred at line: 8 in the jsp file: /DataBaseSelect.jsp
    Generated servlet error:
    D:\WeeklyReportProject\jwsdp-1_0_01\work\Standard Engine\localhost\Test\DataBaseSelect$jsp.java:64: Class org.apache.jsp.DataBaseSelect not found.
    select= (DataBaseSelect)
    ^
    An error occurred at line: 8 in the jsp file: /DataBaseSelect.jsp
    Generated servlet error:
    D:\WeeklyReportProject\jwsdp-1_0_01\work\Standard Engine\localhost\Test\DataBaseSelect$jsp.java:69: Class org.apache.jsp.DataBaseSelect not found.
    select = (DataBaseSelect) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DataBaseSelect");
    ^
    3 errors, 1 warning

  • ERROR:can't find native registration class while J2EE Engine startup

    Hi
    Iam trying to integrate a Java Profiler application which contains a native library(namely ProfilerDLL.dll) with the J2EE Server.Here are the steps which i had followed
    1. Added the following Java option through the config tool of WebAS.<b> -XrunProfilerDLL</b>.
    2.Restarted the server.
    Server does not starup and throws a error with exit
    code -1 .
    Here is the log
    JStartupIReadSection: read node properties [ID7217950]
    -> node name       : server0
    -> node type       : server
    -> java path       : C:\j2sdk1.4.2_04
    -> java parameters : -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs -XX:NewSize=32m -XX:MaxNewSize=64m -XX:NewRatio=3 -XX:+DisableExplicitGC -XX:MaxPermSize=128m -XrunProfilerDLL:1 -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.; -D__PROFILER_TIMING_METHOD=1 -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> java vm version : 1.4.2_04-b05
    -> java vm vendor  : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)
    -> java vm type    : server
    -> java vm cpu     : x86
    -> heap size       : 256M
    -> init heap size  : 128M
    -> root path       : C:\usr\sap\J2E\JC00\j2ee\cluster\server0
    -> class path      : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> OS libs path    : C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> main class      : com.sap.engine.boot.Start
    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class  : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path  : C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar
    -> shutdown class  : com.sap.engine.boot.Start
    -> parameters      :
    -> debuggable      : no
    -> debug mode      : no
    -> debug port      : 1024
    -> shutdown timeout: 120000
    [Thr 420] JLaunchISetDebugMode: set debug mode [no]
    [Thr 5780] JLaunchIStartFunc: Thread 5780 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [server0]
    -> stack   : 262144 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: -Denv.class.path=;C:\D\vim\Intellisense\javaft.jar;C:\j2sdk1.4.2_04\lib\tools.jar
    -> arg[  3]: -Djava.security.policy=./java.policy
    -> arg[  4]: -Djava.security.egd=file:/dev/urandom
    -> arg[  5]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy
    -> arg[  6]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy
    -> arg[  7]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy
    -> arg[  8]: -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs
    -> arg[  9]: -XX:NewSize=32m
    -> arg[ 10]: -XX:MaxNewSize=64m
    -> arg[ 11]: -XX:NewRatio=3
    -> arg[ 12]: -XX:+DisableExplicitGC
    -> arg[ 13]: -XX:MaxPermSize=128m
    -> arg[ 14]: -XrunProfilerDLL:1
    -> arg[ 15]: -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar
    -> arg[ 16]: -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.;
    -> arg[ 17]: -D__PROFILER_TIMING_METHOD=1
    -> arg[ 18]: -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar
    -> arg[ 19]: -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> arg[ 20]: -Dsys.global.dir=C:\usr\sap\J2E\SYS\global
    -> arg[ 21]: -Dapplication.home=C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> arg[ 22]: -Djava.class.path=C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> arg[ 23]: -Djava.library.path=C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\jre\bin;C:\j2sdk1.4.2_04\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;c:\sapdb\programs\bin;c:\sapdb\programs\pgm;C:\PROGRA1\SECUDE\SECUDE1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;c:\progra~1\ixos\bin;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\lib\tools.jar;C:\Program Files\JProbe Profiler 5.2.1\bin;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\sherlok;C:\cygwin\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\JVMStatAnalysis\jvmstat\bat;;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> arg[ 24]: -Dmemory.manager=256M
    -> arg[ 25]: -Xmx256M
    -> arg[ 26]: -Xms128M
    -> arg[ 27]: -DLoadBalanceRestricted=no
    -> arg[ 28]: -Djstartup.mode=JCONTROL
    -> arg[ 29]: -Djstartup.ownProcessId=1740
    -> arg[ 30]: -Djstartup.ownHardwareId=I1361390454
    -> arg[ 31]: -Djstartup.whoami=server
    -> arg[ 32]: -Djstartup.debuggable=no
    -> arg[ 33]: -DSAPINFO=J2E_00_server
    -> arg[ 34]: -DSAPSTARTUP=1
    -> arg[ 35]: -DSAPSYSTEM=00
    -> arg[ 36]: -DSAPSYSTEMNAME=J2E
    -> arg[ 37]: -DSAPMYNAME=INLD50035793_J2E_00
    -> arg[ 38]: -DSAPDBHOST=
    -> arg[ 39]: -Dj2ee.dbhost=INLD50035793
    [Thr 5780] Wed Sep 22 15:30:06 2004
    [Thr 5780] JHVM_LoadJavaVM: Java VM created OK.
    <u>[Thr 5780] ***ERROR => can't find native registration class [com.sap.bc.proj.jstartup.JStartupNatives] [jhvmxx.c     417]
    [Thr 5780] JLaunchCloseProgram: good bye (exitcode=-1)</u>
    Any ideas how to fix this problem?
    Thanks
    S.Shylaja

    Btw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
    The beginning of the IIS Event log outputs this:
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
    Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
    /watson

  • Can't find the bean which was just created??

    Hi all.
    I am completely stuck at this problem. I'll try to explain it as briefly as possible. (Btw I use Weblogic 8.1 and Oracle 10g DB).
    I create an entity bean (it has a String as a primary key). It has some relationships, everything is set up nicely. Upon creation I put the Id in a JMS message, the message in a JMS queue and finish the method.
    From the MDB that gets this message I do findByPrimaryKey(id) and it complains it cannot find my bean. Why? I can see it in the database. Also if I send to the MDB an ID from a bean that was created earlier, it works. It just can't find the bean that was just created, as if it wasn't "commited".
    What could be the cause of this? Is there an easy way to explain/solve it?
    I appreciate any kind of help. Thanks in advance. Cheers!

    Does the database insertion and the JMS publish occur in the same XA
    transaction? It sounds like the JMS commit happens (sometimes) quick
    enough that the other resource (the database) has not finished commit
    processing yet. So you don't find your key.
    -- Rob
    Baba Baba wrote:
    Hi all.
    I am completely stuck at this problem. I'll try to explain it as briefly as possible. (Btw I use Weblogic 8.1 and Oracle 10g DB).
    I create an entity bean (it has a String as a primary key). It has some relationships, everything is set up nicely. Upon creation I put the Id in a JMS message, the message in a JMS queue and finish the method.
    From the MDB that gets this message I do findByPrimaryKey(id) and it complains it cannot find my bean. Why? I can see it in the database. Also if I send to the MDB an ID from a bean that was created earlier, it works. It just can't find the bean that was just created, as if it wasn't "commited".
    What could be the cause of this? Is there an easy way to explain/solve it?
    I appreciate any kind of help. Thanks in advance. Cheers!

  • JSP can't find servlet

    I have deployed two web modules, one for the jsp's and one for the servlet. I have no problem calling up the jsp's.
    I am getting the following message when the jsp tries to call the servlet via post.
    [24/May/2004:16:00:58] WARNING ( 344): for host 127.0.0.1 trying to POST /BillerWeb/BillerMaintServlet, send-file reports: HTTP4142: can't find C:/Sun/studio5u1_se/appserver7/domains/domain1/server1/applications/j2ee-modules/BillerWeb_4/BillerMaintServlet (File not found)
    The problem is that BillerMaintServlet is not in BillerWeb module or folder, whatever it is looking in.
    The context_root for the jsp's is set to /BillerWeb, but the context root for the servlet is set to /BillerServletModule.
    Does anyone know why it is looking there for my servlet or how to fix this problem?
    Thanks.

    What exactly method do you use to call your servlet?
    You know almost all methods work with URLs relative to the servlet/JSP root.
    For example this is from PageContext.include() documentation:
    �public abstract void include(java.lang.String relativeUrlPath)
    if the relativeUrlPath begins with a "/" then the URL specified is calculated relative to the DOCROOT of the ServletContext for this JSP. If the path does not begin with a "/" then the URL specified is calculated relative to the URL of the request that was mapped to the calling JSP.�

  • Please help with bean package problem - serlvet can't find package

    Hi,
    I'm fairly new to java web development, and I can't make any good learning progress due to an error I just can't seen to fix. It seems humiliatingly trivial, but I can't get past it.
    Explanation:
    I'm experimenting with beans, and I've created a very simple servlet called AppSetup to create a LinkBean instance and store it in the servlet context for later retrieval. My problem is that the servlet wont compile because it's telling me the package in which the LinkBean class file is in doesn't exist.
    The servlet is in package org, and the bean is in package org.bean. This is the import statement in the servlet:
    Code:
    import org.bean.*;I've also tried:
    Code:
    import org.bean.LinkBean;and
    Code:
    import bean.*;I've tried all sorts of different package structures, but I get the same following error for all of them:
    Quote:
    C:\tomcat\webapps\chub\WEB-INF\classes\org>javac AppSetup.java
    AppSetup.java:14: package org.bean does not exist
    import org.bean.*;
    ^
    AppSetup.java:19: cannot find symbol
    symbol : class LinkBean
    location: class org.AppSetup
    LinkBean lb;
    ^
    AppSetup.java:23: cannot find symbol
    symbol : class LinkBean
    location: class org.AppSetup
    lb = new LinkBean();
    ^
    3 errors
    edit
    Server is Tomcat 5.5
    Any help would be greatly appriciated. Thanks.

    The bean class has to be in the classpath. The classpath variable informs the compiler\jvm where to find the .class files that are being referred.
    To set a classpath,
    javac -classpath C:\tomcat\webapps\chub\WEB-INF\classes;C:\tomcat\webapps\chub\WEB-INF\lib;C:\tomcat\common\lib;.; AppSetup.javaThere are 3 paths in the classpath variable above.
    1.\WEB-INF\classes => Your class files
    2. \WEB-INF\lib => Your app library files (.jar files)
    3. \common\lib => common library .jar files
    4 The dot (.) => current directory.
    Read about classpaths [url http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html]here
    ram.

  • Emca -config dbcontrol db + Can't find file emoms.properties

    HI,
    Recently we upgradated the database from oracle 11.2.0 to 11.2.0.3 afte that i am unable to start the oem
    now i am configuring the dbcontrol by the following command:
    emca -config dbcontrol db
    but getting the error
    Please enter repository password:
    Exception caught
    Feb 13, 2013 12:04:54 PM oracle.sysman.emcp.util.PlatformInterface executeCommandExitValue
    CONFIG: stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    Can't find file /orahome/oracle/product/11.2.0.3/db_1/youtele_pindb/sysman/config/emoms.properties
    java.lang.IllegalStateException: Can't find file /orahome/oracle/product/11.2.0.3/db_1/youtele_pindb/sysman/config/emoms.properties
            at oracle.sysman.emSDK.conf.ConfigManager.processProperties(ConfigManager.java:1154)
            at oracle.sysman.emSDK.conf.ConfigManager.processProperties(ConfigManager.java:1127)
            at oracle.sysman.eml.sec.rep.EmKeyUtil.<init>(EmKeyUtil.java:111)
            at oracle.sysman.eml.sec.rep.EmKeyUtil.main(EmKeyUtil.java:507)
    log4j:WARN No appenders could be found for logger (sec.rep.EmKeyUtil).
    log4j:WARN Please initialize the log4j system properly.
    Feb 13, 2013 12:04:54 PM oracle.sysman.emcp.util.DBControlUtil copyEmkeyToRepos
    SEVERE: Error copying Em Key to Management Repository. The Em Key is not configured properly or is corrupted in the file system and does not exist in the Management Repository. To correct the problem:
    1) Copy the emkey.ora file from another OMS or backup machine to the /orahome/oracle/product/11.2.0.3/db_1/sysman/config and run following commands:
    i) /orahome/oracle/product/11.2.0.3/db_1/bin/emctl config emkey -emkeyfile /orahome/oracle/product/11.2.0.3/db_1/sysman/config/emkey.ora  -force
    ii) /orahome/oracle/product/11.2.0.3/db_1/bin/emctl  config emkey -copy_to_repos
    iii) Run EM Configuration Assistant again
    2) If emkey.ora is not available from backup, run /orahome/oracle/product/11.2.0.3/db_1/bin/emca with -repos create optionAppreciated inputs on the above errors
    Thanks

    actually the above error provide with solutions also.

  • ADS problem: How can I find out the SP of ADS?!

    Hi,
    when i try to run the Dynamic Form tutorial i get the following exception:
    java.net.SocketTimeoutException: Read timed out
    The execution of "Test" under http://<host>:<port>/AdobeDocumentServices/Config
    was successfull.
    I have SAP Developer Studio SP 11, J2EE SP11,  but I am not sure what ADS SP I have.
    So my question:
    Is it important that the ADS has the same SP than the J2EE and the Developer Studio?
    And how can I find out what ADS version I have currently installed?
    Kind regards,
    Tobi

    Hi Tobias,
    This can be due to lot of reasons.
    Please have a look at the following SAP Notes:
    826419 Setting socket timeout for WS Clients in SP10 and SP11
    849851 Importing a Web Dynpro patch for Support Package 12
    867502 Read Timeout using AdobeDocumentService in Web Dynpro
    Also there are few more notes, that you should check.
    To check the version of all the components in your J2EE Engine, goto
    http://<server>:<port>/sap/monitoring/ComponentInfo
    You can see the version of Software Components.
    For ADS check ADS_SAP and ADS_SAPOFF components version. It will be like 1.00 SPXX.
    Let me know if you still got this problem.
    Regards,
    Shubham

  • Old Problem/New Problem: Lightroom can't find file, then finds, but won't edit it.

    (Lightroom 2; Macintosh G5; OS X (10.4.11))
    First, the old problem which, though unresolved, is here mostly for background:
    A little over a month ago, I posted a question (at http://forums.adobe.com/thread/480423?tstart=0 ).
    The short version of that problem is that certain previously accessible images were not able to be opened in Lighroom. The preview image appeared in the main window accompanied by this message across the top of it:
    "The file named "[name of image/file]" is offline or missing."
    When I right clicked on the image and selected "Show in finder" I got this message:
    "The photo '[name of file]' could not be used because the original file could not be found. Would you like to locate it?"
    Below which was shown the original path to the file. In the middle of that path, one or more folders appeared with colons in their names in place of the slashes originally part of the names (some folders have dates in their names). Following the path via the Finder, the file was exactly where it was supposed to be, although, of course, slashes appeared instead of the colons that were in the Lightroom summary of the original path, but Lightroom couldn't find them.
    I was convinced that Lightroom was renaming the folders (but only in its interface; the original folders had correct names in the finder -- which is the only way they could have been named, since colons are illegal characters and won't be accepted as part of a file name). But I see now that there is some weird thing going on in the Finder itself. Even though I see the correct name on a folder when I search for it, or navigate through the hierarchy, if I click on the file at the end of that hierarchy (the file that Lightroom said it couldn't find) and ask for file info (via Command - I, or other method), the path to that file shows colons where slashes should be, but only in the names of the folders that were so named in Lightroom. All other folders with slashes in their names are listed correctly. So it's a Finder problem. Though this is still a mystery, I have been able to work around the problem. But how is this happening? (Note that I will be reformulating the question and posting it on the Apple discussion groups soon; I don't expect this forum to deal with Apple system issues. Just thought that others here may have had the same problem.)
    Now, the new problem, possibly related to the old one:
    In the same collection where I noted the previous problem, I selected an image that I wanted to print. The preview came up with this message:
    "The file could not be found."
    But when I right click on the image and select "Show in finder" it opens the correct Finder window with the file in question highlighted. The file, a TIFF, opens normally in Preview or Photoshop.
    So why does Lightroom think it's not there? (even though it can show me exactly where it is)
    I have edited this photo in Lightroom before. I have printed it from Lightroom before (as shown in the Lightroom history). But today it can't be edited, won't print and "could not be found"!!!
    I know I can print from Photoshop, or re-import this photo into Lightroom (along with any others that Lightroom "can't find"), though both would require time and re-editing the original. I would rather understand (if that's possible) why this is happening in the first place, so hopefully I can avoid such wackiness in the future.
    I realize that may have to burn some sage and hire a Shaman, but any ideas that won't smoke up the house or scare the cats would be most welcome.
    Thanks for reading.
    Leonard B.

    If you have an old goat around that's not doing so well, consider the sacrifice.
    The one thing that occurs to me besides the Gremlin, is the use of colons or slashes or some other character that the OS or LR doesn't like in some file name or other.  I think you'd have to change same in Finder, then show LR where the images are.

  • JSP can't find class file

    I created a package for my JSP and import it to be used in a JSP. It works great a couple of times, but for some reason, it displays an error message saying it can't find the class in import. Can anyone explain that? Thanks.
    null

    This may be a classpath issue. Is it possible that you have changed your classpath
    and restarted your web server? If you are
    using a web server that lets you specify the
    classpath in some properties file (i.e.,
    wrapper.classpath) is is possible that that
    has changed?

  • 9ias JSP can't find Classes I created

    I created a package for my JSP and import it to be used in a JSP. It works great, but for some reason, it displays an error message saying it can't find the class in import. Can anyone explain that? Thanks.

    I created a package for my JSP and import it to be used in a JSP. It works great, but for some reason, it displays an error message saying it can't find the class in import. Can anyone explain that? Thanks.

  • 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

  • Install of latest Firefox upgrade won't complete, now having multiple problems and can't find how to revert back to previous mode.

    I got a prompt to upgrade, but the install mechanism just keeps looping, says connecting but nothing ever happens. Daily I get warnings to install, and each effort ends as above. Now some of the prompt boxes (such as "are you sure you want to delete...") appear in subdued/basic mode. I was going to simply revert back to the previous edition that worked, but can't find how to do that.

    I am having an issue with the Software Update also. The window says, "It is strongly recommended that you apply this update for Firefox as soon as possible"....It won't let me see the information of this update. I click on it as it highlights but nothing happens. So when I do click next it starts to update but updates all day long. It is not right. I thought maybe a virus? Could somebody tell me what to do? It is constantly happening everyday. thank You!!

  • JSP file cannot find the beans

    Hi all,
    My question is about Tomcat and JSP with Javabean.
    I put my .jsp files under c:\tomcat\webapps\examples\jsp\Demo,
    it works correctly, but when I add:
    <jsp:useBean id="data" scope="session" class="DataBean" />
    Where DataBean at:c:\tomcat\webapps\examples\WEB-INF\classes\DataBean.class
    it throuws exception as follow:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 25 in the jsp file: /jsp/Demo/base.jsp
    Generated servlet error:
    C:\Tomcat\work\localhost\examples\jsp\Demo\base$jsp.java:60: Class org.apache.jsp.DataBean not found.
    DataBean DataBean = null;
    BTW:The DataBean.class compiled withou any error.
    OS:WIN2000
    Tomcat4.0
    It looks like the Server can't find the class, but it exists.
    Any suugestion?
    Thanks!

    Try putting the Bean in a package - for some reason Tomcat doesn't always find classes in the default package.
    i.e. add a package statement to DataBean and change the useBean to include class="yourpackage.DataBean".
    Hope this helps.

  • Help: error: can not find the main class!

    when I run the class, the following error message comes up:
    java.lang.NoClassDefFoundError: j2sdk1/4/1
    and also a dialogue window (title is "java virtual machine launcher") comes up: could not find the main class, program will exit! After I click ok button, another error message shows up: Exception in thread "main" .
    Could anyone help me figure out what's wrong with my program? If you need any other informaiton, please email me: [email protected], Thanks a lot!!!

    Hi, thank you very much for your reply. Here is the program:
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.lang.Object;
    public class CatalogConnect{
    Statement stmt, st, mast, ques;
    ResultSet rset, orgset,maset, quesset;
    String organization = null;
    String sponsor = null;
    String interMethod = null;
    String year = null;
    String collection = null;
    String country = null;
    String countryName = null;
    String archNO = null;
    String codeBook = null;
    String td = null;
    String todate = null;
    String month = null;
    int studyID, quesID, sponsorID, orgID;
    public CatalogConnect(){
    connect();
    makeXMLFile();
    public CatalogConnect(String codeBk){
    codeBook = codeBk;
    connect();
    makeXMLFile();
    public void connect(){
    try{
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Class.forName(oracle.jdbc.driver.OracleDriver);
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.37.146:1521:ipoll",
    "catalog", "catalog");
    stmt = conn.createStatement ();
    st = conn.createStatement ();
    mast = conn.createStatement ();
    Connection conn2 =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.36.171:1521:ipolljr2",
    "catalog", "catalog");
    ques = conn2.createStatement ();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void main (String args[]){
    CatalogConnect c = new CatalogConnect();
    public void makeXMLFile() {
    PrintWriter out = null;

Maybe you are looking for

  • Could not save preferences because the file could not be found (Windows) then Error 1 on PS,AE,PR,ID

    I was trying out Photoshop, everything was running fine then one day when I close it I get an error: "Could not save preferences because the file could not be found..." Now when I boot it I get the Configuration Error 1. After Effects still boots, bu

  • How do I install a game into a Firefox desk top, I am new to all this

    I have a Firefox desk top on a Windows machine, and I have MS Combat Flight Simulator game I want to install on the desk top. I am brand new in computers, and in the tool bar in Firefox I see nowhere a place to put a URL. Help.. i

  • Playing iPod Video through the TV

    I recently purchased the AV Connection Kit. I set it up and successfully played videos and sound from my iPod through the TV. However, when I try to play regular music I do not get any sound. Since the sound from my videos plays, why not normal music

  • Sun Cluster.. Why?

    What are the advantages of installing RAC 10.2.0.3 on a Sun Cluster.? Are there any benefits?

  • Page navigation issues

    I am not able to move to next page in the ebooks adobe digital version - tried in both version 2 & 3 - please help I have to go to the main topic of content tab & then click on any topic - again It will not let me scroll furhter down than what i can