Newbie: JSP Setup (WBL6) ? _ TIA

Hello, I am trying to test a simple JSP page i created ( JSP code =
          "<%= "Hello" %>", but i am getting an error page (Error Message
          described below)
          I probably didn't set up correctly but I couldn't find anything on the
          edocs about setting JSP.
          This is what I did:
          - Install Weblogic 6
          - Found the path to index.html (http://localhost:7001/index.html)
          - Created the sample JSP page and placed it on the same path as
          INDEX.HTML
          - Replaced index.html for mypage.JSP
          (http://localhost:7001/mypage.jsp)
          - Received error message.
          - Thanks in advance for all your help
          *** ERROR MESSAGE STARTS ******
          Compilation of
          'D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java'
          failed:
          D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java
          error=2
          Full compiler error(s):
          java.io.IOException: CreateProcess: javac -classpath
          D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver;D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver;d:\bea\jdk130\jre\lib\rt.jar;d:\bea\jdk130\jre\lib\i18n.jar;d:\bea\jdk130\jre\lib\sunrsasign.jar;d:\bea\jdk130\jre\classes;.;d:\bea\wlserver6.0\lib\weblogic_sp.jar;d:\bea\wlserver6.0\lib\weblogic.jar;null
          -d
          D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver
          D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java
          error=2
               at java.lang.Win32Process.create(Native Method)
               at java.lang.Win32Process.<init>(Win32Process.java:66)
               at java.lang.Runtime.execInternal(Native Method)
               at java.lang.Runtime.exec(Runtime.java:551)
               at java.lang.Runtime.exec(Runtime.java:477)
               at java.lang.Runtime.exec(Runtime.java:443)
               at weblogic.utils.Executable.exec(Executable.java:144)
               at weblogic.utils.Executable.exec(Executable.java:108)
               at
          weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
               at
          weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
               at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:359)
               at
          weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
               at
          weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:148)
               at
          weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:306)
               at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
               at
          weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
               at
          weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
               at
          weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
               at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          ********* ERROR MESSAGE ENDS ************************
          

This might sound very silly, but when i download tomcat? do I need to upload that to my web space? Or jsp pages just won't work if my web space provider didn't offer that?
Do i need to install tomcat so that I can view it? or others can view it?
Sorry for the silly questions, but I am just so confused right now. Thanks for all the help.

