View JSP Examples in Tomcat 4

Hello everyone,
I will really appreciate your advise on this problem.
I am not able to run the JSP examples in Tomcat 4. I can see that the document sais:
These examples will only work when these pages are being served by the ServletRunner. They will not work if you are viewing these pages via a "file://..." URL.
But I don't know what does that mean. What should I do? How can I view these examples?
Thank you very much for any advise and for your time.
Martin

>
Normally JSP pages will be executed at server side
e before serving
the output to client. But you can see the same file
using any editor
or using windows explorer.i.e you are directly viewing
the jsp page.
here you are using file protocol. But when you access
the same page
using any browser by specifying it's URL for ex:
http://localhost:8080/myjsp.jsp
you are using http as protocol to get the required
page/file.
Gayam.Srinivasa ReddyHello ,
My problem is that when I start Tomcat and type in my browser:
http://localhost:8080/examples/jsp/index.html
I see the JSP examples. But when I try to click on one of them,
I get an error like this:
http://localhost:8080/examples/jsp/num/numguess.jsp
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
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
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214).......
....and so on...........
root cause
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String;)Ljava/util/Set;
     at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
     at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
     at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
     at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
....................and so on
Please give me a hint of how to fix this problem.
Thank you very much for your time and advise!
Martin
     

Similar Messages

  • JSP examples in Tomcat home page don�t run

    Hi,
    I installed Tomcat 5.5.10, Fedora Core 4 and JDK 1.5.0_04-b05 in my PC.
    When I run Mozilla and type http://localhost:8080, the Tomcat page appears on the screen, but when I try to run the HelloWorld example, I see the following error mesage:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error instantiating servlet class org.apache.jsp.jsp2.simpletag.hello_jsp
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    root cause
    java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp, method: jspxmeth_mytag_helloWorld_0 signature: (Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
    java.lang.Class.getConstructor0(Class.java:2640)
    java.lang.Class.newInstance0(Class.java:321)
    java.lang.Class.newInstance(Class.java:303)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    In my etc/profile file, I added the following lines (I think they are required for javac):
    JAVA_HOME=/opt/jdk1.5.0_04
    CATALINA_HOME=/usr/tomcat/tomcat
    PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$CLASSPATH:$CATALINA_HOME/common/lib/jsp-api.jar
    export CLASSPATH=.:$CLASSPATH:$CATALINA_HOME/common/lib/servlet-api.jar
    export JAVA_HOME CATALINA_HOME CLASSPATH PATH
    export CLASSPATH=.:$CLASSPATH:/db4o/db4o-4.6/lib/db4o-4.6-java1.2.jar
    Does anybody know what�s wrong?
    Thanks

    Hi,
    This is the source code for the tag example:
    <%@ taglib prefix="mytag" uri="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
    <html>
    <head>
    <title>JSP 2.0 Examples - Hello World SimpleTag Handler</title>
    </head>
    <body>
    <h1>JSP 2.0 Examples - Hello World SimpleTag Handler</h1>
    <hr>
    <p>This tag handler simply echos "Hello, World!" It's an example of
    a very basic SimpleTag handler with no body.</p>
    <br>
    <b><u>Result:</u></b>
    <mytag:helloWorld/>
    </body>
    </html>
    and this is the source code for the tag handler:
    package jsp2.examples.simpletag;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.tagext.SimpleTagSupport;
    import java.io.IOException;
    public class HelloWorldSimpleTag extends SimpleTagSupport {
    public void doTag() throws JspException, IOException {
         getJspContext().getOut().write( "Hello, world!" );
    }

  • Using TomCat to view JSP files

    I've installed tomcat for the purpose of viewing jsp files.
    In which folder am i supposed to place the jsp files to view them?
    Also, what address am i supposed to type in my browser ( http://localhost:8080/myJspFile.jsp ?????? )
    My tomcat folder is e:\tomcat
    and JAVA_HOME is d:\jdk1.3
    Thank you

    Here is a good link for you to start from
    http://www.moreservlets.com/Using-Tomcat-4.html#Try-Pages
    http://localhost:8080/myJspFile.jsp
    This looks right unless you have changed your port setting which the link above shows you how to change the port setting to port 80 so you dont have to type http://localhost:8080/blah it would http://localhost/blah.
    You_tomcat_install/webapps/ROOT
    or
    You_tomcat_install/webapps/ROOT/some_dir
    Anyways good luck and go to that link I gave you and it should help you out alot.

  • Disable tomcat servlet & jsp examples

    Running apache 2.0.63 on my nw65sp8 server, using it to host my web
    page. Server is also running tomcat 4.1 for misc other things such as
    GW webaccess.
    I'm wondering what I need to do to 'disable' the servlet & jsp examples
    from being available from my webpage.
    IE, so if I go to the following urls, nothing happens:
    http://my_web_page/examples/servlets/index.html
    http://my_web_page/examples/jsp/index.html
    https://my_web_page/examples/servlets/index.html
    https://my_web_page/examples/jsp/index.html
    Thanks,
    Stevo

    Nevermind, got it.
    In the portion of my httpd.conf where I'm loading the jk_module stuff
    (IIRC I had to put this stuff in for webaccess), I rem'd out the line
    to jkmount the examples.
    Stevo

  • Cannot compile JSP pages in Tomcat 5.0.28

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

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

  • VIEW TABLE EXAMPLE

    CAN ANYONE GIVE ME A STRUTS JSP EXAMPLE OF JUMPING FROM A BROWSE FORM ON ONE TABLE, PASSING A KEY TO PULL UP A RECORD ON THE SECOND TABLE AND EDIT THEN RETURN. (NOT USING THE BUILT IN EDIT FEATURE ON THE BROWSE SCREEN).

    continued......
    <b>Default Table View Model</b>
    To Display the static data into a table structure, we can use this class
    single or two d arrays can be used here.
    Now let us see how to  <i>create object for Default table View:-</i>
    DefaultTableViewModel model=new DefaultTableViewModel(data,col)
    now totatl page information would be available in this  variable 'model'.
    default table view model display according to the width and design we specify.
    Design->What all row, to be highlighted,Bold etc
    Now let us see the <u><b>JCO table View Model</b></u>
    In this case the the data is coming from any ERP or RDBMS systems.  and woudl be diplayed in the this table.
    To display the <b>dynamic data</b> in a table structure, coming from external systems, then we can use JCO table view model.
    (to be continued....)

  • Can not get JSP examples to run

    I am able to use the example servlets, but I can not get the JSP examples to run. I get the error listed at the end of this message.
    I am using jdk1.3.x and TOMCAT Version 3.2.3
    Here is my classpath
    .;C:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\privilegesparadox;C:\jdk1.3jre\lib\ext\XML4J.JAR;C:\jdk1.3\jre\lib\ext\mm.mysql-2.0.4-bin.jar;C:\jdk1.3jre\lib\ext\mssqlserver.jar;C:\jdk1.3\jre\lib\ext\mail.jar;C:\jdk1.3jre\lib\ext\activation.jar;C:\Netscape\Servers\java\ldapjdk.jar
    I am running this on win2000. I have done several years of servlet work and now am needing to do JSP stuff. I can not get the examples to run... so any of my test stuff does not work either.
    Error: 500
    Location: /examples/jsp/dates/date.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)

    I don't get it... I have been using jdk 1.3.x for sometime... a year now. All seems fine with servlets and java applications I have created. What could be not there if all of this works?
    If reinstall the jdk over top of where is is now, would that be of any help? I will copy my /ext jar files to a temp area first so I can keep my jar files.
    Dean-O

  • JSP examples not working

    I've recently installed 9iAS release 2 on a windows 2000 machine. It all seems to be working, except for the JSP examples. When I try the standard sun JSPs, I get the following type of message:
    java.io.FileNotFoundException: d:\midtier\apache\apache\htdocs\j2ee\examples\jsp\colors\colrs.jsp (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:2013)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1246)
         at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1141)
         at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:797)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:368)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:265)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:184)
         at oracle.jsp.JspServlet.service(JspServlet.java:154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:500)
         at org.apache.jserv.JServConnection.run(JServConnection.java:321)
         at java.lang.Thread.run(Thread.java:484)
    Anyone have any idea why this is occurring? Does it have anything to do with installing the November PDK for Portal and uncommenting the line in httpd.conf about jserv.conf?
    Carey

    Yes, you are right. By default, Apache JServ is disabled in ORacle 9iAS Release 2 installation. but since you uncommented the two lines, now jserv is active and will try to serve all JSP request intead of the defualt OC4J. Comment the two line again. (please use the EM to do this and do not comment the lines using a text editor.)
    You may require to restart.
    Shyam Ellur

  • Problem in running a jsp page on tomcat 5.0

    hi....
    i made a java class abc.java and then compiled it to get a java class file named abc.class in a package named pkg.
    Then i copied this package in the classes folder of the WEB-INF folder in tomcat 5.0.
    After that i created a jsp page in which i imported this class file. Now when i run the jsp page on tomcat 5.0 i get an error saying this:
    javax.servlet.ServletException: pkg/abc (Unsupported major.minor version 49.0)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.UnsupportedClassVersionError: pkg/abc (Unsupported major.minor version 49.0)
         java.lang.ClassLoader.defineClass0(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1214)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Can anyone please tell me the solution to this problem?
    thanks

    This post:
    http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200408.mbox/%[email protected]ys.com%3E
    Leads me to believe that you're compiling and targeting a java version that your tomcat installation doesn't support. What version of the JDK are you using?
    Good Luck
    Lee

  • Jsp program on tomcat

    I am having trouble with a simple jsp program on tomcat. I have one Java bean class that the jsp cannot find. It is in the classes directory under WEB-INF. I have tried it with and without my web.xml file and I get the same error.
    org.apache.jasper.JasperEXception:  Unable to compile class for JSP:
    An error occurred at line: 5 in the jsp file: processFormData.jsp
    The import Inn cannot be resolved
    <%@page language="java"%>
    <%@page import="Inn"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiional//EN />"
    <jsp:useBean id="inn" scope="request" class="Inn"/>
    <jsp:setProperty name="inn" property="*" />Julie

    Thanks. I'm not sure I understand why, but that was the problem.

  • Problem on reload a JSP file in Tomcat 3.3.1

    I have a problem about Tomcat 3.3.1
    I am developing a JSP application,
    but Tomcat not recompile the JSP file after i modify it.
    I need to "wait" the tomcat recompile it, so i can see the change.
    This make the development really difficult...
    Do I miss some important step on config Tomcat 3.3.1
    how to force it to detect a newer version JSP in every request ??
    Thanks

    I believe there is a way to configure Tomcat to do this, but I don't know what it is.
    Until someone can tell you the configuration steps, here is a workaround. Tomcat keeps the Java source and class files for your JSP code somewhere under its "work" directory. Find those files and delete them, which will force it to re-compile.

  • How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4

    Hi There,
    I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
    When I try to see a JSP, if it has an error (compilation-time error), I get this message:
    <--->
    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
    <--->
    This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
    Help anyone?
    Thank You
    Pinho

    This kind of errors often come from syntax error in
    the jsp page.
    Tomcat is not very friendly with this kind of errors.
    A trick is to open the java file under the 'work'
    directory and checkIsn't there any way to show the error on a page, just like a run-time error?
    Maybe changing some log setting?

  • How to use debug my jdevloper devloped jsp applications using tomcat 4.0?

    hello,
    how to use debug my jdevloper devloped jsp applications using tomcat 4.0?
    how to run with using tomcat path with browser?
    can any one help?
    thanks
    pullareddy

    Hi Pullareddy,
    Charles' answer will work for Servlets in Tomcat, but debugging JSPs is a bit more complicated than debugging Servlets.
    Here's what you need to do:
    (I don't have Tomcat, so I don't know the details of Tomcat configuration files and I can't guarentee that Tomcat provides the flexibility so that you can configure it for debugging JSPs. Each application server is configured a bit differently. Hopefully you can adjust the following instructions to Tomcat.)
    1. You need to replace Tomcat's JSP engine with OJSP and you need to setup debugging parameters for OJSP.
    This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
    Here are some tips:
    A. You'll probably need to specify the following jars in some Tomcat config file: ojsp.jar, ojsputil.jar, xmlparserv2.jar, ojc.jar, and jdev-rt.jar.
    B. The OJSP class name is oracle.jsp.runtimev2.JspServlet.
    C. The debug parameters are:
    debug_mode = true
    developer_mode = true
    encode_to_java = true
    emit_debuginfo = true
    jspjavacompiler = oracle.jdevimpl.jsp.JspOjcCompiler
    2. You need to make Tomcat start the Java command with debugging options. (This is what Charles was talking about. One of the debug options is -XXdebug). This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode". Please read that documentation help topic.
    3. You need to delete any old .java or .class files which were created in the past for your JSP. If you leave old .java or .class files around, then the debugger may not be able to stop at breakpoints in your JSPs. So, be sure to clean up old files.
    4. Set your project settings for remote debugging. This is on the Debugger - Remote panel in the Project Settings dialog box. You probably want either Attach to OJVM or Attach to JPDA. Which radio button you choose depends on what command line options you specified in step 2.
    -Liz

  • Core dump when trying to call JSP examples on OC4J 2.0

    Hi all,
    I just installed and configured OC4J 2 with 9i AS 1.0.2.2.1 (core). I can see the OC4J welcome page fine, I can execute the servlets (examples) fine but when I go to JSP examples I get the following error:
    signal number: 11, signal code: 1, fault address: 0xf8bf5fbc, pc: 0xff3669a4, sp: 0xfea03a50
    libthread panic: fault in libthread critical section : dumping core (PID: 892 LWP 11)
    stacktrace:
    ff3595c8
    ff358014
    fe57fa94
    fe59feec
    fe58fee8
    fe57fd0c
    ff36bb34
    fe57fcec
    argh! any help would be appreciated!
    Ryan

    Could you please check your JDK version. Does this happen with all JSP samples. Also, could you please test in a standalone environment. Use OC4J 2.0 standalone.
    thanks,
    -Prasad
    Hi all,
    I just installed and configured OC4J 2 with 9i AS 1.0.2.2.1 (core). I can see the OC4J welcome page fine, I can execute the servlets (examples) fine but when I go to JSP examples I get the following error:
    signal number: 11, signal code: 1, fault address: 0xf8bf5fbc, pc: 0xff3669a4, sp: 0xfea03a50
    libthread panic: fault in libthread critical section : dumping core (PID: 892 LWP 11)
    stacktrace:
    ff3595c8
    ff358014
    fe57fa94
    fe59feec
    fe58fee8
    fe57fd0c
    ff36bb34
    fe57fcec
    argh! any help would be appreciated!
    Ryan

  • How to call EJB deployed on websphere from JSP running on Tomcat?

    I am trying to establish communication between two app servers. I have a sample EJB deployed on Websphere and wish to call its business methods from a JSP page which is running on Apache Tomcat server. (ie) Tomcat is client to websphere. Is it possible to do? If so, what are the client Jar files of websphere that I should make available to JSP page on Tomcat? Do I need to set any Jars in Tomcat environment variables? Lood forward for your immediate help. Thanks in advance

    Please see the thread
    http://forum.java.sun.com/thread.jspa?threadID=514536.
    Hope that helps..

Maybe you are looking for

  • What happened to the edit tab that used to display at the top allowing me to copy and paste website addresses sent to me in e-mails?

    There used to be a display at the top of the page that had tabs for edit and other items that are no longer there with FF4. Am I missing something? I have checked the drop-down at the upper left but can find no way to copy/cut and paste while in e-ma

  • Singleton class in WebLogic Cluster

    Hi, We have an application set-up in a weblogic cluster. We have a singleton class in the application. Since we have two managed servers in the cluster the singleton has two instances, one in each server. So the basic purpose of use of singleton is l

  • Can you export a raw image to an external editor?

    Just wondering if Aperture 2 will allow you to edit a raw image in an external editor (Nikon Capture NX) as a raw image not as a tiff? Thanks.

  • JTree from root

    If a TreeNode has been set as the root of a JTree, is there any method that will recover the JTree from the TreeNode (other than just coding the info into the program's data when you set the node as root)?

  • SA500 VPN Access - list support

    I have a site that has a need for 3 different remote vpn user profiles I have 1 user that needs access to the entire private subnet 1 user needs access to just 1 address 1 user needs access to 5 of the ip addresses. Is this possible? What other SMB s