Compile WebUI JSP

I think that all class library files for the WebUI .JSP files have been installed in the 9iFS. So I tried to use all class library files in <9iFS>\lib to compile the WebUI .JSP files in addition to all system class library files of JDeveloper 9i R2. But I keep getting compiling error, as follows,
Warning: UTF-8character set may not match project compiler setting
Error(88,38): incompatible throws list; found: oracle.ifs.common.IfsException, required: java.lang.Throwable
Error(53,23): constructor Viewer(javax.servlet.http.HttpServletRequest, oracle.ifs.beans.FolderPathResolver, oracle.ifs.beans.LibrarySession) not found in class oracle.ifs.clients.webui.Viewer
Error(60,23): constructor Viewer(java.lang.String, javax.servlet.http.HttpServletRequest, oracle.ifs.beans.FolderPathResolver, oracle.ifs.beans.LibrarySession) not found in class oracle.ifs.clients.webui.Viewer
Error(65,26): constructor Viewer(javax.servlet.http.HttpServletRequest, oracle.ifs.beans.FolderPathResolver, oracle.ifs.beans.LibrarySession) not found in class oracle.ifs.clients.webui.Viewer
Could anybody tell me what kinds of class library files requird to compile the pre-design webUI files? Just like the servlet has done.
Many thanks!

Solved using the class info in ifsclasspath.cl

