Tomcat doesn't locate my own class files

Hi, I've tried any way of configuring the Classpath and nothing.
I put a class named UserData in WEB-INF/classes of my root web application directory. In an jsp file I invoke a bean in this way <jsp:useBean id="user" class="UserData" scope="session"/> and then when i execute the application I get the folowing error:
An error occurred at line: 1 in the jsp file: /SaveName.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\soporteII\SaveName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;
I don't know why Tomcat always try to find UserData in the path org/apache/jsp.
I'm using Tomcat 4.0.4 and JDK 1.4.1
Thanks

I have the same problem and waste my 4 hours!! thanks w234 a lot!!
put "package usingtag;" into any Tag.java and compile it, then copy Tag.class to WEB-INF/classes/usingtag.
and put
<tag>
<name>hello</name>
<tag-class>usingtag.HelloTag</tag-class>
</tag>
into hello.tld.
Just change the name "hello" to your name.
Now run Tomcat and your pages, everything should be OK!
James

Similar Messages

  • How to find the location of java class files at runtime?

    Does anyonw have an idea how to get the file name of a java class given the binary name?
    I mean how can I get the file name for my class myPackage.myClass?
    I am looking for a function which takes "myPackage.myClass" as input and returns
    "c:\\javaprojects\\myPackage\\myClass.class".
    I tried to do it with the LassLoader class but it did not work. Does anyone have an idea if the Java core API already has a function which does that?
    Thanks, Bernhard

    Hi ,
    It is a simple SAMPLE code , you think and build a logics to handle all classes.
    Try this sample, It doesn't handle the inner classes you put logic to handle the logics for inner classes.
    The inner class format is it contains the character $ in the File location but inside the code you put "." instedad of "$" you to find out or put trials.
    package pkg1;
    import java.io.* ;
    import java.util.* ;
    import java.util.zip.* ;
    public class ClsB {
         private static Vector clsPaths ;
         public static Vector getPaths() {
              if( clsPaths == null ) {
                   String paths = System.getProperty( "java.class.path" ) ;
                   // In linux or solarise use the following
                   // StringTokenizer st = new StringTokenizer( paths , ":\n" ) ;
                   StringTokenizer st = new StringTokenizer( paths , ";\n" ) ;
                   clsPaths = new Vector() ;
                   while( st.hasMoreTokens() ) {
                        String path = st.nextToken() ;
                        File f = new File( path ) ;
                        if( f.exists() ) {
                             try {
                                  f = f.getCanonicalFile() ;
                                  clsPaths.add( f ) ;
                             }catch( IOException ioe ) { }
              return clsPaths ;
         public static String findClassPath( String fullClassName ) {
              Vector v = getPaths() ;
              for( int i = 0 ; i < v.size() ; i++ ) {
                   File f = ( File ) v.get( i ) ;
                   String path = findIn( f , fullClassName ) ;
                   if( path != null )
                        return path ;
              return null ;
         static boolean isJar( File jar ) {
              if( jar.isDirectory() )
                   return false ;
              try {
                   ZipFile zf = new ZipFile( jar ) ;
                   return true ;
              } catch ( ZipException ze ) {
                   // It is not a jar file
                   // you handle this
              } catch ( IOException ioe ) {
                   ioe.printStackTrace() ;
              return false ;
         static String findIn( File dirOrJar , String clsName ) {
              if( isJar( dirOrJar ) ) {
                   // It is something different because the class inside the jar file
                   // Simply I return the jar file location and the entry name ,
                   // but you put action what you want
                   if( isInsideJar( dirOrJar , clsName ) ) {
                        // All archieve file using the path separator is '/'
                        return dirOrJar.getPath() + "!" + clsName.replace( '.' , '/' ) + ".class" ;
              } else {
                   File f = new File( dirOrJar , clsName.replace( '.' , File.separatorChar ) + ".class" ) ;
                   if( f.exists() ) {
                        return f.getPath() ;
              return null ;
         static boolean isInsideJar( File jar , String clsName ) {
              try {
                   ZipFile zf = new ZipFile( jar ) ;
                   // All archieve file using the path separator is '/'
                   ZipEntry ze = zf.getEntry( clsName.replace( '.' , '/' ) + ".class" );
                   return ( ze != null ) ;
              } catch ( ZipException ze ) {
                   ze.printStackTrace() ;
              } catch ( IOException ioe ) {
                   ioe.printStackTrace() ;
              return false ;
         public static void main(String[] args) {
              System.out.println( findClassPath( "pkg1.ClsB" ) );
              System.out.println( findClassPath( "pkg1.pkg2.ClsA" ) );
    }

  • Bridge doesn't recognize its own .xmp files

    Using Bridge CS3 on Mac OS 10.5.8. I edit RAW (.nef) files in ACR. When I click done, save, or open image, an .xmp sidecar file is generated and saved in the same folder as the .nef. However, changes made in ACR do not show in the preview thumbnail in Bridge, and when I re-open the file in ACR, my changes are lost. The .xmp file is still there, it's just not applied. It's like Bridge doesn't know the .xmp file is there. The icons in Bridge indicating altered develop settings or crops do not appear after adjudstments are made. Star ratings made in Bridge remain. When this issue began, it would ignore sidecar files for some images, but not others. It is increasing in frequency, or may now be consistent. (If I open the file into Photoshop or save an image file out of ACR, the changes are applied to the developed image file, they are simply ignored by Bridge in regards to the Raw file.)
    Files that were adjusted before the problem began still synchronize with their sidecar files. Looking at the sidecar files in a text editor shows that they contain the adjustments made.
    There were no changes in any installations/updates to software or OS at the time of the problem's onset.
    I've tried using a Camera Raw database instead of sidecar files, and the changes are still lost. I've tried purging caches for Bridge and for ACR. I've tried resetting and dumping preference (.plist) files.
    Anyone have ideas on what I can do to salvage this program as my RAW library manager?

    Matthew,
    Same problem here. But I'm using CS5 in Win7.
    Bridge cannot find its XMP files. Bridge does not see its XMP files. XMP files do not work. Camera Raw settings do not show in thumbnails. ACR settings lost.
    I just now figured out the problem/solution.
    In my case, the association between CR2 files and Bridge was usurped by Canon DPP (the Canon raw converter) which I just installed this afternoon. When I installed it, there was no immediate problem. But when I started a new work session tonight, Bridge acted as if the XMP files weren't even there.
    Solution: In Windows, to set a file association, you just right-click on a file (in this case the CR2 file) and select "Open With", and then navigate to Bridge (in my case Bridge CS5). That re-establishes the link between Bridge and its own XMP files. Then simply purge your cache and let Bridge rebuild it using its XMPs (which it can now find again) to rebuild the cache with the adjustments that are stored in the XMPs.
    I don't know how to do this on a Mac, but the principle is the same.
    I hope this solves your problem.
    Dave

  • My jsp page is not displayed - tomcat does not pick up the class file

    Hi everybody,
    I have a Java code which is a controller for a jsp page, called: HomeController.java. Code is as follows:
    @Controller
    public class HomeController {
    protected final transient Log log = LogFactory.getLog(getClass());
    @RequestMapping(value = "/mypage")
        public String home() {
            System.out.println("HomeController: Passing through...");
            return "home";
    }There is nothing especial in the jsp page: home.jsp. If I go to this url:
    http://localhost:8080/adcopyqueue/mypage
    I can view mypage and everything works fine. Also in the tomcat Dos page I can see the comment:
    HomeController: Passing through...As expected.
    Now under the same directory that I have HomeController.java, I've created another file called: LoginController.java. Following is the code:
    @Controller
    public class LoginController {
    protected final transient Log log = LogFactory.getLog(getClass());
    @RequestMapping(value = "/loginpage")
    public String login() {
            System.out.println("LoginController: Passing through...");       
            return "login";
        }And under the same place which I have home.jsp, I've created login.jsp.
    Also under tomcat folders, LoginController.class exists under the same folder that HomeController.class exists and login.jsp exists under the same folder which home.jsp exists.
    But when I go to this url: http://localhost:8080/adcopyqueue/loginpage
    Nothing is displayed! I think tomcat does not pick up LoginController.class b/c on the tomcat Dos window, I do NOT see this comment:
    LoginController: Passing through...Instead I see following which I do not know what do they mean?
    [ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:34) got manifest
    [ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:36) manifest entrie
    s 8The structure and the code for HomeController.java and LoginController.java plus the jsp files match. I have no idea why tomcat sees one of the files and not the other?
    Clean build did not help. Does anybody have any idea? Any help is greatly appraciated.
    Edited by: ronitt on Nov 16, 2011 3:55 PM

    Hi,
    Please check the following path if your application is deployed or not properly if you are using eclipse:
    Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

  • How to find the location of controller class file on the server

    Hi OAF Experts,
    We have a extended controller in which we are making some changes. We have compiled the java file.
    Now we want to deploy the .class file on the server. When we search on the server where we need to deploy the class file, we find two to three paths. Is there a way from which we can decide which path is actually referred ?
    Is there a front end page available from where we will be gettng these details??
    Regards
    Samarth

    Hi,
    You can get the complete path from front end.
    On 'About this Page', there is a section for 'Business Components'. When you expand that, you can see all the controllers used with complete path.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Safari doesn't open his own .URL files

    Hello
    I've adopted Safari for Windows at work due to the good experience I had with Safai on my Mac at home, but I almost immediately I found a serious bug:
    Safari for Windows creates ".URL" files perfectly like IE7, by dragging the icon on the left of the address into a folder (or the desktop). Everything' fine here. I use this functionality a lot!
    I just opened the .URL file and looks nice. Here's an example:
    \[InternetShortcut\]
    URL=http://discussions.apple.com/forum.jspa?forumID=1188
    The PROBLEM is that when I double click the ".URL" file Safari for Windows just created, Safari NEVER opens, instead opening IE7 !
    There must be a registry fix for this, because if I drag the icon into an opened Safari, it opens the link perfectly.
    Please tell me what I must change on the Windows Registry to fix this.
    Thank you in advance for your support, and keep up the good work!

    Replying to my own problem, I think I finally fixed it... by accident!
    After a lot of juggling with Control Panel->Add/Remove Programs->Set predefined browser, I finally managed to get IE7 out of the way, but only after deactivating access to Internet Explorer, and a lot of random checks and reboots along the way.
    I have no idea why Safari for Windows can't make himself the default browser on URL opening, but I believe you are missing some settings somewhere in the Windows Registry.
    Happy bug hunting!

  • 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!

  • HELP: Import my own class in JSP ???

    Hi, all!
    I read many previous topics in this forum but no one works for me!
    Please someone help me!
    I'm using Tomcat 4.1.12 and my JSP scripts work just fine, but I need to import my own .class file. I just don't know where to put it so Tomcat can find it!?
    I have this environment variable:
    JAVA_HOME=.;c:\jdk1.3.1
    And in my code I'want to place something like this:
    <%@ page import="myClass" %>
    But I get a "can not resolve symbol" exception.
    Thanks for readind this, and please help if you can!
    Bye.
    adriano

    Within the Tomcat directory, under your application directory place the class file/s into the WEB-INF/classes directory. If your classes are part of a package place the entire directory structure of the package under the WEB-INF/classes directory.
    The import in the JSP is the same as for any Java class.
    Hope this solves your problem.

  • New syntax to import .class Files???

    Using JDK 1.2.2 i coul import my own class files by typing
    import ClassName;
    Using the j2sdk1.4.0 compile I get the Error Message
    `.` expected
    Is there a new synatx for importing .class files???

    Normally I don't help anyone under this username, but since the idiot Kayaman is here being his usual jerk-ness providing no meaningful help whatsoever (as usual), I'll let you in on the fact that 1.4 doesn't let you import un-packaged classes anymore. So just remove the import statement, or change your imported class into some kind of package.

  • How to call class file from jsp without creating packages

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.Then use packages.
    As of Java1.4, you can no longer import classes from the default package (no package declared) into classes that are packaged.
    All Tomcat classes are in packages, including the compiled JSP.
    Therefore: Your classes need to be in a package inorder to be imported and used by the JSP.
    Why the problem? If you know it works with packages, why try not to use them?

  • Missing .class file

    I run "javac" and looks that javac compile file "HelloWorldApp.java", but when I try to run "java HelloWorldApp" I have error
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class
    If I go to my directory I can no see .class file. Why?
    I set varible for PATH and CLASSPATH ....

    I see where problem is ...
    I set PATH but does not work ... this is how looks
    like
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System
    32\Wbem;C:\Program Files\Cisco\Call Manager Attendant
    Console\jre1.4\bin;C:\Program Files\Microsoft SQL
    Server\80\Tools\BINN;C:\Program
    Files\Java\jdk1.6.0\bin;
    After I run C:\> javac HelloWorldApp.java , javac
    compile second copy of "HelloWorldApp.java" located
    in C:\
    On this location I found .class file ...
    (I was thinking if I set PATH, I have to save application there tooNo, PATH is an environment variable that tells the operating system where to look for executable files. That tells Windows where to find the .exe files like javac and java and jar.
    ..or when I call "javac" <file
    name>, I have to be in that directory where I saved
    file)Yes.
    I set CLASSPATH to "C:\Program
    Files\Java\jdk1.6.0\bin" and this looks like works
    fine.No, this is a waste. In spite of what that tutorial tells you, there's no need for a CLASSPATH environment variable. (Yours is wrong, BTW.) CLASSPATH is for the JVM. It tells the compiler and runtime where to look for .class files that it needs.
    The right way to set CLASSPATH is using the -classpath option on javac.exe and java.exe. Read those docs.
    After I run "java HelloWorldApp" I have error because
    CLASSPATH is set for diferent location ...java.exe ignores your CLASSPATH anyway.
    >
    When I moved my .class file from loaction "C:\" to
    "C:\Program Files\Java\jdk1.6.0\bin " and run
    "C:\>java HelloWorldApp", I did not have any error
    and application works fine.That's wrong. Your code does not belong in there. Ever.
    >
    So, why my PATH does not work for "javac" ???Your PATH works fine, because Windows found javac.exe and java.exe. It's CLASSPATH that's incorrect.
    Compile like this:
    javac *.javaRun like this:
    java -classpath . HelloWorldAppNote the "dot" after -classpath. That sets the CLASSPATH to the current directory.
    %

  • Deploytool could not load my class files

    Hi,
    believe me I have searched half of the web and I hope some of this forum could help me now.
    I have created three class-Files for a Session Bean I want to create for my Application.
    First I created a new Application in the forlder c:\workspace\fs and then I wanted to add an Enterprise Bean. With the button "edit Contents" I found myself in the folder c:\workspace\fs. I clicked on my class-files in the subfolder com\abc\session\ and added these files.
    But when i close the window and want to get to the next step the following message comes: "the class (com.abc.session.homeimpl) could not be loaded. Please ... in setting up the class root directory and choosing class files".
    So, I just have to set up the class root directory? Thats all?
    Where can I do this???
    Thanks to everyone who try to help me!
    Hannes
    PS: excuse my english, but school was not long enough ;-)

    Hello,
    finally I found out why it doesn't work.
    My class-Files were compiled by JDK 1.5. After I compiled them with JDK 1.4 everything works.
    Does anybody know how I can switch my J2EE to Java 1.5 ?
    Hannes

  • MouseOver StaticText to run Complex Function in class file (please Help!)

    Hi, My current issue is this:
    I have a Function called "utptab(x)", where x is an integer. The process of the function isn't too important and is complex (it populates the type of table in the Basic pallete with data from a stored procedure in MySQL based on the parameter passed to it. This all works fine).
    Since the function is currently sitting in the main Java class (Page1.class) I can call it from anywhere in the main Java code successfully. For example, if I drag a button to the stage, then double click on it to get to actions and insert the line "utptab(2);" The function is successfully processed and the table (tbl_utp) is successfully populated with data.
    My aim: I have 2 static text box's called "st_utp1" and "st_utp2", When I mouse over them, I would like the function "utptab(x)" to be called with the appropriate number, eg, if mouse over "st_utp1" I wish for the function to be called as "utptab(1)" when over "st_utp2" I wish for the fucntion to be called as "utptab(2)". I may have hundreds or thousands of "st_utpx" (they will be created and named dynamically later).
    My Main issue: I can't call the function "utptab(x)" located currently in the Java side of "Page1.class" with a mouse over a static text event, does anybody know how?
    Ontop of this, I would also like to make the table (tbl_utpx) to move to the x,y position of the cursor on the screen and also render visible on mouse over the static text box and hidden on mouse out. (I already know one method for hidden/visible method).
    I would prefer to be able to handle mouse events in Java, not JSP or at least choose to hold my functions where ever I like and call them from where ever I like.
    Just one other question, since I'm using JSC2, Where should this procedure lie for best security and performance? The table only needs to be read only, and the data only needs to be available while a mouse over event happens (to me seems like it should be in the request scope). Should it be a seperate class file? If u need I can post the code on request but didn't want to draw away from my main issue.
    Cheers.
    P.S. it took me a long time to find out how to populate the basic table with a stored proc from MySQL (2 months), I haven't seen any other code to do this nor to populate from a tabular file, am I the only one to do this or wanting to do this? Does everybody that want's to do more complex things than pretty web pages use a different IDE than Creator 2?
    Once again looking forward to the response and sorry if I led away from the main question, which was: How to call a function that is located in a class file from another part of the program or another file?
    Cheers, from 3Pc
    Message was edited by:
    3Pc

    Cheers for the response, Tried that, couldn't get it to work, do u place taht code in the staticText onMouseOver property?
    Here is the basic code in the Java.class (what u get when you usually click the Java button)
    * Page1.java
    package a1;
    import    ...
    public class Page1 extends AbstractPageBean {
        public String utptab(int utp) {
            FieldKey[] fk = new FieldKey[0];
            RowKey[] rk = new RowKey[0];
            CallableStatement stmt = null;
            Connection conn = null;
            ResultSet resultSet = null;
            try {
                Class.forName("com.mysql.jdbc.Driver").newInstance();           
                conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/corrovu?user=root&password=Glancino");         
                stmt = conn.prepareCall("{call utpn(?)}");         
                stmt.setInt(1, utp);         
                stmt.execute();         
                resultSet = stmt.getResultSet();
                CachedRowSetImpl crs = new CachedRowSetImpl();
                getSessionBean1().setCrs(crs);
                getSessionBean1().getCrs().populate(resultSet);
                conn.close();
                getTableRowGroup2().getChildren().clear();
                getCachedRowSetDataProvider1().setCachedRowSet(getSessionBean1().getCrs());
                fk = getCachedRowSetDataProvider1().getFieldKeys();
                rk = getCachedRowSetDataProvider1().getAllRows();
                FacesContext ctx = FacesContext.getCurrentInstance();
                Application app = ctx.getApplication();
                ValueBinding vb = app.createValueBinding("#{currentRow.value['"+fk[0].getFieldId()+"']}");
                ValueBinding vb2 = app.createValueBinding("#{currentRow.value['"+fk[1].getFieldId()+"']}");
                getStaticText4().setValueBinding("text", vb);
                getStaticText5().setValueBinding("text", vb2);
            } catch (SQLException se) {
            } catch (Exception e) {
            return null;
        public String button1_action() {
            utptab(2);
            return null;
        public String button2_action() {
            utptab(1);
            return null;
    }You also need to add a property to SessionBean1 called crs, it be of type cachedRowSetImpl, now you need to drop in a cachedRowSetDataProvider, bind it to "crs" and have this as the data provider for the table, You will have to create at lest one column for it to register. (Creating Columns dynamically will be my next chanllenge after this).
    The JSP source is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{Page1.page1}" id="page1">
                <ui:html binding="#{Page1.html1}" id="html1">
                    <ui:head binding="#{Page1.head1}" id="head1">
                        <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{Page1.form1}" id="form1">
                            <ui:button action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1" onMouseOver="form1.button1.click();"
                                style="left: 239px; top: 192px; position: absolute" text="Button"/>
                            <ui:button action="#{Page1.button2_action}" binding="#{Page1.button2}" id="button2" style="left: 47px; top: 192px; position: absolute" text="Button"/>
                            <ui:table augmentTitle="false" binding="#{Page1.table2}" id="table2" style="left: 72px; top: 216px; position: absolute; width: 360px"
                                title="Table" width="0">
                                <script....</script>
                                <ui:tableRowGroup binding="#{Page1.tableRowGroup2}" id="tableRowGroup2" rows="10" sourceData="#{Page1.cachedRowSetDataProvider1}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="tableColumn1" id="tableColumn4">
                                        <ui:staticText binding="#{Page1.staticText4}" id="staticText4"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="tableColumn2" id="tableColumn5">
                                        <ui:staticText binding="#{Page1.staticText5}" id="staticText5"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                            <ui:staticText binding="#{Page1.utp1t}" id="utp1t" onMouseOver="form1.button1.click();"
                                style="position: absolute; left: 72px; top: 72px" text="1"/>
                            <ui:staticText binding="#{Page1.utp2t}" id="utp2t" style="position: absolute; left: 168px; top: 72px" text="2"/>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>So I want when the Mouse is Over "utp1t" the Function "utptab(1);" to execute.
    Any Suggestions, it currently works correctly with button1 & button2.
    Cheers.

  • JTA 1.0.1B class file lisence

    Hi
    Would you please answer me following question
    about lisence of Java Transaction API 1.0.1B
    class file.
    JAVA(TM) INTERFACE CLASSES
    JAVA TRANSACTION API (JTA), VERSION 1.0.1B,
    MAINTENANCE RELEASE
    SUPPLEMENTAL LICENSE TERMS
    says
    1. Software Internal Use and Development License
    Grant. Subject to the terms and conditions of this
    Agreement, including, but not limited to Section 3
    (Java Technology Restrictions) of these
    Supplemental Terms, Sun grants you a
    non-exclusive, non-transferable, limited license
    to reproduce internally and use internally the
    binary form of the Software, complete and
    unmodified, for the sole purpose of designing,
    developing and testing your Java applets and
    applications ("Programs").
    Is it a lisence violation if I use the JTA 1.0.1B class file
    for my customer's Java Application ?
    (for example, web application running
    under tomcat and JTA 1.0.1B class file )
    Thank you

    thank you for your reply.
    is there more verbage to the license statement?JTA 1.0.1B class file is distributed under "Sun Microsystems, Inc.
    Binary Code License Agreement"
    1. LICENSE TO USE. Sun grants you a
    non-exclusive and non-transferable license for the
    internal use only of the accompanying software and
    documentation and any error corrections provided
    by Sun (collectively "Software"), by the number of
    users and the class of computer hardware for which
    the corresponding fee has been paid.
    additionally
    JAVA(TM) INTERFACE CLASSES
    JAVA TRANSACTION API (JTA), VERSION 1.0.1B,
    MAINTENANCE RELEASE
    SUPPLEMENTAL LICENSE TERMS
    These supplemental license terms ("Supplemental
    Terms") add to or modify the terms of the Binary
    Code License Agreement (collectively, the
    "Agreement"). Capitalized terms not defined in
    these Supplemental Terms shall have the same
    meanings ascribed to them in the Agreement. These
    Supplemental Terms shall supersede any
    inconsistent or conflicting terms in the
    Agreement, or in any license contained within the
    Software.
    1. Software Internal Use and Development License
    Grant. Subject to the terms and conditions of this
    Agreement, including, but not limited to Section 3
    (Java Technology Restrictions) of these
    Supplemental Terms, Sun grants you a
    non-exclusive, non-transferable, limited license
    to reproduce internally and use internally the
    binary form of the Software, complete and
    unmodified, for the sole purpose of designing,
    developing and testing your Java applets and
    applications ("Programs").
    You can see the entire license term in
    http://java.sun.com/products/jta/index.html
    and click Class Files 1.0.1B Download button.
    is this something that you can't get with the
    standard j2se release?j2se does not contain JTA.
    j2se release contains only exception classes
    thrown by ORB and classed needed for
    contract between the transaction manager and
    the resource manager.

  • 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-

Maybe you are looking for

  • I have tried loads of headphones and on them all i have the same problem only one ear i can get sound out of can this be fixed?

    Has anyone else had this problem? My ipod has been working perfectly for years and all of a sudden i have gone through three sets of headphones at least in the last month, i have discovered that it is a problem with where the headphones go......no id

  • Possible service repair problem

    I just submitted a request to repair my Ipod, via drop off at an UPS location. The message afterwords said to take it to an UPS store immediately, and that they'd recieve a confirmation email within an hour. Well, I figured that I could drop off my i

  • How to upload logo in adobe forms? is it possible to give logo dynamically?

    hi experts, 1.i need to upload logo in adobe form. 2. is it possible to get the logo dynamically in adobe forms.    is it possible or not? thanks in advace

  • Hyper Edit Question

    Hi All, I think I already know the answer but I'll ask anyway. Can I use the Hyper Editor to edit drums in different regions on the same track or does the Event Definition apply to the entire track? It seems like I can only have a massive single regi

  • Advice for heat sufferers...

    If you're MBP has no heat issues (either it came perfect, or you fixed it via thermal paste reapplication), please feel free to skip this. I've got a HOT (90+ deg C on full load) MBP, and thought others may benefit from this, so here goes: 1. If you'