Error to compile jsp

I am using WLS 5.1 with jsp configuration in weblogic.properties file as:
          weblogic.httpd.register.*.jsp=\
          weblogic.servlet.JSPServlet
          weblogic.httpd.initArgs.*.jsp=\
          pageCheckSeconds=1,\
          compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\
          workingDir=D:/weblogic/myserver/classfiles,\
          verbose=true
          I copy all examples files to myserver's document root,
          /weblogic/myserver/pub_html. I then run WLS and go to
          http://localhost:7001/examples/jsp/index.html to click run link for
          HelloWorld.jsp. I get Error 500--Internal Server Error:
          From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
          10.5.1 500 Internal Server Error
          The server encountered an unexpected condition which prevented it from
          fulfilling the request.
          I also get the error in weblogic.log as below:
          Mon Aug 07 11:29:29 CDT 2000:<I> <WebLogicServer> WebLogic Server started
          Mon Aug 07 11:29:41 CDT 2000:<I> <ListenThread> Adding address:
          localhost/127.0.0.1 to licensed client list
          Mon Aug 07 11:29:41 CDT 2000:<I> <NT Performance Pack> Allocating: '2' NT
          reader threads
          Mon Aug 07 11:29:41 CDT 2000:<I> <ServletContext-General> file: init
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: init
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          verbose initialized to: true
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          packagePrefix initialized to: jsp_servlet
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          compileCommand initialized to: D:/weblogic/jre1_2/jre/bin/javac.exe
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          srcCompiler initialized to weblogic.jspc
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          superclass initialized to null
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          workingDir initialized to: D:\weblogic\myserver\classfiles
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          pageCheckSeconds initialized to: 1
          Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp:
          initialization complete
          Mon Aug 07 11:29:46 CDT 2000:<I> <ServletContext-General> Generated java
          file:
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Compilation of
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          failed: java.io.IOException: CreateProcess:
          D:/weblogic/jre1_2/jre/bin/javac.exe -classpath
          D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
          c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
          :\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
          blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
          logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
          server\classfiles -d D:\weblogic\myserver\classfiles
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          error=2
          at java.lang.Win32Process.create(Native Method)
          at java.lang.Win32Process.<init>(Win32Process.java:64)
          at java.lang.Runtime.execInternal(Native Method)
          at java.lang.Runtime.exec(Runtime.java:272)
          at java.lang.Runtime.exec(Runtime.java:219)
          at weblogic.utils.Executable.exec(Executable.java, Compiled Code)
          at weblogic.utils.Executable.exec(Executable.java:88)
          at
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
          a, Compiled Code)
          at
          weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
          at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          4)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :99)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          java.io.IOException: Compiler failed
          executable.exec([Ljava.lang.String;[D:/weblogic/jre1_2/jre/bin/javac.exe, -c
          lasspath,
          D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
          c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
          :\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
          blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
          logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
          server\classfiles, -d, D:\weblogic\myserver\classfiles,
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java]
          at
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
          a, Compiled Code)
          at
          weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
          at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          4)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :99)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Servlet failed
          with Exception
          java.lang.NumberFormatException: error=2
          at java.lang.Integer.parseInt(Integer.java, Compiled Code)
          at java.lang.Integer.parseInt(Integer.java:458)
          at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          4)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :99)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :123)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:742)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java:686)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java:247)
          at
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          It looks like all my jsp are not running. How can I fix this problem?
          Thanks a lot
          DJ
          

