Appserver unable to Compile JSP pages

Hello
I have deployed a webapplication on SunONE application server installed on a SunOS 5.8 box. When I try to access any page , I keep getiing errors indicating that the page could not be compiled. An attempt to compile the page seperately using the javac installed with the App server however succeeds.
The errors I get are as shown. The same webapp runs fine when installed on SunONE application server installed on Windows 2000 machine. Any help would be greatly appreciated
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 175 in the jsp file: /filesfolders/process_parameters.jsp
Generated servlet error:
/actu01/appserver7/appserv/instances/server1/generated/jsp/j2ee-modules/ap/_jasper/_filesfolders/_index_jsp.java:1962: Variable jbs may not have been initialized.
bFilter = jbs.isDocChanFiltersEnabled();
^
An error occurred between lines: 175 and 176 in the jsp file: /filesfolders/process_parameters.jsp
Generated servlet error:
/actu01/appserver7/appserv/instances/server1/generated/jsp/j2ee-modules/ap/_jasper/_filesfolders/_index_jsp.java:1970: Variable bFolders may not have been initialized.
boolean bEmptyRS = !(bFolders || bExecutables || bDocuments);
Thanks
-Aniruddha

I am having a similar problem on Windows 2000. Servlets run but jsp's all hit this error. Here is a copy of the log:
[15/May/2003:07:40:16] INFO ( 1924): CORE1116: Sun ONE Application Server 7.0^M
[15/May/2003:07:40:20] INFO ( 1924): CORE5076: Using [Java HotSpot(TM) Server VM
, Version 1.4.1_01] from [Sun Microsystems Inc.]^M
[15/May/2003:07:40:35] INFO ( 1924): JMS5023: JMS service successfully started.
Instance Name = domain1_server1, Home = [C:\tools\as7se\imq\bin].^M
[15/May/2003:07:40:40] INFO ( 1924): JTS5014: Recoverable JTS instance, serverId
= [100]^M
[15/May/2003:07:40:41] INFO ( 1924): RAR5060: Install JDBC Datasources ...^M
[15/May/2003:07:40:41] INFO ( 1924): RAR5059: Binding [JDBC DataSource Name: jdb
c/jdbc-simple, Pool Name: PointBasePool]^M
[15/May/2003:07:40:42] INFO ( 1924): JMS5015: Install JMS resources ...^M
[15/May/2003:07:40:44] INFO ( 1924): WEB0100: Loading web module [webapps-simple
] in virtual server [server1] at [webapps-simple]^M
[15/May/2003:07:40:48] INFO ( 1924): HTTP3072: HTTP listener http-listener-1 [ht
tp://LINDENBERGR-LT01:80] ready to accept requests^M
[15/May/2003:07:40:48] INFO ( 1924): CORE3274: successful server startup^M
[15/May/2003:07:40:48] INFO ( 1924): CORE5053: Application onReady complete.^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: java.lang.ClassFormatE
rror: sun/tools/java/Parser (Illegal constant pool index)^M
[15/May/2003:07:42:53] SEVERE ( 1924): StandardWrapperValve[jsp]: Servlet.servic
e() for servlet jsp threw exception^M
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322
)^M
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)^M
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)^M
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(St
andardWrapperValve.java:720)^M
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrap
perValve.java:118)^M
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperVa
lve.java:278)^M
at java.security.AccessController.doPrivileged(Native Method)^M
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:274)^M
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:505)^M
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:212)^M
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:505)^M
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:203)^M
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:505)^M
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProce
ssor.java:157)^M
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)^M
^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.defineClass0(Native Method)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.defineClass(ClassLoader.java:502)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
.SecureClassLoader.defineClass(SecureClassLoader.java:123)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.defineClass(URLClassLoader.java:250)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.access$100(URLClassLoader.java:54)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader$1.run(URLClassLoader.java:193)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
.AccessController.doPrivileged(Native Method)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.findClass(URLClassLoader.java:186)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClass(ClassLoader.java:299)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.misc.Laun
cher$AppClassLoader.loadClass(Launcher.java:265)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClass(ClassLoader.java:255)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClassInternal(ClassLoader.java:315)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.defineClass0(Native Method)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.defineClass(ClassLoader.java:502)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
.SecureClassLoader.defineClass(SecureClassLoader.java:123)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.defineClass(URLClassLoader.java:250)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.access$100(URLClassLoader.java:54)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader$1.run(URLClassLoader.java:193)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.security
.AccessController.doPrivileged(Native Method)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.net.URLC
lassLoader.findClass(URLClassLoader.java:186)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClass(ClassLoader.java:299)^M
@[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.misc.Laun
cher$AppClassLoader.loadClass(Launcher.java:265)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClass(ClassLoader.java:255)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at java.lang.Cla
ssLoader.loadClassInternal(ClassLoader.java:315)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.tools.jav
ac.BatchEnvironment.parseFile(BatchEnvironment.java:453)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at sun.tools.jav
ac.Main.compile(Main.java:486)^M
[15/May/2003:07:42:53] WARNING ( 1924): CORE3283: stderr: at org.apache.ja
sper.compiler.SunJavaCompiler$JavacTask.run(SunJavaCompiler.java:240)^M
Thanks,
Bob

Similar Messages

  • Problem in compiling JSP page in OC4J 10.1.3.0.0

    Dear all,
    I started the ocj4 container that came with Jdeveloper. After starting the ocj4 server, I try to test it with the Servlet and JSP example. The Servlet Example work fine but I encounter the following error when I run the JSP example.
    2006-01-12 11:08:39.379 NOTIFICATION J2EE JSP0008 Unable to dispatch JSP Page :Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\Program Files\Oracle\j2ee\home\application-deployments\default\defaultWebApp\persist
    ence\_pages\_examples\_jsp\_jsp2\_el\_basic_2d_arithmetic_2e_jsp.java</H3><pre><
    /pre>
    I think this should be a setup problem, please kndly advise.

    After reading the theads in the forum, I am able to get the jsp running by using full path to specify the java executable.
    e.g. C:\Program Files\Java\jdk1.5.0_02\bin\java -jar oc4j.jar
    This should be a path problem. After I set the path variable correctly
    i.e. add C:\Program Files\Java\jdk1.5.0_<version>\bin to PATH environment variable. It work fine. I hope this help the newbie like me. :D
    Indeed, I wonder why we need two jdk for the oc4j. Follow the instruction, I need to install a jdk. However, I find there is another jdk under $ORACLE_HOME\jdk. This is make the situation confusing and saw quite a lot of threads are related to this problem long time ago!

  • Compile jsp page

    Hi,
    I hope someone could help me there is a point i haven't undeerstood!
    I want to print data from a base to a jsp.
    So i have created my driver and a bean to access my base.
    I compile my bean and the driver without any pbm(they belong to a package).
    But i can't compile my jsp page, impossible to find my package when compiling!!
    There is my so simple code:
    <%@ page language="java" import="Beandb.FieldBean" %>
    <jsp:useBean scope="page" id="FieldBean" class="Fieldbean" type="FieldBean" />
    <%
    String lang=request.getParameter("lang");
    System.out.println("language selected: "+lang);
    %>
    <%
    FieldBean.connect();
    Resultset RS = FieldBean.getResults(lang);
    if (RS != null)
    RS.next();
    %>
    <HTML>
    <head>
         <title>WELCOME ON SOUTH EUROPE INTRANET</TITLE>
    </head>
         <body>               
                   <%= RS.getDate(DATE_FIELD) %>
                   <%= RS.getString(TITLE_FIELD) %>
                   <%= RS.getString(CONTENT_FIELD) %>     
         </body>
    </HTML>
    <% } %>
    there are some of my error messages(3 only!!!):
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 2 in the jsp file: /welcome/welcome.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\hollister\welcome\welcome_jsp.java:43: cannot resolve symbol
    symbol : class FieldBean
    location: class org.apache.jsp.welcome_jsp
    FieldBean FieldBean = null;
    ^
    An error occurred at line: 2 in the jsp file: /welcome/welcome.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\hollister\welcome\welcome_jsp.java:45: cannot resolve symbol
    symbol : class FieldBean
    location: class org.apache.jsp.welcome_jsp
    FieldBean = (FieldBean) pageContext.getAttribute("FieldBean", PageContext.PAGE_SCOPE);
    ^
    An error occurred at line: 2 in the jsp file: /welcome/welcome.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\hollister\welcome\welcome_jsp.java:48: cannot resolve symbol
    symbol : class FieldBean
    location: class org.apache.jsp.welcome_jsp
    FieldBean = (FieldBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Fieldbean");
    ^

    I rename the id of the bean and change it too in my code.. But i still have a problem. Impossible to compile because of my package Beandb isn't find(message error: package Beandb does not exist.
    Whereas my Bean: FIeldBean belong to this package(i'm sure).
    I use tomcat, and there is my three:
    %hollisterpath%\welcome\welcome.jsp
    %hollisterpath%\WEB-INF\CLASSES\Beandb\FieldBean.class (compiled without any problem).
    I indicate in my classpath:
    %hollisterpath%\WEB-INF\CLASSES;%hollisterpath%\WEB-INF\CLASSES\Beandb;.\
    Does I have somewhere else to declare my package??
    Thanks for any response!!

  • Unable to compile .jsp files with Jakarta Tomcat 5.5.3

    Hello,
    I am unable to reflect the changes that I am making in my .jsp files on my server. I am using Fedora core 4. It's like the .jsp files are not being compiled anymore. Please help! I would greatly appreciate any feedback. Thanks for your time.

    Thanks for your reply. My .jsp files where working just fine before I changed the layout of the output. Even making changes to a simple file that contains: <% out.println("Welcome to the jsp page!"); %> to the following: <% out.println("Welcome to the jsp page! Today is the day!"); %> does not work. I have cleared the browser by deleting all cookies, temp files, history, etc. The changes to my file are not being compiled. I thought that in JSP 2.0 changes to your files where compiled automatically. Am I missing something? Please help!

  • Cannot compile JSP pages in Tomcat 5.0.28

    Hi,
    I'm new to Tomcat and this has been bothering me for days now.
    I have (seemingly) correctly installed Tomcat v5.0.28 and am currently in the process of testing my environment with simple html/jsp pages.
    My server starts up fine with no error messages.
    Testing the server I can access the .html file fine, however I get a HTTP 404 error for the .jsp: The requested resource (/hello/hello.jsp) is not availableI have done the following since installation:
    1. Installed Tomcat to C:\Program Files\jakarta-tomcat-5.0.282. Set the environment variable JAVA_HOME to the value C:\Program Files\Java\jdk1.5.0 (base directory of my java installation)
    3. Even added ;C:\Program Files\Java\jdk1.5.0\bin to the environment variable Path (just in case, for javac)
    4. Enabled the invoker sevlet by uncommenting:
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
        </servlet>and
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>in conf/web.xml
    5. Added an access log valve to locahost
    6. Set ant fork compiles to seperate JVMs:
        <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
                <param-name>fork</param-name>
                <param-value>true</param-value>
            </init-param>
            <init-param>
                <param-name>xpoweredBy</param-name>
                <param-value>false</param-value>
            </init-param>
            <load-on-startup>3</load-on-startup>
        </servlet>6. Installed the .html and .jsp pages to folder %CATALINA_HOME%/webapps/ROOT/helloNow when I bin/startup.bat Tomcat starts without anu error messges. In a browser I can now access http://localhost:8080 and http://localhost:8080/hello/hello.html but not http://localhost:8080/hello/hello.jspHere are my logfiles (in debug mode) for performing the above actions and then shutting down:
    catalina_log.txt
    2006-04-29 18:29:02 EngineConfig: EngineConfig: Processing START
    2006-04-29 18:29:24 EngineConfig: EngineConfig: Processing STOPlocalhost_log.txt
    2006-04-29 18:29:01 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2006-04-29 18:29:01 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2006-04-29 18:29:01 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2006-04-29 18:29:02 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2006-04-29 18:29:02 StandardContext[/servlets-examples]SessionListener: contextInitialized()
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@14eaec9')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@b533b8')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@569c60')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@d67067')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6db724')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@112da40')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: contextDestroyed()localhost_access_log.txt
    127.0.0.1 - - [29/Apr/2006:18:29:13 +0930] "GET /hello/hello.html HTTP/1.1" 304 -
    127.0.0.1 - - [29/Apr/2006:18:29:19 +0930] "GET /hello/hello.jsp HTTP/1.1" 404 1000Also, my sourced test .html and .jsp files:
    hello.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!--
    Simple HTML file to test server setup and configuration.
    Taken from Core Servlets and JavaServer Pages 2nd Edition
    from Prentice Hall and Sun Microsystems Press,
    http://www.coreservlets.com/.
    (C) 2003 Marty Hall; may be freely used or adapted.
    -->
    <HTML>
    <HEAD><TITLE>HTML Test</TITLE></HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1>HTML Test</H1>
    Hello.
    </BODY></HTML>hello.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!--
    Simple JSP file to test server setup and configuration.
    Taken from Core Servlets and JavaServer Pages 2nd Edition
    from Prentice Hall and Sun Microsystems Press,
    http://www.coreservlets.com/.
    (C) 2003 Marty Hall; may be freely used or adapted.
    -->
    <HTML>
    <HEAD><TITLE>JSP Test</TITLE></HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1>JSP Test</H1>
    Time: <%= new java.util.Date() %>
    </BODY></HTML>I am getting so frustrated I feel like I have tried everything...

    Thanks for your feedback, I tried all suggestions but still no luck.
    One thing I didn't mention previously was I have also tried the following (note: I have omitted the prefix "%CATALINA_HOME%/webapps"
    to all directory references below):
    1. installed my .jsp directly into /ROOT
    2. installed my .jsp into subdirectory /ROOT/hello
    3. installed my .jsp into /root_copy (identified as a running application by Tomcat manager)
    I think there must a problem in my deployment because the JSP examples (http://localhost:8080/jsp-examples/) compile fine...
    This indicates that JAVA_HOME is set correctly.
    Since my first post I tried installing tomcat from a windows installer into c:\apache\tomcat5.0.28\ and set logging to debug.
    Here's a small dump of 5 logs in localhost_log.2006-05-01.txt:
    2006-05-01 20:08:31 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter]...
    2006-05-01 20:08:32 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/servlets-examples]SessionListener: contextInitialized()Note there was no initialization of the context root_copy, but I'm unsure if there's any relevance here or not.

  • Maximum size of a compiled JSP page

    Has anybody else come accross a problem with weblogic not displaying .jsp pages greater than
              

              One solution could be to break the jsps in small jsps ...
              "John" <[email protected]> wrote:
              >
              >Apparently there's a resitrction in the Java spec that the size of a
              >compiled method
              >cannot exceed 64kb. I'm looking for a way to get around this now
              >
              >Adam Willis <[email protected]> wrote:
              >>Has anybody else come accross a problem with weblogic not displaying
              >>.jsp pages greater than
              >
              

  • Compiling jsp pages in wl 10.0 2 times slower than wl 9.1

    Hi:
    I have enterprise application. In weblogic 9 it took 4-5min to compile all the jsp pages, in weblogic 10 it takes 10-11min!!
    Is there anything I can do to speed it up?

    Hi, thanks for your answers.
    Yes, I actually build the ear file and then I call weblogic.appc on it. And again, on wl 9 it used to take 4-5min, now it is taking 10-11min. Most of the time of the build process is taken by the page compilation.
    The other thing I noticed is that if I change a page the time it takes WL to recompile the page is way longer than before. I have to wait for a good 14-15seconds until the weblogic returns the new page. The weblogic java process goes up to almost 100%. Before, in WL 9 I had to wait just a few seconds. And ok, my computer is a dual core at 2.33GHz. Don't tell me I need to upgrade :-).
    I realize that the jsp compilation must have gotten more complicated because now jsf & jsp are unified but still....
    My app is a jsf application and I also use tag files.
    About precompiling the pages... I build the application on windows then I deploy it on linux. In WL 9, whenever I deployed the app, I had to precompile the pages otherwise the users experienced slower responses the first time. For whatever reason WL 9 didn't think the pages were already precompiled (they were part of the ear file). In WL 10 that seemed to have been fixed.

  • Warning - When Compiling .jsp pages under WEB-INF

    Created a directory jsp under WEB-INF and when i compile the jsp pages i get the following warning message
    Warning: package name web2d_inf._jsp does not match source file name C:\ProviderEnrollment\ProvEnrollView\classes\.jsps\_WEB_2d_INF\_jsp\_searchprovider.java
    Need help
    Thanks

    We have encountered this warning too.
    I'm not an Oracle employee, but it looks like there's a bug in JDev that preserves the case for the output directories but not for the package name that is supposed to correspond to the output directories.
    In any case, we haven't seen any runtime problems that seem to be related to this warning, so you may be safe to disregard it. It does foul up the build log though.
    Any JDev team members watching this topic are welcome to chime in with a confirmation and details of this apparent bug, as well as any workaround that might exist to avoid having the warning appear. Thanks!

  • Unable to compile JSP in Java Server

    Hi:
    I have installed Java Application Server Platform Edition 8 locally and attempting to run an application with a JSP. However, when it attempts to compile the JSP, I get the following message:
    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:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor66.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:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    I thought that Tomcat came with the implementation of the JAVA server. If so, why am I getting this message? Do I have to also install Tomcat separately? If yes, is there anything I need to know about port conflicts? Java Server is currently using 8080 for HTTP. Please advise as to how I can resolve this problem.

    Hi,
    You may want to search this forum using the search term "Unable to compile class for JSP" you will get many hits and some suggestions on what may be the issue.
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=J2EE+Software+Development+Kit+%28J2EE+SDK%29&qp=forum%3A136&qt=Unable+to+compile+class+for+JSP

  • Urgent: Unable to run JSP pages(using JRun Custom Tags) in Weblogic 5.1

    Hi,
    I am using JRun Custom tags to bulid JSP pages.
    Could not run the jsp page on Weblogic 5.1.
    I could run the same on JRun Server but not on Weblogic?.
    Had placed JRuntags.jar in the web_inf directory.
    What/where i need to update in properties file?.
    Please reply..
    Best Wishes.
    Satish k.Yalamaddi.

    javax.servlet.ServletException: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)
    This is your problem either your tomcat or eclipse is pointing to a wrong jre
    here the problem is you are trying to run a code that was compiled using j2sdk1.5 in j2sdk1.4

  • ""." expected" error when compiling jsp page

    Hi all,
    I moved to develop all my applications from IBM WASD to JDeveloper but when I compile the projects in JDev, there's error ""." expected" for nearly all jsp pages. But these jsp pages for sure are working very well since almost of them are in production.
    Could you help me to get rid of this.
    Thanks in advance.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@page language = "java"
    contentType = "text/html"
    session = "true"
    autoFlush = "true"
    import = "java.util.*,java.sql.*,C_DBHandler"
    buffer = "4kb"
    isThreadSafe = "true"
    info = "Common File"
    %>
    <jsp:useBean id="hndQuery" scope="page" class="C_DBHandler" />
    <%
    // these are the application settings included in the pages where needed
    String txtQuery = ""; // SQL statement
    String ipaddress = "";
    String ipport = "";
    String virtualdir = "";
    String rowdisplay = "";
    hndQuery.doConnect((String)request.getAttribute("DB_DRIVER"),
    (String)request.getAttribute("URL_CONNECTION"),
    (String)request.getAttribute("CMN.USER_ID"),
    (String)request.getAttribute("CMN.USER_PASS"));
    txtQuery = "select ip_address, ip_port, virtual_dir, row_display from xserver_config where environment='Live' and application='M13000'";
    hndQuery.doSelect (txtQuery, 1);
    if (hndQuery.getRowCount() > 0)
    hndQuery.moveFirst ();
    ipaddress = hndQuery.getColumn("IP_ADDRESS");
    ipport = hndQuery.getColumn("IP_PORT");
    virtualdir = hndQuery.getColumn("VIRTUAL_DIR");
    rowdisplay = hndQuery.getColumn("ROW_DISPLAY");
    request.setAttribute("CE_SERVER", ipaddress+":"+ipport+"/"+virtualdir);
    request.setAttribute("ROW_DISPLAY", rowdisplay);
    hndQuery.doDisConnect();
         hndQuery.finalize();
    %><HTML>
    <HEAD>
    <META name="GENERATOR" content="IBM WebSphere Studio">
    </HEAD>
    </HTML>
    The jsp page is as above. And the error line is line 1. It 's always line 1 no matter what content of that line.

  • Help needed..Unable to acess JSP page..

              Hai!
              I started Admin Server and Managed Server. When i tried to acess jsp page that
              is deployed in the default webapplication of Managed server , In the log file
              of Managed Server It is adding AdminServer to the Client list and application
              hangs(Nothing will be displayed in browser..Neither error message nor Desired
              page ). I am wondering why this is happening as Admin server is neither participating
              in a cluster nor is the Target for default webapplication of Managed server .
              Any help?
              TIA
              Rgds
              Manohar
              

    First check whether a simple jsp file with just "Hello World" is running or not.
    If it is running than my guess is that the library you are importing in JSP is not getting imported.
    This could be because your library is not in your classpath when you are deploying the application, check that in you ear file, WEB-INF/lib folder for this.
    Basically you will try several things out to get to source of error.
    all the best.

  • Virtual Server fails to compile JSP pages -repeat

    I'm running iWS 6.0 SP2 using jdk 1.3
    I have 4 virtual servers defined each serving out HTML pages and everything runs fine.
    I'm building a 5th VS and I need it to support JSPs and nothing works...
    I've turned on all the debugging and trace features I can find but, nothing helps me resolve the fact
    that the JSPC can not locate the index.jsp file.
    Below is a copy of the JSP1x error found in the errors file:
    [12/Aug/2002:18:19:27] info (14254): Service(): uri=/index.jsp cgiScriptName=/index.jsp token=null cached=false
    [12/Aug/2002:18:19:27] info (14254): Internal Info: loading servlet /index.jsp
    [12/Aug/2002:18:19:27] info (14254): JSP: This is a jsp 1.x file
    [12/Aug/2002:18:19:27] info (14254): JSP: Before JSP1x compiler.compile, servletName = /index.jsp servletPath = /bto/appl/netserver/PROD/BUSINESSWARE/public_html/index.jsp & dir = ../ClassCacheclasspath = ../ClassCache
    [12/Aug/2002:18:19:27] info (14254): JSP11 Log:Package name is: _jsps
    [12/Aug/2002:18:19:27] info (14254): JSP11 Log:Class file name is: /bto/appl/iplanet/servers/https-TE-Production/config/../ClassCache/_jsps/_index_jsp.class
    [12/Aug/2002:18:19:27] info (14254): JSP11 Log:Java file name is: /bto/appl/iplanet/servers/https-TE-Production/config/../ClassCache/_jsps/_index_jsp.java
    [12/Aug/2002:18:19:27] info (14254): JSP11 Log:Class name is: indexjsp
    [12/Aug/2002:18:19:27] info (14254): JSP: JSP1x compiler threw exception
    java.io.FileNotFoundException: /bto/appl/netserver/PROD/MBDB/public_html/index.jsp
    at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:187)
    at org.apache.jasper.compiler.JspReader.<init>(JspReader.java:253)
    at org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java:259)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:164)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [12/Aug/2002:18:19:27] warning (14254): Internal error: Failed to get GenericServlet. (uri=/index.jsp,SCRIPT_NAME=/index.jsp)
    Based on the above information I notice a few things that seem to not follow the documentation.
    First the JSPC is looking for a file in MBDB/html even thought the original index.jsp file is
    part of the BUSINESSWARE virtual machine
    Second the ClassCache files do not follow the documented naming convention
    jsps/VS id/uriid ...
    Thanks in advance for your assistance.

    Not related to the problem but you shouldn't really be using JDK 1.3 (use JDK 1.3.1 if you need to use JDK 1.3+). As for the problem, the problem seems to be you don't seem to be ling web application. Could you add a web application with context root as "/" for the virtual server and I am positive this problem should go away.

  • Unable to compile JSF page

    Hi All,
    I am new to Jdeveloper . I am creating a JSF application in jdeveloper10.1.3.when i place a <F:loadBundle > tag and other components in jspx. i am getting the following compile time error.
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "basename" of tag "loadBundle".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "basename" of tag "loadBundle".
    Error: Attribute: showPopupOnDisconnect is not a valid attribute name
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "itemLabel" of tag "selectItem".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "itemValue" of tag "selectItem".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "value" of tag "selectItems".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "value" of tag "param".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "value" of tag "param".
    Error: Unable to convert constant to type javax.el.ValueExpression for attribute "value" of tag "param".
    Please any one help me to solve these issue.
    Thanks in advance,
    Vijay
    Edited by: user10619370 on Jul 29, 2009 7:52 AM

    Can you post the code of your page, this is an standard JSF tag and you should not have problems on using it
    I found this guide on how to use it on standar jsf applications
    http://www.laliluna.de/javaserver-faces-message-resource-bundle-tutorial.html
    -Juan Camilo

  • Unable to Acess JSP Page

    Hi,
    I am new to NWDS. I have created a webapplication and accesning the web service in my jsp code.
    i deployed the application in Server. I am getting the following exception.
    Details:   com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
      Error compiling [/Myjsp.jsp] of alias [sampleweb] of J2EE application [sap.com/samplewebEAR].
    Exception id: [001A4B4A48CE0046000003AD00001BE400045B8C3C2C589C]
    Could you please let me know the why it so.
    I got the result in webservice. I need to print the same in web application.
    The code i mensioned in jsp is
    <%@ page language="java" import = "com.intelli.ess.proxy.*" %>
    try
                        Testessws service = new TestesswsImpl();
                        TestesswsViDocument stub = service.getLogicalPort();
                        stub._setProperty(TestesswsViDocument.USERNAME_PROPERTY,"j2ee_admin");
                        stub._setProperty(TestesswsViDocument.PASSWORD_PROPERTY,"Intelli1");
                        out.write("-result-"+stub.details("1691"));
                   }catch(Exception e)
                        out.write("ErrorMessageIn"+e.getMessage())
    I have added all the supported jar files in lib directory.
    Please let me know the solution.
    Thanks in advance.
    Thanks,
    Ram

    First check whether a simple jsp file with just "Hello World" is running or not.
    If it is running than my guess is that the library you are importing in JSP is not getting imported.
    This could be because your library is not in your classpath when you are deploying the application, check that in you ear file, WEB-INF/lib folder for this.
    Basically you will try several things out to get to source of error.
    all the best.

Maybe you are looking for

  • How do I sync anniversaries in contacts to my calendar.

    How do I sync anniversaries in contacts to my calendar?

  • How can I copy the date and time of a received email in Mountain Lion?

    I recently installed the new Mountain Lion, however I am having a serious issue with the mail application. I use the mail application to download all of my emails and then I copy each one in to a Filemaker Database. I used to be able to copy the head

  • Problem with screen zooms in by itself

    I have a Nokia Lumia 625 and i m facing problem that the phone screen itself zooms in and i need to switch off to get back to actual scrren resolution RD

  • CVI 8.5 IDE fatal errors

    Several times now I've had CVI 8.5 crash on me when I'm closing an open project and opening another one. I get a CVI popup saying Lab Windows / CVI will be aborted   , location 001B:10258287.  It is not an OS popup - looks to me like an exception tha

  • Websites Being Redirected Internally

    Hello, Within the LAN, when we accessing a page, it gets redirected to a different page. Outside, it's fine. Do you know what I should check? Should i check to see if there's a redirect set or edit the local or DNS host file? Thanks.