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.

Similar Messages

  • Deployment of BC4J JSP in Java web Server2.0

    I'm presently trying to deploy a BC4j Jsp into the Java Webserver , I have copied all the class , java and the JSP files in the JWS2.0 , but the error I get is as follows :
    Package oracle.jbo.* not found in import ,
    Package javax.naming.* not found in import ,
    Package oracle.jdeveloper.html.* not found in import etc.
    I tried to copy all the JDeveloper class files in the JWS2.0 but no luck ,but here I was able to deploy sucessfully an simple jsp application using a session bean.
    Secondly, I'm not able to use the internal web server of JDeveloper3.0 to run my JSP's , if I try to run, the browser is not able to contact the port no. 7070 and it gives an TCP error / connection error.
    Please also suggest how to include the Jdbc driver in the classpath.
    Thanks in advance ,
    regards,
    Ekta

    Please see the online help for deploying JSP web applications. The instructions are under User Guides, Developing Web Applications, Developing JSPs and Servlets...
    There are a number of dependency archives that need to be deployed to your webserver in order for the BC4J JSPs to run correctly.
    IF you look at the Project Properties for your JSP project, you will see a number of them such as Connection Manager, ORacl e8.1.5 JDBC, etc. EAch of these libraries is based on one or more .jar or .zip files which need to be present in your webserver.
    Which ones you deploy somewhat depends on how you have deployed your Business Components app module. The online help provides more details.
    The Oracle JDBC classes are all located in <JDEV_HOME>/jdbc/lib/oraclex.x.x/classes111.zip. Where x.x.x is the version of the drivers. 8.1.5 is the default in JDev 2. and 3.0.
    Laura

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

  • Deploy .war or .ear file to sun java web server 7.0 update 4

    Hi
    This could be a very daft question, but still I would like to get a clarification.
    My clients are a financial organisation, and for security and various other reasons they accept only .ear files. But this time the development and deployment would be done on Sun Java Web Server 7.0 update 4 . Now since its a web server I don't think I can deploy an .ear file.
    But sure I would like to get an answer from the experts here, is it possible to deploy and .ear file to Sun Java Web Server 7.0 before I can go back to my clients.
    Please help me here as I'm in a real big confusion here. Your help would be highly valuable to me.
    Thanks
    Jagdish

    Hi
    Thanks for the reply and I appreciate your help. Well I tried deploying an .ear file directly and web server 7 complains that it doesn't have a .war extension, understandably so.
    And then ripping apart the .ear file and deploying the .war file does work, as is expected of a web server.
    Well, about my customer is a bank and they have a very tight security policy, and why they need an .ear file is beyond my understanding. Well as far as this issue is concerned, I need a strong point so that I can get back to them that we need to comply to the third party software.
    But I didn't wan't to get back to them saying we can only provide a .war file and then later find out an .ear file could have done the job. And being seen as the technical experts we can't afford to make any mistake.
    Thanks
    Jagdish

  • Simple Java Web Server

    I am looking for a simple Java Web Server similar to the one Sun used to have. My understanding is that they stopped supporting that server. My background for this need is a classroom setting that teaches servlets and JSP, but does not want to specify a tool for deployment. With the old JavaWebServer it was just a matter of copying a Servlet or JSP to a directory. That is what I am looking for in this case.
    If anyone has any thoughts on this, please let me know.
    Thanks

    Try http://www.apache.org Jakarta-Tomcat will work fine.

  • 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

  • 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

  • Do i need a network card to install and run a local java web server

    Friends,
    Do i need a network card in my computer to install and run a local Java Web Server or any Web Server.

    network cards are only for connecting equipment together... you can set up a webserver without any more equipment than you have already! Indeed Tomcat... BUT you would be better off with apache for production stuff. It depends what you need to serve... if its mainly static pages (i guess it probably isn't) then apache will be enough by itself; but if you need to serve dynamic pages (JSP, Servlet blah blah) then you will need tomcat. Tomcat has it's own webserver and its perfectly ok for testing or low-load stuff, but you can integrate with Apache (a moderately compex task, but do-able, see tomcat-user forum off of apache site) for greater stability, and you don't have to show the port in the URL... Don't set up a webserver on any pc that contains stuff you don't want hacked into... it becomes very succeptible when the service is up...

  • JAVA WEB SERVER Problem

    Hai,
    I am using Java Web Server 1.2 . In JSP , when I use
    ResultSet.previous(), it is saying that :
    java.sql.ResultSet.previous() command not found. I do not know what to do ?
    But, In java file, it is working fine without any problem .But, I need to implement in JSP only.
    When I use the bean, which consists Rs.previous() also it says Resultset.previous() Command Not found It is very very urgent to me.
    Pl help me.
    Thanks & Regards

    S,
    1. Yes, you're rigth. Something is missing here.
    2. If it works for Java App and not in JSP,
    that would mean JAVA see your jdbc driver and not JSP
    but then how come JSP can use Connection ???
    3. I think we need some expert to clarify about setup on your machine. Some thing is not set up well so that JAVA app and JSP see at the same time. It look like only JAVA app see the whole.
    4. Can you post your article in JDBC forum also in waiting?
    -- Paul.

  • Problem installing Sun Java Web Server

    Hi
    I'm trying to install Sun Identity Server which need Sun Java Web Server...
    I try to install identity server and web server using Sun Java Enterprise System Install Wizard...
    When I came to page Identity Server:Sun Java System Web Server (3 of 6 ) and I entered Hostname, dir1.usmnet, I get an error pop-up window stating Host Name is not valid......but if I typed dir1.domain.com the error message didn' t appear.....
    I'm using Solaris 9 on Intel platform. I have setup my network and able to ping to other valid hostname in my LAN....
    FYI my network information are as follows
    /etc/hosts
    127.0.0.1 localhost
    <my ip > dir dir.usmnet loghost
    /etc/hostname.elxl0
    dir1
    /etc/resolv.conf
    domain usmnet
    nameserver <dns server ip>
    search usmnet
    I have also setup /etc/netmasks and /etc/defaultrouter
    When I type the domainname command, nothing appeared
    What when wrong, I could ping to my dns server and to other computer in this LAN, could anybody give a suggestion ?

    OK, found the solution by myself.
    The Administrator's Guide mentiones the possibility to install a certificate with the wadm CLI, so I tried that:
    wadm> install-cert -v --config=www -y server -n Server-Cert /www.crt    
    Please enter token-pin>
    ADMIN4086: The Certificate could not be installedThe CLI Reference Manual says for the command install-cert, option --replace*:
    "Note – --replace option of install-cert CLI is deprecated
    and currently using this option may not work as expected.
    For replacing a CA-signed certificate, users should delete the
    cert using delete-cert CLI and then install the new one
    using install-cert CLI."
    wadm> install-cert -v --config=www -y server -n Server-Cert --replace /www.crt 
    Please enter token-pin>
    ADMIN4112: No Private key foundOK, so maybe if I had installed the first certificate (before generating the new CSR) that would have worked, I don't know.
    Deleting the old cert doesn't work at once:
    wadm> delete-cert -v --config=www Server-Cert
    Please enter token-pin>
    ADMIN4139: Certificate Server-Cert is being referred to by listeners: http-listener-2So before deleting you have to remove the certificate from the listener. Then:
    wadm> delete-cert -v --config=www Server-Cert                                           
    Please enter token-pin>
    CLI201 Command 'delete-cert' ran successfully
    wadm> install-cert -v --config=www -y server -n Server-Cert /www.crt  
    Please enter token-pin>
    CLI201 Command 'install-cert' ran successfullyAfter re-adding the certificate to the ssl listener and deploying all the changes to the servers
    everything is fine.
    F.D.

  • Java Web Server 2.0 to Tomcat 3.2

    My company was running servlets using Java Web Server on Solaris and I want to switch to Tomcat 3.2. The installation was fairly simple but I can't figure out how to deploy my previous servlets on Tomcat. Under Java Web Server, all my apps were in the /servlets folder. What is the quickest and easiest way to do this?

    For Tomcat you place them in the /jakarta-tomcat-3.2.1/webapps folder. Each directory under webapps represents a different project. Let's say you have all your servlets grouped together in one directory. You'd make a directory (I'm assuming your root Tomcat directory is /jakarta-tomcat-3.2.1):
    /jakarta-tomcat-3.2.1/webapps/myprojects/web-inf/classes
    and place all your .class files in the classes folder. To access "myServlet", the browser will read (I assume Tomcat is on port 8080):
    http://myserver.com:8080/myprojects/servlet/myServlet
    Hope this helps.
    Michael Bishop

  • Sun Java Web Server 6.1SP4 deadlock, stops responding

    Hi, i have a java web app on a Java Web SErver 6.1SP4 and when there are a lot of users the web server hangs, it stops responing. After a while (from 2 to 15 minutes) it start responding again. This serves neither dinamic nor static content. CPU usage is 100%. Just stoping and restarting the web server instance it works properly (even with the same or greater number of clients).
    Reading many posts some one wrote to use pstack to see whats happening. I did it, but i can't interpret results (i think there is a deadlock but don't know if thats true and how to resolve it).
    Any hint will be appreciated
    There are a lot of blocks like this:
    ----------------- lwp# 3468 / thread# 3468 --------------------
    fe11f950 lwp_mutex_lock (918c18)
    fd692384 __1cNObjectMonitorGenter26MpnGThread__v_ (5000, 525c, 5000, 50dc, 4800, 4af0) + 2d8
    fd6324d4 __1cSObjectSynchronizerKfast_enter6FnGHandle_pnJBasicLock_pnGThread__v_ (e104f604, e104f77c, 831ff50, 0, 35d654, fd6328ec) + 68
    fd632954 __1cQinstanceRefKlassZacquire_pending_list_lock6FpnJBasicLock__v_ (e104f77c, fd970000, e7330000, 4491d4, fd61bc2c, 0) + 78
    fd63167c __1cPVM_GC_OperationNdoit_prologue6M_i_ (e104f764, 4400, fd970000, 2cdc0, 4a6268, 1) + 38
    fd62e0b0 __1cIVMThreadHexecute6FpnMVM_Operation__v_ (e104f764, 80e9b0, 0, 0, 1, 0) + 90
    fd52c2a4 __1cbCTwoGenerationCollectorPolicyRmem_allocate_work6MIii_pnIHeapWord__ (2e368, fd9c29ec, fd9c297c, fd931a26, 4800, 4998) + 160
    fd522940 __1cNinstanceKlassRallocate_instance6MpnGThread__pnPinstanceOopDesc__ (f3c09020, 831ff50, 81e33e0, 4000, 4178, 0) + 180
    fd7b7744 __1cQjava_lang_StringQbasic_create_oop6FpnQtypeArrayOopDesc_ipnGThread__pnHoopDesc__ (f0a5e910, 0, 831ff50, 0, 1, 1) + a8
    fd63228c jni_NewStringUTF (831ffe4, 605b9c8, fd587824, 80e9f8, 4800, 4998) + b8
    fdafdefc __1cKNSJavaUtilQsetStringElement6FpnHJNIEnv__pnN_jobjectArray_Ipkc_v_ (831ffe4, ace7e4, 2, 605b9c8, 4, 605b828) + 34
    fdb068dc __1cONSAPIConnectorOgetRequestInfo6MpnHJNIEnv__pnN_jobjectArray_4pnK_jintArray__v_ (e104fabc, 831ffe4, ace7e4, ace7e0, ace7dc, 4) + 9c
    fdb042e4 __1cONSAPIConnectorHservice6MpnRJ2EEVirtualServer__i_ (e104fabc, ea9560, 8, 84b9464, 6d137e0, ace7dc) + 260
    fdb02734 service_j2ee (3c1c0, 84b97f0, 84b9868, 0, fdb11d57, 132414) + 40
    ff1cf994 __1cNfunc_exec_str6FpnKFuncStruct_pnGpblock_pnHSession_pnHRequest__i_ (668, 3c1c0, 84b97f0, 84b9868, 0, 0) + 248
    ff1d0db4 INTobject_execute (77308, 84b97f0, 84b9868, 0, 37ff8, 80d290) + 5e8
    ff1d5de4 INTservact_service (84b97f0, 84b9868, ff2e7b58, 0, 0, ff2e7b30) + 4d8
    ff1d64f4 INTservact_handle_processed (84b97f0, 84b9868, 20, 2, 605bee0, 76858) + 158
    ff218a9c __1cLHttpRequestUUnacceleratedRespond6Mpc_v_ (84b9750, ff2e7b7c, 2f48, 1bb, 84b9868, 84b97f0) + 3c8
    ff21818c __1cLHttpRequestNHandleRequest6MpnGnetbuf__i_ (84b9750, 6059290, 605b3f0, 605b3d8, 2000, 60592f0) + 62c
    ff216588 __1cNDaemonSessionDrun6M_v_ (84b9348, 2000, ff2ed7bc, 0, 0, ff2ed774) + 17c
    ff106dec ThreadMain (84b9348, 84fcef0, 3, 0, 1, 4b8) + 24
    fedd0028 ptroot (84fcef0, 0, 0, 0, 20000, fede8d70) + d0
    fe165c94 lwpstart (0, 0, 0, 0, 0, 0)

    hi
    sorry for the delayed response.
    well, the problem that you are trying to run into is very common when your server is getting good amount of load and uses large amount of servlet/jsp web applications running.
    here is a url that you might find it a useful read
    http://java.sun.com/docs/hotspot/gc1.4.2/index.html#4.%20Types%20of%20Collectors|outline
    if you do not want to take this trouble reading this document and want a quick solution, you do can do couple of things:
    - first understand how to size the heap
    http://java.sun.com/docs/hotspot/gc1.4.2/index.html#3.%20Sizing%20the%20Generations|outline
    - understand that the system is paused because jvm is busy doing garbage collection before allowing the web server to continue.
    - this can be avoided by properly tuning the jvm to how you think the server should behave. unfortunately, there is no miracle one one line to fix this issue
    - by careful and decent analysis of your system, you can tune your jvm properly that it can scale very well without any glitches.
    though, you will need to take the pain to learn the garbage collection acronyms and see what's best suited for you.
    - first, you want to know what is happening inside the jvm before you proceed to optimize . you can do this by adding this option
    -verbose:gc -XX:+PrintGCDetails
    How to add this option in the server.xml , is by doing something like
    start admin server -> manager your server -> click Java tab
    -> click on JVM Option in the left side
    -> Add this JVM option -verbose:gc -XX:+PrintGCDetails
    -> restart the server
    -> note, you do NOT want to leave the above option in the production environment as this will tremendously slow your application and this is meant to be only for development purposes.
    - if your server is a multi processor server (has more than 1 CPU) and you want less pause time, you can typically try adding this jvm option to your server and restarting it.
    -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled
    here are few other short cut , jvm options that you also try in your devleopment environment before going to production.
    Server application(Like Web Server 6.1) running alone on a large multi-processor server with 4gb of physical memory.
    #java -server -XX:+AggressiveHeap
    Two applications running on a large multi-processor server with 4gb of physical memory. Each java application instance is allocated a part of total system memory by an explicit specification of the maximum and minimum heap sizes.
    #java -server -XX:+AggressiveHeap -Xms1024m -Xmx1024m
    (again, do your research before you use this option in the production environment)

  • Sun Java Web Server and IPlanet

    Are there any issues with running IPlanet and Sun Java Web Server at the same time. The old Web-site are in Servlet format and the new Web site will be deployed with a .war file, so I would like to run both at the same time until I have customized the new Sun Java Web Server instance. Is this possible and if so are there any issues with running them at the same time?

    You can install iPlanet Web Server and Sun Java System Web Server on the same Solaris system, provided that each server is installed to a separate directoy. If each server is configured to listen on a different port and/or IP address, the two servers can run concurrently without problem.

  • Sun Java Web Server Administration Server Backup

    Hi!
    I've a question about Sun Java Web Server Administration Server backup, how it's possible to backup all the config, the Administration Nodes keys included? I'm thinking about in case of full damage of Administration Server how can I install a new one and restore all the config so I can manage the cluster again? Or it is necessary to re-register the Node's to the new Administration Server? In this case how can I restor to the Administration Server the application's, virtual servers, etc...?
    Regards,
    bzg

    The Admin Server is another instance of Web Server, but with some web-apps that know how to manage configuration files, etc. There's nothing real magical going on in there. You should be able to wholesale backup the entire directory and, if needed, restore it (in fact I've done this several times).
    The files in the admin instance are considered a private interface, meaning that Sun does not guarantee that they won't change in location or format from one Update to another, but in practice they rarely change.
    Regarding the nodes specifically - communication between the nodes and the admin instance is done over SSL using a self-signed certificate that was generated when the admin server was installed. The certificate is in the admin instance's config/cert8.db and key3.db files just as it would be for any "normal" instance. Keep those backed up along with admin-serv/config-store/ and you should feel pretty confident that you have the configs, nodes, and certificate/key backed up.
    Again - the files in the admin instance are considered a private interface. There are no user-serviceable parts inside. You may burn your fingers and start a fire. Your mileage may vary. Files from WS7.0u4 may break things if restored into a WS7.0u10 deployment, etc etc etc.

  • Sun Java Web Server 2005Q4

    Where can I download the Sun Java Web Server 2005Q4 version from?
    I am unable to find it in the Sun website.
    Thanks!
    Anand

    I think Service Pack 5 is not yet made publicly downloadable.
    Moreover , You can get Sun Java System Web Server 6.1 Service Pack 4 from here ,
    http://www.sun.com/download/products.xml?id=420aabbd
    http://www.sun.com/download/index.jsp?cat=Web%20%26%20Proxy%20Servers&tab=3&subcat=Web%20Servers

Maybe you are looking for