Javaserver Page

Hello all,
I am working on creating a deployable proxy and client javaserver page to consume a web service. I have created a Netweaver Development component for my deployable proxy, I specified my WSDL file, built the proxy and deployed it. That all seemed to work fine. I checked the General User Output and did not find any error messages.
The part that I'm stuck on right now is the Javaserver Page. I'm following the instructions from the 'Creating a Client JavaServer Page' section from the website:
http://help.sap.com/saphelp_erp2005/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
I have created another Development Component for my web module project. I also created my jsp file without problems. The next part is the one that I'm stuck on. The instructions say 'Select the name of the project and choose Add Web Service Client API Library from the context menu'. When I right click on the name of my web module project, I don't see this option. The closest thing that I see to it is 'Add Reference to WS Proxy DC', and it is grayed out.
I tried creating a different Web Module project that is not a Development Component. I created the jsp file for it. When I click on this project, I do see the 'Add Web Service Client API Library' option, but it is grayed out.
Can anyone point me in the right direction here as to what I need to do?
Thanks!
-Stephen Spalding
Web Developer
Graybar

Hi Stephan,
What version are you using?
I see your link is to documentation in the ERP section for information on consuming Web services. Perhaps this link might help you: http://help.sap.com/saphelp_nw04/helpdata/en/81/12703e5da3e946e10000000a114084/frameset.htm
Hope this helps.
Daniel