Similar Messages

  • 10.5 Server : Standard Installation : Newbie Tutorial /  Setup Walk-Through

    Hello all,
    I recently setup OS X Server 10.5 for a client after doing it many times at my home. I could not have possibly done it without the help of this discussion board so thanks to everyone asking and answering questions!
    To help other server newbies easily setup Server 10.5 (as apple claims), I'm hoping to make a basic installation procedure that will always work for newbies. Right now it's not exactly "detailed" - just the basic steps to ensure success.
    Below is my setup procedure that has worked well for me (especially at my house). It's for a Standard installation; and we'll be setting up the server to include Mail (local only), iChat, VPN, File Sharing, iCal, Web Server/Wiki, Apple Remote Desktop access, and Time Machine (may not work well).
    Please let me know if I'm missing something that will help ensure this setup works as perfectly as possible on any system.
    +to help make sure this works, try using all the names i've used below (besides perhaps user names & passwords); like "server.house"+
    *1) Setup Router*
    • ensure router is properly connected to modem/internet
    • router lan address = 10.0.2.1
    • subnet mask = 255.255.255.0
    • dhcp on
    • dhcp server starts at = 10.0.2.9
    • dhcp server ends at = 10.0.2.99
    • dns server (opendns servers) = 208.67.222.222, 208.67.220.220 (not a completely necessary step, but may help ensure it works)
    • port forward to 10.0.2.2 = vpn (udp: 500, 4500; udp/tcp: 50)
    • port forward to 10.0.2.2 = ard (tcp: 5900, 5988; udp/tcp: 3283)
    *2) Install/Setup Server*
    • startup server computer with installation cd and start installation process
    • choose "Standard Installation"
    • setup administrator account with the following settings:
    user name: Administrator
    short name: admin
    password: admin
    • setup network settings (choose manual configuration):
    manual ip address = 10.0.2.2
    subnet mask = 255.255.255.0
    router = 10.0.2.1
    dns server = 10.0.2.2
    search domain = house
    • primary dns server = server.house
    • server name = server
    +choose all the services and let installation complete; wait until desktop loads+
    Verify things are initially okay:
    • Open safari, and type "server.house" in the address bar (ensure wiki appears)
    Good, now:
    • Download latest 10.5 server combo update, install, restart.
    • Run software update until all updates are installed (may require several restarts)
    • Setup a dyndns account for your server, install dyndns software (make sure it's updating via web and the ip address doesn't start with 10.x)
    *3) Setup Server Preferences*
    • open server preferences
    • go to file sharing: turn on file sharing
    • go to vpn: turn on vpn
    shared secret = somethingsecretive
    ip address range = 10.0.2.101 - 10.0.2.199
    • go to users
    • make new user(s) with all options enabled
    +you should now have all services in server preferences enabled (if not, enable them) and user names setup; for good measure, restart the computer again+
    *4) Setup Client Computers*
    +make sure client computers have all software updates installed before proceeding+
    • Open system preferences: network
    • Make a new location called "Server"
    • Set TCP/IP to DHCP
    • DNS Server = 10.0.2.2
    • Search domain = house
    • Click apply
    It's probably a good time to double check that the internet works - open Safari and google something. Good, it works.
    There are two ways to setup the client computers to connect to the server with basically no manual configuration needed:
    First way:
    Go to system preferences: accounts: select user name to associate with server: select "server account" (if available): enter appropriate info for user on server: wait a bit: restart computer
    or (if "server account" isn't available):
    Second way:
    Open finder: applications: utilities: directory utility. once opened, it should automatically find your server. if it doesn't, click the lock, click "plus sign", type = "open directory", server name = server.house, click ok
    • enter appropriate info to connect to server and ensure it's set to automatically setup all services, once finished - restart.
    *5) If the automatic setup didn't work, here's how to manually setup the client workstations:*
    Safari
    • Open Safari and type "server.house" in the address bar, enter user/pass, make sure it connects to wiki.
    iChat
    • add new jabber account
    • jabber id = [email protected]
    • server = server.house
    • port = 5222
    • kerbos = on (you can leave off if you want)
    You can test by connecting to your Jabber account
    VPN
    • open Network in system preferences
    • click lock
    • click "plus sign"
    • interface = VPN
    • vpn type = L2TP over IPSec
    • service name = server
    • server address = your dyndns address
    • click advanced
    • dns server = 10.0.2.2
    • search domain = house
    • click ok
    • click authentication
    • enter user's server password
    • enter "somethingsecretive" in "shared secret"
    • click ok - click apply
    You can test by clicking "connect" - after verified, disconnect.
    _File sharing_
    • Open finder: click "Server" under "Shared"
    • If it connects as guest, click "connect as"
    • enter your server username/password
    Drag a file to and from a folder to make sure file sharing works
    Mail
    • Add new mail account (imap)
    • Incoming mail server = server.house
    • Outgoing mail server = server.house
    • Outgoing authentication = kerberos 5 (or password)
    • user name = [email protected]
    • enter password
    Check to make sure you get the server welcome e-mail and that you can send email to other users on the server.
    *Time Machine* (very problematic at this time)
    • Open Time Machine in System Preferences
    • Click "options"
    • Eliminate as many folders as possible to keep backup times shorter; click done
    • Click "change disk"
    • Select "Server" disk; click "use for backup"
    ** I highly recommend using local SuperDuper! backups and/or Retrospect for networked backups to the server. Other options include the dot mac Backup application or online backups (google it).
    *If you have PCs on your network that you want to be able to connect to the server for file sharing*
    • Open Windows Explorer (my computer)
    • Click tools: map network drive
    • Enter "\\server\public" (or if you setup a user account on the server for the pc user(s) i think you can use "\\server\pcusername" - and follow the next two steps)
    -Click "connect using different user name"
    -Enter pc user account username/password
    • save settings
    Check to make sure the drive shows up and you can move files to/from server
    Helpful info for newbies setting up server 10.5:
    • Apple's Server Resources page with all manuals
    • Probably the most helpful newbie setup discussion
    • Probably the most helpful newbie setup discussion #2
    • Discussion about DNS
    • "Time Machine is a dog... discussion"
    • Manage Central Address Book discussion
    • Leopard to Windows Files Sharing Issues discussion
    • Lynda's 10.5 Server Training Videos (this does cost money and I haven't personally used it, but it looks very helpful)
    I hope that's a good start for people, but I'm sure some setting(s) can be tweaked or I missed something that could make this process go even more smoothly. Lets make this the definitive newbie standard installation setup tutorial.
    -Brian
    corewerkz

    Hi gikku,
    Good idea! I forgot about the web server port forwarding, that will allow the wiki to be seen over the internet.
    One question: what does adding the dyndns address to "Server Admin > web > settings > sites" actually do? I'm not too knowledgeable about Server Admin.
    Thanks,
    Brian
    corewerkz

  • Newbie:  jsp compile error w/ tomcat 5.0.19

    Hello there, this is my first time try to write something in jsp/ servlets, and i encounter a minor installation problem:
    using mdk linux with j2sdk1.4.2 (locate at /usr/local/), tomcat is also locate at /usr/local.
    I am able to see HelloServlet.java, and HelloWorld.html at http://localhost:8080/servlet/HelloServlet
    and http://localhost:8080/testing/HelloWorld.html
    but i'm unable to see HelloWorld.jsp at http://localhost:880/HellowWorld.jsp (my HelloWorld.html and HellowWorld.jsp are locate at the same dir)
    here's are the things i added in my /etc/profile so far:
    CATALINA_HOME="/usr/local/Tomcat"
    export CATALINA_HOME
    JAVA_HOME="/usr/local/j2sdk1.4.2"
    export JAVA_HOME
    JavaPath="/usr/local/j2sdk1.4.2/bin"
    export JavaPath
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    CLASSPATH=$CLASSPATH:/usr/local/Tomcat/common/lib/servlet-api.jar:/usr/local/Tomcat/
    common/lib/jsp-api.jar:/home/allen/programming/j2ee/:./
    export CLASSPATH
    when do java -verison, i see:
    [root@localhost local]# java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    when start tomcat, i got:
    [root@localhost bin]# ./startup.sh
    Using CATALINA_BASE: /usr/local/Tomcat
    Using CATALINA_HOME: /usr/local/Tomcat
    Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
    Using JAVA_HOME: /usr/local/j2sdk1.4.2
    i thought i did everything that was told, yet i can't see jsp page on my browser, while i can see servlets and html,
    thank you for your time in advance ^_^

    sorry, it was a typo, yea...it was for http://localhost:8080/testing/Hello.jsp
    this morning, i copied "tool.jar" from j2sdk1.4.2 to my /usr/local/tomcat/common/lib, restarted, fire it up again using "./catalina.sh" just to see where the problems came from, and here's where the compile error occue:
    Compile failed; see the compiler error output for details.
            at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
            at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
            at java.lang.Thread.run(Thread.java:534)
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Env: Compile: javaFileName=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java
        classpath=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/shared/classes/:/usr/local/jakarta-tomcat-5.0.19/common/classes/:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar:/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/Tomcat/bin/commons-logging-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/shared/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        work dir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        extension dir=/usr/local/j2sdk1.4.2/jre/lib/ext
        srcDir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        include=org/apache/jsp/testing/Hello_jsp.java
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java     [javac] Compiling 1 source file
        [javac] /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_/org/apache/jsp/testing/Hello_jsp.java:48: cannot resolve symbol
        [javac] symbol  : class Data
        [javac] location: package util
        [javac]       out.print( new java.util.Data() );
        [javac]                               ^
        [javac] 1 error
    Mar 16, 2005 7:32:34 AM org.apache.jasper.compiler.Compiler generateClass
    looking over the compiler error, it seems to me tomcat is able to recongize /usr/local/j2sdk1.4 's location. which i assume it implied JAVA_HOME and CLASSPATH are setup correctly.
    Dunno why it just won't display jsp pages and kept saying compiler error...
    thank you for helping

  • Best Server / JSP setup - Use Tomcat??

    Hi, I am currently working on a solution to provide JSP pages.
    The current setup I have is IIS5-->AJPV12(ISAPI)-->tomcat3.2.1
    I am having a few problems with this setup, the major one being that I can only get 220 simultaneous connections.
    Is there a better setup that will provide me with more performance and less memory constrictions. (I believe the bottleneck is the AJPv12 (ISAPI) adapter, as once the 250 user mark is reached it doesnt accomodate any more, and the ISAPI.log file is full of errors.
    Would upgrading to Tomcat 4 or even 5, result in being able to have more synchronous users. I heard jetti (probably spelt wrong was 3 times faster than tomcat from another developer but yet to come across it)
    What setups are everybody else using??
    (PS Where do I insert a -xms , -xmx command when running tomcat as Ive heard if you provide more heap that may solve some performance issues, but would performance limit number of users? - I use just the tomcat startup batch file - startup. Do i just provide it as a runtime command using this batch file- what are good setting for max and min heap)

    Ask that question on the Tomcat user list, you'd get a better reply and perhaps a solution. [email protected], but you have to sign up, do a search on google for the page for signing up to Tomcat user-list.
    Good luck

  • Where to put the Bean class in a html- Bean- JSP setup

    Hi,
    The setup is simple, the front end is a html form, there is a Java Bean with set/get methods and finally a jsp which accesses the bean and prints the result.
    The problem is that it cannot locate the Bean class. I have compiled the bean class and stored the .class file in webapps/ROOT/WEB-INF/classes dir. The jsp and html files are located in the webapps/ROOT dir. Iam using tomcat 5.0.28, with ROOT context enabled. Is this because I need to set the CLASSPATH for Tomcat? Any pointers?
    Thanks

    No you don't need to set CLASSPATH.
    You need to put your bean in a package.
    As of java1.4, JSPs can not access beans that are in the default/unnamed pacakge.
    package mypackage
    public class MyClass
    and then the class would compile to
    WEB-INF/classes/mypackage/MyClass.class

  • Newbie - JSP & bean shopping cart logic error?

    Hello,
    I am attempting to bulid a shopping cart facility on a JSP site that I am building.
    I am having difficulties adding an item to the basket.
    The page below (bookDetail.jsp) displays items for sale from a database. At the foot of the page, I have set up a hyperlink to add an item to a basket bean instance created in this page.
    What happens is the page will load correctly, when i hover the mouse over the hyperlink to add the item to the basket, the status bar shows the URL of the current page with the details of the book appended. This is what I want. But when I click the link, the page will only reload showing 20% of the content.
    Netbeans throws up no errors, neither does Tomcat, so I am assuming I have made a logical error somewhere.
    I have enclosed the Book class, and the ShoppingCart class for your reference.
    Any help would be really appreciated as I am at a loss here.
    Cheers.
    Edited highlights from bookDetail.jsp
    //page header importing 2 classes - Book and ShoppingCart
    <%@ page import="java.util.*, java.sql.*, com.shopengine.Book, com.shopengine.ShoppingCart" errorPage="errorpage.jsp" %>
    //declare variables to store data retrieved from database
    String rs_BookDetail_bookRef = null;
    String rs_BookDetail_bookTitle = null;
    String rs_BookDetail_author = null;
    String rs_BookDetail_price = null;
    //code that retrieves recordset data, displays it, and places it in variables shown above
    <%=(((rs_BookDetail_bookRef = rs_BookDetail.getString("book_ref"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookRef)%>
    <%=(((rs_BookDetail_author = rs_BookDetail.getString("author"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_author)%>
    <%=(((rs_BookDetail_bookTitle = rs_BookDetail.getString("book_title"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookTitle)%>
    <%=(((rs_BookDetail_price = rs_BookDetail.getString("price"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_price)%>
    //this link is to THIS PAGE to send data to server as request parameters in Key/Value pairs
    // this facilitates the add to basket function
    <a href="<%= response.encodeURL(bookDetail.jsp?title=
    "+rs_BookDetail_bookTitle+"
    &item_id=
    "+rs_BookDetail_bookRef +"
    &author="+rs_BookDetail_author +"
    &price=
    "+rs_BookDetail_price) %> ">
    <img src="images\addtobasket.gif" border="0" alt="Add To Basket"></a></td>
    // use a bean instance to store basket items
    <jsp:useBean id="basket" class="ShoppingCart" scope="session"/>
    <% String title = request.getParameter("title");
    if(title!=null)
    String item_id = request.getParameter("item_id");
    double price = Double.parseDouble(request.getParameter("price"));
    Book item = new Book(item_id, title, author, price);
    basket.addToBasket( item );
    %>
    ShoppingCart class that is used as a bean in bookDetail.jsp shown above
    package com.shopengine;
    //import packages
    import java.util.*;
    //does not declare explicit constructor which automatically creates a zero argument constructor
    //as this class will be instantiated as a bean
    public class ShoppingCart
    //using private instance variables as per JavaBean api
         private Vector basket;
         public ShoppingCart()
              basket = new Vector();
         }//close constructor
    //add object to vector
         public void addToBasket (Book book)
              basket.addElement(book);
         }//close addToBasket method
    //if strings are equal, delete object from vector
         public void deleteFromBasket (String foo)
    for(Enumeration enum = getBasketContents();
    enum.hasMoreElements();)
    //enumerate elements in vector
    Book item = (Book)enum.nextElement();
    //if BookRef is equal to Ref of item for deletion
    //then delete object from vector.
    if (item.getBookRef().equals(foo))
    basket.removeElement(item);
    break;
    }//close if statement
    }//close for loop
         }//close deleteFromBasket method
    //overwrite vector with new empty vector for next customer
         public void emptyBasket()
    basket = new Vector();
         }//close emptyBasket method
         //return size of vector to show how many items it contains
    public int getSizeOfBasket()
    return basket.size();
         }//close getSizeOfBasket method
    //return objects stored in Vector
         public Enumeration getBasketContents()
    return basket.elements();
         }//close getBasketContents method
         public double getTotalPrice()
    //collect book objects using getBasketContents method
    Enumeration enum = getBasketContents();
    //instantiate variable to accrue billng total for each enummeration
    double totalBillAmount;
    //instantiate object to store data for each enummeration
    Book item;
    //create a loop to add up the total cost of items in basket
    for (totalBillAmount=0.0D; enum.hasMoreElements(); totalBillAmount += item.getPrice())
    item = (Book)enum.nextElement();
    }//close for loop
    return totalBillAmount;
         }//close getTotalPrice method
    }//close shopping cart class
    Book Class that is used as an object model for items stored in basket
    package com.shopengine;
    import java.util.*;
    public class Book{
         //define variables
    private String bookRef, bookTitle, author;
         private double price;
    //define class
    public Book(String bookRef, String bookTitle, String author, double price)
    this.bookRef= bookRef;
    this.bookTitle=bookTitle;
    this.author=author;
    this.price=price;
    //create accessor methods
         public String getBookRef()
              return this.bookRef;
         public String getBookTitle()
              return this.bookTitle;
         public String getAuthor()
              return this.author;
         public double getPrice()
              return this.price;
    }//close class

    page will only reload showing 20% of the content.Im building some carts too and I had a similiar problem getting null values from the mysql database. Are you getting null values or are they just not showing up or what?
    On one of the carts I'm building I have a similiar class to yours called products that I cast onto a hashmap works alot better. Mine looks like this, maybe this is no help I don't know.......
    public class Product {
        /**An Item that is for sale.*/
          private String productID = "Missing";
          private String categoryID = "Missing";
          private String modelNumber = "Missing";
          private String modelName = "Missing";
          private String productImage = "Missing";
          private double unitCost;
          private String description = "Missing";
          public Product( 
                           String productID,
                           String categoryID,
                           String modelNumber,
                           String modelName,
                           String productImage,
                           double unitCost,
                           String description) {
                           setProductID(productID);
                           setCategoryID(categoryID);
                           setModelNumber(modelNumber);
                           setModelName(modelName);
                           setProductImage(productImage);
                           setUnitCost(unitCost);
                           setDescription(description);        
          public String getProductID(){
             return(productID);
          private void setProductID(String productID){
             this.productID = productID;
          public String getCategoryID(){
             return(categoryID);
          private void setCategoryID(String categoryID){
             this.categoryID = categoryID;
          public String getModelNumber(){
             return(modelNumber);
          private void setModelNumber(String modelNumber){
             this.modelNumber = modelNumber;
          public String getModelName(){
             return(modelName);
          private void setModelName(String modelName){
             this.modelName = modelName;
          public String getProductImage(){
             return(productImage);
          private void setProductImage(String productImage){
             this.productImage = productImage;
          public double getUnitCost(){
              return(unitCost);
          private void setUnitCost(double unitCost){
              this.unitCost = unitCost;
          public String getDescription(){
              return(description);
          private void setDescription(String description){
              this.description = description;

  • Newbie - JSP and TAG library problem

    I am trying to execute a JSP program on a server with
    jakarta-tomcat-4.1.29.
    Here is a program:
    <%@ taglib uri="testTagURL" prefix="testTagPrefix" %>
    <testTagPrefix:myFirstTag/>
    in web.xml I have definition:
    <taglib>
    <taglib-uri>testTagURL</taglib-uri>
    <taglib-location>/WEB-INF/tld/testTag.tld</taglib-location>
    </taglib>
    I have testTag.tld file located at: /WEB-INF/tld
    When I execute my program I am getting:
    org.apache.jasper.JasperException: File "/test-jsp/testTagURL" not
    found
    My question: how come my program is looking for "/test-jsp/testTagURL" and
    not for "/WEB-INF/tld/testTag.tld"?
    Thanks,
    Zalek

    means what it says.
    If you look in the file WEB-INF/displaytag.tld you'll see it
    has a definition for a custom tag, I'm guessing it's called column.
    The tld states that this tag has an attribute called "value". ie that
    in a jsp file you would write
       <display:column value="SomeSuperValue" /> However the java class that implements that custom tag
    does not have a setter method for value. ie. the class
    org.displaytag.tags.ColumnTag is missing the method
    public void setValue(String value) { .... }

  • Newbie jsp question

    Hello, I am coming from php, and I was looking for a server side language I could use, but would also hide the source code(meaning i can give people a binary to put on there servers liek with regular java,c,or c++). I searched around for information reagrding this and jsp, and I am unable to tell if i can just give the jsp server a compiled app to run. I am interestd in writing some simple webapps such as a webmial interface, do you think that js pis too overboard for a project like that? Do you guys know of any other server side langauges that might be more useful to me in a situation like that, but can also run off compiled programs instead of reading a script like php and perl? Sincerely,
    Jason

    java binaries (bytecode) do not hide implementation. All that is lost in compiling java sources are tho comments and variable names. Even more, if compiled without the parameter -g:none, some debuging info is left in the bytecode, so it is possible to determine the name of the local variables. For someone who is familiar to java, reading a decompiled source is not very difficult.

  • NEWBIE JSP QUES

    I'm really new at jsp, and have a frustratingly simple question. All I'm trying to do is get a .jsp page to display in internet explorer. So I create the file and put this in it:
    <%
    String test = "this is a test";
    %>
    <html>
    <%=test%>
    </html>
    And nothing displays!!! I've also tried not using "Sting" before the variable, but it still shows nothing when I open the file in Internet Explorer. Any explanation would be appreciated.

    all I did was download and install j2sdkee1.2.1 from java.sun.com. (already having jdk 1.2.2 on my system) and then ran j2ee.bat (in ROOT:\j2sdkee1.2.1\bin). This started the J2ee server. Then all I did was put my .jsp files in the ROOT:\j2sdkee1.2.1\public_html folder and point my browser to http://localhost:8000/<name of jsp>.jsp.
    So do I need to get Tomcat?

  • Newbie jsp/javabean

    Hello,
    I'm trying to do my first web app. First I must log a user from a server database. I thought using JSP to display html pages and javabean to contain logic and functions. In my first page there are a login form with a submit button. How can I call a javabean after pressing button and then read a validate property value from it to login again or pass to next form? To call logic procedures must call setproperty method and do anything inside?
    Thanks,
    Julian.

    You do realize that Java runs on the server don't you? So it you want use java to validate, you would have to do this:
    1) submit username + password to a JSP or servlet
    2) inside that JSP or servlet, read the values from the request and validate them using your bean
    3a) if correct, go on
    3b) if not correct, display error message and show login form again
    How to call the javabean depends on what you are using. If you are using scriptlets, simply call the method as if it were a regular java class. If you are using JSTL, you should read up on that right now because learning that by just coding away is far to difficult. Check out the book you can download for free on this website.
    http://www.coreservlets.com

  • [Newbie] JSP precompilation & dumps

    Hey there,
    I've just gotten started on my first JSP project. I've done some extensive googling, but can't work out the following two issues.
    1) One of my pages, takes around 10-15 seconds to load in the browser. I'm assuming thats because tomcat is putting it through some compilation process (does a JSP page get dynamically converted to a servlet at runtime?) This is not just on the first access, but any subsequent request. There is only a few db queries and some XML output using XJTL.
    In $tomcat\conf\web.xml I've set
    <init-param>
    <param-name>development</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>checkInterval</param-name>
    <param-value>60</param-value>
    </init-param>
    under the JSP servlet element, but it seems to make no difference.
    2) I' m an experienced ColdFusion developer, so alot of the tag based concepts are the same, but I'm finding the datatypes are a lot more focused, where the CF datatypes are very generic and no real casting is required. In CF there is a "CFDUMP" tag which you can throw any variable at and it will recurisvely write it out, no matter how deep the array or structure. Is there anything similar for JSP?
    Any help is appreciated.
    Cheers,
    Jon

    1) >This is not just on the first access, but any subsequent request.
    The jsp transforms to a servlet on first request. The servlet is compiled and executed and its this output that's streamed to the browser. The keyword is 'first request' which in turn means the first access may be a bit slow (& which can be overcome by precompilation), but if subsequent access to the resource still takes a long time, you have other problems.
    The check interval in tomcat's web.xml is to address a wholly different issue. Its the interval that the container checks for newer versions of the jsp (in a development environment) and will not solve your problem.
    2) Hmmm, you want to output readable data when you print out a variable ? For user defined datatypes, you could override the toString() method in the class.
    cheers,
    ram.

  • Newbie :  JSP session problem after reload with IE refresh button.

    Hi,
    I had an issue with JSP reloading using tomcat 4.* and IE.
    I have a jsp1.jsp is opened in two different IE windows(one by one). Once i refreshed using IE refresh button from the first window, its loaded with second windows session details. Its changess whole http request object with second window.
    Am not sure , why its happening ? Could anybody shed light on this ?
    Thanks and Regards
    PV

    Hello,
    No, am not saving any form details . But i noticed session id is changing completely for the first window once i loads frame on the second window.
    javascript:alert(document.cookie) Above scriptlet (IE address bar) returns session id from the second window rather than current window without refreshing, that means, its removed whole request completely or somehow manipulated previous sessions. Can anybody explain this behaviour ?
    Thanks

  • Newbie JSP/Servlet general question

    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page’s servlet does not exist, the container loads the JSP page’s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?
    Thanks,
    J.

    Jrm wrote:
    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page&#146;s servlet does not exist, the container loads the JSP page&#146;s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?Yes.
    >
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?No, the implementation for the JSP servlet is usually provided by the Servlet Container, not a framework, since the Servlet Container is responsible for creating and compiling the JSP.
    >
    Thanks,
    J.

  • Newbie: JSP - JSPX

    I am trying to create an app in jdeveloper. after following examples with JSP (pages), i got a few pages up and running. My pages were a combination of html with a few buttons for navigation, with the html formatted via CSS - pretty simple stuff. Now I need to add some fairly complex interface components, and I have read that it is "suggested" that developers use JSPX (documents as opposed to pages) when they are going to use ADF components.
    So I thought I would begin again but with JSPX instead of JSP - but I cannot get it to make sense... If I include html elements (eg <div id="anId"> for formatting, and plain text with links included some places) - these will not be well formed XML elements (?), and they do not show in the development environment's design view - however they appear when I run/deploy. Maybe this is just a fluke?
    Am I missing something?? how do I use html elements (text, links, layout etc) in JSPX? all the examples I find have bound fields to display information - but this surely cannot always be the best way to show basic information.
    Should I use a combination of JSP and JSPX (JSP for the simple pages that are mostly info, links (html), and use JSPX when i want heavier app stuff)???
    any comments / tips / links are appreciated...
    /caj

    thanks for you comments! I actually got this working myself before reading your relpy, but I did extactly what you suggested - so it was great to get a confirmation that I am on the right track...
    I just got a bit too caught up in using adf:document and panel pages, like in oracles SRDemo app (these were much too complex for my initial needs). I am now creating simpler pages OK, hopefully things will go smoothy when I come to the pages with more complex structures (tree menu with a work area that changes based on the chosen branch).
    I have now come to another issue (with backing beans), which I will no post in a new post!
    thanks!!!
    /caj

  • NEWBIE JSP Deployment Problems

    I know this is will probly bore to some of you but I'm trying to evalutate this software.
    I created a test JSP via the wizard and ran it in Jdev ok. Deployed and Copied the files to the Apache web server provided with 8.1.7. Ran on browser and got this error:
    java.lang.RuntimeException: JSP Registry could not locate runtime property file:....
    I included the business classes but apparently I'm still missing something...
    I have been searching for documentation on this error but not much luck so far...

    I have deployed a JSP with BC4J Application on an Oracle IAS and it works fine, but to do it i had to include a path to the .jar file that contains my classes in Jserv.properties
    When i need to change, add or manipulate something in the jar file or include a new jar file, i have to shut down the service because while active, the files that are being pointed by the conf file become locked... I have read something about "zones" and i have no idea about apache or OracleJSP configuration. I began yesterday to read the JavaServer Pages Developer4s Guide and Reference... But it has 420 pages and i will last a lot till i find what i4m looking for.
    If you can explain me the way you make your jar file accesible by the system in a correct way or the pages in which it is explained, please, make me know.

Maybe you are looking for

  • Planning EPMA migration using LCM

    Hi Experts, Kindly advice how can we migrate EPMA Planning data? As per document: http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_lifecycle_management/frameset.htm?ch07s04s03.html > Planning data migration is not supported in Lifecycle Mana

  • How is a KM Configurable Handled via an Upgrade?!

    Hi there, Does anyone know if there is any official documentation (or does the responsible SAP developer know this; I have got my own experience, but have never ever seen this documented) about how existing configurables within KM are handled when an

  • Archive url access throws error "SSF error: Decoding not possible"

    Hi We are using function module HRWPC_RFC_EP_READ_PHOTO_URI to pull the photo of an employee in ESS. When we paste the url in browser we get following error SSF error: Decoding not possible Can anyone help to resolve this. regards barin

  • Oracle EBS12 Training Material

    Hi,   Does any one have Oracle EBS12 training material which Oracle Provides during their training.I feel that paid training booklets are good to start with EBS12.   Unluckily my company is not offering Oracle Trainings and looking if any one can sha

  • IPad mini is wrecked by iOS 8

    I have an iPad mini and it worked flawlessly until it was updated to iOS 8. After that it has become so slow, to a point that it is unusable. I tried erasing all contacts and settings - it did not help. Even an empty iPad mini is no so slow, that I a