TOMCAT WEB SERVER & JAVABEANS

Hello fellow Java ppl. I was wondering if anyone knew the directory that you have to place a javabean and its .class file in when it is being called by a .jsp program. Any help you could give would be appreciated, i've been working on this for 8 hours now...

ok, i did that but then i got this error....
org.apache.jasper.JasperException: Unable to compile class for JSPC:\WEBSERVER\Jakarta\jakarta-tomcat-4.0-b5\work\localhost\examples\jsp\Adesh\_00028af_00029strminfo2_jsp.java:61: Class org.apache.jsp.lineBean not found.
lineBean bean0 = null;
^
C:\WEBSERVER\Jakarta\jakarta-tomcat-4.0-b5\work\localhost\examples\jsp\Adesh\_00028af_00029strminfo2_jsp.java:64: Class org.apache.jsp.lineBean not found.
bean0= (lineBean)
^
C:\WEBSERVER\Jakarta\jakarta-tomcat-4.0-b5\work\localhost\examples\jsp\Adesh\_00028af_00029strminfo2_jsp.java:69: Class org.apache.jsp.lineBean not found.
bean0 = (lineBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "lineBean");
^
- mybean is my package
- linebean is the class
- bean0 is the id in the declaration in the jsp file.

Similar Messages

  • Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server

    Hello Experts,
    I have never done a BOBJ install before and I have some questions:
    First, here is our setup: Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server
    1.     We are being asked how big u2013 disk space- to make the server. All I can find is 14 GB for an English only install, there is no documentation on how big the databases need to be. Does anyone have any experience and can tell me how big the databases are going to be initially? I need to tell the server team how much space to put on the server.
    2.     The documentation says to have two databases or schemas, one for Central Management Server and one for the Auditing Data Store. My question around this is whether there is a preferred way to do it, separate databases or separate schemas?
    3.     The documentation does not say anything about the file system layout, do we need to create the standard SAP file system layout (i.e. /sapmnt, etc.)
    Many many thanks in advance, any advice would be a greate help .. please help
    Regards,
    Sunil Patel

    Hi,
    here are some answers:
    1. Well for the Installation of the Software as itself (not the databases) i would recommend at least 30 GB. All the Reports are getting stored physically in the installation directory. This behavior is by default. Later you can move the FileStore (where the Reports, Universes, etc. are located in) to a NAS share f.e.
    With Regards to the Databases i would recommend 1 GB for the CMS DB and 5 GB for the Audit DB. It depends on how you Audit your System. If you audit more actions, more information in the Audit DB will be stored.
    2. 2 Schemas on one DB is fine
    3. Usually you run a BOE installation on UNIX/LINUX under an installation user. BOE will be installed into his Home Directory.
    Regards
    -Seb.

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

  • Tomcat web server

    hello
    i am a italian newbie for java world, and i would want to make you a question:
    for resolving a problem with tomcat web server i must interpretate the following sentence: The best fix is to turn off automatic webapp reloading for the application: in Tomcat's server.xml, find the <Context> declaration, and ensure it is set to: reloadable="false".
    there is someone who knows well the tomcat server.xml configuration file?
    thank you very much
    ps: sorry for my english!

    hi :-)
    when you have a new class, you put it in /WEB-INF/classes/ right?
    tomcat doesnt load this automatically,
    you have to start-stop tomcat to apply your changes.
    when reloadable option is set to true (ex. reloadable="true" )
    you dont need to start-stop tomcat because tomcat will
    automatically load it for you.
    its ok for me in development stage,
    but when you deploy your application for production,
    its no longer advisable.
    why?
    because setting it to reloadable to true eats much resources on the server :-(
    imagine you have 5000 class and when your setting is autoreload.
    this might cause your server to hang.
    its better to just stop the server, put your classes then start again the server.
    i have to go home for now, i hope i give an idea :-)
    regards,

  • Eclipse and TomCat Web Server

    Hi experts,
       I have been working with Eclipse for last 1 month. I was just working with Portal application component development and publishing it to the SAP EP J2EE server everything worked fine.
       I have eclipse,JDK,Tomcat3.3.2 installed in my laptop and EP J2EE engine runs on the server.
       Now i studied online regarding the development process with eclipse, The portal application component is published to Tomcat web server first and tested for possible errors and then published to the EP J2EE server. How this process is handled?
      Can any expert explain on this and provide me link to make the required configuration of eclipse  for publishing to tomcat web server?
    Thank you
    arun

    Well, the answer I found was that I have an invalid character that is not supported yet by the WAS, the character is "ñ".
    Using Eclipse and deploying in Tomcat worked fine but in WAS 7.0 SP 8 it throws ParseExceptions
    Regards

  • Some tutorial for Tomcat Web Server

    Hi,
    I would like to know where I can find a downloadble tutorial about
    Tomcat web server.
    I am a begginer in Java technologies and I have a question.
    ,Tomcat web Server works also like App Server? and Can Apache web
    server works together Tomcat app server? and if it possible, How?
    Give me an example, please.
    Thanks a lot,
    ras283

    You can go to apache.org for information.
    Tomcat can work with Apache, but it only serves JSPs and servlets (and static pages, if you don't want to bother with Apache).
    The J2EE Reference Implementation (j2sdkee1.3.1) includes Tomcat, and functions as an app server as well. See the J2EE tutorial http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html and Java Pet Store demo http://interstagedemo.fs.fujitsu.com:8000/petstore/index.jsp / http://java.sun.com/features/2001/12/petstore13.html

  • Upload JSP web site to Tomcat web server

    Hi,
    I have created a JSP web Application in my localhost. Here as my web/Application server I used Sun java system Application server.
    Now The site is ready to upload to its remote location.
    Since this is my first attempt to JSP web site I have ask some help from you guys.
    Now the problem is on our remote server we have Apache Tomcat/5.5.17
    Is it a possible to Put our local site there at tomcat.
    Then How can I do that.?
    Thanks!

    Hello,
    VSTO doesn't provide anything for this. Instead, I'd suggest asking web site related questions at
    http://forums.asp.net/ . There you will get the most qualified feedback.

  • How to resolve the issue "ignoring compiler setting" in Tomcat Web Server

    Hi All,
    In the Environment set up
    jdk1.3.1_09
    Apache Tomcat 4.1.24
    I'm getting the following error when i request a jsp file.
    Please help to solve this issue.
    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
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:44: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] PCSTDatabaseConnectionPoolingBean connectionpool = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:46: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] connectionpool = (PCSTDatabaseConnectionPoolingBean) pageContext.getAttribute("connectionpool", PageContext.SESSION_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:49: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] connectionpool = (PCSTDatabaseConnectionPoolingBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "PCSTDatabaseConnectionPoolingBean");
    [javac] ^
    [javac] 3 errors
         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.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:2415)
         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:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:479)

    [javac] PCSTDatabaseConnectionPoolingBean connectionpool = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:46: cannot resolve symbol
    The compiler doesn't know what PCSTDatabaseConnectionPoolingBean is. Have you properly imported the class?

  • Problem starting Tomcat web server in Ubuntu.

    Hi every one,
    I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
    '/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
    I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
    I have set JAVA_HOME varible as
    '/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
    line 41 is '. setJava --devel Java2'
    Could anyone help me to solve this issue?
    And Thanks in advance
    -Jegan

    I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
    '/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
    I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
    I have set JAVA_HOME varible as
    '/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
    line 41 is '. setJava --devel Java2'
    Could anyone help me to solve this issue?
    And Thanks in advance

  • Tomcat Web-server uses old .class files

    Hi Friends,
    My Tomcat webserver uses old .class files. The problem persists even if I delete old class files. The new ones are formed but then if i again recompile, the new-old ones are used :)
    Am I doing something wrong????
    Please suggest!!

    I have experienced this problem before as well. Tomcat seems to cache compiled class files for better speed. To get Tomcat to reload class files that I've recently recompiled here is what I do:
    1. Go into the Tomcat server administration area (http://localhost/admin)
    2. Choose the context that is using the classes that you want to reload (from Service / Host)
    3. Make sure reloadable is set to true
    3. Click save, and then commit changes
    Hope this helps, but if there is a better way to get Tomcat to use the most recent class files I would love to hear it!

  • How to Configure Apache Web Server  with Tomcat web container in Linux

    Hi all,
    I am working on Tomcat web server 5.0.19 on Linux AS 3.0., ( my Control Server)
    I need map my tomcat to Apache Web Server (httpd) in another system
    (web server).
    I dont have jk2_ or jk_mod .so files to use in my tomcat/conf directory to make them available for httpd.conf files of Apache Web server.
    I have only jk2.properties file in my conf.,
    Please tell me how to go about it
    my mail id [email protected]
    Thank You
    Subramanyam.V
    Hyderabad
    India

    The simple answer is to download a web server that has a web container already integrated on it, so all that painful configuration work is avoided.
    You can use the mature SJS Web Server 6.1 SP5 at
    http://www.sun.com/webserver
    Or you can try a preview of the upcoming version at
    http://www.sun.com/download/products.xml?id=446518d5
    You will get better performance and security, with easy of use, at about the same price ;)

  • Can ne one help me in installing STRUTS on Tomcat 4.1 web server

    Can ne one help me in installing STRUTS on Tomcat 4.1 web server.
    I haven't started yet.. Please Help me.
    Thanx in Advance.
    Regards,
    Ashutosh Sharma

    first try to get a file "struts-blank-1.3.8.war" from internet...
    before that we need to get certain jar files from net .. as these wud be necessary for the struts deployment on our tomcat
    antlr-2.7.2.jar
    bsf-2.3.0.jar
    commons-beanutils-1.7.0.jar
    commons-chain-1.1.jar
    commons-digester-1.8.jar
    commons-fileupload-1.1.1.jar
    commons-io-1.1.jar
    commons-logging-1.0.4.jar
    commons-validator-1.3.1.jar
    jstl-1.0.2.jar
    oro-2.0.8.jar
    standard-1.0.2.jar
    struts-core-1.3.8.jar
    struts-el-1.3.8.jar
    struts-extras-1.3.8.jar
    struts-faces-1.3.8.jar
    struts-mailreader-dao-1.3.8.jar
    struts-scripting-1.3.8.jar
    struts-taglib-1.3.8.jar
    struts-tiles-1.3.8.jar
    if u download struts 1.3.8.zip then u'll get all the files + with in the apps folder u'll get the war files that have some
    examples
    eg:-
    struts-blank-1.3.8.war
    struts-cookbook-1.3.8.war
    struts-el-example-1.3.8.war
    struts-examples-1.3.8.war
    and so on..... u mite get these files with some books ....... these war files contain the examples that u can run
    ******************* HOW TO DEPLOY STRUTS ON TOMCAT WEB SERVER ( I am Using apache-tomcat-5.5.25 ) ***********************
    copy all the .jar files that are present in the lib folder of the struts kit to the "\common\lib" folder of
    apache-tomcat-5.5.25
    Note that in Environment Variable CLASSPATH must be specified to lib folder of the tomcat than only these files will work
    Now copy the "struts-blank-1.3.8.war" file from the "apps" directory that will contain many ".war" files to "\webapps" folder
    of tomcat.
    now shutdown and then restart the tomcat webserver, now in the "webapps" folder u can see a folder as "struts-blank-1.3.8"
    now open Internet Explorer or any other Web Browser that ur using and type in
    http://localhost:8080/struts-blank-1.3.8
    if the page is coming showing u a welcome message it means struts are running fine
    Friends this mite be useful for all the beginners.. as i am a beginner so i know the problems that can come to start..
    Regards,
    Ashutosh Sharma

  • My Tomcat is dead. (web server that is)

    Good day to all.
    I am developing a web application site using Forte. I was using the built in Tomcat Web Server to do the testing on my local machine. It's a simple application that uses a database server, web server, and web browser. Yesterday I made a change to a class file, reloaded the server, and BAM, got a page can not be displayed message. This was strange since in the past if I goofed on the code I would get exception messages from the server. I undid my change but still got nothing from the server. I uninstalled and reinstalled the server, reset my web context for the site I am working on, nothing worked. I posted the site to my outside web server running resin and the thing works fine. I can't find any help in Forte's help section.
    Can anyone offer some advice as to how to at least debug what's going on?
    Thanks so much.

    Ususally this kind of thing is down to class loading problems. Referenced classes, methods etc. missing from Tomcat's limited classpath.
    The place to look is in the log directory. catalina.out and the log file relevant to the particular webapp.
    Hopefully you'll find an expection report and stacktrace.

  • Tomcat 5.0 & JavaBean

    I'm getting in trouble with Tomcat & JavaBean.
    1) I've installed Tomcat 5.0 in the following directories:
    "C:\Programmi\Apache Software Foundation\Tomcat 5.0"
    2) I've started Tomcat and I tried it in "http://localhost:8080". Tomcat Web Server works perfectly.
    3) I've created the following simple JavaBean (prova.java). It do nothing. I've compiled it (using JcreatorLE ide) and I copied files in the following directory:
    "C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\ServiceDiscovery\WEB-INF\classes"
    4) prova.java 's code is very simple:
    public class prova
         public prova()
    5) Under the main Tomcat's directory ("C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT") I've created a new directory ("ServiceDiscovery"). In this directory I've copied the "WEB-INF" directory which was in the Tomcat's main directory. The current directory state is:
    C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\ServiceDiscovery
    |
    +--- WEB-INF (directory)
    | |
    | +--- classes (directory)
    | | |
    | | +--- org\apache\jsp\index_jsp.class
    | | |
    | | +--- prova.java
    | | |
    | | +--- prova.class
    | |
    | +--- lib (directory)
    | |
    | +--- web.xml
    |
    +--- index.jsp
    5) I've edited the following script at the beginning (first line) of index.jsp:
    "<jsp:useBean id="prova" class="prova" scope="session" />"
    6) When I open Internet Explorer at the URL "http://localhost:8080/ServiceDiscovery", Tomcat server reply with this error message:
    org.apache.jasper.JasperException: /ServiceDiscovery/index.jsp(3,0) The value for the useBean class attribute provami.prova is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         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:3261)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         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:810)
    I don't understand what's going wrong? Something in my script? Something in my JavaBean? Something in Tomcat configuration?
    Please help me finding a solution!

    You shouldn't install any s'ware to a directory whose name contains spaces. I'd move Tomcat out of those directories if I were you.
    3) I've created the following simple JavaBean
    (prova.java). It do nothing. I've compiled it (using
    JcreatorLE ide) and I copied files in the following
    directory:
    "C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT\ServiceDiscovery\WEB-INF\classes"This is a bad idea. Create a context for your own Web app by creating a directory under TOMCAT_HOME/webapps and put your stuff under that directory. Using ROOT isn't a good practice, IMO. Learn how to do it properly:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
    >
    4) prova.java 's code is very simple:
    public class prova
    public prova()
    }Add a package statement to your JavaBean. Tomcat won't deal with servlets or JavaBeans that aren't in a package. The default package is insufficient.
    >
    5) Under the main Tomcat's directory
    ("C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT") I've created a new directory
    ("ServiceDiscovery"). In this directory I've copied
    the "WEB-INF" directory which was in the Tomcat's main
    directory. The current directory state is:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT\ServiceDiscovery
    |
    +--- WEB-INF (directory)
    | |
    | +--- classes (directory)
    | | |
    | | +--- org\apache\jsp\index_jsp.class
    | | |
    | | +--- prova.java
    | | |
    | | +--- prova.class
    | |
    | +--- lib (directory)
    | |
    | +--- web.xml
    |
    +--- index.jsp
    I'd still recommend that each Web app have its own context. Putting your stuff in the Tomcat ROOT context is a bad idea. Better to learn a good habit now.
    5) I've edited the following script at the beginning
    (first line) of index.jsp:
    "<jsp:useBean id="prova" class="prova" scope="session"
    />"
    And how did that object get into session scope?
    6) When I open Internet Explorer at the URL
    "http://localhost:8080/ServiceDiscovery", Tomcat
    server reply with this error message:
    org.apache.jasper.JasperException:
    /ServiceDiscovery/index.jsp(3,0) The value for the
    useBean class attribute provami.prova is invalid.You've got a few problems. Add a package for starters. Reinstall Tomcat to a directory without spaces in its name. Create a new context for your Web app. Then come back if it still doesn't work.

  • Reverse Proxy with Sun Web Server 7 update 4

    Hi All,
    I've just migrating to Sun Java System Web Server 7.0U4 B12/02/2008 from Sun Java System Web Server 7.0-Technology-Preview-3 B09/13/2006. I've have the two web servers running side by side on separate machines. Both have a VS configured as a reverse proxy pointing to the same apache tomcat web server.
    The Tech Preview 3 server works fine and has been doing since it was installed. However the Update 4 server doesn't. I can access the tomcat app via the U4 server in a browser, but not with the app on my mobile (sync ML). Snooping the traffic show me that the U4 server is sending a different response that the Tech Preview server. I'm thinking it may have to do with Transfer Encoding: chunked. I've looked around the web to see if I can turn this off in the U4 server, as I seem to recall having to do so at some point in my life, though I can't remember when and with what.
    Does anybody have any clues they can throw at me?? Or anybody know what has change in the reverse proxy part of the web server from Tech Preview 3 to U4??
    Both VS reverse proxies are congfigured exactly the same.
    Thanks,
    Stuart.

    well, technology preview is what the name says .. i am surprised that u decided to stick with a technology preview release all these days.. in any case, there should not have any feature change between technology preview build and U4. but , there has been lot of bug fixes - so, unless we know the exact problem - we can't easily narrow down the change between tp3 build with U4 and find out how it is affecting u.
    here is a related article on how to use chunked encoding within web server 7
    http://developers.sun.com/webtier/reference/techart/chunked_req.html
    now, to help you more appropriately, you need to provide us with errors (probably with log level set to finest within server.xml) and let us know with the error reported by web server when it is unable to send those requests to back end tomcat
    you can set log level to finest by running the following command
    /sun/webserver7/bin/wadm set-config-prop -user=admin --config=<hostname> log-level=finest
    /sun/webserver7/bin/wadm deploy-config --user=admin <hostname>
    http://docs.sun.com/app/docs/doc/820-4842/set-config-prop-1?a=view
    (once you have identified the problem, you might want to set log level to info as setting to finest will cause your logs to grow humongous and also hurt performance
    thanks
    sriram

Maybe you are looking for