Similar Messages

  • Sams Teach Yourself Javaserver Pages in 24 Hours

    Hi.
    I'm a new user of Weblogic and I'm presently learning JSP. Like most people do
    I went out and bought a beginner's book on JSP.
    The book I bought is Sams Teach Yourself Javaserver Pages in 24 Hours by Jose
    Annunziato (DSc) and Stephanie Fesler Kaminaris.
    Up to now I've spent the 5 first hours trying to run my first JSP on Weblogic
    (seems like it's going to take more than 24 hours to complete the book!). The
    problem was simply a wrong path for the compileCommand variable in the weblogic.properties
    file.
    the authors suggest the following:
    compileCommand=c:/jdk1.2.2/javac.exe
    when it should be:
    compileCommand=c:/jdk1.2.2/bin/javac.exe
    The point I want to make is that this type of error is far too frequent in computer
    programming books, considering the prohibitive price they're sold at, and it shows
    a lack of respect on the part of the authors and/or publishers for the people
    who buy them. I encourage everyone to do like me and denounce these people on
    newsgroups all over the Internet. When their sales go down they will surely take
    action.
    On the positive side, I want to congratulate BEA for their newsgroups. This is
    how I finally got on the track to solving my problem. Otherwise, I probably would
    have spent at least 24 hours hacking around just to get that first JSP to work
    in Weblogic.
    Thanks.

    Hi.
    I'm a new user of Weblogic and I'm presently learning JSP. Like most people do
    I went out and bought a beginner's book on JSP.
    The book I bought is Sams Teach Yourself Javaserver Pages in 24 Hours by Jose
    Annunziato (DSc) and Stephanie Fesler Kaminaris.
    Up to now I've spent the 5 first hours trying to run my first JSP on Weblogic
    (seems like it's going to take more than 24 hours to complete the book!). The
    problem was simply a wrong path for the compileCommand variable in the weblogic.properties
    file.
    the authors suggest the following:
    compileCommand=c:/jdk1.2.2/javac.exe
    when it should be:
    compileCommand=c:/jdk1.2.2/bin/javac.exe
    The point I want to make is that this type of error is far too frequent in computer
    programming books, considering the prohibitive price they're sold at, and it shows
    a lack of respect on the part of the authors and/or publishers for the people
    who buy them. I encourage everyone to do like me and denounce these people on
    newsgroups all over the Internet. When their sales go down they will surely take
    action.
    On the positive side, I want to congratulate BEA for their newsgroups. This is
    how I finally got on the track to solving my problem. Otherwise, I probably would
    have spent at least 24 hours hacking around just to get that first JSP to work
    in Weblogic.
    Thanks.

  • Deploy JavaServer Page

    Where found documentation about deploy a JavaServer Page in a OAS?
    I follow a OnlineOrders Sample Aplication Manual. Jdeveloper 3.0 OAS 4.0.8.1
    thanks.

    sorry.. I find a forum about this.
    null

  • [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

    I'm proud to announce that the 3rd Edition of my JavaServer Pages book
    is now available at Amazon.com, BarnesAndNoble.com and other online
    stores, as well as in most regular book stores.
    The 3rd edition covers all the great new features added in JSP 2.0 and
    JSTL 1.1, such as tag files (custom tags as JSP pages), the Expression
    Language, the new, simplified tag handler API, XML syntax enhancements,
    new configuration options, and a lot more.
    For more information, a sample chapter and the updated examples, please
    visit the book web site:
    http://www.thejspbook.com/
    Hans Bergsten

    Nice work, Hans. It's a tribute to you that you've hit a 3rd edition. I thought the earlier ones were very good. - MOD

  • Oracle interMedia JavaServer Pages Demo

    Hi all,
    I downloaded and use a example that is jsp_album10g.
    from Oracle site,
    I have a problem when I test a example about interMedia JavaServer Pages Demo (eg: PhotoAlbumBean).Althought, I set Classpath for some Oracle libraries and Java Servlet SDK library (for example :servlet.jar,ordhttp.jar.....) , but I have some errors when I compiled the PhotoAlbumBean.java. Such as packet oracle.jdbc does not exist or packet javax.servlet does not exist....
    it seam all this libraries can not be found ???
    So I can not compile this file.
    Any one can help me ?
    Thanks alot

    Hi all,
    I downloaded and use a example that is jsp_album10g.
    from Oracle site,
    I have a problem when I test a example about interMedia JavaServer Pages Demo (eg: PhotoAlbumBean).Althought, I set Classpath for some Oracle libraries and Java Servlet SDK library (for example :servlet.jar,ordhttp.jar.....) , but I have some errors when I compiled the PhotoAlbumBean.java. Such as packet oracle.jdbc does not exist or packet javax.servlet does not exist....
    it seam all this libraries can not be found ???
    So I can not compile this file.
    Any one can help me ?
    Thanks alot

  • Advanced JavaServer Pages

    I am trying to run David Geary's Advanced JavaServer Pages book.
    I have problems with running the "database:query" jsp tag in Chapter 10: Databases.
    I do not know why the query can not pass from QueryTag.class to Query.class. Here is the error that I got:
    javax.servlet.jsp.JspException: Query query-customers not found. Please retry the query
         at beans.jdbc.Query.findQuery(Query.java:54)
         at tags.jdbc.ReleaseTag.doEndTag(ReleaseTag.java:18)
         at org.apache.jsp.showCustomerQuery$jsp._jspService(showCustomerQuery$jsp.java:211)
    Any one have tried this?
    Thanks a lot!

    I am having the exact problem. Did you find a solution?

  • Error in JavaServer Pages: NoClassDefFoundError

    I'm trying to execute a JSP page. When I do the server generates the following error:
    java.lang.NoClassDefFoundError: AlphabetCode (wrong name: webpages/AlphabetCode)
    My CLASSPATH is set to this directory:
    CLASSPATH=D:\Download\javaSDK\JSWDK-~1.1\webpages\WEB-INF\servlets
    The class I'm trying to access is named:
    AlphabetCode.class
    Here is the source:
    import java.awt.Color;
    import java.util.*;
    public class AlphabetCode
         HashMap map;
         char c = 0;
         Integer colorNumber;
         static int FIRST_LETTER = 0x41;
         static int ALPHABET_LENGTH = 26;
         float s = 0.9f;
         float b = 0.9f;
         public AlphabetCode()
              this.map = new HashMap(ALPHABET_LENGTH);
              for (int i = 0; i < ALPHABET_LENGTH; i++)
                   this.c = (char)(FIRST_LETTER + i);
                   float h = (float)i/ALPHABET_LENGTH;
                   this.map.put(new Character(c), Color.getHSBColor(h, s, b));
         public void setCharacter(String nextChar)
              this.c = nextChar.charAt(0);
         public String getCharacter()
              return (new Character(this.c).toString());
         public String getColor()
              Color rgb = (Color)map.get(new Character(this.c));
              StringBuffer htmlColor = new StringBuffer(colorNumber.toHexString(rgb.getRGB() & 0x00ffffff));
              if (htmlColor.length() != 6)
                   htmlColor.insert(0, "\"#00");
              } else
                   htmlColor.insert(0, "\"#");
              htmlColor.append("\"");
              return htmlColor.toString();
    And finally this is the JSP code that I wrote:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Color Demo I</title>
    </head>
    <body>
    <%@ page language="java" %>
    <%! char c = 0; %>
    <jsp:useBean id="letterColor" scope="application" class="AlphabetCode"/>
    <%
         for (int i = 0; i < 26; i++)
              for (int j = 0; j < 26; j++)
                   c = (char)(0x41 + (26 - i + j)%26);
                   Character thisChar = new Character(c);
                   letterColor.setCharacter(thisChar.toString());
    %>
         <FONT COLOR=<%=letterColor.getColor() %>>
         <%= letterColor.getCharacter() %>
         </FONT>
    <%
    %>
    <br>
    <%     
    %>
    </body>
    </html>
    Any comments or input is greatly appreciated.

    The problem is caused by the JSP referencing the AlphabetCode class but not being able to find it. Which directory is the AlphabetCode class file in? Is it in the webpages\WEB-INF\servlets directory? It seems from the error message that the JSP is expecting to find it in the webpages directory. Try moving it.
    Otherwise, post the code for your JSP (or at least the part where you instantiate the AlphabetCode class)

  • JavaServer Pages

    This is my jsp:
    <%@ page = "java" import "java.util.*"%>
    <html>
    <body>
    <form action="" method = "get">
    <input type="text" name="Inform"><br>
    <input type=submit Value="submit">
    <%
    Map dns = new HashMap();
    FileReader read = new FileReader("t.txt");
    BufferedReader br = new BufferedReader(read)
    String line;
    %>
    <%
    line = br.readLine();
    while (line !=null)
    StringTokenizer st = new StringTokenizer(line, " ");
    dns.put((st.nextToken()), (st.nextToken()));
    %>
    <%
    if(!dns.isEmpty)
    if(dns.containsKey(request.getValue(Inform));
    out.println("<p>IP Address for you domain: " + dns.get(request.getValue(Inform)) + "</p>");
    else if(!dns.containsKey(request.getValue(Inform)))
         out.println("<p>Not found: </p>");
    else
    out.println("<p>No Data in system: </p>");
    %>
    </body>
    </html>
    And this is the error is generates:
    HTTP Status 500 -
    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
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:481)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         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:260)
         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.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:2350)
         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:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         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:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:539)
    root cause
    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
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:311)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:322)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         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:260)
         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.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:2350)
         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:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         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:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:539)
    CAN SUMONE PLZ TELL ME WOT IM DOING WRONG!!!!!

    ur page import tag is wrong
    it should be like this
    <%@ page import = "java.util.*" %>
    and not
    <%@ page = "java" import "java.util.*"%>

  • Advanced JavaServer Pages - JSP Templates

    Great book but example template code not working..
    I am having trouble getting the template example6.jsp working with the code supplied with the book. The code seems to be buggy when attempting to nest regions within regions.
    Has anybody else had this problem ?
    Problem as below
    javax.servlet.jsp.JspException: regions can be created from a template or another region,but not both at
    tags.regions.RegionDefinitionTag.doStartTag(RegionDefinitionTag.java:18)
    at /example6.jsp._jspService(/example6.jsp.java:89) (JSP page line 5)

    Book source can be downloaded at
    http://www.phptr.com/advjsp/
    the source is contained within a jar, the location within the jar is as follows
    \booksource\4\regions_examples\
    Example6.jsp and Example7.jsp, which contain nested regions, are the two examples which are not working correctly.
    There is also a pdf download of the Templates Chapter 4 on the web page. Well worth a read.
    Thanks for any help.

  • Oracle 9i Lite and JavaServer Pages (JSP)

    Hello,
    I was refered to this forum as I have a couple of questions:
    1. If I have an application built on JSPs and Servlets that runs against Oracle 9i and Oracle 9ias, Could I run the same application on Oracle Lite without making any changes to the application? if not, what are the changes I have to consider?
    2. I read that Oracle 8i is the database you use to make the tests, can I use Oracle 9i as well?
    3. I understood that J2EE is supported, do I need a special version/patch to be installed?
    Thanks.

    I also get the POL-3013 error message when trying to connect to the polite database as well as my own db. I can setup the user-dsn and run CREATEDB with no errors. I can even validate the db and no errors are reported. But I cannot use msql to connect to it. It used to work on my previous Win2k-machine with P4 cpu, but will not work with XP and Celeron.

  • How to use the servlets and javabeans in the JavaServer Pages?

    I have some trouble on the usage of JavaBeans and Servlets.
    Who can tell me the resource about those?
    Thank you!

    The JOT Servlets framework integrates Java Beans and Servlets. You can download the evaluation package and look at the demonstration applications to get some ideas about how it works.
    JOT Servlets - http://www.jotobjects.com

  • JavaServer Pages (JSP) and JSTL

    Hi!
    I need to create a table where the user specifies only the td of the table. I do not know the size that the user will come but if he put 3 columns he needs to create these columns and then write the result
    thanks.

    Hi! I'm sorry
    I just forget to mention the problem,
    I am passing the following information to the TagLib.
    <mytag:table var="varItem" items="collVO">
    <mytag:colum print="Name" itens="${varItem.name}" with="100"></mytag:colum>
    <mytag:colum print="End" itens="${varItem.end}" with="100"></mytag:colum>
    <mytag:colum print="City" itens="${varItem.city}" with="100"></mytag:colum>
    </mytag:table>and I am getting this information again.
    private void getTable() throws JspException
    Object obterCollVoRequest = ExpressionEvaluatorManager.evaluate("collVo", getCollVO(), java.lang.String.class,this.pageContext);
    setCollVO(obterCollVoRequest.toString());
    Collection collectionCollVo = (Collection) pageContext.findAttribute(obterCollVoRequest.toString());
    setCollection(collectionCollVo);     
    }This problem is that he is coming null not know why this error, and I am not aware mounted the table with the above information (Remembering that is dynamic).
    Example:
    <table>
    <tr>
       <td>Nome</td>
       <td>End</td>
       <td>City</td>
    </tr>
    <tr>
       <td>Roger</td>
       <td>Street A Number 22</td>
       <td>New York</td>
    </tr>
    <tr>
       <td>Thomas</td>
       <td>Street Clich Number 199</td>
       <td>New York</td>
    </tr>
    </table>Thank you for your attention!
    Edited by: rdfcp on Oct 28, 2008 9:51 AM

  • Price not getting displayed in next page

    ok this is very simple, i don't know y it is not working
    i m calculating my price in shoppingcart.jsp and then i want to show it as hidden value in form.jsp, i m getting null in form.jsp
    <input type="hidden" name="textfield" value="<%=sum%>"  />////in shoppingcart.jsp
    <%=request.getParameter("textfield")%> ////in form.jsp

    ok this is very simple, i don't know y it is not
    working
    i m calculating my price in shoppingcart.jsp and then
    i want to show it as hidden value in form.jsp, i m
    getting null in form.jspYou might have a better chance of getting a response by posting this in the JavaServer Page (JSP) forum here.

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

  • Warning message on JSP page

    Hi all,
    I have 2 JSP Pages, page 1 contains attachment button for (attachment to be uploaded ) and Done button for navigating to second JSP page. Currently Done button is not wait for the attachment to be uploaded .When user clicks on Done Button if attachment is in processing I need to display warning message like "attachment have not been attached. if you continue, attachment will be lost".with OK Cancel buttons.
    Can anyone please suggest
    Thanks in advance.
    Bhavana

    Please post JSP related queries here...
    JavaServer Pages (JSP) and JSTL
    Thanks
    --Anil
    http://oracleanil.blogspot.com

Maybe you are looking for