Compiling Error, need help!!

Having trouble compiling the following code...
Anyone have any ideas!?
Error on line 14:
public Q(String s) {
The blank final field num may not have been initialized     
The blank final field denom may not have been initialized     
public class Q extends AbstractNumber implements Number {
     private final Z num;
     private final Z denom;
        public static final Q UNDEFINED = new Q();
     public static final Q ZERO = new Q(Z.ZERO, Z.ONE);
     public static final Q ONE = new Q(Z.ONE, Z.ONE);
     public Q ()     {
          this.num = Z.UNDEFINED;
          this.denom = Z.UNDEFINED;
     public Q(String s) {
          String rational[] = s.split("/");
          Z numz, denomz;
          if(rational.length == 1){
               numz = new Z(rational[0]);
               denomz = Z.ONE;
          else {
               if(rational.length == 2){
                    numz = new Z(rational[0]);
                    denomz = new Z(rational[1]);
               else {
                    throw new RuntimeException("Cannot make a Q from " + s);     
               this.num = numz;
               this.denom = denomz;
          public Q(Z numz, Z denomz) {
          if(denomz.equals(Z.ZERO)) {
               this.num = Z.UNDEFINED;
               this.denom = Z.UNDEFINED;
          else {
               if(numz.equals(Z.ZERO)) {
                    this.num = Z.ZERO;
                    this.denom = Z.ONE;
               else {
                    Z gcd = numz.gcd(denomz);
                    numz = numz.dividedBy(gcd);
                    denomz = denomz.dividedBy(gcd);
                    if(!(denomz.sign() == numz.sign())) {
                         numz = new Z(-1, numz.magnitude());
                         denomz = new Z(1, denomz.magnitude());
                    this.num = numz;
                    this.denom = denomz;
          public String toString() {
               if(this.isUndefined()) { return "Undefined";
               else {
                    if(this.getDenomz().equals(Z.ONE)) {
                         return this.getNumz().toString();
                    else {
                         return this.num + "/" + this.denom;          
     public Z getNumz()     { return this.num;     }
     public Z getDenomz() { return this.denom; }
     // Implementation of Number Interface     
     public Q undef () { return UNDEFINED; }
    public Q additiveIdentity () { return ZERO; }
    public Q multiplicativeIdentity () { return ONE; }
    public Q plus(Number n) {
     if (!this.getClass().equals(n.getClass()) || this.isUndefined() || n.isUndefined()) return undef();
     Q that = (Q) n;
     return new Q((this.num.times(that.getDenomz())).plus(that.getNumz().times(this.denom)), this.denom.times(that.getDenomz()));
        public Q times(Number n) {
     if (!this.getClass().equals(n.getClass()) || this.isUndefined() || n.isUndefined()) return undef();          
     Q that = (Q) n;          
     return new Q(this.getNumz().times(that.getNumz()), this.getDenomz().times(that.getDenomz()));
     public Q minus(Number n) {
          if (!(this.getClass()).equals(n.getClass()) || this.isUndefined() || n.isUndefined()) return undef();
          Q that = (Q) n;
          return this.plus(that.additiveInverse());
     public Q dividedBy(Number n) {
          if (!(this.getClass()).equals(n.getClass()) || this.isUndefined() || n.isUndefined()) return undef();
          Q that = (Q) n;
          return this.times(that.multiplicativeInverse());
     public Q toThe(Number n) {
          if (!(this.getClass()).equals(n.getClass()) || this.isUndefined() || n.isUndefined()) return undef();
          Q that = (Q) n;
          if(that.getDenomz().equals(Z.ONE)) { return new Q(this.getNumz().toThe(that.getNumz()), this.getDenomz().toThe(that.getNumz()));
          else { return undef();
     public Q additiveInverse() {
             return new Q(this.getNumz().additiveInverse(),this.getDenomz());
         public Q multiplicativeInverse() {
                  return new Q(this.getDenomz(),this.getNumz());
     // Implementation of Comparable Interface
     public int compareTo (Object o) {
            if (!this.getClass().equals(o.getClass()))
            throw new ClassCastException("Cannot compare " + this + " to " + o);
             Q that = (Q) o;
               if(this.getDenomz().equals(that.getDenomz())) {     return this.getNumz().compareTo(that.getNumz());
          else {
               if(!(this.getNumz().equals(Z.UNDEFINED) || this.getDenomz().equals(Z.UNDEFINED) || that.getNumz().equals(Z.UNDEFINED) || that.getDenomz().equals(Z.UNDEFINED))) {
                    return (this.getNumz().times(that.getDenomz())).compareTo(that.getNumz().times(this.getDenomz()));
               else {
                    return -1;
}

Ok, I've fixed the code by editing the lines:
public Q (String s) {
          String rational[] = s.split("/");
          Z numz, denomz;
          if(rational.length == 1){
               numz = new Z(rational[0]);
               denomz = Z.ONE;
          else {
               if(rational.length == 2){
                    numz = new Z(rational[0]);
                    denomz = new Z(rational[1]);
               else {
                    throw new RuntimeException("Cannot make a Q from " + s);     
          if(denomz.equals(Z.ZERO)) {
               this.num = Z.UNDEFINED;
               this.denom = Z.UNDEFINED;
          else {
               if(numz.equals(Z.ZERO)) {
                    this.num = Z.ZERO;
                    this.denom = Z.ONE;
               else
                    Z gcd = numz.gcd(denomz);
                    numz = numz.dividedBy(gcd);
                    denomz = denomz.dividedBy(gcd);
                    if(!(denomz.sign() == numz.sign()))
                         numz = new Z(-1, numz.magnitude());
                         denomz = new Z(1, denomz.magnitude());
                    this.num = numz;
                    this.denom = denomz;
}But I was wondering if there was any way to avoid the repetition. I'm basically just repeating what's in:
public Q(Z numz, Z denomz)

Similar Messages

  • Compiling error need help urgently please

    im trying to compile a java file but i get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    and im typing in the right location of the file, and the package has been set properly, some please please please help me.

    Hiya.
    I seem to get this error message too, but there was more to it. It points out a classB i'm creating an instance of in the main() of classA, that it can't find or doesn't know where to get classB.
    The program easily works in VisualAge or in Forte, but when i tried using the command line compiler from the JDK1.3, it doesn't work right.
    They are all in the same package, and I did use the package statement to also indicate that, and they are public so that's not the problem.
    Seems, i can only compile and run programs where all the custom classes are in the same java file.
    Anybody know of a tutorial that consists of a program that uses 2 or more java files (1 custom class in each file), and then shows you how to use the command line to compile and run them?

  • Compile Error : Need help!

    Hi All,
    I try to compile 2 java files
    File1: theModel.java
    package beans;
    public class theModel
      public String setMsg()
        {return "Test programe"}
       public theModel()
      }it was not error when i compiled this file :
    c:\>javac -d tomcat\webapps\Test\WEB-INF\classes
    Arunya\bean\theModel.java
    after compiled theModel.class stored in
    C:\tomcat\webapps\Test\WEB-INF\classes\beans\theModel.class
    File2: theController.java
    import beans.theModel;
    import java.io.*;
    import javax.servlet.*;
    public class theController extends HttpServlet
    String target = "theView.jsp"
    theModel model = new theModel();
    public void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException,
    java.io.IOException
    req.setAttribute("message",model.setMsg);
    RequestDispatcher dispatcher =
    req.getRequestDispatcher(target);
    dispatcher.forward(req,res)
    }and I had a problem with this file becuase when i compiled, it had a error :
    package beans does not exits
    this is how I compiled
    c:\javac Arunya\Servlet\theController.java
    also I try this way
    c:\set classpath = c:\tomcat\webapps\Test\WEB-INF\classes
    c:\> javac Arunya\Servlet\theController.java
    but both of them had the error same
    This is my Enviroment Variables(System variable)
    CLASSPATH : C:\tomcat\commond\lib\Servlet-api.jar;
    C:\tomcat\commond\lib\jsp-api.jar;
    CATALINA_HOME : C:\tomcat
    JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
    PATH : C:\tomcat\bin;C:\Program Files\Java\jdk1.5.0_06\bin
    can you help me?
    Thank
    Arunya

    You missed semi colons (;) here and there
    sorry , don't notice this because when I wrote the code to post I forgot (;) at
    {return "Test programe"};
    String target = "theView.jsp";
    dispatcher.forward(req,res);
    but in my real code i didn't miss semi colons ,
    The problem that i want to solve is[i] I can not import package beans
    error: package beans does not exitspackage beans does not exits
    thank

  • Acrobat Error - need help! - Acrobat 9 Pro

    When I try to open an acrobat files my it trys to Open EVERY acrobat file on my computer and does so until I get the following message
    "There was an error opening this document.  The maximum number of files are already open.  No other files can be opened or printed until some are closed"
    Then I have to force quit.
    This just started happending a few months ago
    I am on a Mac OSX
    I need help!  Any suggestions?
    Debbie

    I  have a 10.5.8
    I am not that technical so not sure what you mean about applejack etc.
    Thanks for helping!
    Debbie
    Date: Sat, 10 Apr 2010 13:03:28 -0600
    From: [email protected]
    To: [email protected]
    Subject: Acrobat Error - need help! - Acrobat 9 Pro
    What version of OS X? Some people have luck by clearing their caches. This can be done with Applejack in 10.5. Onyx will work in SL.
    >

  • Exception error, Need Help!

    Need help!
    Why my java program work well under C:\, but can't under D:\Java today? It worked well even yesterday. I had tried the "Hello World", it can not work under D:\Java either.
    when I enter the "java d:\java\Hello" order(after javac of cause), those displays are here:
    Exception in thread "main" java.lang.NoClassDefFoundError: d:\java\Hello
    Caused by: java.lang.ClassNotFoundException:d:\java\Hello
    at java.net.URLClassLoader$1.run<URLClassLoader.java:200>
    at java.security.AccessController.doPrivileged<Native Method>
    at java.net.URLClassLoader.findClass<URLClassLoader.java:188>
    at java.lang.ClassLoader.loadClass<ClassLoader.java:306>
    at sun.misc.Launcher$AppClassLoader.loadClass<Launcher.java:276>
    at java.lang.ClassLoader.loadClass<ClassLoader.java:251>
    at java.lang.ClassLoader.loadClassInternal<ClassLoader.java:319>
    The Hello.java has no problem,and it worked well even yesterday!
    I just don't know what had happened.
    Someone who can help me please reply or email at [email protected]
    Thank you!

    The simple "Hello World" can work under Editplus, but can't under DOS.
    The error appears as the same. I don't know what I should do, could you tell me please?
    Thank you!First test whether environment variables had been set properlyor not
    To test :-
    1) Open cmd
    2) type java
    3) If it runs that means you have set it properly
    Then go to your program directory i.e d:\java\
    and type
    javac Hello.java //to compile it and then
    java Hello //To run it

  • General exception error need help!

    Experts,
    i am facing this problem. i connect to the net by proxy (through office Lan). none of the java applets work for me. Need help
    Java Plug-in 1.5.0_08
    Using JRE version 1.5.0_08 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\mkrishna
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading direct proxy configuration ...
    network: Done.
    network: Proxy Configuration: No proxy
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\mkrishna\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 1
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=1
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=2
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=3
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@15212bc
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@97a560
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1ea5671
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: httpCompression = true
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/liste.jar with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
    load: class ZoneFavoris.class not found.
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline/class.class with proxy=DIRECT
    load: class ZoneFavoris.class not found.
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    load: class Outline.class not found.
    java.lang.ClassNotFoundException: Outline.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: Outline.class
    java.lang.ClassNotFoundException: Outline.class
         at sun.applet.AppletClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed.
         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)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped

    Hi
    I think you need to configure proxy for the JRE
    If you are using windows Go to control panel , you will find an icon called java plugin. if you have installed multiple JRE you will find multiple icons . Select the one which is configured to browser.
    You will find a proxies tab in that window , add the proxy details there
    Hope this helps you
    Vijay

  • Java Error -- Need help

    I am getting the error below when i try to pass along values with the help of Java Beans...Can anyone explain what I am doing wrong if your at all familiar with an error similar to this one?
    org.apache.jasper.JasperException: /web/loginresponse.jsp(41,18) The value for the useBean class attribute org.mypackage.login.LoginHandler is invalid.
    Thanks,
    Jeff

    Well the documentation for this host appears here
    It seems they have Apache and Tomcat installed, and configured to handle this.
    The context path of each virtual site is: "/home/domain/public_html/WEB-INF".So your compiled servlet will probably need to be deployed to
    "/home/domain/public_html/WEB-INF/classes/org/mypackage/login/LoginHandler.class".

  • User Error Needs Help Correcting - Repeatable Tag on Custom Section Attribute

    OK, I have v.6111.  Today I am manually putting the supplier_eq_create tag on all the the existing attributes in our custom sections so suppliers can add them when we send eQs. Unfortuately, I accidently clicked on the Repeatable tag instead of Supplier_EQ_Create in a couple of instances in our Export/Staging Environment.  When I try to remove the Repeatable tag, I get the error that says " row's Repeatable status cannot be altered after the row has been activated" ... we have not actually used the repeatable functionality of the tag.  I need to know how I can remove this tag from active attributes due to human error before I import to PROD.  Can the forum help me?
    Best, Beckie

    Hi Beckie,
    As long as you are sure that no-one has consume this you can remove this tag with a database script.
    As with every script make sure that you backup your data.
    With the following script you can find the rows that contain repeatable tag for a particular section template
    select rowTemplate.* from eaSectionDynamicTagJoins rowTTagjoin
    inner join commonEARowTemplate rowTemplate on rowTemplate.pkid = rowTTagjoin.fkEAS
    inner join commonLookups tag on tag.pkid = rowTTagjoin.fkTag
    inner join commonEASectionTemplate sectionTemplate on sectionTemplate.pkid = rowTemplate.fkSectionTemplate
    where tag.Name = 'Repeatable' and langID = 0 and Category = 'EASRowDynamicTag'
    and sectionTemplate.id = '<custom section id>';
    Tags are linked to custom section row templates using eaSectionDynamicTagJoins table.
    You can remove the tag from a specific row using the following script
    delete from eaSectionDynamicTagJoins
    where fkEAS = '<pkid of the row>';
    Hope this helps. Let me know if you have any questions,
    Dmitriy

  • Ssis package error need help to fix it. though disabled all triggers and droped all the foreign keys and truncated tables on pipeline constraints.

    [PartyName1 [6672]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Transaction (Process ID 1414) was deadlocked on lock resources with another process and has been chosen as the
    deadlock victim. Rerun the transaction.".

    you need to provide Details about your package like what is source/destination.. any SQL query/where is the exact deadlock point.
    Please check the following links which may help you.
    http://blogs.technet.com/b/fort_sql/archive/2011/12/12/get-rid-of-deadlocks.aspx
    http://msdn.microsoft.com/en-us/library/ms191242.aspx
    Let us TRY this |
    My Blog :: http://quest4gen.blogspot.com/

  • Tomcat 4.0.6 503 error - Need help !

    I am running jsp and servlets in tomcat 4.0.6 server..(commercial server)...
    My application runs well in my pc.. but when i upload the webapps/xxx folder into mainwebsite_html folder in the server a 503 error with "the servlet jsp is currently unavailable"..constantly appears.. I asked for a restart and still same message appears.
    My web.xml is posted here:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>UCanExport</display-name>
    <description>UCanExport description page</description>
    <taglib>
         <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
         <taglib-location>/WEB-INF/sql.tld</taglib-location>
    </taglib>
    <taglib>
         <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
         <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>MySQL Datasource</description>
    <res-ref-name>jdbc/devDb</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>Resource reference to a factory for javax.mail.Session</description>
    <res-ref-name>mail/Session</res-ref-name>
    <res-type>javax.mail.Session</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    I have a simple jsp page ..index.jsp.. just to verify..with the following code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" session="true" errorPage="genericError.jsp" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <% response.write("no problem with jsp");%>
    </body>
    </html>
    The html pages load properly... I have a mysql database ..some background might also help.. Initially i developed the whole site in tomcat 5 and migrated it backwards to tomcat 4.0.6 to ensure compatibility with my commerical server...
    Full error message: given by browser:
    type Status report
    message Servlet jsp is currently unavailable
    description The requested service (Servlet jsp is currently unavailable) is not currently available.
    My lib folder inside my WEB-INF has servlet.jar and other jar files..
    Looking forward to get some help..
    Thanks in advance
    Arumugam

    Unfortuntely, I dont have an access to the log files.. anyways.. after troubleshooting the error message is as follows:
    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: This absolute uri (http://java.sun.com/jstl/sql) cannot be resolved in either web.xml or the jar files deployed with this application
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:115)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:146)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
         at org.apache.jsp.loginpage$jsp._jspService(loginpage$jsp.java:69)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         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.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    I have ensured that that the uri parameter value
    is same in web.xml lib files and in jsp files... i am using jstl 1.0 as this version is compatible with a older jstl and core files.
    any sugggestions..

  • When i am trying to type my licence key i get an error need help quick!

    when i am typing my serial number into adobe photoshop cs6 i get an error can someone other get me an other key please

    Nope, sorry, not on a user to user help forum.
    I hope you haven't waited for this response before taking other action.  You'll need to call Adobe customer support on the telephone to resolve licensing issues.
    Anticipating your next question, the phone number is available from Adobe's web site.  Look at each page and imagine where they might have hidden it.  Hint:  Start with MENU.
    -Noel

  • HTTP Server (Main) error need help.

    Hello,
    We are having the following error in the HTTP Server logs and need to understand what is causing this issue.
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 962577774223,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 2216708226414,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 4484450958748,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.properties
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] (10054)An existing connection
    was forcibly closed by the remote host: MOD_OC4J_0087: Got an unexpected error while calling send() to send a message to oc4j and the
    error code is 10054.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0053: Failed to call
    network routine to send out an ajp13 buffer message to oc4j.
    [Tue Dec 19 15:30:25 2006] [warn] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0027: Failed to send
    out an ajp13 message to oc4j.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0026: Failed to marshal
    a request to ajp13 message headers or send them to the web container.
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 5360624479132,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 911038360600,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 4793688799699,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 859498756624,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    Any help would be great.

    More information from the OC4J_BI_Forms application log file.
    06/12/20 07:44:35 formsweb: Forms session <78> failed during startup: no response from runtime process
    06/12/20 07:44:35 formsweb: Forms session <78> exception stack trace:
    oracle.forms.engine.RunformException: Forms session <78> failed during startup: no response from runtime process
    at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
    at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
    at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)

  • CRW32.exe error NEED HELP

    I get an error when I click on the print preview button, then I click thru the records using the right arrow in the records field at the top of the screen.  I can get to page 3 but when I click it again I get the error "crw32.exe has encountered a problem and needs to close.  We are sorry for the inconvenience." AppName: crw32.exe      AppVer: 12.2.0.290      ModName: cslibu-3-0.dll
    ModVer: 12.2.0.290      Offset: 000023a7
    Can anyone help me with this?? I have to get a job out today and I cant do anything!!

    What happens if you create a new report that has more than 3 pages of data?
    I suggest you purchase a case and get a support engineer tyo help you debug this:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Thank you
    Don

  • Itunes error need help

    I keep getting this error when opening itunes. I have deleted itunes and re downloaded. still not working. can someone help!
    iTunes has encountered a problem and needs to close. We are sorry for the inconvenience.

    Never mind I fixed this problem had to delete the apple support folder as well and then reinstall then turn off compatibility mode because I got the Quicktime failed to initialize error and Then it worked fine.

  • Documaker 12.1 - ODBC - SQL Setup Error - Need  Help

    Hi
    We are facing issues while trying to checkout/read the resources from the SQL tables. We are getting an error "An error occured getting the file". We use "ODBC" driver for connecting to SQL database and the ODBC test connection seems to run succesfully. This doesn't seems to be a connectivity issue as we are able to see that the resources are listed in IDE.
    Studio somehow is not able to read/load the data from the application data table. Do we need to set-up any access privileges for the database and tables to enable the DMStudio to access it.
    Thanks in Advance.

    Hi,
    When you run the Create New Workspace wizard in Documaker Studio and select your DBMS type it tries to deploy the tables through our ODBC connection.
    If successful it will then create the workspace with some minumum resources and query for other info like Font Cross-reference file, etc. and when done you have a complete workspace which includes INI, DFD configuration files specific to your choice of DBMS type. This workspace and it configuration files (e.g. fsiuser.ini, fsisys.ini, deflib\carfile.dfd, etc.) are needed for access to the workspace properly.
    If the wizard is unsuccessful (for reasons such as permissions, access, etc.) it will let you generate a DDL and pass it off to the qualified personnel but it expects you to either leave the studio running and continue from there or to re-run the create workspace to complete the task and configuration. If you stop at the DDL stage and don't complete the task but try and use internal defaults for the configuration files the resource may appear to deploy but they will not load upon studio preview or attempt by the publishing engine to process with them because the internal configuration does not use the appropriated datatype for the database. This situation would be classified as improper or incomplete workspace creation.
    I suspect you hit this problem. Going back and configuring a workspace to just talk to the database is not appropriate and can have undefined results.
    Hope this helps,
    -Steve

Maybe you are looking for

  • Problem Installing SQL Server 2012

    Hello,  I am currently trying to install SQL Server 2012 and I'm having a problem.  When I try to install a "New SQL Server stand alone installation..." from the SQL Server Installation Center, it gives me the error: An error occurred during the inst

  • Will documents and data in iphone increase until storage becomes full?

    iphone documents and data size

  • Math for looking up and down in 3d world

    Hello, I have a float called "heading" which is how much the player has turned (around the y axis) and a float called "verticalLook" which is how much the player has started to turn his head upward towards the sky. I call gl.glRotatef(360.0f - headin

  • Attention!  Peculiar recurring MacBook Shut-Down Behaviour!

    After using Macs my whole life, this is the one situation that truly baffles and peeves me greatly ... I have now owned a 2GHz Macbook (running 10.4.7) for about two months. When I go to shut the machine down, (primarily by way of the apple icon in t

  • W540 with an external GPU, would it be possible?

    Hi everyone, I was wondering if it would be possible to connect an external GPU trough the Express card adapter on my W540.I would use this devicehttp://www.banggood.com/EXP-GDC-Laptop-External-PCI-E-Graphics-Card-p-934367.htmlWith an AMD Radeon r9 2