Hi
          "> compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\"
          Check this line in your properties file. Are you sure javac.exe resides
          inside the jre? As far as I know, it doesn't resides there by default. It
          shd be inside ur c:\jdk1.2.2\bin or wherever u installed your jdk directory.
          cheers,
          keith
          DJ <[email protected]> wrote in message news:[email protected]...
          > I am using WLS 5.1 with jsp configuration in weblogic.properties file as:
          >
          > weblogic.httpd.register.*.jsp=\
          > weblogic.servlet.JSPServlet
          > weblogic.httpd.initArgs.*.jsp=\
          > pageCheckSeconds=1,\
          > compileCommand=D:/weblogic/jre1_2/jre/bin/javac.exe,\
          > workingDir=D:/weblogic/myserver/classfiles,\
          > verbose=true
          >
          > I copy all examples files to myserver's document root,
          > /weblogic/myserver/pub_html. I then run WLS and go to
          > http://localhost:7001/examples/jsp/index.html to click run link for
          > HelloWorld.jsp. I get Error 500--Internal Server Error:
          >
          > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
          > 10.5.1 500 Internal Server Error
          > The server encountered an unexpected condition which prevented it from
          > fulfilling the request.
          >
          > I also get the error in weblogic.log as below:
          >
          >
          > Mon Aug 07 11:29:29 CDT 2000:<I> <WebLogicServer> WebLogic Server started
          > Mon Aug 07 11:29:41 CDT 2000:<I> <ListenThread> Adding address:
          > localhost/127.0.0.1 to licensed client list
          > Mon Aug 07 11:29:41 CDT 2000:<I> <NT Performance Pack> Allocating: '2' NT
          > reader threads
          > Mon Aug 07 11:29:41 CDT 2000:<I> <ServletContext-General> file: init
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: init
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > verbose initialized to: true
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > packagePrefix initialized to: jsp_servlet
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > compileCommand initialized to: D:/weblogic/jre1_2/jre/bin/javac.exe
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > srcCompiler initialized to weblogic.jspc
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > superclass initialized to null
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > workingDir initialized to: D:\weblogic\myserver\classfiles
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp: param
          > pageCheckSeconds initialized to: 1
          > Mon Aug 07 11:29:45 CDT 2000:<I> <ServletContext-General> *.jsp:
          > initialization complete
          > Mon Aug 07 11:29:46 CDT 2000:<I> <ServletContext-General> Generated java
          > file:
          >
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          > Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Compilation of
          >
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          > failed: java.io.IOException: CreateProcess:
          > D:/weblogic/jre1_2/jre/bin/javac.exe -classpath
          >
          D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
          >
          c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
          >
          :\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
          >
          blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
          >
          logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
          > server\classfiles -d D:\weblogic\myserver\classfiles
          >
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java
          > error=2
          > at java.lang.Win32Process.create(Native Method)
          > at java.lang.Win32Process.<init>(Win32Process.java:64)
          > at java.lang.Runtime.execInternal(Native Method)
          > at java.lang.Runtime.exec(Runtime.java:272)
          > at java.lang.Runtime.exec(Runtime.java:219)
          > at weblogic.utils.Executable.exec(Executable.java, Compiled Code)
          > at weblogic.utils.Executable.exec(Executable.java:88)
          > at
          >
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
          > a, Compiled Code)
          > at
          > weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
          > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          > 4)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :99)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :123)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:742)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:686)
          > at
          >
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          > Manager.java:247)
          > at
          >
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          >
          > java.io.IOException: Compiler failed
          >
          executable.exec([Ljava.lang.String;[D:/weblogic/jre1_2/jre/bin/javac.exe, -c
          > lasspath,
          >
          D:\weblogic\myserver\serverclasses;D:\orant\jdbc\lib\classes12.zip;D:\hitjdb
          >
          c400;D:\weblogic\jre1_2\jre\lib\rt.jar;D:\weblogic\jre1_2\jre\lib\i18n.jar;D
          >
          :\weblogic\classes\boot;D:\weblogic\eval\cloudscape\lib\cloudscape.jar;D:\we
          >
          blogic\license;D:\weblogic\classes;D:\weblogic\myserver\serverclasses;D:\web
          >
          logic\lib\weblogicaux.jar;D:\weblogic\myserver\servletclasses;D:\weblogic\my
          > server\classfiles, -d, D:\weblogic\myserver\classfiles,
          >
          D:\weblogic\myserver\classfiles\jsp_servlet\_examples\_jsp\_helloworld.java]
          > )
          > at
          >
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
          > a, Compiled Code)
          > at
          > weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
          > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          > 4)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :99)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :123)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:742)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:686)
          > at
          >
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          > Manager.java:247)
          > at
          >
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          >
          > Mon Aug 07 11:29:46 CDT 2000:<E> <ServletContext-General> Servlet failed
          > with Exception
          > java.lang.NumberFormatException: error=2
          >
          > at java.lang.Integer.parseInt(Integer.java, Compiled Code)
          > at java.lang.Integer.parseInt(Integer.java:458)
          > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
          > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
          > 4)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :99)
          > at
          >
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :123)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:742)
          > at
          >
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          > l.java:686)
          > at
          >
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          > Manager.java:247)
          > at
          >
          weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
          > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          >
          > It looks like all my jsp are not running. How can I fix this problem?
          >
          > Thanks a lot
          >
          > DJ
          >
          >
          

