J2EE app server not able to compile JSP

Hi,
I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
Thank you,
Deepika.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     java.lang.reflect.Method.invoke(Method.java:324)
     org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
     java.security.AccessController.doPrivileged(Native Method)
     javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
     org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
     org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)

This is a known issue.
Here's an explanation of the behaviour you are seeing:
The misleading error message is printed only in the case where a javac
compilation error line number cannot be mapped back to a line number
in the JSP source code.
The internal representation of a JSP element ("JSP node") in the JSP compiler
contains the following info:
- The begin line number of the JSP element in the JSP page
- The begin and end line numbers ("range") of the Java code that was
generated for the JSP element
When attempting to map a javac error line number back to the JSP
source line, we determine the range into which the javac error line
number falls, and retrieve the JSP source number of the JSP element
associated with that range.
However, in some cases, it is impossible to trace a javac error line
number back to the JSP element that caused the error. For example,
consider the following scriptlet:
<%
String query = request.getParameter("query");
if(query != null) {
out.println(query);
} else {
out.println("(null)");
// } // <-- !Missing brace syntax error
%>
Since the JSP compiler wraps the generated code into a
try-catch-finally block, the above syntax error in the scriptlet
causes havoc with that try-catch-finally block, and results in 3 javac
errors:
<file>jsp.java:<line1>: 'catch' without 'try'
} catch (Throwable t) {
^
<file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
try {
^
<file>jsp.java:<line3>: '}' expected
Notice that all of the above javac error numbers are outside the range
of the java line numbers corresponding to the scriptlet that caused the
error, and therefore cannot be mapped back to any line numbers in the
JSP page source.
AS 8.0 PE does not handle this case correctly, and prints out the
misleading error message (though the real error message can be found
in the server log).
Notice that this problem is going to be fixed in AS 8.1, so that if a
javac error line number cannot be mapped back to a JSP page line
number, the javac error is still returned to the client.
In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
If you still have any problems, send me your JSP, and I will take a look at it.
Thanks,
Jan

Similar Messages

  • Peoplesoft App Server - Not able to boot Domain

    Hi all.
    I've installed Peoplesoft 9.1, PT8.52 (Oracle 11G 64 bit database) on windows 2008 server 64bit and an HRMS DEMO DB on a Virtual machine PSDEMOVM.
    I also installed Oracle 11G client 32, and configured a PS client workstation on another virtual machine PSDEMOVS
    I did all the steps and now, from the server machine, I entered PSADMIN and created a domain following all the configuration steps.
    I am not able to serial boot this domain, it shows the following errors:
    'Error Application Initialization failure
    Error: Fatal Error Encountered, initializing user error handler'
    And the appserver.log file shows the following errors:
    'PS General SQL Routines: Missing or invalid version of SQL Library PSORA (200,0)
    Database Signon: Could not sign in to database PSHRDEMO with user PS'
    So I thought it is because the unavailability of the Lib32 on the server machine.
    So I installed Tuxedo on the client machine, to be able to access psadmin from there.
    But unfortunately, when I choose to administer domain from the client machine, I am not able to see the domain that was created from the server, and when trying to create a new one, it says 'No available templates'.
    I really need guidance through this asap.
    Best Regards and Thx,
    Bechara
    Edited by: 964365 on Oct 30, 2012 3:37 AM
    Edited by: 964365 on Oct 30, 2012 3:41 AM

    PeopleTools 8.52 on Windows does indeed require the 32 bit client to connect to the database. If you're getting an "invalid version of SQL library PSORA" that means that the Application server is using the incorrect Oracle client to connect to the database. There's an "Add to Path" variable under domain settings in the Application server domain configuration file which has to point to the 32 bit client BIN directory.
    In short; navigate to the PS_HOME on the server PSDEMOVM (if your PS_CFG_HOME is the same as PS_HOME, otherwise this directory will be under %USERPROFILE%\psft\pt\ by default or the directory which you specified). Open the appserv directory and open the directory with the name of your domain. Locate the configuration file for your domain ({DOMAIN}.cfg) and open it in notepad. Scroll down until you reach the domain settings and change the add to path variable to point to the bin directory of your 32-bit client.

  • Not able to compile JSP files in MII

    Hi All,
    I am trying to execute the JSP file by connecting to SQL Server but its not getting compiled. Any prerequsite to be enabled or to be installed to compile the .JSP files.
    Error as below :-
    Error stream
    contains:"E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:16:
    'class' or 'interface' expected
    import javax.servlet.*;
    ^
    E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:17:
    'class' or 'interface' expected
    import javax.servlet.http.*;
    ^
    E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:18:
    'class' or 'interface' expected
    import javax.servlet.jsp.*;
    ^
    3
    errors
    at
    com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:187)
    at
    com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compileExternal(JavaCompiler.java:100)

    I myself fixed the problem.It was the problem with J2SE version.I had J2SE 1.3.But the J2EE beat2 supports only J2SE 1.3.1.So guys if any one of u is trying J2EE beta2 pls check with J2SE version u have.It has to be J2SE 1.3.1.I almost wasted 3 days in figuring out that.

  • Not able to compile servlet

    Hello
    I would like some one to help me.
    I have WindowsXp professional on my Laptop. I downloaded jdk and I am able to compile and run the core java files.
    I downloaded j2sdk1.4.2_10 from the website www.java.sun.com. and then set the path in the environment variables. But in the command promt I was not able to compile the servlet.
    Could you please guide me about what more has to be done so that The servlet can compile.
    Thanking you

    **MAJOR SPAMMING SCUM BAG ALERT**
    I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
    and then I found this....
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
    You sir -> Michael Byrd -> are a scum sucking dirtbag.
    To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
    This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
    You are scum. Your company is scum. I hope you rot in hell.

  • NOT able to compile servlet and EE java files

    hi
    i am not able to compile java files of servlet
    it is showing cannot resolve symbol for servlet classes
    since i have installed tomcat j2sdk1.4.2_06 and also facing problem with the classpath since i have to set the classpath everytime as i have already created it in environment variables
    show me the way out

    **MAJOR SPAMMING SCUM BAG ALERT**
    I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
    and then I found this....
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
    You sir -> Michael Byrd -> are a scum sucking dirtbag.
    To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
    This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
    You are scum. Your company is scum. I hope you rot in hell.

  • J2EE App Server with virtual servers

    H! !
    I have a Win2K with J2EE App Server 1.4. Everything is working fine. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product.
    I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
    Now I want to enter to any of the 3 domains freelyand execute JSP apps. But I don't want to enter ports numbers like this:
    http://www.mytest.com:8081/hello.jsp
    I just want to enter:
    http://www.mytest.com/hello.jsp
    So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
    Name: http-port80
    IP Address: 0.0.0.0
    POrt: : 80
    Return server name: <blank> (Should I put here the name of the computer?)
    Then I defined a new virtual server using the http-port listener. I set the following fields:
    ID: mytest
    Hosts: www.mytest.com (Should I put here the name of the computer?)
    HTTP Listener: http-port80 (This is the name of the port listener)
    Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
    But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
    Then when I restart the app server I got the message on the log: "Port already in use".
    I want to use the same http-listener because I don't want to enter http://www.mytest2.com:<port>
    Any ideas how to handle this?
    Am I doing something wrong on the configuration?
    Thank you very much!!

    What I want is to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
    http://www.mytest.com:8081/hello.jsp
    I just want to enter:
    http://www.mytest.com/hello.jsp
    As far as I understand only by having an http-listener linked to the virtual web server I can achieve this goal, right? Or Am I on the wrong direction?

  • What's going on with the App Store not able to update 2015

    What's going on with the App Store not able to update any apps 2015?

    Apple is having server problems affecting App Store, iTunes, iCloud, etc…
    Check the Apple Service Status(***) page… http://www.apple.com/support/systemstatus/ Wait for all systems to show green.
    Here is what Apple's message says…
    Multiple Store Services - All users are affected
         Customers may be unable to make purchases from the App Store, iTunes Store,
         iBooks Store, or Mac App Store.
    iCloud Mail - All users were affected
         Users may have been unable to access iCloud mail.
    iCloud Account & Sign In - All users were affected
         Users may have been unable to sign in.
    This means no downloads, updates, iCloud and other issues. You may get pop-up windows asking you for password for iCloud, etc…
    Try again after it's all green on status page.

  • I am not able to compile a program  on my mac...

    I am not able to compile a program  on my mac; i am getting the following message :"Class names, 'ClassName.Java', are only accepted if annotation processing is explicitly requested".  I am new to programming, and I am using a MAC. Any suggestions?  I am typing: "Javac ClassName.Java" at the command prompt.

    You might want to be posting to the developer forum here:
    https://discussions.apple.com/community/developer_forums

  • Not able to compile wrapped package bodies.

    Hi All
    Can anybody pls help me finding me the reason why I m not able to compile .plb (wrapped package body). There are no compilation errors. But when I run the .plb file (as @xyz.plb), sqlplus window hangs. No error shown. Everytime I had to close the window after waiting for 8-10 minutes.
    This is happening only with 11 files out of 200.Rest were compiled.
    Any ideas? Do we have any other way to wrap than using pl/sql wrap utility or pl/sql plug-in for wrapping(which is actually the same as former)??
    ThanksInAdvance!!
    Keep striking the iron until it's hot!

    yes, I did check for locks from pl/sql developer only. No Locks.
    I waited for 10 minutes for a 6 kb .plb file to get compiled. But had to close the session after that.
    I am using oracle 10g, pl/sql developer 7.1.0.1337
    sql*plus Release 10.2.0.2.0

  • Not Able to compile Servlet from ?

    Hi All,
    I am not able to compile Servlet from my package:
    1) I Have set the CLASSPATH Variable using below line in System Variables:
    C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
    2) Also Set the CATALINA_HOME with value
    C:\CC4\prog\jakarta-tomcat-4.1.30
    as per above setting servlet should be compiled but still i m getting error message:
    1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
    er.java
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    2 errors
    2) Error while compiling other file:
    C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
    textListener.java
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    2 errors
    So what could be the posible solution here :
    do reply !!!
    please
    Thanks
    prabhat

    I have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.

  • Not Able  to Compile Java code

    Hi Java Gurus
    I am not able to compile this code Pl help
    class For {
    public static void main (String [] args) {
    int I = 0;
    show:
         if (I < 2) {
    System.out.print("I is " + I);
    I++;
    continue show;
    }

    class For {
    public static void main (String [] args) {
          for(int i = 0; i < 2; i++){
                  System.out.print("I is " + i);
    }this does the same as your program: the for loop is the best for this, but i agree with the others read some tutorials on loops in java. As posted before java has no concept of the GoTo syntax, loops or recursion are your only options

  • HT6147 With the latest iOS 7 update (Feb 2014) is anyone else experiencing trouble with the App Store not able even to load updates for existing apps, and unable to download new apps?

    With the latest iOS 7 update (Feb 2014) is anyone else experiencing trouble with the App Store not able even to load updates for existing apps, and unable to download new apps?

    With the latest iOS 7 update (Feb 2014) is anyone else experiencing trouble with the App Store not able even to load updates for existing apps, and unable to download new apps?

  • My iPhone 4 with iOS 5, is stuck in the Facebook app and not able to do any operation.. Im not even able to go to Home.

    My iPhone 4 with iOS 5, is stuck in the Facebook app and not able to do any operation.. Im not even able to go to Home. I connected to iTunes in my PC, it was not able to sync. I tried calling my number from other phone, but it went to voice mail.

    Hold the Lock & Home buttons simultaneously for 10-15 seconds until the phone restarts and you see the Apple logo. You will not lose any data.

  • I got another mail regarding mountain lion free upgrade program !! But its saying OS X server not able to download ?

    I got another mail regarding mountain lion free upgrade program !! But its saying OS X server not able to download ?
    Plz Help

    You are not alone in this, Maddy. I had the same thing happen. Apple obviously sent incorrect codes that redeemed for OS X Server instead of Mountain Lion. I called Apple Care who said that it must be some server fluke and that they would get back to me within 24 hours.

  • EJB Deployment in J2EE Apps Server

    Hi,
    Can any one please help me in deploying EJB in J2EE Apps server?I have installed J2EE Apps Server 9 in my machine.Can any one please suggest me a document regarding EJB deployment in J2EE apps server or help me regarding this?
    Thanks in advance,
    Aravindhan.C

    Go to https://j2ee-sdk.dev.java.net/ and checkout "Methods of deploying applications" under the recent articles section; The tutorial link present in this page (under the references section) will also be useful. The samples bundle has reference samples which will also be useful

Maybe you are looking for

  • IDVD creating disk image larger than it should be.

    I exported an iMovie to iDVD and set up the dvd using one of the supplied themes. I checked the disk info to make sure it will fit the DVD-R. The program says my file should be about 3.9 Gigs. The disk burn was incomplete so I tired to create a disk

  • Apple's Camera Compatibility list

    I am wondering if anyone knows what this list means. This is how Apple words this: Camera compatibility Aperture supports digital cameras from a wide variety of manufacturers. It offers optimized support for the RAW formats of the numerous digital SL

  • Using part of an already set up template...

    When I go to make a new site, they have all those templates. I love part of one, its called darkroom and if you pick the "welcome" page of darkroom it has 4 pictures of different sizes with white borders around each picture. And you can just drop in

  • RV082 RV042 RV042G v4 firmware bug?

    Models affected:  RV082 v3 (primarily)  -  also RV042 v3 and RV042G Symptoms: 1) web admin GUI stops responding 2) internet speed slows or stops completely Temporary Fix: 1) power-cycle the router, everything works fine for a random period of time No

  • C++ Runtime error on Rfc_Read_Table

    Hi, I got C++ Runtime Error on RFC_Read_Table. The following is the error message: "Program: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." The connec