Similar Messages

  • Strange error in compiling a jsp in jdev

    I tried to compile a jsp using a custom jsp tag. All the requried java libraries are set in project's library path and additional path. But I got a class name used by the tag as the compiling error. No any message regarding to it. I think this may be related to the jsp compiler checking the custom tag's attribute type and tld file, but don't know how to fix it in jdev environment. Any help will be appreciated.

    This is what I set in web.xml:
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/j2ee/jsp/tld/ordim/intermedia-taglib.tld</taglib-uri>
    <taglib-location>/WEB-INF/intermedia-taglib.tld</taglib-location>
    </taglib>
    I set the path to the tag library jar file ordjsptag.jar in the additional path of the project. I think the compiler can find the jar file.
    This tag library also uses another component of Oracle: ordim.jar and it is also in the library path of the project. I can import the class in ordim.jar from the project's jsp page. But when I compile the jsp that contains my custom tag, I got error message: "oracle.ord.im.OrdImage" which is a class name in ordim.jar.

  • Page compilation in jsp

    Hi
    when will be the jsp page is compiled and is there is any pipeline involvment for compiling the jsp files in atg

    JSP pages will get compiled by the Application Server, compilation can be configured at the app server level.
    In weblogic you can set the precompilation option in weblogic.xml file, for example
    +<jsp-descriptor>+
    +<jsp-param>+
    +<param-name>precompile</param-name>+
    +<param-value>false</param-value>+
    +</jsp-param>+
    +</jsp-descriptor>+
    There is no ATG pipeline involvement in this
    Cheers
    R

  • Compiling a jsp code in comand prompt

    i wan to know in how many ways can we compile the jsp codein comand prompt

    haha this was the most fun topic on a board i've seen in a while

  • Can't compile any JSP : method handlePageException(...) not found

    Hello,
    I installed JDev 9.0.3 yesterday, it did compile my JSP pages, but today it won't, even after reinstalling it.
    I get the following error messages for every page :
    Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
    Error(16,45): method doAfterBody not found in class org.apache.struts.taglib.template.InsertTag
    Error(16,93): variable EVAL_BODY_AGAIN not found in interface javax.servlet.jsp.tagext.BodyTag
    Does anyone know what this could mean ? I have added all libraries in the project's "library" tag, to no avail.
    Thanks.
    P.

    Lynn -
    I tried making a new page with JDev's wizard : File -> New -> Web Tier -> JSP -> JSP Page. This minimal page contains only a "hello world" message, and has got no taglib. I still get :
    Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
    when I compile it.
    j2ee.jar is in Path and libraries ; my libraries are "JDev Runtime, JSP Runtime, Oracle XML Parser v2" and a bunch of our libraries.
    Any ideas ?
    Thanks.

  • Pre compiling of jsp

    HI,I am using weblogic5.1 and I am unable to pre compile the jsp file. I used java weblgoic.jsc command to compile the files, but I am unable to complie some of the jsp files. Can you suggest me a better way to pre comile files and directories.Thanks,Prakash Appani
              

    If you can compile some, but not others, then it is more than likely that
              you have problems
              with your JSP's. You may want to use the regular javac to compile them.
              # WEBLOGIC JSP PROPERTIES
              # Sets up automatic page compilation for JSP. Adjust init args for
              # directory locations and uncomment to use.
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=c:/jdk1.2.2/bin/javac.exe,\
              workingDir=C:/weblogic/myserver/classfiles,\
              verbose=true
              "Mike Reiche" <[email protected]> wrote in message
              news:3b3b91cd$[email protected]..
              >
              > What errors are you getting? The command is
              >
              > java weblogic.jspc <file>
              >
              > Can't tell if you had the wrong command or just bad typing.
              >
              > Mike
              >
              > Prakash Appani <[email protected]> wrote:
              > >HI,I am using weblogic5.1 and I am unable to pre compile the jsp file.
              > >I used java weblgoic.jsc command to compile the files, but I am unable
              > >to complie some of the jsp files. Can you suggest me a better way to
              > >pre comile files and directories.Thanks,Prakash Appani
              >
              

  • Setting tomcat to compile all jsps on deployment?

    Hi everybody,
    I was wondering if anybody knows of a tomcat option which causes tomcat to compile
    all jsps in the webapp at deploy time. (without setting each jsp to a certain compile time)
    I'm familiar with ant and the ant task to precompile the jsps.
    In order to do this i guess i have to change my deployment descriptors to take the jsp class files instead of just the jsps. This is something i'd like to avoid.
    Anybody?

    I'm not sure Tomcat 5 supports this but you may be able to use the jsp_precompile request parameter to compile all the JSPs that make up your application. You would deploy your application archive as usual, then request all the JSPs in your application (use an automated tool to request each URL), in each JSP request you would pass the request parameter jsp_precompile=true. This causes the JSP to be compild but does not actually service the request.
    Example http://localhost:8080/my.js?jsp_precompile=true
    This should compile the my.js JSP but not process the request.

  • How to pre-compile a JSP

    Hi all,
    I struckup with a doubt as fallows
    How to pre-compile a JSP to Servlet(.class file) bfore the first request ,so that the first response takes same time as later responses.

    Thanx Ram for ur response,
    I know Tomcat is assembled with Jasper compiler.My actual doubt is I want to precompile the Jsp bfore the first request. Actually the compilation occurs at the time of first request.U said it is server specific ,can u plz s let me know the pre-compile option for WEBLOGIC Server.

  • Compile & run JSP programm

    Salam
    How can i Compile & run JSP program?
    Slam

    You don't directly.
    A JSP page runs on a java enabled webserver (eg Tomcat)
    You need one of those to run JSP pages.
    When you ask for a jsp page from the server, (eg http://localhost:8080/mySite/myjsp.jsp) the webserver translates and compiles it into a servlet and then runs it for you.
    Cheers,
    evnafets

  • Error in executing a process for compilation for jsp

    We have an iView which has jsp pages in it. We deployed the par & try toaccess the iview & we get an exception. The issue is that the iview has a jsp page. At the run time, this jsp is converted into a .java file
    without problem. But EP engine is having issues compiling this java fileinto .class file.
    On the other hand this same iview works just fine on our windows installation. Only Solaris EP install is having problems. The version onwindows as well as on Solaris is EP6 SP9.
    Here is the exact version on the solaris EP:
    sap.com/SAP-JEECOR 6.40 SP9 (1000.6.40.9.0.20041119045253) 20041122132733
    sap.com/SAP-JEE 6.40 SP9 (1000.6.40.9.0.20041119045409) 20041122132741
    When I copy the .class file from windows to unix machine, the iView works fine. Here is the exception I am getting:
    >>> JSPCompiler >>> error
    [email protected]a188b
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException:
    Error in executing a process for compilation
    at
    com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:574)
    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)
    I am having the same issue with another iview which has jsp page in it.
    The web dynpro iview works fine.

    Hi, seems like there's some typo in your jsp. Check the .java file listed with a java editor (like eclipse or devstudio.). Maybe you'll find the typo this way faster.
    Most often, a multiline page import hampers jsp compilation,
    e.g.
    <%@page import="java.util.List,
                    java.util.Map"%>
    needs to be
    <%@page import="java.util.List,java.util.Map"%>
    Regards,
    Armin

  • Can not compile the jsp in Tomcat 4

    Hello anyone
    Now I use jdk1.4 and Tomcat 4.0.4, and put in the directory d:\j2sdk and d:\tomcat. Even I set the classpath as follow, I still compile jsp.
    SET CLASSPATH=.;D:\j2sdk\lib\tools.jar;D:\tomcat\common\lib\servlet.jar
    but at before, i can run it at Tomcat 3.2.
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:4: Class or interface declaration expected.
    import javax.servlet.*;
    ^
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.userCounter$jsp not found.
    public class userCounter$jsp extends HttpJspBase {
    ^
    2 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)
    pls help, thank you very much!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

  • Error while compiling the JSP page that compileCommand not found

              Hello friends !
              I am using weblogic 5.1 evaluation copy without any service packs I had stated my properties file as below for JSP.
              My compileCommand path is also OK.
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
                   compileCommand=c:/jdk1.2.2/bin/javac.exe,\
              workingDir=c:/weblogic/myserver/servletclasses,\
                   verbose=true
              But then also my server throws the following exceptions
              Thu Jun 15 16:11:06 GMT+05:30 2000:<E> <ServletContext-General> Servlet failed with Exception
              javax.servlet.UnavailableException: Couldn't find init param: compileCommand     
              at eblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
                   at weblogic.servlet.JSPServlet.init(JSPServlet.java:54)
                   at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:390)
                   at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java, Compiled Code)
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:338)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.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)
              Thu Jun 15 16:11:12 GMT+05:30 2000:<I> <ServletContext-General> servletimages: init
              will anybody help me to came out of this problem ?
              Thanking you in advance for helpfull solution
              

    I think if you add spaces to your init parameters that should solve your
              problem. As well you might want to install the latest service pack 5.
              There are some problems that you will encounter without the latest service
              pack.
              HC.
              Sandip Gajjar <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hello friends !
              >
              > I am using weblogic 5.1 evaluation copy without any service packs I had
              stated my properties file as below for JSP.
              > My compileCommand path is also OK.
              >
              > weblogic.httpd.register.*.jsp=\
              > weblogic.servlet.JSPServlet
              > weblogic.httpd.initArgs.*.jsp=\
              > compileCommand=c:/jdk1.2.2/bin/javac.exe,\
              > workingDir=c:/weblogic/myserver/servletclasses,\
              > verbose=true
              >
              > But then also my server throws the following exceptions
              >
              > Thu Jun 15 16:11:06 GMT+05:30 2000:<E> <ServletContext-General> Servlet
              failed with Exception
              > javax.servlet.UnavailableException: Couldn't find init param:
              compileCommand
              > at
              eblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
              > at weblogic.servlet.JSPServlet.init(JSPServlet.java:54)
              > at
              weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
              :390)
              > at
              weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
              va, Compiled Code)
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
              a:338)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
              4)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :99)
              > 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)
              >
              > Thu Jun 15 16:11:12 GMT+05:30 2000:<I> <ServletContext-General>
              servletimages: init
              >
              > will anybody help me to came out of this problem ?
              >
              > Thanking you in advance for helpfull solution
              >
              

  • Unable to compile add.jsp

    I am able to run the examples in the tomcat, but unable to run my own add.jsp which tries to connect to oracle9i. The following error is displayed. add.jsp file is copied at the end of this error message.
    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
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 4.1\work\Standalone\localhost\examples\add_jsp.java:7: '.' expected
    import DbConnect1;
    ^
    1 error
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         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:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)
    The add.jsp contents are
    <%@page contentType="text/html" import="DbConnect1,java.util.*,java.sql.*,java.lang.*"%>
    <html>
    <head><title>JSP Page</title></head>
    <%
    String no,name,c;
    //int n;
    no=request.getParameter("NUMBER");
    //n=Integer.parseInt(no);
    name=request.getParameter("NAME");
    c=request.getParameter("check");
    if(c==null) c="";
    if(c.equals("1"))
    out.println("Retry Again");
    if(name==null )
    {name="";}
    if(!name.equals(""))
              try{
              DbConnect1 t=new DbConnect1();
                   t.insert(no,name);
                   response.sendRedirect("display.jsp");
              }catch(Exception e){response.sendRedirect("add.jsp?check=1");
    else {%>
         <form action="add.jsp" method=post>
         <input type=hidden name=check>
         <BODY BGCOLOR=PURPLE>
         <BR><PRE><FONT COLOR=WHITE SIZE=4 STYLE="WESTERN"><B><BR><BR><BR><BR> NUMBER <INPUT TYPE=TEXT SIZE=10      NAME="NUMBER">
         <BR><BR> NAME <INPUT TYPE=TEXT SIZE=20 NAME="NAME"><BR>
         <BR><BR><BR><BR> <INPUT TYPE="SUBMIT" VALUE="ADD" onClick="display()">
         </FORM>
         </form>
         <%}%>
    <SCRIPT LANGUAGE ="JavaScript">
    function display()
    window.location="/project/display.jsp"; }
    </SCRIPT>           
    </html>
    Any help would be greatly appreciated.
    Thanks
    Geetha

    if you want to know how to declare a package for your classes
    Follow the steps to make your application work
    Make this as the first statement in your DbConnect1 class
    package DbConnect1;
    Compile the class and place the DbConnect1.class file into
    Tomcat/webapps/<yourapplication>\WEB-INF\classes\package\ directory
    for eg : if your package name is test then place the class files under
    Tomcat/webapps/<yourapplication>\WEB-INF\classes\test directory
    This is where Tomcat looks for class files
    If you have any doubts regarding directory dtructure to be followed in Tomcat please refer to some of the example packages under Root directory
    In your JSP say
    page import = packageName. DbConnect1
    -Hope this helps
    Regards
    Manikantan

  • Error when compiling JSF JSP

    I'm getting the following error when I try to compile an application containing a JSF JSP in JDeveloper 10.1.3. The error is:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I've checked the files in the classpath and the TagAttributeInfo class is located in <install>/j2ee/home/lib/servlet.jar. I decompiled the class and it does have a constructor that takes (String, boolean, String, boolean, boolean).
    The only change I made between when things worked and now is that I tried to add a JSF JSP that used the ADF classes. But once I started getting this compilation error, I removed the ADF classes from the project, so they shouldn't be causing any problems anymore.
    Any ideas what's wrong?
    Thanks

    Hello,
    May be that your classpath doesn't include that location ?
    Have you tried to put the TagAttributeInfo.class file into your current folder
    (or may be in ..\<your_project>\Classes\.. path ) ?
    To check if your classpath does actually include your path, you could run:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Dummy JSP-CLASSPATH</title>
    </head>
    <body>
    <%
    out.println("<h1><em>JSP Showing your CLASSPATH</h1></em>");
    out.println("<hr></hr><p>");
    out.println(System.getProperty("java.class.path"));
    %>
    </body>
    </html>
    Hope this will help you.
    Stephan

  • OLite compile JSF JSP error

    I'm using Olite 10g. I created a JSF JSP in JDeveloper and compiled and tested in. I packaged the web application into a WAR file and expaned it into the OLite webtogo root. When I use the package wizard to publish the web application, the JSF JSP fails to compile with this message:
    oracle.jsp.parse.JspParseException: Line # 4, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The JSP lines look like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    Does anyone have any thoughts as to how to resolve this issue?
    Thank-you.

    Here is a bit more with respect to the package wizard output message:
    C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\_pages
    Created Directory _pages : false
    These are the jspc arguments: -appRoot C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\ -d C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\_pages -packageName maintab -srcdir C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\pages -verbose -addclasspath C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\classes;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-beanutils.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-collections.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-digester.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-logging-api.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-logging.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jsf-api.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jsf-impl.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jstl.jar C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\maintab.jsp C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\index.jsp
    Translating file: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp
    Translating file: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp
    Parse error in login.jsp:
    oracle.jsp.parse.JspParseException: Line # 4, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    Error: java.io.FileNotFoundException: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\http:\java.sun.com\jsf\html (The filename, directory name, or volume label syntax is incorrect)
    ...

Maybe you are looking for