Running a JSP on a web server

Hello,
I am new in programming. I would like to know how to run a JSP file on a web server. I have created a couple of JSP pages in NetBeeans. Now when I upload that build/web folder to a web server I get just the source code of the file when opening in browser.
Is there something that needs to be installed on the server? Btw, when testing on localhost with tomcat server it works fine.
Thanks for any help.
Carterado

carterado wrote:
Hello,
I am new in programming. I would like to know how to run a JSP file on a web server. I have created a couple of JSP pages in NetBeeans. Now when I upload that build/web folder to a web server I get just the source code of the file when opening in browser.
Is there something that needs to be installed on the server? Btw, when testing on localhost with tomcat server it works fine.Right, because Tomcat is a servlet/JSP engine that happens to have an HTTP server built in.
You can't deploy servlets or JSPs on Apache web server or IIS. You need a servlet/JSP engine.
%

Similar Messages

  • How to run a report jsp on a Web Server

    Hi,
    I've been working as plsql developer for many years, but I'm completely new on Oracle Reports.
    My question is very simple.
    I've tried to create a report by using the Wizard and once finished I see that, if I try to save the report, it's saved as .jsp
    Does this mean that I can simply save my .jsp on a Web Server (for instance Tomcat) and run it on a browser?
    Thanks!

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • Error while running Application on Sun One Web Server 6.1

    Can some one please explain me how can I run application on sun one web server 6.1 ?
    It is deployed .war file successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

    We need to deploy the application by next week end. any suggestions please

  • How to use JSP in apache web server

    hi all,
    can anybody tell me how to use JSPs in Apache Web Server.
    Thanks
    sir

    You would need a servlet container to run Servlets and JSPs. And Apache's Tomcat is one such free container available. Download Tomcat from http://jakarta.apache.org and integrate with Apache WS
    HTH

  • Getting errors while running jsp on sunone web server 6.1

    While i created war file and delpoyed my application on web server6.1, it loads default jsp(welocme.jsp) page fine. but when I submit data it gives me following error.
    [06/Oct/2003:09:17:53] info ( 600): Internal Info: loading servlet /custapprec/bonus.jsp
    [06/Oct/2003:09:17:58] info ( 600): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:63: Class myBean.BonusBean not found.
    myBean.BonusBean Bonus = null;
    ^
    C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:65: Class myBean.BonusBean not found.
    Bonus= (myBean.BonusBean)
    ^
    C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:69: Class myBean.BonusBean not found.
    Bonus = (myBean.BonusBean) Beans.instantiate(this.getClass().getClassLoader(), "myBean.BonusBean");
    ^
    C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:73: Variable Bonus may not have been initialized.
    pageContext.setAttribute("Bonus", Bonus, PageContext.PAGE_SCOPE);
    ^
    4 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
         at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
         at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:427)
    [06/Oct/2003:09:17:58] warning ( 600): Internal error: Failed to get GenericServlet. (uri=/custapprec/bonus.jsp,SCRIPT_NAME=/custapprec/bonus.jsp)
    anybody can please help me with this error?
    Thanks

    Your stack trace indicates classes that are not part of Sun ONE Web Server 6.1 (e.g. com.iplanet.server.http.servlet.NSServletEntity) but are classes in earlier releases of the web server. It looks like your web application contains classes or .jar files that contain an older implementation of the JSP engine from a previous web server release. Remove these and give it another try.

  • Jsp for apache web server

    hi all,
    i am new 2 the field of JSP & web servers.
    i have installed apache web server on a unix box. i am invoking the jsp files from a win - 2000 machine.
    i want to know if the apache web server can interprett the java code (JSP)that is embedded in html. if not what other web server should i use.
    The jsp code is not being interpretted. the output for the foll code is:
    HELLO WORLD
    HELLO WORLD
    <HTML>
    <TITLE>
    HELLO
    </TITLE>
    <BODY>
    HELLO WORLD
    <br>
    <%= new java.util.Date() %>
    HELLO WORLD
    <% System.out.println("HELLO ALL") %>
    </BODY>
    </HTML>
    Do i have to use some other server like Blazix or will apache web server do the job for me???
    thanx in advance

    Double-posted:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=388900&tstart=0&trange=30

  • Deploying probelom in jsp in java web server

    hai
    im using java web server as server
    the probelom is - im using "jsp usebean " to connect class file
    but i stored my classes files in \classes directory
    whenever i called that usebean ,it tell classpath not found or file not found
    i dont know where to deploy bean .class file in java web server
    please any one help me its urgent
    advance thanx for responding
    vaslee

    Hi.
    May be you have mistake at <jsp:usebean />.
    Paste your <jsp:usebean /> tag and people may be help you.
    Victor Letunovsky.

  • What am I doing wrong when running multiple applications with the Web Server enabled ?

    I am running multiple Vi's (applications) on the same Nt Workstation and the Web Server is enable for all applications. However, I am able to view only one Panel from the browser. Only the first application that is started can be viewed. What am I doing wrong ?

    Only one application can act as a web server at the default http port 80.
    To solve this either run all VIs into a single application or use different
    http ports for each application. For example an application can use the
    default port 80 and others use ports 8080, 8081, 8082 etc.
    In the browser, you enter the URL for non default ports as
    http://hostname:8080/...
    HTH
    Jean-Pierre Drolet
    "zemaitis" a ecrit dans le message news:
    [email protected]..
    > I am running multiple Vi's (applications) on the same Nt Workstation
    > and the Web Server is enable for all applications. However, I am able
    > to view only one Panel from the browser. Only the first application
    > that is started can be viewed. What am I doing
    wrong ?
    LabVIEW, C'est LabVIEW

  • JSP channel for web server

    Hi all ,
    i am trying to give the access of an web server through portal server ( that web server is on local network & my portal server is on the internet i.e i can access my portal server from Internet )in order to do so i had made following changes.
    I had made a jsp provider channel> then i write the following lines in the files and configured that jsp channel with that JSP.
    <iframe src="http://192.168.0.10" height=800 width=970 ></iframe>
    When i access my portal server from internet, i was unable to access that web server from my portal server, how ever that webserver was accessible from local network through portal, which leads me to the conclusion that my client machine was directly accessing the 192.168.0.10.
    My question is can i enable my portal server to take the interface from the webserver i.e 192.168.0.10 and bring it to the client so that i can become independent of accessible of 192.168.0.10
    Regards
    Adeel

    Thanks
    It really worked. But it is not displayed properly i.e some pics are missing and more over i cannot login in to that web server. When i enter the username & password it just open and says the page can not be displayed
    i have made the following changes in order to accomplish that.
    /etc/hosts
    192.168.0.10 dummydomain1.com
    and this URL i had entered in the channel you had told me.Now whwn i get that interface of web server in front of me through portal it is in bad condition and more over when i try to login to that interface, my client it self try to access that interface i.e URL.However the requirement was to that the portal server should be doing all the work .
    regards
    Edited by: adeelarifbhatti on Nov 26, 2008 11:56 AM
    Edited by: adeelarifbhatti on Nov 26, 2008 12:01 PM

  • I can not run "hello1.jsp" on windows 2000 server

    I have just installed WebLogic 6.1 on windows 2000 server
              I put this file(hello1.jsp) on
              "c:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp" .When I
              tried to
              load this jsp file on explorer ,i input "http://localhost:7001/hello1.jsp"
              ,the following error happened
              Compilation of
              'C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_
              war_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java' failed:
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              Full compiler error(s):
              java.io.IOException: CreateProcess: javac -classpath
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp;C:\bea\wlserve
              r6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_my
              server_DefaultWebApp;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jre\lib\i18n
              .jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\classes;.;C:\bea
              \wlserver6.0\lib\weblogic_sp.jar;C:\bea\wlserver6.0\lib\weblogic.jar -d
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.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:147)
              at weblogic.utils.Executable.exec(Executable.java:111)
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              a:550)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
              6)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :240)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2390)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1959)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Looks like that weblogic server is unable to create Java process for
              compilation of JSP into (JAVA) class file .......
              It may be due to:
              a. You do not have JDK installed/configured on the machine. [JDK is required
              for JSP pages to be compiled at runtime]
              b. WebLogic server is unable to invoke correct javac.exe [Check JAVA_HOME
              and PATH variable to ensure that they are correct and it is correctly
              specified in the startWebLogic.cmd, startWLS.cmd files]
              Thanks,
              Selva-
              "weblogic.developer.interest.jsp" <[email protected]> wrote in message
              news:[email protected]...
              > I have just installed WebLogic 6.1 on windows 2000 server
              >
              > I put this file(hello1.jsp) on
              > "c:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp" .When I
              > tried to
              > load this jsp file on explorer ,i input "http://localhost:7001/hello1.jsp"
              > ,the following error happened
              >
              >
              >
              > Compilation of
              >
              'C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_
              > war_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java' failed:
              > --------------------------------------------------------------------------
              > ----
              >
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              >
              > --------------------------------------------------------------------------
              > ----
              > Full compiler error(s):
              > java.io.IOException: CreateProcess: javac -classpath
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp;C:\bea\wlserve
              >
              r6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_my
              >
              server_DefaultWebApp;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jre\lib\i18n
              >
              .jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\classes;.;C:\bea
              > \wlserver6.0\lib\weblogic_sp.jar;C:\bea\wlserver6.0\lib\weblogic.jar -d
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.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:147)
              > at weblogic.utils.Executable.exec(Executable.java:111)
              > at
              >
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              > a:550)
              > at
              > weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
              > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
              > 6)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :240)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :200)
              > at
              >
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              > ntext.java:2390)
              > at
              >
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              > :1959)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              >
              >
              

  • Running CGI within Portal's web server

    I'm trying to get a BBS or chat system running that is written in Perl (this
    is only for a prototype). Does anyone have any tips to give me as far as
    where to install the scripts and how to get them to run.

    Sun PS does not use EJBs. You can install Sun PS on Application server and still use your 'backend' classes as long as those are container agnostic

  • How to run servlets n sun one web server 6.1

    hi guys,
    did u know any ony one help me , I deployed n server but at calling time some error how to call at url tell me bye
    bye

    Stop spamming.
    http://forum.java.sun.com/thread.jspa?threadID=622182

  • Putting a helloword.java code to run on Sun Java Web Server

    Hello,
    Given helloworld.jsp:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
                   throws ServletException, IOException {
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
         out.println("<HTML>");
         out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
         out.println("<BODY>");
         out.println("<H1>Hello World</H1>");
         out.println("Today is: " + (new java.util.Date().toString()) );
         out.println("</BODY></HTML>");
    } // doGet
    } // HelloWorld
    How can I put this code to run on Sun Java System Web Server, how to compile this ? what and how to put in the webserver document and how to access it ?
    Thanks for verbose and basic information about this, appreciated...

    What you wrote is not a JSP. It is a Java Servlet.
    You need to compile it. That creates HelloWorld.class.
    Create a directory say hello. You need to create a directory structure as mentioned below.
    hello|
    WEB-INF|
    web.xml
    classes|
    HelloWorld.class
    You need to package it in a war (web archive) file.
    %cd hello
    %jar cvf hello.war .
    Then deploy this war file using admin GUI or wadm CLI.
    I would suggest using Netbeans IDE to create the web application.
    To deploy the war file on SJS web server 7 update 2, see my blog at
    http://blogs.sun.com/kmeduri/entry/how_to_deploy_a_war

  • ACME video on Java Web Server 2.0

    ACME video was fairly easy to get running using the built in web server provided with JDeveloper 3.0. Things got a bit more difficult when I tried to deploy the web application portion to Java Web Server 2.0.
    Here's what I had to do to get it to work...
    1. The acmevideo_deploy.properties file must be copied independently to the JWS2.0 root directory. If an attempt to access the site fails indicating that this file could not be found, you should place it in whatever directory contains the file acmepropfile_loc.txt. The program is designed to write this file out to help you locate where the properties file should go. Too bad there is no mention of this in the docs!
    2. The imageURL property should be set to imageURL=/acmevideo/images/ for the image files to be found by the html generated by servlets. This value is set in the acmevideo_deploy.properties file mentioned above.
    3. Similarly, the webAppURL propery should set to point to the JWS2.0 server location. For example, on my system it's webAppURL=http://localhost:8080/servlet/WebAppServlet
    4. The following EJB jar files located in <JDEVELOPER>/samples/acmevideo/ejb/server must be added to the c:/acmedir directory and referenced in the CLASSPATH set in the batch file created and used to execute the web server.
    EJBGeneratedRentals.jar
    EJBGeneratedTitleQueries.jar
    EJBSourceRentals.jar
    EJBSourceTitleQueries.jar
    5. The jsdk.jar file that is referenced in the CLASSPATH and which you are directed to copy into acmedir is not required and does not reside in the location specified.
    Hope this helps anyone trying to get the sample running in all of its <ahem> glory. :-) Looks like a good sample app to base a project on if you aren't ready for J2EE or your application platform doesn't fully support the specification.
    Will
    null

    There is no need to install OAS or Oracle8i to test the servlet/jsp functionality in JDeveloper 3.0. You might want to check to insure that you installed all available components during installation (a few of them are hidden and you must scroll down to select them). Try running a few of the servlet/jsp samples before moving on to the full ACME video sample.
    Hope this helps,
    Will
    null

  • Directory Structures in sun one Web Server 6.1

    I am struggling to run my j2ee application on newly set up sun one web server 6.1 on my pc.
    Can somebody please help me expalining directory structure in detail for sun one web server 6.1?
    Where should I place my java beans and it's class files?
    what should WEB-INF -> lib folder contains?
    I make war file using j2ee deployment tool. Do i need to change anything in web.xml and sun-web.xml?
    Thanks in advance.

    Thanks chris.
    It looks better now. still it gives following errors in error log. I only have java beans not the EJB.
    here are the error.
    [20/Oct/2003:11:35:59] info ( 632): Internal Info: loading servlet /peoplechannel/SearchLDAPIn.jsp
    [20/Oct/2003:11:35:59] warning ( 632): Internal error: newInstance failed (servlet class=_jsps._peoplechannel._SearchLDAPIn_jsp): java.lang.IllegalAccessException: Class com.iplanet.server.http.servlet.NSServletEntity can not access a member of class jsps.peoplechannel._SearchLDAPIn_jsp with modifiers "public"
    [20/Oct/2003:11:35:59] warning ( 632): Internal error: Failed to get GenericServlet. (uri=/peoplechannel/SearchLDAPIn.jsp,SCRIPT_NAME=/peoplechannel/SearchLDAPIn.jsp)
    what's the syntax to change loading precompiled jsp to force web server to compile jsp?
    I really need urgent help.
    Thanks,
    naimesh

Maybe you are looking for

  • Mass Maintennace for EBKN not EBAN

    Dear Experts, I need to perform mass maintenance for a lot of PRs .. so I used T-Code MEMASSRQ which perform this on PRs but I found that this program only run for standard Items not account assignment items . The data I want to change is in the tabl

  • Query Timeout setting

    Hi Folks, Can we have a setting for the Oracle Server that for a particular user, if a query is taking beyond a particular time (say 2 mins), it should be timed out. Regards, Gaurav

  • Installing c8180 on my windows 7 toshiba laptop

    I've just spent all day trying to get help from India (cost $40) for getting my Windows 7 laptop to recognize my c8180 printer so that I can print and scan and do it wirelessly.  Only way I can get the scan to work is to plug in my USB cable.  Can an

  • Is this code correct?

    help me please in this code the code should make a method for reading form a file import java.io.*; public class Basic2      String contents;      String fileName = "schools.txt";      BufferedReader now;      public static void main(String[] args) t

  • Why can I not use the calculator in full screen?

    I like to use my calculator while I'm at work in full screen. Please apple, give me a new calculator! also the look like iOS 7