Similar Messages

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

  • NWDI - Runtime error while compiling JSPs (PAR DC)

    Hello
    I am creating a PAR DC that needs to use some in house developed
    ValueObjects (accessed through a J2EE server library).
    Though my developed JSPDynPage is able to access the ValueObjects, when I try to use it in a JSP, I get a runtime compilation error.
    According to my understanding, setting the PrivateSharingReference helps the controller (jspdynpage) find the classes it needs at runtime,
    But the JSP Compiler does not have access to those classes.
    Can anyone suggest a solution that does not include copying jar files
    manually?
    I have an open CSN about this, but no answer there yet...
    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">CSN 0120025231 0001708061 2005</a>

    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">updated link to CSN 0120025231 0001708061 2005</a>
    full stack trace:
    Exception ID:10:40_27/12/05_0011_2189050
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : pcd:portal_content/zachrefs/com.checkpoint.ReferencingIview
    Component class : com.cp.test.references.ReferencingIview
    User : Administrator
                at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:127)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                ... 38 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                ... 43 more
    >>> JSPCompiler >>> error  [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :29823520
    JSP File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparpageletReferencingIview.jsp
    Class Name: sapportalsjspReferencingIview
    Java File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.java
    Package Name : pagelet
    Class File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.class
    Is out dated : false [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

  • HTTP Error 500 Compiling JSP's [SOLVED]

    Basic Problem:  I am unable to compile jsp's and display them via Tomcat.  I am using the Netbeans IDE for web development and webapps that use html files/servlets run just fine.  It's when I try to run a jsp that I get an Error 500:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
           org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:391)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    root cause
    java.lang.IllegalStateException: No Java compiler available
           org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:228)
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:638)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.25 logs.
    My config is as follows:
    kernel 3.2.4-1-ARCH
    Tomcat: 7.0.25
    jdk: 7-3
    $ java -showversion
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build 1.7.0-b147)
    Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)
    Netbeans: 7.1
    I am running the Sun JRE/JDK.
    I emailed the Tomcat mailing list and was told the compiler should be in a file called ecj-3.7.1.jar.  I did a locate on that file and I found the following in /usr/share/java:
    lrwxrwxrwx   1 root root      21 Nov  7 20:41 ecj.jar -> eclipse-ecj-3.7.1.jar
    -rw-r--r--   1 root root 1183268 Nov  7 20:41 eclipse-ecj-3.7.1.jar
    lrwxrwxrwx   1 root root      21 Nov  7 20:41 eclipse-ecj.jar -> eclipse-ecj-3.7.1.jar
    According to the fellow who I think is the Tomcat maintainer, the eclipse-ecj-3.7.1.jar isn't distributed in standard Tomcat and so to ask whoever packaged mine, which I installed with pacman.
    Thanks.
    UPDATE:  I uninstalled tomcat7 via pacman and installed the stock Tomcat7 from apache.org.  Jsp's now compile.
    Last edited by JLucien (2012-02-14 20:58:59)

    i did not find an answer..

  • Weblogic.jspc outofmemory error while compiling jsps using ant in eclipse

    Hi all,
    I am trying to execute this target in my ant build:
         <target name="jspc">
              <java classname="weblogic.jspc" fork="yes">
                   <arg line="-verbose -verboseJavac -compileAll -webapp ${project.jsp.dir} -d ${project.jsp.class.dir}" />
                   <classpath>
                        <pathelement path="${classpath}" />
                   </classpath>
         </java>
         </target>
    I am getting the following error:
    [java] Error: [jspc]: 0 file(s) failed:
    [java] [Compilation errors : ]
    [java] The system is out of resources.
    [java] Consult the following stack trace for details.
    [java] java.lang.OutOfMemoryError
    [java] at weblogic.jspc.doCompile(jspc.java:861)
    [java] at weblogic.jspc.runJspc(jspc.java:654)
    [java] at weblogic.jspc.runBodyInternal(jspc.java:412)
    [java] at weblogic.jspc.runBody(jspc.java:319)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
    I am using weblogic 8.1, eclipse3.1, java1.4.1.
    Can some one please help me with this issue?
    thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Stupid Error in Compiling JSP on Tomcat 4.1

    Hi,
    I know I am missing something stupid, but I am not able to compile/view a simple JSP.
    The code of the JSP is
    <%@ page language="java" import="builder.*" errorPage="" %>
    <html>
    <%builder.MenuBuilder menuBuilder = new builder.MenuBuilder("http://amitabh.pic.com.kw/navmenu.xml", out, "\t\t\t");%>
    <head><body>
    <%menuBuilder.generateHTML();%>
    ..And I am getting the following error
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] E:\ApacheGroup\Tomcat4.1 \work\Standalone\localhost\aktest\NavTable_jsp.java:7: package builder does not exist
    [javac] import builder.*;
    [javac] ^
    [javac] E:\ApacheGroup\Tomcat4.1\work\Standalone\localhost\aktest\NavTable_jsp.java:54: package builder does not exist
    [javac]     builder.MenuBuilder menuBuilder = new builder.MenuBuilder("http://amitabh.pic.com.kw/navmenu.xml", out, "\t\t\t");
    [javac] ^
    [javac] E:\ApacheGroup\Tomcat4.1\work\Standalone\localhost\aktest\NavTable_jsp.java:54: package builder does not exist
    [javac]     builder.MenuBuilder menuBuilder = new builder.MenuBuilder("http://amitabh.pic.com.kw/navmenu.xml", out, "\t\t\t"); [javac] ^
    [javac] 3 errors
    The above mention code are the only JSP script on the page.
    I have package builder defined under WEB-INF\classes and the class MenuBuilder and all related classes are in the pacakge and are compiled.
    I am using Tomcat 4.1.24 running on JDK 1.4.1 (build 1.4.1_02-b06).
    Other JSP pages in the same context which does not reffer any class under WEB-INF\classes are being displayed so are pages under examples context.
    Can anybody help me out on what i am missing.
    Thanks in advance
    Amitabh

    Hi,
    AFAIK, builer package shoud be under WEB-INF\classes directory or the context. It is under that direcory.
    As far as adding the package to system classpath or Tomcat classpath, I dont want to do that as it would contaminate the classpath of other applications/contexts.
    The applications server is supposed to automatically add WEB-INF\classes into the classpath of the context. And its working for other context.
    There has to be other solution.
    Regards
    Amitabh

  • Automatic created Java file error when compile JSP file

    I got the following error message when i try to load the JSP file given below (FlightSearch.jsp). Given also below the JAVA files (flightsearch$jsp.java) created by the compiler.
    Thanks for your help
    Susan
    Error message
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:320: 'catch' without 'try'.
    } catch (Throwable t) {
    ^
    C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: 'try' without 'catch' or 'finally'.
    ^
    C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: '}' expected.
    ^
    3 errors, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    FlightSearch.jsp
    <%@page import="java.util.*" errorPage="ErrorHandler.jsp"%>
    <%@page import="com.client.entity.Flight"%>
    <%@page import="com.client.wsclient.FlightServiceClient"%>
    <H3>Available Flight List</H3>
    <br>We have found the following Available flight(s) : </br>
    <table border="0" cellpadding="0" cellspacing="0" width="100">
    <tr>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Company</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Number</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Depart From<font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrive</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Date</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Time</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Date</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Time</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Adult Fare</font></b></td>
    <td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Child Fare</font></b></td>
    </tr>
    <%
    //Get the search information
    String des = request.getParameter("DFrom");
    String arr = request.getParameter("DTo");
    String fy = request.getParameter(FYear.value);
    String fm = request.getParameter(FMonth.value);
    String fd = request.getParameter(FDay.value);
    String f1 = fy + "-" + fm;
    String FDat = f1 + "-" + fd;
    String ty = request.getParameter(TYear.value);
    String tm = request.getParameter(TMonth.value);
    String td = request.getParameter(TDay.value);
    String t1 = ty + "-" + tm;
    String TDat = t1 + "-" + td;
    String type;
    if( request.getParameter(type[0].checked))
    type = "Return";
    else
    { type = "OneWay";
    String clas;
    if(request.getParameter(clas[0].checked))
    {clas = "ECO";
    else
    {clas = "BUSS";}
    String adult = request.getParameter(Adult.value);
    String child = request.getParameter(Child.value);
    //Get the server Flight Search Service URL
    // ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
    // ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
    // FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
    String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
    //Find available Flight
    FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
    ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
    Iterator it = list.iterator();
    while (it.hasNext()){
    Flight flt = (Flight)it.next();
    %>
    <tr>
    <td width= "10%"><%=flt.getFlightComp()%></td>
    <td width= "10%"><%=flt.getFlightNum()%></td>
    <td width= "10%"><%=flt.getDestination()%></td>
    <td width= "10%"><%=flt.getArrive()%></td>
    <td width= "10%"><%=flt.getFrDate()%></td>
    <td width= "10%"><%=flt.getFlightDptTm()%></td>
    <td width= "10%"><%=flt.getToDate()%></td>
    <td width= "10%"><%=flt.getFlightArrTm()%></td>
    <%
    int adt, chld;
    int far_A, tot_A, far_C, tot_C;
    adt = Integer.parseInt(adult);
    far_A = flt.getAdultFr();
    tot_A = adt * far_A;
    chld = Integer.parseInt(child);
    far_C = flt.getChildFr();
    tot_C = chld * far_C;
    %>
    <td width= "10%"><%=tot_A%></td>
    <td width= "10%"><%=tot_C%></td>
    </tr>
    <%
    if(type = "Return")
    FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
    ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
    Iterator it = list.iterator();
    while (it.hasNext()){
    Flight flt = (Flight)it.next();
    %>
    <tr>
    <td width= "10%"><%=flt.getFlightComp()%></td>
    <td width= "10%"><%=flt.getFlightNum()%></td>
    <td width= "10%"><%=flt.getFlightDpt()%></td>
    <td width= "10%"><%=flt.getFlightArr()%></td>
    <td width= "10%"><%=flt.getFlightDptDt()%></td>
    <td width= "10%"><%=flt.getFlightDptTm()%></td>
    <td width= "10%"><%=flt.getFlightArrDt()%></td>
    <td width= "10%"><%=flt.getFlightArrTm()%></td>
    <%
    int adlt, chd;
    int fare_A, totA, fare_C, totC;
    adlt = Integer.parseInt(adult);
    fare_A = flt.getAdultFr();
    totA = adlt * fare_A;
    chd = Integer.parseInt(child);
    fare_C = flt.getChildFr();
    totC = chd * fare_C;
    %>
    <td width= "10%"><%=totA%></td>
    <td width= "10%"><%=totC%></td>
    </tr>
    <%
    %>
    </table>
    flightsearch$jsp.java
    package org.apache.jsp;
    import java.util.*;
    import com.client.entity.Flight;
    import com.client.wsclient.FlightServiceClient;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import org.apache.jasper.runtime.*;
    public class flightsearch$jsp extends HttpJspBase {
    static {
    public flightsearch$jsp( ) {
    private static boolean jspxinited = false;
    public final void jspxinit() throws org.apache.jasper.runtime.JspException {
    public void _jspService(HttpServletRequest request, HttpServletResponse response)
    throws java.io.IOException, ServletException {
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String _value = null;
    try {
    if (_jspx_inited == false) {
    synchronized (this) {
    if (_jspx_inited == false) {
    jspxinit();
    jspxinited = true;
    _jspxFactory = JspFactory.getDefaultFactory();
    response.setContentType("text/html;ISO-8859-1");
    pageContext = _jspxFactory.getPageContext(this, request, response,
    "ErrorHandler.jsp", true, 8192, true);
    application = pageContext.getServletContext();
    config = pageContext.getServletConfig();
    session = pageContext.getSession();
    out = pageContext.getOut();
    // HTML // begin [file="/client/flightsearch.jsp";from=(0,59);to=(1,0)]
    out.write("\r\n");
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(1,43);to=(2,0)]
    out.write("\r\n");
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(2,58);to=(19,0)]
    out.write("\r\n\r\n<H3>Available Flight List</H3>\r\n<br>We have found the following Available flight(s) : </br>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100\">\r\n <tr>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Company</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Number</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Depart From<font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrive</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Adult Fare</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Child Fare</font></b></td>\r\n </tr>\r\n");
    // end
    // begin [file="/client/flightsearch.jsp";from=(19,2);to=(66,0)]
    //Get the search information
    String des = request.getParameter("DFrom");
    String arr = request.getParameter("DTo");
    String fy = request.getParameter(FYear.value);
    String fm = request.getParameter(FMonth.value);
    String fd = request.getParameter(FDay.value);
    String f1 = fy + "-" + fm;
    String FDat = f1 + "-" + fd;
    String ty = request.getParameter(TYear.value);
    String tm = request.getParameter(TMonth.value);
    String td = request.getParameter(TDay.value);
    String t1 = ty + "-" + tm;
    String TDat = t1 + "-" + td;
    String type;
    if( request.getParameter(type[0].checked))
    type = "Return";
    else
    { type = "OneWay";
    String clas;
    if(request.getParameter(clas[0].checked))
    {clas = "ECO";
    else
    {clas = "BUSS";}
    String adult = request.getParameter(Adult.value);
    String child = request.getParameter(Child.value);
    //Get the server Flight Search Service URL
    // ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
    // ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
    // FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
    String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
    //Find available Flight
    FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
    ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
    Iterator it = list.iterator();
    while (it.hasNext()){
    Flight flt = (Flight)it.next();
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(66,2);to=(68,18)]
    out.write("\r\n<tr>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(68,21);to=(68,40)]
    out.print(flt.getFlightComp());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(68,42);to=(69,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(69,21);to=(69,39)]
    out.print(flt.getFlightNum());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(69,41);to=(70,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(70,21);to=(70,41)]
    out.print(flt.getDestination());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(70,43);to=(71,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(71,21);to=(71,36)]
    out.print(flt.getArrive());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(71,38);to=(72,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(72,21);to=(72,36)]
    out.print(flt.getFrDate());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(72,38);to=(73,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(73,21);to=(73,41)]
    out.print(flt.getFlightDptTm());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(73,43);to=(74,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(74,21);to=(74,36)]
    out.print(flt.getToDate());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(74,38);to=(75,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(75,21);to=(75,41)]
    out.print(flt.getFlightArrTm());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(75,43);to=(76,1)]
    out.write("</td>\r\n ");
    // end
    // begin [file="/client/flightsearch.jsp";from=(76,3);to=(87,1)]
    int adt, chld;
    int far_A, tot_A, far_C, tot_C;
    adt = Integer.parseInt(adult);
    far_A = flt.getAdultFr();
    tot_A = adt * far_A;
    chld = Integer.parseInt(child);
    far_C = flt.getChildFr();
    tot_C = chld * far_C;
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(87,3);to=(88,18)]
    out.write("\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(88,21);to=(88,26)]
    out.print(tot_A);
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(88,28);to=(89,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(89,21);to=(89,26)]
    out.print(tot_C);
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(89,28);to=(91,0)]
    out.write("</td>\r\n</tr>\r\n");
    // end
    // begin [file="/client/flightsearch.jsp";from=(91,2);to=(100,0)]
    if(type = "Return")
    FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
    ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
    Iterator it = list.iterator();
    while (it.hasNext()){
    Flight flt = (Flight)it.next();
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(100,2);to=(102,18)]
    out.write("\r\n<tr>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(102,21);to=(102,40)]
    out.print(flt.getFlightComp());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(102,42);to=(103,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(103,21);to=(103,39)]
    out.print(flt.getFlightNum());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(103,41);to=(104,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(104,21);to=(104,39)]
    out.print(flt.getFlightDpt());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(104,41);to=(105,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(105,21);to=(105,39)]
    out.print(flt.getFlightArr());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(105,41);to=(106,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(106,21);to=(106,41)]
    out.print(flt.getFlightDptDt());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(106,43);to=(107,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(107,21);to=(107,41)]
    out.print(flt.getFlightDptTm());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(107,43);to=(108,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(108,21);to=(108,41)]
    out.print(flt.getFlightArrDt());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(108,43);to=(109,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(109,21);to=(109,41)]
    out.print(flt.getFlightArrTm());
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(109,43);to=(110,1)]
    out.write("</td>\r\n ");
    // end
    // begin [file="/client/flightsearch.jsp";from=(110,3);to=(120,1)]
    int adlt, chd;
    int fare_A, totA, fare_C, totC;
    adlt = Integer.parseInt(adult);
    fare_A = flt.getAdultFr();
    totA = adlt * fare_A;
    chd = Integer.parseInt(child);
    fare_C = flt.getChildFr();
    totC = chd * fare_C;
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(120,3);to=(121,18)]
    out.write("\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(121,21);to=(121,25)]
    out.print(totA);
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(121,27);to=(122,18)]
    out.write("</td>\r\n <td width= \"10%\">");
    // end
    // begin [file="/client/flightsearch.jsp";from=(122,21);to=(122,25)]
    out.print(totC);
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(122,27);to=(124,0)]
    out.write("</td>\r\n</tr>\r\n");
    // end
    // begin [file="/client/flightsearch.jsp";from=(124,2);to=(126,0)]
    // end
    // HTML // begin [file="/client/flightsearch.jsp";from=(126,2);to=(127,8)]
    out.write("\r\n</table>");
    // end
    } catch (Throwable t) {
    if (out != null && out.getBufferSize() != 0)
    out.clearBuffer();
    if (pageContext != null) pageContext.handlePageException(t);
    } finally {
    if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);

    i am very glad and appreciate for your help, but i would like to know how to get the value of a radio button.
    like in another JSP file i have :
    <input type="radio" name="type" value="Return" checked>
    Return
    <input type="radio" name="type" value="OneWay">
    One Way
    and when i try to get the value which is checked, i put
    String type = request.getParameter(type.checked);
    but this doesn't work,
    i would be very appreciate for your help. Thank you

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

  • " ')' expected " Error when compile jsp that use useBean tag

    I'm using JDeveloper 10.1.3 and I have a page with a next jsp tag
    <jsp:useBean id="objectid" type="package.MyClass" scope="application"/>
    When I compile this JSP page, I got the error:
    ')' expected
    If the application is deployed in the J2EE container like Tomcat or OC4J, the page works fine.
    Is this a JDeveloper bug?? What Can I do?

    The JSP page works fine in OC4J 10.1.2, but in the OC4J 10.1.3 it throws the same error.
    The soruce code that the container generates is this:
    if ((objectid= (package.MyClass) pageContext.getAttribute( "objectid", PageContext.APPLICATION_SCOPE)) == null) {
    throw new InstantiationException("No se ha encontrado el bean "objectid" en el ámbito "application"");
    The bug consist in the generation of the servlet source code. The double quotation is the problem, for that, the compiler generates the error ')' expected...

  • Error while compiling JSP file from glassfish server

    Hello, I have created a single page with only one text box using Netbeans and Visual Web Pack and deployed it on to Glassfish Build44 server. Deployed okay. But when I try to open the page I get the following error. But the same project when I create on studio creator and deploy to Sun java App Server that comes with creator, it works fine. Any help would be really useful.
    Error:
    ApplicationDispatcher[MAReports] PWC1231: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /Page1.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression.
    I have tried 2 diff version of jdk1.5.0_06 and jdk1.5.0_12. No use. It is all running under win env. I saw couple google hits on this error. But no real solution that I could see.
    Thanks in Advance.

    Hi,
    I had the same problem i think:
    PWC1406: Servlet.service() for servlet Faces Servlet threw exception com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /login.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290) at .............
    I work on GlassFish v2 running on ubuntu server, I develop from netbeans 5.5.1 on windows xp.
    I resolved the problems in the war file of my application, the lib directory as some library missing, and some seem do not work correctely. I dont know precicely the problemes. but i resolve it copynig and past lib directory from another working project.
    The problemes seem to be in the war lib this what i can tell.
    sorry for my english
    Regards, and good job!!!

  • Jsp:useBean giving error while compiling JSP's in JDeveloper

    Hello,
    I am having another problem with JSP's in JDeveloper 10.1.3. jsp:useBean and jsp:setProperty are all giving problems. I am not sure what I need to do to get rid of this error
    Thanks,
    Lakshmisri

    Your original post mentions issues with jsp:useBean and jsp:setProperty, now you're talking about tag libraries and directives. Can you be more specific about what you're trying to do? Are you having problems getting JDev to recognize a tag library or are you having problems with the tag library when running the app? What directive are you trying to use that causes the termination error?

  • Error compiling [/jsps/explorer/enterwsdl_main.jsp] of alias [wsnavigator]

    hello
    I am getting the above error when I try to start the Web Services Navigator in my J2EE engine of Solution Manager 4.0 system.
    I am on NW 7.0 Java Components SP10.
    The full error message is:
    500 Internal Server Error
    com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
      Error compiling [/jsps/explorer/enterwsdl_main.jsp] of alias [wsnavigator] of J2EE application
    Can anyone help me out please? Or is it a case of just applying the latest SP?
    Many Thanks
    Steve

    I have had a suggestion that I need to make sure that tools.jar is in the classpath for Tomcat. How can you get the value of variables Tomcat is using such as its CLASSPATH or JAVA_HOME ? Where are these set ? I assume that there must be a config file someplace...
    Thanks in advance for any suggestions,
    -James

  • Error in compiling - Navigation Editor.jsp

    Hi,
    we are using MII 12.0.2. It is deployed on NW 7.11.
    We tried to open the navigation page from XMII Home Menu. But while clicking the Navigation link, it is showing the 500 Internal server error:
    Error: "Error in compiling [/XMII/Admin/NavigationEditor.jsp] in application [sap.com/xappsxmiiear]."
    Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jsts/home
    Details: "The WebApplicationException log ID is [02004C4F4F50007600000000000017E4]."
    we tried to open the above mentioned Troubleshooting Guide but it is showing page not found error.
    What is the problem and how to solve it.
    Regards,
    senthil

    Check your installation instructions.  I do not think MII 12.0.2 should be installed on NW 7.11.  I think it is limited to NW 7.0.
    Regards,
    Mike

  • Error Compiling JSP

    I am running a custum OA page and forward it to a jsp page. I got all the jtf class and jsp files in my directory, Also added jtf/jar to my additional classpath project settings ,but gives me the following error:
    Errors compiling:C:\JdevIDE\jdevhome\jdev\myclasses\.jsps\\_jtfacerr.java
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    method getExceptionStackTrace(java.lang.Throwable) not found in class oracle.apps.jtf.admin.adminconsole.HtmlWriter
    Where as this method is sitting in the right directory. Do I need to setup OJSPCOMPILE utility and/or apply Patch 2886919 "Precompiler for JSP Pages"
    any suggestions please.Thanks

    I did as you suggested. but same error pops up.
    On my OAF page , I have submit button, which calls a CO and there I am forwarding the control to a jsp page which has some includes:
    example-
    <%@include file="jtfincl.jsp" %>
    "hello jsp"
    If I remove the include , I get hello jsp printed on the page.
    I went through 'Launching a JTT Page from an OA Framework Application'
    but did not get any clue how to implement it in my custom application.
    would JTF files go under jdev/myhtml/OA_HTML ?
    I have put all the classes under oracle/apps/jtf
    Any reference to how to set the classpath for jtf files, in OA would be a great help.
    Thanks

  • Getting compilation errors in seeded jsps in R12

    Hi,
    We already had iStore 11i implemented since 8 years.
    Now we are implementing iStore R12.
    We have a custom jsp 'xxibeCCkpExpCheckout.jsp' in 11i, which we are migrating to R12.
    However in R12 we are getting following compilation errors in this jsp:
    ibeCCkpBHdrShipIncl.jsp:
    Error(841,1): PrintWriter not found
    Error(841,1): Writer not found
    ibeCCkpValBillPay.jsp
    Error(40,2): field optNewCreditCard not found
    Error(48,2): field optNewCreditCard not found
    Error(54,2): identifier errMap not found
    Error(64,2): identifier errMap not found
    Error(73,2): field errMap not found
    Please note that above seeded jsps are included in the custom jsp.
    Since the errors are coming through seeded jsps, we are not sure how to fix them.
    Any prompt help/suggestion in this regard is appreciated.
    Thanks

    Hello,
    Please review your custom jsp and note that the following are obsoleted packages for Release 12 -
    ibeCCkpCHdrShipIncl.jsp, ibeCCkpHdrShip.jsp, ibeCCkpHdrBillPay.jsp
    Confirm the ibeCCkpBHdrShipIncl.jsp is Release 12.1 version (ie version 120.6).
    Also, there are changes in ibeCCkpValBillPay.jsp for Release 12 as compared to 11i. Confirm your ibeCCkpValBillPay.jsp is Release 12.1 version (ie version 120.1.12010000.2 or higher).
    Confirm no errors for manual compile of the seeded jsp's and Confirm datestamp is current for class files in $COMMON_TOP/_pages
    References:
    Where Are The iStore Cached Java Classes In R12 ? (Doc ID:1149243.1)
    How to Enable Automatic Compilation of JSP pages in R12 Environment (Doc ID:458338.1)
    Please advise on any additional questions or issues.
    Thank You,
    Deborah Bourgeois, Oracle Customer Support

Maybe you are looking for

  • Burning coasters about 50% of the time recently

    Anyone else having this problem?  As far as I can tell it took place at the same time as the 2.6.19 upgrade and the switch to cdrkit.  My IDE dvd-rw drive is loaded as sr0/sg0 as I understand it should be after 2.6.19, and all of the required modules

  • I am having trouble with the following....

    I just received a CD that has Adobe Elements 2.0 which is compatible for both mac and microsoft. Whenever I try to install this outstanding program, it says the following: *A Valid Classic Environment Was Not Detected.* Support for running an Adobe a

  • Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and BBP

    Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and MBP when I purchased them. When I look at the App Store, it dose not show ML as purchased (to download again) - do I have to purchase it again to make a Recovery DVD? Th

  • Question about "Automatic Archving"

    I'm reading http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/archredo.htm where they mention the concept of automatic archiving.. It mentions the parameter "log_archive_start" , so I ran this: SQL> show parameter log_archive_start; NAME

  • Loading various addresses in CRMXIF_PARTNER_SAVE_M

    Hi, Can I upload multiple adresses in E101_EI_BUPA_POSTAL_ADDRESS and E101BUS_EI_STRUC_ADDRESS while uploading BP data through LSMW? if so, then how do we distinguish lets say Invoice to part address/Sold to party address... etc while populating the