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
          >
          

Similar Messages

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

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

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

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

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

  • 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

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

  • Please provide me build.xml to compile JSP pages

    Hi EveryBody,
    I am using the build.xml file to compile the JSP files to .class files. While running the build.xml file using ANT I am getting the following error.
    <i>
    [jasperc] 2007-06-01 01:22:57 - error-the file 'error_page.jsp' generated the following parse exception: org.apache.jasper.compiler.CompileException: C:Documents and SettingsSatishDesktoptestXMAM30_ECLIPSEtemperror_page.jsp(2,0) Bad file argument to include
                [jspc] BUILD FAILED: file:C:/Documents and Settings/Satish/Desktop/test/XMAM30_ECLIPSE/cfg/build.xml:90: Java returned: 9
    </i>
    Any body have the build.xml file for the standard XMAM30. Because I am doing custom changes to this. While deploying this to PDA I am getting an error because it was able to compile the JSP files in PDA.
    If any body have build.xml file, please give it me.
    Help in this regard is highly appreciated.
    Regards,
    murthy.

    Hello everyone,
    sorry for using this old thread, but it just fits my question ...
    Does anyone have by chance a build.xml  for standard XMAM30 working for Netwaver 7.1?
    Thanks for your help!
    Best regards,
    Petra

  • Creating scrollable table with maximum size of 10 in jsp

    Hi,
    How to limit the maximum rows that the user can enter in the scrollable table

    What's a scrollable table?
    If you mean a text area, then you can't limit how much the user can enter. You can only limit how much is displayed with the rows and cols attributes. To stop the user from entering more, you need to JavaScript to check how much has been entered. Search for scripts to do that, you'll find quite a few.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Error when run a jsp page in tomcat

    I carefully follow all instruction to install and config j2sdk1.4.2 and Apache Tomcat/5.0.28. After completing, I can run all sample applications about JSP and Servlet in Tomcat manager. I also test my own servlet application and it also works.
    But I fail to run a very simple jsp page. Although I already set environment variables such as CATALINA_HOME, JAVA_HOME, CLASSPATH as directed but it seem to not be able to compile jsp page.
    ( I can compile other java classes in command line. )
    Below is the error i receive . This error takes me lots of time to consider.
    I look for your help ( please describe as clear as goog ). Thanks a lot.
    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
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    If you are sure you've installed the JDK (as opposed to just a JRE, which doesn't come with the compilation tools that are required to compile JSPs), then your JAVA_HOME is probably set incorrectly. Ensure JAVA_HOME is pointing to the JDK directory, and not to the JRE directory.

  • "No tag library could be found with this URI" error while compiling jsp

    I am using WebLogic Server 9.2 MP1, JDK 1.5.0_09, Struts 1.3.5
              I am pre-compiling jsp pages with wlappc ant task. However, I got following errors when a jsp page contains ant taglib:
              No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
              The jsp page looks like:
              <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
              wlappc complains taglib could not be retrieved from this uri. Actually, since Struts 1.3.5, those ".tld" files are contained in strust-taglib-1.3.5.jar, folder META-INF/tld/. And I don't need to set anything in web.xml <tag-lib> tab anymore.
              All the jsp pages can be successfully compiled while being deployed to Server. So what am I missing? My build.xml file looks like:
                   <target name="compile-jsp">
                        <wlappc source="${src.dir}" output="${out.dir}"
                             keepgenerated="true" optimize="true" classpathref="wl_classpath"/>
                   </target>
              where "wl_classpath" contains all the struts related jar files, e.g. struts-core-1.3.5.jar, struts-taglib-1.3.5.jar, ...., and weblogic related jars, e.g. weblogic.jar.....
              I checked "beehive" samples coming with weblogic92, and found it pretty much did the same thing regarding build script and jsp files. So I am totally lost!
              Please help me out. Many thanks.
              Edited by jqian at 02/02/2007 10:24 AM

    Yes sorry, you're correct. The uri I mentioned is just 1.0.
    Do you have the "Oracle WebLogic Web App Extension" Facet for your web project? If not, try adding that and making sure that there is a weblogic.xml file created in the WEB-INF dir. The weblogic.xml file allows you to deploy usig a shared lib for JSTL. It should contain a library-ref element something like the following, with a version of 1.1.
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.1</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>

  • Pre-compiled JSPs when deploying an EAR under WebLogic 6.1 SP4

    Hello,
    We have sucessfully pre-compiled JSP pages when working with and
    deploying WAR files (WebLogic 6.1 SP4, Windows).
    However, we can't seem to make it work when deploying EAR files.
    Examing the "secret" unpacked directories after deployment doesn't
    seem to help.
    If we extract the WAR from the EAR and deploy it, everything is perfect.
    Any ideas? Anyone able to make this work? If so, could you share the
    output of
    jar -tf yourCoolEarFileThatWorks.ear
    as well as the same for the embedded WAR file?
    Thank you,
    Mike Leo

    Some followup information.
    We've changed the place where it looks for JSP classes using the
    "workingDir" parameter in weblogic.xml.
    And we also set "pageCheckSeconds" (also in weblogic.xml) to "-1".
    Now, everything in the base directory comes up without being recompiled.
    However, nothing in subfolders of the base directory is "picked up". Those
    pages are still being compiled when they are accessed.
    Any ideas welcome.
    Mike Leo
    On Tue, 05 Aug 2003 18:43:41 -0500, Michael Leo <[email protected]>
    wrote:
    Hello,
    We have sucessfully pre-compiled JSP pages when working with and
    deploying WAR files (WebLogic 6.1 SP4, Windows).
    However, we can't seem to make it work when deploying EAR files.
    Examing the "secret" unpacked directories after deployment doesn't
    seem to help.
    If we extract the WAR from the EAR and deploy it, everything is perfect.
    Any ideas? Anyone able to make this work? If so, could you share the
    output of
    jar -tf yourCoolEarFileThatWorks.ear
    as well as the same for the embedded WAR file?
    Thank you,
    Mike Leo

  • Compiled JSPs With Jasper - Now Includes don't work

    I am using a template page (index.jsp) that includes other jsp pages to fill the body of the page. Previously, I had my index.jsp page as the root document and the other jsp's in a 'jsp' subfolder. To include the other jsp's, I was using hyperlinks like this:
    where 'XXXX' is the name of the jsp page without the '.jsp' extension.
    So, in the index.jsp page, I had the following line of code that included the jsp pages:
    <%
    pageContext.include("/jsp/" + include + ".jsp"); // include is the 'page' request parameter.
    %>
    This has worked flawlessly up to this point. However, now I want to precompile all JSP pages using Ant and Jasper as this is a distributed app and I don't want to ship jsp pages. I compiled the pages and updated the web.xml file with the new mappings. Now the index.jsp page (servlet) displays but does not include the compiled jsp pages. Will the same link to a jsp page use the servlet mappings in the web.xml file to map to the new servlet?
    I also tried the following with the same result:
    request.getRequestDispatcher("/jsp/" + include + ".jsp").include(request,response);
    Can someone suggest a solution? How can I get the compiled jsp's (servlets) to be included and displayed in the same way they were when used as jsp pages?

    Well, good news and bad news....
    I got the includes to work by changing my index.jsp page to use the following:
    <jsp:include page="<%=includePage%>" flush="true"/>
    instead of:
    pageContext.include("/jsp/" + include + ".jsp");
    This seems to work.
    However, this has uncovered another issue. Now none of the graphics for the page display. So I am left with a page that has broken images links all over it. Does anyone know how to get around this? All my links follow the format:
    <img src="/images/...
    so they should resolve to the base directory, then 'images' right? When I look at the properties for each broken image, they have the correct path... does anyone know why they wouldn't display? What do I need to do to allow the servlets to display the images properly like the jsp pages did?
    Thanks in advance...

Maybe you are looking for

  • Inventory Balances Details Report

    Hi, Is there any standard inventory balances(in qty & value) details report whereby we can view inventory balances breakdown by plants, storage locations and even batches if possible? Thanks, CW

  • Cannot Partition

    Hello everyone, I cannot partition my disk correctly using Boot Camp. I tell it to partition a 32gb partition, it starts partitioning then I get a screen that says I have to restart. However, everything freezes, and the only thing I can do is a hard

  • Hide or delete row based on it's value?

    If I have a column called "Name" and I want to delete or hide all the rows which include the name "smith" or alternatively all the rows with "Miss" how do I do this? I know I can manually search to find the name "smith" but I have 60,000+ rows in my

  • Material ledger problem raised by material type

    Hello Expert I activated matrial ledger for plant ZNST and also processed production startup. But something strange is that for material with type 'ROW', in MM03 from accounting view, I can see mutiply tabs for current period data, previous period da

  • Maintaining the authorizations for parent role and derived role

    Hi Experts, Kindly advice me the Pro and cons of the parent role and derived role.. below is the scenario Currently  we have created the 700 role in  our regionally organization and we want to dervie the roles for each country 1 ) we want to do the A