Using a Compiled Java Class --- Error

Hi All,
I am new to jsp tech. I am using 'Sun Java system application web server'.
I am getting following error when running ch06_02.jsp :
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 JSP
Generated servlet error:
[javac] /nfs/bxslnx/home/bxs/install/SUNWappserver/domains/domain1/generated/jsp/j2ee-modules/__default-web-module-server/org/apache/jsp/jsp/Examples/ch06/ch06_005f02_jsp.java:6: '.' expected
[javac] import ch06_01;
[javac] ^
[javac] 1 error
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:88)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:337)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:429)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:489)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:468)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
     sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     java.lang.reflect.Method.invoke(Method.java:585)
     org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
     java.security.AccessController.doPrivileged(Native Method)
     javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
     org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
     org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
My two files are :
ch06_01.java
public class ch06_01
public ch06_01()
public String msg()
return "Hello from JSP!";
ch06_02.jsp
<%@page import="ch06_01" %>
<HTML>
<HEAD>
<TITLE>Using a JavaBean</TITLE>
</HEAD>
<BODY>
<H1>Using a JavaBean</H1>
<% ch06_01 messager = new ch06_01(); %>
The message is: <%= messager.msg() %>
</BODY>
</HTML>
Please help me ....... I don't know whats going wrong . I m using Suse OS.
Thanks
Basant

Hi
You have to place the xml parsing library inside the lib directory under the WTK.
Mihai

Similar Messages

  • Cannot compile java classes error

    After mimicing the 'Add the databse exception handling to the FulfillOrder process' in my prototype when I attempt to compile it I get the error 'Error: Failed to compile classes.
    Failed to compile the generated BPEL classes for "providerEnrollmentMain".
    What I am supposed to do with this error?

    The prototype is Medicaid provider enrollment. A doctor who wants to serve Medicaid patients must be enrolled with the state to receive payment for services. The prototype is a self-service enrollment. It is already fairly sophisticated with 6 services being called by the main flow. I recently added a DB write activity and then proceeded with the DB exception handling example from the OrderBooking tutorial. The error occurred then.

  • Suffering an complie error when trying to compile java class in EBS11i

    Hi,
    When I trying to compile java classes with which imported the HttpServletResponse class, will get the follow error message:
    package javax.servlet does not exist
    cannot resolve symbol
    symbol : class HttpServletResponse
    It seems the javax.servlet package is not included in the classpath. But I checked the $CLASSPATH, it seems no problem.
    echo $CLASSPATH
    /u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/charsets.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u02/applvis/viscomn/java/appsborg2.zip:/u02/applvis/visora/8.0.6/forms60/java:/u02/applvis/viscomn/java
    Does anyone know the reason?
    environment: ebs 11i
    Thanks&Regards,
    Xiaofeng

    resolved this issue.
    1. Edit $APPL_TOP/admin/adovars.env file -
    Add the following jar files to the AF_CLASSPATH line -
    Full path of /...../iAS/Apache/Jsdk/lib/jsdk.jar
    Full path of /...../iAS/Apache/Jserv/libexec/ApacheJServ.jar
    2. Bounce the concurrent manager in order to have the changes take effect.

  • Go to Java Class Error

    When I highlight a keyword or class and right click to
    'Go to Declaration' or 'Browse Javadoc' I get:
    Go to Java Class Error
    Unable to determine browse target.
    Help
    Thanks

    Hi! Welcome to the forums.
    Try reading this post.
    http://supportforums.blackberry.com/t5/BlackBerry-World/solution-on-isssues-with-Facebook-for-BlackB...
    Cheers!
    Click " Like " if you want to Thank someone. If Problem is resolved accept it as a "Solution ", so that others can make use of it.
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • Ant or what tool to compile Java Classes

    For the past year I have been using Windows command window to compile Java Classes for my Servlets, Java Beans and Helper classes. I use Cold Fusion studio as my IDE for creating the Java classes. All of my Web Applications use MVC for Forms feeding small databases and I only have around 7 to 10 class files per Web application.
    Should I start to use Ant and/or what is recommended so I can keep up with current technology instead of using Windows Command Window to compile my Java classes?

    Try the following link.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    The download in the above link has NWDS and portal as well. Unzip the file and install NWDS studio.

  • Dynamically Create and Compile Java Classes

    Hi,
    I have a requirement to dynamically create and compile Java classes and would like some advice on the best method to do so.
    Basically the project I am working on involves creating "Factors". Factors are items that have both attributes and weights so for example Factor A could have attribute B with weight 0.76, and attribute C with weight 1.33. There are a number of methods common to all factors such as calculateTotal, identify etc etc.
    At the moment the application has 5 factors, but there is a requirement to dynamically add and remove factors on the fly.
    I current solution I have been considering is using XML to describe the new class, build up the class and compile it; something along the lines of what is descibed at
    http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-xslt_p.html
    however i would like to consider all options.
    Any help with this is greatly appreciated.

    You want to dynamically create and compile Java classes.
    I would try the following:
    (1) Write the Source code of the new class into a text file with the name MyNewClass.java
    (2) compile this new .java-file with Runtime r = getRuntime();
    try {
        r.exec ("javac MyNewClass.java");
    } catch (IOException e) {
        System.out.println("ooops " + e.getMessage());
    } (3) somehow try to load that new class, maybe using ClassLoader cl = ClassLoader.getSystemClassLoader();
    cl.loadClass("MyNewClass");

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • Nokia C3 Java Class Error

    Hi all,
    I have just upgraded my Nokia C3 to latest software update. 
    After this whenever iopen any application (e.g. ebuddy or rocket talk) it shows java class error not found & asking me to delete some items. 
    I checked my memory the Memory card has 1 gb Free space then why should it ask to free memory
    someone having faced this issue kindly assit.
    currently unable to open any application that i download from net.
    regards,
    thads

    HI,
    Can you try restore factory settings?
    Plese remember to backup you phone's data.
    If your application you installed before is not working, uninstall them and install again.
    I hope this helps.
    Br
    Mahayv

  • Error while compiling java class (ora-29535 source requires recompilation)

    Hello. I`m new with oracle and i`m having a problem with java classes. Few days ago i loaded java classes (loadjava) from jar file(biojava3-structure-3.0.2.jar) and compiled ( everything compiled with status valid). Now i`m writing my own class and i can`t import classes from biojava3. I`m getting error:
    Projekt:7: cannot access org.biojava.bio.structure.Atom
    bad class file: null
    class file has wrong version 50.0, should be 49.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import org.biojava.bio.structure.Atom;
    I have tryed to change jdk version in netbeans from 1.7 to 1.6. I created java class in sql plus That still not resolved my problem.
    Please help me.

    consider posting in Java forum instead of Database forum
    https://forums.oracle.com/forums/category.jspa?categoryID=285

  • Compiling java classes from JDeveloper

    Hi guys... perhaps this thred need to be created in JDeveloper fourm, it so please let me know.
    I generated the classes from a web service which complie without errors and exedcute correctly. When trying to compile the main stub in Oracle database, I get an error "CONNOT RESOLVE SYMBOL" reviewing the java class, I see that extends the wrapper generated by Jdev. So I try to complie the extendable class, after trying to generate and compile it in the database, I get the error: "class$ is reserved for internal use" The code has the next line:
    static java.lang.Class class$(java.lang.String param1)
    Is this error launched from the oracle database? My guess is that maybe Im missing some library or something and thats why I can create the such Java Name procedures. But I will like if anyone could guide me through this exception.
    Thanks
    JP

    Do you have .jar (or the .class) files created after the compile from JDeveloper?
    If you do, you can load all of them using the command line utility loadjava:
    $ loadjava
    loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
    $

  • Problem to compile .java class

    hi,
    i'm using/creating a package of classes....and as per my knowledge there is no need to write explicit import if u r importing/using an instance of class1 in other class2 in the same package.....
    I'm doing the same.....
    but the problem arrises here that....while compiling class2 the error occures..........
    D:\tomcat\webapps\Books\WEB-INF\classes\BookForm.java:6: cannot resolve symbol
    symbol : class Book
    location: class BookForm
         private Book book =new Book();
    why so????? as i have included the package in CLASSPATH also..........
    PLZ reply....
    .....Amita

    You don't need to import classes that are in the same package but they do need to be in the classpath. My guess is that you are compiling BookForm.java from the D:\tomcat\webapps\Books\WEB-INF\classes directory. Either add "D:\tomcat\webapps\Books\WEB-INF\classes" explicitly to your classpath or add a dot (".") to your classpath.

  • Compiling java classes into dll

    Hi,
    Just trying to find out is there anyway I can compile the java classes into dll?
    If I am to use JNI and C++, will the dll compiled be able to work well in a platform that does not have JVM?
    Thank you.

    Hi,
    Just trying to find out is there anyway I can
    an compile the java classes into dll?
    No, but you can start the jvm and run your main class from a dll using jni. And, if you do that, you'll of course need a JVM on the client that'll be running your code.

  • Compiling Java Class in Workshop

    May I ask a dumm question: how to compile a java class in Workshop? Application
    Build or Project Build does not seem to do the work.
    Thanks.

    "Gerald Nunn" <[email protected]> wrote:
    "Jeff" <[email protected]> wrote in message
    news:406455b2$[email protected]..
    May I ask a dumm question: how to compile a java class in Workshop?Application
    Build or Project Build does not seem to do the work.Works fine for me, what type of project is the java file in?
    Gerald
    Thanks for the reply.
    It is a web project. My Java files are under the following folder tree:
    eSheetWeb\WEB-INF\classes
    I have run Build Project against eSheetWeb few times. No errors but java files
    just not getting compiled to class. Also is there a way to just compile without
    run the entire Build?

  • Compile Java class

    Hi everyone,
    I am new to WSAD env. Can anybody tell me "How I can compile a Java class using WSAD?".After compilation, where does it(the dir structure and location) keep the .class file?
    Thanks in advance

    In a project I have in WSAD Integration Edition 5.1, a .java file is compiled to a .class file in
    /WebContent/WEB-INF/classes/
    I'm not sure if that was your question if it relates to JavaServer Pages

  • Unable to compile java classes in NWDS- "JSPDynPage cannot be resolved "

    Hi All,
    I am trying to write small JSPDynaPage when i am getting following complilation error in my Java classess.
    1) "PageProcessorComponent cannot be resolved or is not a valid superclass"
    2) "JSPDynPage cannot be resolved or is not a valid superclass"
    I did check for the existance of
    com.sap.portal.htmlbbridge.jar & prtapi.jar which is present in my C:\NetWeaverDevStudio\eclipse\plugins\com.sap.ep.applicationDevelopment and
    ECLIPSE_HOME=C:/NetWeaverDevStudio/eclipse but for some reason i am unable to compile my classes. Please help me to resolve this issue.
    Thanks,
    Manju

    Try the following link.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    The download in the above link has NWDS and portal as well. Unzip the file and install NWDS studio.

Maybe you are looking for

  • Running 3 displays on a Mac Pro with a single ATI Radeon HD 5770?

    Hi all, I am trying to run 2 19" widescreen monitors with VGA connections and a Sony 32" tv simulantaneously on my Mac Pro. Was wondering if anyone could offer some knowledge on this highly discussed topic...As far as I am aware the main problems tha

  • Dispacther gets stopped

    Dear All, I am facing a problem with IDES system. When I start the SAP from MMC console in windows 2003 with oracle database (ECC 5.0) the dispatcher gets stopped immediately after it tries to start the work process. All the work process ends up and

  • Problem in moving the code from one system to other system

    Hi, I am working on building a webservice. I started building the EJB teir compnents like (Entity beans, Sessions beans, data base schemas) using the SUN ONE STUDIO 5 and SUN ONE App Server 7.0. The problem, if I want to move the same entity beans co

  • I want to update line level record in form

    Hi I have two blocks 1st Header block and 2nd Line level block. When i update line level block then changed data should get updated in the respective table. So my question is on which trigger/event i should wirte code to so that it will work. Thanks

  • Do I need to enable clientmanagement?

    If I never reference the client scope, do I need to enable clientmanagement in application.cfm. I'm using CF6.1 and 7. I currently have variablestorage in a db and I occasionally have problems with the variablestorage db locking and blocking the cf a